rackslab / Slurm-web

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

CentOS-8.3 build slurm-web error #223

Closed liu-shaobo closed 1 month ago

liu-shaobo commented 2 years ago

hi,all [joe@10-75-26-86 slurm-web]$ mock --mount --isolation=simple --root centos-stream+epel-8-x86_64 --buildsrpm --Dependencies resolved. Nothing to do. Complete! Finish: dnf update Finish: chroot init Start: buildsrpm Start: rpmbuild -bs error: Bad source: /builddir/build/SOURCES/slurm-web-2.4.0.tar.gz: No such file or directory Building target platforms: x86_64 Building for target x86_64 Finish: rpmbuild -bs Finish: buildsrpm ERROR: Exception(rhel/slurm-web.spec) Config(centos-stream+epel-8-x86_64) 0 minutes 7 seconds INFO: Results and/or logs in: result/ INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed:

bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/slurm-web.spec

[joe@10-75-26-86 slurm-web]$ cat result/build.log Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/slurm-web.spec'], chrootPath='/var/lib/mock/centos-stream+epel-8-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\033]0;\007"', 'PS1': ' \s-\v\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f0bd87fa160>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/slurm-web.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\033]0;\007"', 'PS1': ' \s-\v\$ ', 'LANG': 'C.UTF-8'} and shell False error: Bad source: /builddir/build/SOURCES/slurm-web-2.4.0.tar.gz: No such file or directory Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed:

bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/slurm-web.spec

liu-shaobo commented 2 years ago

[root@10-75-26-86 ~]# rpmbuild -tb slurm-web-2.4.0.tar.gz error: %pycached can only be used with paths explicitly ending with .py error: lua script failed: [string ""]:4: error expanding macro error: line 95: # Python RPM macro %pycached would help in %files section, as it would avoid

[root@10-75-26-86 ~]# cat /etc/redhat-release Rocky Linux release 8.5 (Green Obsidian)

pvanmda commented 2 years ago

encountered the same issue on RHEL 8.6 - the references to the %pycached and %files macros (even though they're in a comment) need to be escaped with another percent sign (i.e., %%pycached and %%files) to prevent expansion.

a subsequent compile issue was resolved by adding %undefine __brp_mangle_shebangs to allow the #!flask/bin/python shebangs in some .py files to reference a (previously installed) Flask virtual environment (at ~/flask)

leoagneau commented 2 years ago

I have escaped all the %pycached and %files with the additional % but still received the same error. Is there any other thing I should do?

pvanmda commented 1 year ago

Unfortunately, I don't have any further knowledge or suggestions regarding slurm-web.

After several weeks of struggle with compiling, building and deploying the RPMs on RHEL 8, and issues with deploying the Docker container, I ended up abandoning this project, and used sview (https://slurm.schedmd.com/sview.html) instead.

rezib commented 2 months ago

This issue concerns Slurm-web v2 which is not maintained anymore. You are highly encouraged to test the new version v3.0.0 which is supported on CentOS 8. The quick start guide for v3.0.0 is available online: https://docs.rackslab.io/slurm-web/install/quickstart.html

Unless someone is motivated to maintain the old version of Slurm-web or you have a justified reason to keep this issue open, it will be closed in a few weeks.

rezib commented 1 month ago

For the reasons explained in the previous comment, I finally close this issue.