Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Failed to start slurm-web-agent and slurm-web-gateway #436

Closed
mneveu-mx opened this issue Jan 10, 2025 · 2 comments
Closed

Failed to start slurm-web-agent and slurm-web-gateway #436

mneveu-mx opened this issue Jan 10, 2025 · 2 comments

Comments

@mneveu-mx
Copy link

Hello,
My objective is to test slurm-web for the first time.
I have slurm v24.11 on RockyLinux 9.2 and I followed the quickstart installation for slurm-web : https://docs.rackslab.io/slurm-web/install/quickstart.html

It's OK for slurmrestd.service, the curl --unix-socket is working.

For this command : /usr/libexec/slurm-web/slurm-web-gen-jwt-key, I have :

 └─ $ : /usr/libexec/slurm-web/slurm-web-gen-jwt-key
Traceback (most recent call last):
  File "/usr/libexec/slurm-web/slurm-web-gen-jwt-key", line 5, in <module>
    from slurmweb.exec.genjwt import SlurmwebExecGenJWT
  File "/usr/lib/python3.9/site-packages/slurmweb/exec/genjwt.py", line 14, in <module>
    from ..apps.gateway import SlurmwebAppGateway
  File "/usr/lib/python3.9/site-packages/slurmweb/apps/gateway.py", line 12, in <module>
    import requests
  File "/usr/lib/python3.9/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/usr/lib/python3.9/site-packages/urllib3/__init__.py", line 11, in <module>
    from . import exceptions
  File "/usr/lib/python3.9/site-packages/urllib3/exceptions.py", line 3, in <module>
    from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
ModuleNotFoundError: No module named 'urllib3.packages.six'

When I start the slurm-web-gateway and slurm-web-agent it is the same.

I am on python3.9.16, urllib3 2.3.0 and requests 2.32.3.

Have you an idea ?

Thanks,
Maxime

@rezib
Copy link
Contributor

rezib commented Jan 10, 2025

Hello @mneveu-mx, did you install requests with RPM packages from Rocky 9 repositories?

@mneveu-mx
Copy link
Author

Hello,
I have first installed RPM with Rocky 9 repositories + epel. It didn't work.
And I have tried to install packages with "pip install"
Thanks for your help,
Maxime

@rackslab rackslab locked and limited conversation to collaborators Jan 13, 2025
@rezib rezib converted this issue into discussion #437 Jan 13, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants