Skip to content
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: Cannot open an HTTP server: socket.error reported AF_UNIX path too long #13982

Open
sophia0509 opened this issue May 28, 2022 · 5 comments · May be fixed by galaxyproject/gravity#53
Open

Comments

@sophia0509
Copy link

sophia0509 commented May 28, 2022

I have installed galaxy in Ubuntu 20.04 as guided in https://galaxyproject.org/admin/get-galaxy/
I have updated an existing one by command:

$ git fetch origin && git checkout release_22.01 && git pull --ff-only origin release_22.01

But after “sh run.sh”, there comes some error as below. Please help with this. Thank in advance.

Executing: galaxy 
2022-05-28 18:21:59,622 WARN No file matches via include "/home/ubuntu/Desktop/NV042022/Data_infras/GITHUB-ANSIBLE-REFERENCE/galaxy/database/gravity/supervisor/supervisord.conf.d/*.conf"
2022-05-28 18:21:59,622 INFO Included extra file "/home/ubuntu/Desktop/NV042022/Data_infras/GITHUB-ANSIBLE-REFERENCE/galaxy/database/gravity/supervisor/supervisord.conf.d/_default_.d/galaxy_celery-beat_celery-beat.conf" during parsing
2022-05-28 18:21:59,622 INFO Included extra file "/home/ubuntu/Desktop/NV042022/Data_infras/GITHUB-ANSIBLE-REFERENCE/galaxy/database/gravity/supervisor/supervisord.conf.d/_default_.d/galaxy_celery_celery.conf" during parsing
2022-05-28 18:21:59,622 INFO Included extra file "/home/ubuntu/Desktop/NV042022/Data_infras/GITHUB-ANSIBLE-REFERENCE/galaxy/database/gravity/supervisor/supervisord.conf.d/_default_.d/galaxy_gunicorn_gunicorn.conf" during parsing
Error: Cannot open an HTTP server: socket.error reported AF_UNIX path too long
For help, use /home/ubuntu/Desktop/NV042022/Data_infras/GITHUB-ANSIBLE-REFERENCE/galaxy/.venv/bin/supervisord 
@mvdbeek
Copy link
Member

mvdbeek commented May 31, 2022

The path to the socket that we're using got too long in your setup. You can choose another path by setting GRAVITY_STATE_DIR=/home/ubuntu/some_shorter_path ./run.sh.

@hexylena
Copy link
Member

hexylena commented Jun 1, 2022

https://mail.openvswitch.org/pipermail/ovs-dev/2013-January/024528.html

UNIX socket paths have a limit in terms of length. On Linux
this is 103 characters.

wow that is a short limit. https://unix.stackexchange.com/questions/367008/why-is-socket-path-length-limited-to-a-hundred-chars

@mvdbeek
Copy link
Member

mvdbeek commented Jun 7, 2022

We should provide a link to instructions here with the error message.

@natefoo
Copy link
Member

natefoo commented Jun 10, 2022

Totally forgot about this, it is likely to be a semi-frequent occurrence. I wonder if we should drop the setting of $GRAVITY_STATE_DIR in the venv activate script and just use the default of ~/.config/galaxy-gravity, plus a shortened hash of the galaxy config file path to separate instance configs. We can default the logs to somewhere in the Galaxy dir.

@mvdbeek mvdbeek modified the milestones: 22.05, 22.09 Aug 11, 2022
@martenson
Copy link
Member

Just hit this on macos 12.6, would be nice to see a more actionable error given the workaround is pretty easy.

@mvdbeek mvdbeek modified the milestones: 23.0, 23.1 Feb 14, 2023
@mvdbeek mvdbeek modified the milestones: 23.1, 23.2 Jul 21, 2023
@jdavcs jdavcs modified the milestones: 23.2, 24.0 Jan 10, 2024
@mvdbeek mvdbeek modified the milestones: 24.0, 24.1 Mar 5, 2024
@jdavcs jdavcs removed this from the 24.1 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants