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

rfl.settings.errors.SettingsSiteLoaderError when loading site configuration #317

Closed rezib closed 4 months ago

rezib commented 4 months ago

Error reported by user on Slurm-web matrix channel:

Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: Traceback (most recent call last):
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/rfl/settings/[loaders.py](http://loaders.py/)", line 31, in init
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: [self.content.read](http://self.content.read/)(path)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib64/python3.6/[configparser.py](http://configparser.py/)", line 697, in read
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: self._read(fp, filename)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib64/python3.6/[configparser.py](http://configparser.py/)", line 1080, in _read
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: raise MissingSectionHeaderError(fpname, lineno, line)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: configparser.MissingSectionHeaderError: File contains no section headers.
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: file: '/etc/slurm-web/gateway.ini', line: 1
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: ' This file is an example for Slurm-web gateway /etc/slurm-web/gateway.ini\n'
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: During handling of the above exception, another exception occurred:
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: Traceback (most recent call last):
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/share/slurm-web/wsgi/gateway/[slurm-web-gateway.py](http://slurm-web-gateway.py/)", line 18, in <module>
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: conf=[SlurmwebAppGateway.SITE](http://slurmwebappgateway.site/)_CONFIGURATION,
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/slurmweb/apps/[gateway.py](http://gateway.py/)", line 109, in init
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: SlurmwebWebApp.init(self, seed)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/slurmweb/apps/init.py", line 85, in init
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: SlurmwebGenericApp.init(self, seed)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/slurmweb/apps/init.py", line 61, in init
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: self.settings.override_ini(seed.conf)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/rfl/settings/init.py", line 147, in override_ini
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: self.override(RuntimeSettingsSiteLoaderIni(path=path))
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: File "/usr/lib/python3.6/site-packages/rfl/settings/[loaders.py](http://loaders.py/)", line 38, in init
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: raise SettingsSiteLoaderError(error)
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: rfl.settings.errors.SettingsSiteLoaderError: File contains no section headers.
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: file: '/etc/slurm-web/gateway.ini', line: 1
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: ' This file is an example for Slurm-web gateway /etc/slurm-web/gateway.ini\n'
Jul 16 15:42:55 master.omnia.cluster uwsgi[479989]: unable to load app 0 (mountpoint='') (callable not found or import error)