-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various improvements/bug fixes for the delete_imaging_upload.pl script #1121
Conversation
I tried to run this script on my VM but failed, is there anything wrong with my command ?
My
|
I checked out this branch and ran The output listed many files to backup before deleting that didn't seem to be related to the upload. I took some of those as examples here. The output ended with errors (loris-mri-python) lorisadmin@cbeaudoin-test-26:/opt/Loris-MRI/bin/mri/tools$ perl delete_imaging_upload.pl -profile prod -uploadID 90 -extra_mysqlcnf ~/dbpass.txt Backing up files related to the upload(s) to delete... |
I changed my database user to my LORIS admin database user and also got a segumentation fault (but apparently different ?)
|
@cmadjar why did you add the 26 milestone to this? It seems like it's a refactoring that's not ready to go and should be for a future release? |
@CamilleBeau I pushed new changes. Can you please test again on your system? |
Hi @nicolasbrossard, I don't see any new commits to this PR other than the 3 original commits from May 3rd |
@CamilleBeau Check right above the message I sent you: you'll see the commit "Fixed bug found in Camille's testing". |
Passing manual tests
|
This PR applies the following fixes/improvements to the
delete_imaging_upload.pl
script:mysqldump
, option--single-transaction
is not used by default anymore.mysqldump
now assumes that~/.my.cnf
contains the password used to connect to the database. Users that do not have this file can use the new option--extra_mysqlcnf=file
to specify an alternate path for the file containing the password used to log into the database. This avoids passing the password on the command line, which is a security risk.mysqldump
is always shown to the user (useful for debugging).mysqldump
return code.Fixes #1107