rackslab / Slurm-web

Open source web dashboard for Slurm HPC clusters
https://slurm-web.com
GNU General Public License v3.0
340 stars 97 forks source link

Not supported URL scheme http+unix error with Requests 2.25.1-8 on Rocky 9 #373

Closed rezib closed 1 week ago

rezib commented 2 weeks ago

3

journalctl -u slurm-web-agent-uwsgi.service

4

Originally posted by @stadox in https://github.com/rackslab/Slurm-web/discussions/372#discussioncomment-11113057

rezib commented 2 weeks ago

@stadox I am not able to reproduce this issue with these packages on Rocky 9:

[root@admin ~]# rpm -qa | egrep 'requests-2|slurm-web'
python3-requests-2.25.1-8.el9.noarch
python3-slurm-web-3.2.0-1.el9.noarch
slurm-web-agent-3.2.0-1.el9.noarch
slurm-web-gateway-3.2.0-1.el9.noarch

I just figured out of your logs that Slurm-web and requests Python packages are installed in /usr/local. I guess you installed Slurm-web from source, right? Note that only installations from distributions packages are supported.

stadox commented 1 week ago

Hello,

I installed packages following https://docs.rackslab.io/slurm-web/install/install/distribs/rocky.html

install

[root@model07 self]# rpm -qa | egrep 'requests-2|slurm-web' python3-requests-2.25.1-8.el9.noarch python3-slurm-web-3.2.0-1.el9.noarch slurm-web-agent-3.2.0-1.el9.noarch slurm-web-gateway-3.2.0-1.el9.noarch

but still the same

log

thank you very much

Kind regards, Stanislav

rezib commented 1 week ago

You can see in the logs that it is still loading Requests library installed in /usr/local, instead of Requests library of python3-requests package.

stadox commented 1 week ago

Hi,

I tried to resolve this case for python /usr/local/....

It seems that point Requests library to /usr/lib/....

helped and now I'm able to see the GUI interface over uwsgi.sock

What left now for me is to find a route cause of this message which appears only on Dashboard card. Other TABS (Jobs, Resources,... ) are working well.

dashboard

log

Thank you a lot for support and time!

Regards, Stanislav

rezib commented 1 week ago

I close this issue as the initial issue is fixed. Your are asking about something else now, please open another Q&A discussion with your new help request.