Replies: 3 comments 1 reply
-
Hi,
in theory you should be able to go into the settings page and save an initial settings file, if not, here's what it would look like. if you need to create this file manually, let me know, and I'll try setting my tvh epg up from scratch, I've not done it in a long time, so it is possible that I need to fix this process up.
|
Beta Was this translation helpful? Give feedback.
-
thanks for letting me know. I will go through the bootstrap process from scratch to identify why the script doesn't correctly tell you what is wrong and how to fix it. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm experiencing the same problem as John White mentioned on the tvheadend forum, but as no solution was given there, let me repeat it here:
configparser object doesn't use defaults and first getitem raises a key error. AFAIK I initialized all directories and permissions correctly. I'm running it on an apache2 on an RPI4, using Python 3.9.2 for cgi. Any ideas on how to bootstrap from scratch?
Thanks in advance.
From the python_errors dump:
Traceback (most recent call last):
File "/usr/lib/cgi-bin/tvh_epg.py", line 1691, in <module>
web_interface()
File "/usr/lib/cgi-bin/tvh_epg.py", line 1622, in web_interface
html_page_header()
File "/usr/lib/cgi-bin/tvh_epg.py", line 1390, in html_page_header
if BG_COL_PAGE in MY_SETTINGS[SETTINGS_SECTION] and MY_SETTINGS.get(SETTINGS_SECTION, BG_COL_PAGE) != '':
File "/usr/lib/python3.9/configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'user'
/var/lib/tvh_epg $ ls -al
total 8
drwxrwsr-x 2 www-data www-data 4096 Jan 6 13:16 .
drwxr-xr-x 32 root root 4096 Jan 6 12:25 ..
usr/lib/cgi-bin $ ls -al
total 72
drwxr-xr-x 2 root root 4096 Jan 6 13:37 .
drwxr-xr-x 71 root root 4096 Jan 6 12:24 ..
-rwxr-xr-x 1 root root 62369 Jan 6 13:37 tvh_epg.py
I am trying to bootstrap by requesting [hostname]/cgi-bin/tvh_epg.py, and this results in a 500 internal server error, because the included python error may not contain html comments in the page header output, so I need to retrieve the error from the logs, instead of seeing it in my browser.
Beta Was this translation helpful? Give feedback.
All reactions