Git Product home page Git Product logo

Comments (15)

bgruening avatar bgruening commented on July 17, 2024

@wtse168 can you post me your commandline which you use to start the Docker container?
Is it similar to: docker run -i -t -p 8080:80 -v /home/user/galaxy_storage/:/export/ bgruening/galaxy-stable

If you run it like this you will see a /home/user/galaxy_storage/galaxy-central/config/ and this should be persistent.

from docker-galaxy-stable.

dpryan79 avatar dpryan79 commented on July 17, 2024

I think I had this happen once with the docker restart ... command, which is what I assume @wtse168 did. I'm not even remotely sure how that happened and I've never actually tried to reproduce it (though I probably could on Monday).

from docker-galaxy-stable.

bgruening avatar bgruening commented on July 17, 2024

@dpryan79 this would be a serious Docker bug I assume. Let me know if this is a restart problem. We would need to add this to the documentation.

from docker-galaxy-stable.

dpryan79 avatar dpryan79 commented on July 17, 2024

Eh, why wait until Monday...

I just tried docker restart ... and I can confirm that that results in a blank /export/galaxy-central/config. I also get a 403 error when trying to connect to the galaxy webserver (because it has no config files). For what it's worth, the slurm stuff and the database are still there, so it's not like it's just deleting everything under /export...though that makes it all the more confusing as to how this is actually happening.

Copying the (backed up!) config folder and then running supervisorctl restart galaxy: fixes things, thankfully.

from docker-galaxy-stable.

bgruening avatar bgruening commented on July 17, 2024

I have a theory:
Line https://github.com/bgruening/docker-galaxy-stable/blob/master/galaxy/export_user_files.py#L32 will remove the folder /galaxy-central/config. In case of a restart this is still a symlink and the shutil.rmtree() will follow the symlink.

What does not fit into this theory is that /galaxy-central/tool-data is not being removed. Can you confirm this? A fix would be easy, we just need to include a check for os.path.islink()

from docker-galaxy-stable.

dpryan79 avatar dpryan79 commented on July 17, 2024

I can confirm that /galaxy-central/tool-data is not being removed.

from docker-galaxy-stable.

bgruening avatar bgruening commented on July 17, 2024

@wtse168 can you confirm that this is only happening if you are using docker restart?

from docker-galaxy-stable.

dpryan79 avatar dpryan79 commented on July 17, 2024

This problem just bit me. I had previously docker commited a container wherein I had modified /etc/group and then started that. That deleted all of /export/galaxy-central/config. I have a backup of that directory, so it's an easy fix, but this was a bit disconcerting.

from docker-galaxy-stable.

vebaev avatar vebaev commented on July 17, 2024

Hi,
I also had the problem, I have returned a backup of /config I have from the past but now I cannot upload any files in Galaxy (PS I pulled the new 15.07 container, result is the same):

Traceback (most recent call last):
  File "/galaxy-central/tools/data_source/upload.py", line 430, in <module>
    __main__()
  File "/galaxy-central/tools/data_source/upload.py", line 419, in __main__
    add_file( dataset, registry, json_file, output_path )
  File "/galaxy-central/tools/data_source/upload.py", line 133, in add_file
    type_info = Binary.is_sniffable_binary( dataset.path )
  File "/galaxy-central/lib/galaxy/datatypes/binary.py", line 54, in is_sniffable_binary
    format_instance = format[ "class" ]()
  File "/shed_tools/testtoolshed.g2.bx.psu.edu/repos/crusoe/oxli_datatypes/08a714ff4ea5/oxli_datatypes/oxli.py", line 35, in __init__
    OxliBinary.__init__(self, **kwd)
TypeError: unbound method __init__() must be called with OxliBinary instance as first argument (got Count instance instead)```

from docker-galaxy-stable.

vebaev avatar vebaev commented on July 17, 2024

Can somebody help with the above error as my Galaxy is ussless as I cannot upload anything :(

from docker-galaxy-stable.

dannon avatar dannon commented on July 17, 2024

@vebaev This isn't a fantastic solution, but can you try to uninstall the oxli_datatypes toolshed repository? These datatypes were added to galaxy core and I believe conflicting definitions are probably the issue. I'll look into a galaxy-side solution to this.

from docker-galaxy-stable.

vebaev avatar vebaev commented on July 17, 2024

@dannon , that worked, thanks!

from docker-galaxy-stable.

dannon avatar dannon commented on July 17, 2024

from docker-galaxy-stable.

ksuderman avatar ksuderman commented on July 17, 2024

I think I am running into this bug as well; when the Galaxy Docker container is started with a mounted volume it cleans out the /galaxy-central/config directory when restarted.

NOTE: I am not using docker restart, but I am doing docker stop galaxy (started with --name galaxy option) and docker start galaxy. I don't know if it is any help at this point, but after stopping the container I can see that the files still exist in the /galaxy-central/config directory, but they are gone after restarting the container. I.E.

# I'm on OS X, hence the docker-machine bits
> docker-machine start default
> docker run -d -p 8000:80 --name galaxy -v /var/lib/galaxy:/export bgruening/galaxy-stable
> docker-machine ssh default
> ls /var/lib/galaxy/galaxy-central/config
...a bunch of files...
> exit
> docker stop galaxy
> docker-machine ssh default
> ls /var/lib/galaxy/galaxy-central/config
...a bunch of files...
> exit
> docker start galaxy
> docker-machine ssh default
> ls /var/lib/galaxy/galaxy-central/config
...empty...
> exit
> docker exec -it galaxy bash
> ls /galaxy-central/config
...empty...

However, bgruening/galaxy-stable:dev seems to fix the problem. Any idea when 'dev' will become 'latest'?

EDIT: I am running into this again, so either galaxy-stable:dev doesn't fix the problem, or it has been re-broken in :dev.

from docker-galaxy-stable.

bgruening avatar bgruening commented on July 17, 2024

@ksuderman when was this edit? :)
I hope this is now fixed. We have a lot of new stuff in :dev and we also introduced travis testing. So if this is not fixed we could add this to travis testing and make sure it never breaks again.

@ksuderman @vebaev please reopen this issue if you still have this problem.

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.