Git Product home page Git Product logo

Comments (10)

bgruening avatar bgruening commented on September 27, 2024

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.

matthdsm avatar matthdsm commented on September 27, 2024

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.

bgruening avatar bgruening commented on September 27, 2024

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.

shiltemann avatar shiltemann commented on September 27, 2024

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.

bgruening avatar bgruening commented on September 27, 2024

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.

shiltemann avatar shiltemann commented on September 27, 2024

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.

bgruening avatar bgruening commented on September 27, 2024

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.

matthdsm avatar matthdsm commented on September 27, 2024

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.

bgruening avatar bgruening commented on September 27, 2024

@matthdsm @shiltemann New docker image is ready. Please pull and test the :dev branch.

from docker-galaxy-stable.

bgruening avatar bgruening commented on September 27, 2024

I think this is fixed with the latest :dev branch. Thanks @matthdsm and @shiltemann!

from docker-galaxy-stable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.