Sorry, it seems like I haven’t used Github for so long, I can’t get past the 2 factor authentication..
As described in the title, I get a 500 Internal Server Error after login to webconf. This is only for the root directory and /sw-repos/ AFAICT. Log shows:
DEBUG:root:Loaded engine config with timestamp: 1763379474.1524427
fatal: detected dubious ownership in repository at '/zynthian/zynthian-sys'
To add an exception for this directory, call:
git config --global --add safe.directory /zynthian/zynthian-sys
ERROR:tornado.application:Uncaught exception GET / (192.168.1.127)
HTTPServerRequest(protocol='http', host='zynthian.local', method='GET', uri='/', version='HTTP/1.1', remote_ip='192.168.1.127')
Traceback (most recent call last):
File "/zynthian/venv/lib/python3.11/site-packages/tornado/web.py", line 1788, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/zynthian/venv/lib/python3.11/site-packages/tornado/web.py", line 3301, in wrapper
return method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/zynthian/zynthian-webconf/lib/dashboard_handler.py", line 49, in get
git_info_sys = self.get_git_info("/zynthian/zynthian-sys")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/zynthian/zynthian-webconf/lib/dashboard_handler.py", line 280, in get_git_info
branch = check_output("cd %s; git branch | grep '*'" %
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'cd /zynthian/zynthian-sys; git branch | grep '*'' returned non-zero exit status 1.
ERROR:tornado.access:500 GET / (192.168.1.127) 40.20ms
[from shell]
(venv) root@zynthian:/zynthian/zynthian-sys# ls -al
total 76
drwxr-xr-x 9 zynthian zynthian 4096 May 26 15:05 .
drwxr-xr-x 12 zynthian zynthian 4096 Oct 21 2024 ..
drwxr-xr-x 2 zynthian zynthian 4096 May 26 15:03 boot
drwxr-xr-x 4 zynthian zynthian 4096 Jun 16 16:45 config
drwxr-xr-x 5 zynthian zynthian 4096 Sep 6 2024 custom
drwxr-xr-x 18 zynthian zynthian 4096 May 26 15:03 etc
drwxr-xr-x 8 zynthian zynthian 4096 Jun 16 16:45 .git
-rw-r--r-- 1 zynthian zynthian 35147 Sep 6 2024 LICENSE.txt
-rw-r--r-- 1 zynthian zynthian 780 Sep 6 2024 README.md
drwxr-xr-x 2 zynthian zynthian 4096 Jun 1 10:49 sbin
drwxr-xr-x 3 zynthian zynthian 4096 Jun 16 16:45 scripts
(venv) root@zynthian:/zynthian/zynthian-sys# git -C . branch
fatal: detected dubious ownership in repository at '/zynthian/zynthian-sys'
To add an exception for this directory, call:
git config --global --add safe.directory /zynthian/zynthian-sys
I’m on oram development branch. I don’t know how I can see the versions from the webconf since I’m not able to load that page. Any idea on how I can fix this?
