Can anyone shed some light? Container starts running, then shuts down. Logs show this:
Traceback (most recent call last):
File "/app/app.py", line 387, in
init()
File "/app/app.py", line 33, in init
reload_conf()
File "/app/app.py", line 353, in reload_conf
watcher.add_directory(dir)
File "/app/file_watcher.py", line 61, in add_directory
task = self.observer.schedule(self.event_handler, directory, recursive=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/api.py", line 306, in schedule
emitter.start()
File "/usr/local/lib/python3.11/site-packages/watchdog/utils/init.py", line 86, in start
self.on_thread_start()
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify.py", line 123, in on_thread_start
self._inotify = InotifyBuffer(path, self.watch.is_recursive, event_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_buffer.py", line 37, in init
self._inotify = Inotify(path, recursive, event_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 173, in init
self._add_dir_watch(path, recursive, event_mask)
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 374, in _add_dir_watch
self._add_watch(full_path, mask)
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 387, in _add_watch
Inotify._raise_error()
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 404, in _raise_error
raise OSError(err, os.strerror(err))
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/app/app.py", line 387, in
init()
File "/app/app.py", line 33, in init
reload_conf()
File "/app/app.py", line 353, in reload_conf
watcher.add_directory(dir)
File "/app/file_watcher.py", line 61, in add_directory
task = self.observer.schedule(self.event_handler, directory, recursive=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/api.py", line 306, in schedule
emitter.start()
File "/usr/local/lib/python3.11/site-packages/watchdog/utils/init.py", line 86, in start
self.on_thread_start()
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify.py", line 123, in on_thread_start
self._inotify = InotifyBuffer(path, self.watch.is_recursive, event_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_buffer.py", line 37, in init
self._inotify = Inotify(path, recursive, event_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 173, in init
self._add_dir_watch(path, recursive, event_mask)
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 374, in _add_dir_watch
self._add_watch(full_path, mask)
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 387, in _add_watch
Inotify._raise_error()
File "/usr/local/lib/python3.11/site-packages/watchdog/observers/inotify_c.py", line 404, in _raise_error
raise OSError(err, os.strerror(err))
FileNotFoundError: [Errno 2] No such file or directory
users:x:100:games
Starting ownfoil
[2024-10-29 09:02:48.102] INFO (app) Starting initialization of Ownfoil...
[2024-10-29 09:02:48.102] INFO (app) Initializing File Watcher...
[2024-10-29 09:02:48.102] INFO (app) Loading initial configuration...
[2024-10-29 09:02:48.102] DEBUG (settings) Reading configuration file.
[2024-10-29 09:02:48.103] DEBUG (settings) Keys file /app/config/keys.txt does not exist.
[2024-10-29 09:02:48.103] INFO (file_watcher) Adding directory /games to watchdog.
[2024-10-29 09:02:48.104] INFO (file_watcher) Adding directory / to watchdog.
users:x:100:games,ownfoil
ownfoil:x:99:100:Linux User,,,:/home/ownfoil:/sbin/nologin
Starting ownfoil
[2024-10-29 09:03:11.367] INFO (app) Starting initialization of Ownfoil...
[2024-10-29 09:03:11.367] INFO (app) Initializing File Watcher...
[2024-10-29 09:03:11.367] INFO (app) Loading initial configuration...
[2024-10-29 09:03:11.367] DEBUG (settings) Reading configuration file.
[2024-10-29 09:03:11.368] DEBUG (settings) Keys file /app/config/keys.txt does not exist.
[2024-10-29 09:03:11.368] INFO (file_watcher) Adding directory /games to watchdog.
[2024-10-29 09:03:11.369] INFO (file_watcher) Adding directory / to watchdog.
If I start it again I get only the last part:
Starting ownfoil
[2024-10-29 09:08:54.450] INFO (app) Starting initialization of Ownfoil...
[2024-10-29 09:08:54.450] INFO (app) Initializing File Watcher...
[2024-10-29 09:08:54.451] INFO (app) Loading initial configuration...
[2024-10-29 09:08:54.451] DEBUG (settings) Reading configuration file.
[2024-10-29 09:08:54.453] DEBUG (settings) Keys file /app/config/keys.txt does not exist.
[2024-10-29 09:08:54.453] INFO (file_watcher) Adding directory /games to watchdog.
[2024-10-29 09:08:54.453] INFO (file_watcher) Adding directory / to watchdog.
Can anyone shed some light? Container starts running, then shuts down. Logs show this:
If I start it again I get only the last part:
Starting ownfoil
...and then shuts down again. Any ideas?