Comments (10)
I think this is simply because the on your system postgres needs more time to startup than on Dockerhub or my computer.
During the installation, postgres and Galaxy needs to be started: https://github.com/bgruening/docker-galaxy-stable/blob/dev/galaxy/install_repo_wrapper.sh#L4
Ideally we need to check if postgres is up- and running before starting Galaxy. The downside is it will take slightly longer to install repositories than now.
from docker-galaxy-stable.
So we should probably add someting like
STATUS="$(service ntp status)"
while [[ ${STATUS} != *"is running"* ]]
do
STATUS="$(service ntp status)"
done
to the wrapper script and then it should be fixed. Can you add this or should I clone the repo and make a pull request?
Matthias
from docker-galaxy-stable.
I can add this is you like, but can you test it before ... just to make sure my assumption is correct.
from docker-galaxy-stable.
I also get this error. Tried Matthias' solution, but even once the command "service postgresql status" returns status "online" it still fails if you start Galaxy too soon. However, if you wait until the command "psql" no longer returns "FATAL: the database system is starting up", it seems safe to start Galaxy.
Something like:
STATUS=$(psql 2>&1)
while [[ ${STATUS} =~ "starting up" ]]
do
STATUS=$(psql 2>&1)
echo "waiting for database: $STATUS"
sleep 1
done
(and switching from sh to bash for this syntax to work btw)
from docker-galaxy-stable.
Hi Saskia,
can you create a PR against the dev branch? I'm a little bit sceptical if we should put this into the new release which can happen every day. But if @matthdsm and you can test this carefully I will get this in. I just can not test it. Never saw this timeout.
from docker-galaxy-stable.
Will do. Yes it used to work for me without this too (couple days ago still) ..not quite sure what changed..
from docker-galaxy-stable.
If we are correct with our assumption, everything that is slowing down the postgres start can be a reason. Watching Galaxy 101 Tutorials on the same computer? ;)
from docker-galaxy-stable.
This fix works for me. A little delay during the startup of postgresql, but everything installs smoothly.
I would propose to integrate it in the new release. Otherwise I'll incorporate it in my "custom flavour" dockerfile.
Thanks for the help Saskia, I hadn't though of monitoring the psql process.
Matthias
from docker-galaxy-stable.
@matthdsm @shiltemann New docker image is ready. Please pull and test the :dev branch.
from docker-galaxy-stable.
I think this is fixed with the latest :dev branch. Thanks @matthdsm and @shiltemann!
from docker-galaxy-stable.
Related Issues (20)
- WIP. In compose: Add a galaxy-post-configurator server to add specifics of a flavour HOT 1
- Docker-galaxy doesn't work HOT 2
- Pre-installing tools in the tool_conf via conda
- error in attmap setup command: use_2to3 is invalid HOT 2
- Docker galaxy cannot be installed and started correctly HOT 8
- python 3.8 and futures 3.1.1 not working well together HOT 7
- Unstable running of standalone galaxy setup as Azure App Service
- Dontainer not starting after copying
- Docker container runs out of space if /export is used
- Custom welcome.html is not displaying?
- 403 Forbidden nginx/1.14.0 (Ubuntu) HOT 1
- Fix for start failure
- consider to integrate and use Dokter
- Production use?
- Galaxy 22.05 updates HOT 1
- Can't download file from urls
- can't load the welcome.html HOT 1
- unable to start container
- ERROR: Process docker: no such file
- run task failure: Error in lock(.sql_lock_path(dbfile), exclusive = exclusive) : Cannot open lock file: Permission denied
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-galaxy-stable.