-
Notifications
You must be signed in to change notification settings - Fork 135
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
Permissions on /home/user/galaxy_storage #163
Comments
@zfrenchee you don't need to touch the container. Our aim is that you never need to change anything inside of the container. Please have a look at this section in our readme file: https://github.com/bgruening/docker-galaxy-stable#personalize-your-galaxy |
My problem right now is that i need to properly set the permissions on |
try |
I get |
You need to do this from inside of the container. |
@zfrenchee You can try this: The UID 1450 refers to the galaxy user inside the container. |
Something kind of strange is happening. So in order to run the commands inside the container, I assume i need to use
Without being able to get into the container, it seems like the /export/ doesn't exist, and so I'm having a hard time using that command. Update: using docker run -it bash, I can actually get into the container without a repeating error, but the commands @bgruening and @adefelicibus don't work, or at least, I still get my 403. |
If you want to access files inside the container, you can use: So, if you did the command If so, you need to set the UID to postgre user: @bgruening I had to restart the container several times to have my webpage changed inside the container, but it works. |
I think the problem isn't inside the container but actually with the permissions of everything inside home/user/glalaxy_storage, since that's what I modified. running |
@zfrenchee: @adefelicibus has a good point the postgresql database need to be set to the postgresql user. Have you ever used chmod on the entire directory? If so this can be a bigger problem, because a few services will not start if you have the wrong octal permissions set. |
I think that I did in fact chmod the entire directory (see the original issue text for a description of what I did). I think I need to reset the octal permissions set to what it was before I fudged with it, but I don't know what it was before. |
This is what I think you're asking I try, but I'm not getting it to work.
|
I just hope it doesn't relate to this: moby/moby#6047 |
So since I wasn't making progress on this alone, I spun up a new VM, installed docker, ran this galaxy container on it, installed all the tools I needed, re-uploaded the data, etc.. Now, I still want to customize welcome.html, but I'm still having trouble with it. On this new vm:
I know now not to try and blindly chmod or chown anything in here lest I need to start from scratch again. I don't really understand permissions all too well, and I understand them less in the context of docker, but not being able to touch a file in here seems wrong. What's going on? Could this have anything to do with the command I ran (which is the one listed under passive-mode ftp)?
|
There are two different users. galaxy for all Galaxy source code, datasets, config files .... and postres (1550) for the PostGreSQL database. Afaik your main problem is that there is a difference between inside of Docker and outside of Docker. If you are inside of Docker you should be able to modify everything. Outside of Docker you need to start your editor with sudo to edit these files. |
What I'm trying to say is that I'm not sure those instructions to personalize galaxy work. The instructions are:
But as I reported above, when I try to do that:
note: galaxy-2 is not the same as galaxy-1 (which is the instance I initially reported this for), it's a new VM, with a fresh install of docker and galaxy, but I'm still running into a similar problem. |
The instructions work correctly, we use this method for both our public and private instances. Try |
The output I get is:
If I chmod and get a 403 again and can't recover the galaxy instance that would be a huge pain. Are you sure that's what I should do? |
Ah, you're not running as root or prefixing things with The above instructions will never cause a 403. |
I followed your instructions, but the page isn't with welcome.html's content. I've restarted the docker container a number of times, and even tried restarting the VM. Not sure what else I can do. Could this have anything to do with recent commits in this repo? |
Nevermind, it just arbitrarily started working after the fifth restart. =) |
Glad to hear it. You could have also cleared your browser cache and saved yourself the the last four restarts :) |
I wanted to update the webpage at
/home/user/galaxy_storage/welcome.html
but even though I put new html file there and restarted my VM, the webpage didn't update, but maintained the old appearance, which I thought was strange. But then I found/home/user/galaxy_storage/web/welcome.html
. So I tried tocp welcome.html web/welcome.html
butweb/welcome.html
was write-locked or something, so naturally, Isudo mv welcome.html web/
. But then when I went tocp web/welcome.html .
I got a permission denied, so again, I didsudo cp web/welcome.html .
which worked, and the webpage had updated.But then I went too far and tried to fix the need for sudoing, with
sudo chmod -R 777 /home/user/
but then all the text in my terminal had green highlighting, which is never good, so I didsudo chmod -R 755 /home/user/
which restored the regular font, but also restored the need to sudo. So then I didsudo chown -R alex /home/user
which seemed to have fixed everything, but then the webpage said "internal server error" so I restarted the VM again and now I get a 403: Forbidden.I don't know what the original permissions were or how to restore the Galaxy instance, but changing the permissions on /home/user was probably a mistake. Help?
The text was updated successfully, but these errors were encountered: