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
Warning: Incorrect datetime value in Galaxy 16.01 #2037
Comments
Hi, Galaxy uses a mySQL database. Fred |
Thanks for reporting this, your guess seems like it's on the right track. I'll try to set up a mysql database and reproduce this here today. |
@FredericBGA I've opened pull request #2042 which might fix this for you, if you have time to test it that would be appreciated. |
@FredericBGA What version of MySQL are you using there? |
Hello Server version: 5.5.21-log MySQL Community Server (GPL) Fred De : carlfeberhard [mailto:notifications@github.com] @FredericBGAhttps://github.com/FredericBGA What version of MySQL are you using there? — |
Hi Thank you for being so fast to work on this issue ! I’m not a git advanced user.
Do I need to launch a more specific git command in order to get your fix ? Fred De : Nicola Soranzo [mailto:notifications@github.com] @FredericBGAhttps://github.com/FredericBGA I've opened pull request #2042#2042 which might fix this for you, if you have time to test it that would be appreciated. — |
@FredericBGA A
and then copy the download |
Hi Ok, it’s done. wget https://raw.githubusercontent.com/nsoranzo/galaxy/fix_for_2037/lib/galaxy/managers/base.py But the error is still here. /softs/bioinfo/galaxy-prod/.venv/lib/python2.7/site-packages/sqlalchemy/engine/default.py:450: Warning: Incorrect datetime value: '2016-03-31 11:50:33Z' for column 'update_time' at row 38 it will be always thrown until I click the refresh icon. Fred De : Nicola Soranzo [mailto:notifications@github.com] @FredericBGAhttps://github.com/FredericBGA A git pull is not enough because the pull request has not been merged yet. Probably the easiest way to apply the changes is to download https://raw.githubusercontent.com/nsoranzo/galaxy/fix_for_2037/lib/galaxy/managers/base.py , e.g. with wget https://raw.githubusercontent.com/nsoranzo/galaxy/fix_for_2037/lib/galaxy/managers/base.py and then copy the download base.py in lib/galaxy/managers/ (overwriting the original one). Then restart Galaxy and test again. — |
@FredericBGA I'm not seeing this behavior on 16.01 but I am able to reproduce it in on dev. Are you certain you're actually on 16.01? What's the output of |
Hi git status Not currently on any branch.Changed but not updated:(use "git add ..." to update what will be committed)(use "git checkout -- ..." to discard changes in working directory)modified: lib/galaxy/jobs/runners/init.pymodified: lib/galaxy/jobs/runners/drmaa.pymodified: lib/galaxy/jobs/runners/util/job_script/DEFAULT_JOB_FILE_TEMPLATE.shmodified: lib/galaxy/managers/base.pyUntracked files:(use "git add ..." to include in what will be committed).bash_history.bashrc.cache/.drmaa/.local/.profile.python-eggs/.viminfoGalaxyTest.e14122GalaxyTest.e14205GalaxyTest.o14122GalaxyTest.o14205NCPUS.txtStartStopRestartGalaxy.shbackupbin/databasesinclude/lib/galaxy/tools/toolbox/filters/examples.pylib/galaxy/tools/toolbox/filters/teams.pylib/python2.7/pip-selfcheck.jsonprojectsshed_tools/static/images/LogoBGA-S-Trans.pngstatic/images/Universe.jpgtest.pbs.shtools/bga/tools/data_source/echo.pytools/data_source/echo.xmltools/data_source/ucsc_archaea.xmltools/data_source/ucsc_filter.pytools/data_source/ucsc_proxy.pytools/data_source/ucsc_proxy.xmltools/data_source/ucsc_testproxy.xmltools/ga/tools/ggc/tools/ggo/tools/gmtd/tools/others/no changes added to commit (use "git add" and/or "git commit -a") Fred De : Dannon Baker [mailto:notifications@github.com] @FredericBGAhttps://github.com/FredericBGA I'm not seeing this behavior on 16.01 but I am able to reproduce it in on dev. Are you certain you're actually on 16.01? What's the output of git status? — |
@dannon I'm pretty sure this happens only on dev. |
@nsoranzo Yep, that's what I was seeing too. Ok, @FredericBGA -- have you intentionally made any changes to the local repository? I'd recommend getting on a release branch and tracking that (or master), instead of getting changes from the dev branch like it looks like you are. Let me know if you need help with this. |
HI Dannon Yes, i need help in order to be sure to get the latest code. By the way, the only files I have modified myself are (in order to make galaxy running under PBSPRo) : I’m really sorry if all of this in only related to a bad version. Fred De : Dannon Baker [mailto:notifications@github.com] @nsoranzohttps://github.com/nsoranzo Yep, that's what I was seeing too. Ok, @FredericBGAhttps://github.com/FredericBGA -- have you intentionally made any changes to the local repository? I'd recommend getting on a release branch and tracking that (or master), instead of getting changes from the dev branch like it looks like you are. Let me know if you need help with this. — |
@FredericBGA No problem at all. First thing I'd do is save your changes. You can diff them out to a patch with 'git diff -p > mychanges.patch', and/or stash with 'git stash'. Then you have two options, to check out 'master', which will be the latest stable release always, or checkout release_16.01 specifically.' Little bit more info here: https://wiki.galaxyproject.org/News/2016_01_GalaxyRelease But the relevant command to get on 'master', which will always point to the latest stable release, is: Once you've done that, you can either patch your changes back in, or try to unstash with |
Hi, It seems that the checkout failed.
From https://github.com/galaxyproject/galaxy
|
Hi, it seems to be ok with:
and then
|
But the error is still here. Fred |
Can you reply with the results from |
Closing the issue as the problem in question is resolved as of #2062. @FredericBGA feel free to keep using the thread for us to sort out your deployment issue (or email galaxy-dev) |
Hello
The error has gone. When I click on the refresh icon, everything is ok, the file is here and the result of the job too. I have joined the log (with my comments in bracket) Fred |
@carlfeberhard @dannon It seems that the Galaxy server is at time zone +2, while the database is using UTC. |
I think we've got two issues in this thread: a) the update timezone bug and b) getting Fred's installation onto @FredericBGA Ok, thanks for that info. I think you are still on the dev branch. Can you reply with the output of (And, to second Dannon's suggestion: we can move this to the 'galaxy-dev' mailing list (http://dev.list.galaxyproject.org/) or to irc (https://wiki.galaxyproject.org/Support/IRC), too) |
Hi, I found the problem. Fred |
Hi ,
|
@FredericBGA So this is working for you now? |
Hi all Thank you very much for your time, I really appreciate your help. upload works now, no more problem of refresh, it works with jobs too. I'm not sure if my version is the good one but I agree to close the discussion here and to continue on galaxy-dev. Fred |
Hello
When I try to upload a file, I can see this error in the log file :
/softs/bioinfo/galaxy/.venv/lib/python2.7/site-packages/sqlalchemy/engine/default.py:450: Warning: Incorrect datetime value: '2016-03-29 07:25:29.220Z' for column 'update_time' at row 32
On the interface, the upload job seems to be stuck. The history will never be refreshed.
Otherwise, if I manually click on the “refresh history” icon, it works. The error is not shown again and my file appears in the history.
I run a git pull (see git.txt)
git.txt
Here is the log when I try to upload a file (in galaxylogFirst.txt file).
galaxylogFirst.txt
The history will never refresh automatically.
Otherwise, if I manually click on the “refresh history” icon, it works. The error is not shown again and my file appears in the history.
Here is the log after I click the “refresh history” icon.
galaxylogSecond.txt
Here is the result of uname -a
We run under PBS Pro but upload is run locally (config/job_conf.xml).
<tool id="upload1" destination="local"/>
Does anybody see this ? I hope it will be easy to debug because this is annoying.
Thank you.
Fred
The text was updated successfully, but these errors were encountered: