-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error directories access #23
Comments
@mtangaro what is the UID for nginx process you are running. That case seems to be a UID mixup between owner of oneclient and nginx which usually runs on different account |
@mtangaro can you elaborate a bit more? What is the architecture you are aiming at here? |
I'm using "galaxy" as default user to run oneclient:
To start nginx I've to user the superuser, of course. Then to use nginx worker I'm using "galaxy":
This is the needed configuration to use nginx with the Galaxy workflow manager. I've create the "nginx_upload_store" directory, on my space, mounted using oneclient using the galaxy user:
|
So let me describe what's happening. |
Dear onedata developers,
For the ELIXIR-ITALY use case we use Galaxy with Nginx as web server, exploiting the directory named nginx_upload_store, to upload data. During the upload procedure Nginx store data here.
I've created it on my space:
(.venv) [galaxy@galaxy-test galaxy]$ mkdir -p nginx_upload_store
(.venv) [galaxy@galaxy-test galaxy]$ ll
total 0
-rw-rw-r--. 1 1220087 1245641 5 May 23 15:59 ciao.txt
drwxr-xr-x. 1 1220087 1245641 0 May 31 09:49 _conda
drwxr-xr-x. 1 1220087 1245641 0 Jun 1 09:51 database
drwxr-xr-x. 1 1220087 1245641 0 Jun 1 09:51 job_work
drwxrwxr-x. 1 1220087 1245641 0 Jun 1 19:13 nginx_upload_store
-rw-rw-r--. 1 1220087 1245641 6 May 31 15:40 prova
drwxr-xr-x. 1 1220087 1245641 0 May 31 09:37 tool_deps
but running nginx:
`(.venv) [galaxy@galaxy-test galaxy]$ sudo systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-06-01 19:12:20 UTC; 7s ago
Process: 12769 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 12768 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it nginx[12769]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it nginx[12769]: nginx: [emerg] mkdir() "/data/galaxy/nginx_upload_store" failed (13: Permission denied)
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it nginx[12769]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it systemd[1]: nginx.service: control process exited, code=exited status=1
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it systemd[1]: Unit nginx.service entered failed state.
Jun 01 19:12:20 galaxy-test.cloud.ba.infn.it systemd[1]: nginx.service failed.`
For this reason I can't use onedata as storage to upload data.
Do you have any idea to solve this issue?
Best Regards,
Marco.
The text was updated successfully, but these errors were encountered: