Comments (15)
@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.
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.
@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.
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.
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.
I can confirm that /galaxy-central/tool-data
is not being removed.
from docker-galaxy-stable.
@wtse168 can you confirm that this is only happening if you are using docker restart
?
from docker-galaxy-stable.
This problem just bit me. I had previously docker commit
ed 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.
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.
Can somebody help with the above error as my Galaxy is ussless as I cannot upload anything :(
from docker-galaxy-stable.
@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.
@dannon , that worked, thanks!
from docker-galaxy-stable.
from docker-galaxy-stable.
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.
@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)
- 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.