SuggestArr: Cannot get running via Docker

I ran it in Portainer and I get this in the logs:

    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:22 +0000] [8] [INFO] Worker exiting (pid: 8)
[2024-10-17 17:44:22 +0000] [9] [INFO] Booting worker with pid: 9
[2024-10-17 17:44:22 +0000] [9] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:22 +0000] [9] [INFO] Worker exiting (pid: 9)
[2024-10-17 17:44:22 +0000] [7] [ERROR] Worker (pid:8) exited with code 3
[2024-10-17 17:44:22 +0000] [7] [ERROR] Worker (pid:9) was sent SIGTERM!
[2024-10-17 17:44:22 +0000] [7] [ERROR] Shutting down: Master
[2024-10-17 17:44:22 +0000] [7] [ERROR] Reason: Worker failed to boot.
2024-10-17 17:44:23,299 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-17 17:44:23,300 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-17 17:44:23,300 WARN exited: gunicorn (exit status 3; not expected)
2024-10-17 17:44:24,322 INFO spawned: 'gunicorn' with pid 10
[2024-10-17 17:44:24 +0000] [10] [INFO] Starting gunicorn 23.0.0
[2024-10-17 17:44:24 +0000] [10] [INFO] Listening at: http://0.0.0.0:5000 (10)
[2024-10-17 17:44:24 +0000] [10] [INFO] Using worker: sync
[2024-10-17 17:44:24 +0000] [11] [INFO] Booting worker with pid: 11
[2024-10-17 17:44:24 +0000] [11] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:24 +0000] [11] [INFO] Worker exiting (pid: 11)
[2024-10-17 17:44:24 +0000] [10] [ERROR] Worker (pid:11) exited with code 3
[2024-10-17 17:44:24 +0000] [10] [ERROR] Shutting down: Master
[2024-10-17 17:44:24 +0000] [10] [ERROR] Reason: Worker failed to boot.
2024-10-17 17:44:24,670 WARN exited: gunicorn (exit status 3; not expected)
2024-10-17 17:44:25,677 INFO spawned: 'gunicorn' with pid 12
[2024-10-17 17:44:25 +0000] [12] [INFO] Starting gunicorn 23.0.0
[2024-10-17 17:44:25 +0000] [12] [INFO] Listening at: http://0.0.0.0:5000/ (12)
[2024-10-17 17:44:25 +0000] [12] [INFO] Using worker: sync
[2024-10-17 17:44:25 +0000] [13] [INFO] Booting worker with pid: 13
[2024-10-17 17:44:25 +0000] [13] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:25 +0000] [13] [INFO] Worker exiting (pid: 13)
[2024-10-17 17:44:25 +0000] [14] [INFO] Booting worker with pid: 14
[2024-10-17 17:44:25 +0000] [14] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:26 +0000] [14] [INFO] Worker exiting (pid: 14)
[2024-10-17 17:44:26 +0000] [12] [ERROR] Worker (pid:13) exited with code 3
[2024-10-17 17:44:26 +0000] [12] [ERROR] Worker (pid:14) exited with code 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 201, in run
    self.manage_workers()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 570, in manage_workers
    self.spawn_workers()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 642, in spawn_workers
    time.sleep(0.1 * random.random())
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 241, in handle_chld
    self.reap_workers()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 529, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/bin/gunicorn", line 8, in <module>
    sys.exit(run())
             ~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 235, in run
    super().run()
    ~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 71, in run
    Arbiter(self).run()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 228, in run
    self.halt(reason=inst.reason, exit_status=inst.exit_status)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 341, in halt
    self.stop()
    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 395, in stop
    time.sleep(0.1)
    ~~~~~~~~~~^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 241, in handle_chld
    self.reap_workers()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 529, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2024-10-17 17:44:26,078 WARN exited: gunicorn (exit status 1; not expected)
2024-10-17 17:44:28,101 INFO spawned: 'gunicorn' with pid 15
[2024-10-17 17:44:28 +0000] [15] [INFO] Starting gunicorn 23.0.0
[2024-10-17 17:44:28 +0000] [15] [INFO] Listening at: http://0.0.0.0:5000/ (15)
[2024-10-17 17:44:28 +0000] [15] [INFO] Using worker: sync
[2024-10-17 17:44:28 +0000] [16] [INFO] Booting worker with pid: 16
[2024-10-17 17:44:28 +0000] [16] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:28 +0000] [16] [INFO] Worker exiting (pid: 16)
[2024-10-17 17:44:28 +0000] [17] [INFO] Booting worker with pid: 17
[2024-10-17 17:44:28 +0000] [15] [ERROR] Worker (pid:16) exited with code 3
[2024-10-17 17:44:28 +0000] [17] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:28 +0000] [17] [INFO] Worker exiting (pid: 17)
[2024-10-17 17:44:28 +0000] [15] [ERROR] Worker (pid:17) exited with code 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 201, in run
    self.manage_workers()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 570, in manage_workers
    self.spawn_workers()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 642, in spawn_workers
    time.sleep(0.1 * random.random())
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 241, in handle_chld
    self.reap_workers()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 529, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/bin/gunicorn", line 8, in <module>
    sys.exit(run())
             ~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 235, in run
    super().run()
    ~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 71, in run
    Arbiter(self).run()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 228, in run
    self.halt(reason=inst.reason, exit_status=inst.exit_status)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 341, in halt
    self.stop()
    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 395, in stop
    time.sleep(0.1)
    ~~~~~~~~~~^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 241, in handle_chld
    self.reap_workers()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 529, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2024-10-17 17:44:28,631 WARN exited: gunicorn (exit status 1; not expected)
2024-10-17 17:44:31,670 INFO spawned: 'gunicorn' with pid 18
Skipped 114 entries
2024-10-17 17:44:33,141 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-17 17:44:33,142 WARN exited: gunicorn (exit status 1; not expected)
2024-10-17 17:44:34,160 INFO spawned: 'gunicorn' with pid 21
[2024-10-17 17:44:34 +0000] [21] [INFO] Starting gunicorn 23.0.0
[2024-10-17 17:44:34 +0000] [21] [INFO] Listening at: http://0.0.0.0:5000 (21)
[2024-10-17 17:44:34 +0000] [21] [INFO] Using worker: sync
[2024-10-17 17:44:34 +0000] [22] [INFO] Booting worker with pid: 22
[2024-10-17 17:44:34 +0000] [22] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:34 +0000] [22] [INFO] Worker exiting (pid: 22)
[2024-10-17 17:44:34 +0000] [21] [ERROR] Worker (pid:22) exited with code 3
[2024-10-17 17:44:34 +0000] [21] [ERROR] Shutting down: Master
[2024-10-17 17:44:34 +0000] [21] [ERROR] Reason: Worker failed to boot.
2024-10-17 17:44:35,478 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-17 17:44:35,479 WARN exited: gunicorn (exit status 3; not expected)
2024-10-17 17:44:36,488 INFO spawned: 'gunicorn' with pid 23
[2024-10-17 17:44:36 +0000] [23] [INFO] Starting gunicorn 23.0.0
[2024-10-17 17:44:36 +0000] [23] [INFO] Listening at: http://0.0.0.0:5000/ (23)
[2024-10-17 17:44:36 +0000] [23] [INFO] Using worker: sync
[2024-10-17 17:44:36 +0000] [24] [INFO] Booting worker with pid: 24
[2024-10-17 17:44:36 +0000] [24] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
    worker.init_process()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
    ~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
    self.wsgi = self.app.wsgi()
                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi
    self.callable = self.load()
                    ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    return self.load_wsgiapp()
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    return util.import_app(self.app_uri)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'app'
[2024-10-17 17:44:36 +0000] [24] [INFO] Worker exiting (pid: 24)
[2024-10-17 17:44:36 +0000] [23] [ERROR] Worker (pid:24) exited with code 3
[2024-10-17 17:44:36 +0000] [23] [ERROR] Shutting down: Master
[2024-10-17 17:44:36 +0000] [23] [ERROR] Reason: Worker failed to boot.
2024-10-17 17:44:37,815 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-17 17:44:37,821 WARN exited: gunicorn (exit status 3; not expected)
close
close

If I instead try to use a docker-compose.yml file, I get the error:

failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory

This is my template, in Portainer or as docker-compose.yml:

services:
  automation:
    image: ciuse99/suggestarr:latest
    build:
      context: .
      dockerfile: Dockerfile
    environment:
      TMDB_API_KEY: redacted # (Optional: You can configure it in the dashboard)
      JELLYFIN_API_URL: redacted # (Optional: You can configure it in the dashboard)
      JELLYFIN_TOKEN: redacted # (Optional: You can configure it in the dashboard)
      JELLYSEER_API_URL: redacted # (Optional: You can configure it in the dashboard)
      JELLYSEER_TOKEN: redacted # (Optional: You can configure it in the dashboard)
      MAX_SIMILAR_MOVIE: 2 # (Optional: You can configure it in the dashboard. Default: 2, Max: 20)
      MAX_SIMILAR_TV: 2 # (Optional: You can configure it in the dashboard. Default: 2, Max: 20)
      CRON_TIMES: ${CRON_TIMES:-0 18 * * *}  # (Optional: You can configure it in the dashboard. Default run at midnight.)
      JELLYSEER_USER: 6 # (Optional: Id of the user you want to use. Otherwise it use the admin profile.)
      JELLYSEER_USER_NAME: suggestarr # (Optional: To authenticate as a specific user)
      JELLYSEER_USER_PSW: redacted # (Optional: To authenticate as a specific user)
    volumes:
      - /Users/redacted/Docker/suggestarr/config:/app
    container_name: suggestarr
    restart: always
    ports:
      - "5354:5000"
    labels:
      - "com.centurylinklabs.watchtower.enable=true"

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

I’ll check on this, give me some time and I’ll come back with a fix 😃”

I can confirm that remove the volume solve the problem

debian 11 (openmediavault), docker

Client: Docker Engine - Community
 Version:           27.2.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        9e34c9b
 Built:             Fri Sep  6 12:08:17 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.2.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       8b539b8
  Built:            Fri Sep  6 12:08:17 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.21
  GitCommit:        472731909fa34bd7bc9c087e4c27943f9835f111
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

portainer Community Edition 2.20.1 used root


`services:
  automation:
    image: ciuse99/suggestarr:test
    environment:
      TMDB_API_KEY: 1ebb4bcd53545454545419ef2c22ba8f328e349e # (Optional: You can configure it in the dashboard)
      JELLYFIN_API_URL: http://192.168.1.161:8096 # (Optional: You can configure it in the dashboard)
      JELLYFIN_TOKEN: 1aca72daba4d4b70a5a7a85d17bc35cb # (Optional: You can configure it in the dashboard)
      JELLYSEER_API_URL: http://192.168.1.161:5055 # (Optional: You can configure it in the dashboard)
      JELLYSEER_TOKEN: MTY4NzI5NDMwODI2OGEzZjQxN2YwLTFlMmMtNDRlNC1iZDU4LWY2N2ZlZjNlYTBlMA== # (Optional: You can configure it in the dashboard)
      MAX_SIMILAR_MOVIE: 5 # (Optional: You can configure it in the dashboard. Default: 2, Max: 20)
      MAX_SIMILAR_TV: 2 # (Optional: You can configure it in the dashboard. Default: 2, Max: 20)
      CRON_TIMES: ${CRON_TIMES:-0 0 * * *}  # (Optional: You can configure it in the dashboard. Default run at midnight.)
      JELLYSEER_USER: 4 # (Optional: Id of the user you want to use. Otherwise it use the admin profile.)
      JELLYSEER_USER_NAME: irina # (Optional: To authenticate as a specific user)
      JELLYSEER_USER_PSW: irina # (Optional: To authenticate as a specific user)
    volumes:
      - /srv/config/suggestarr:/app
    container_name: SuggestArr
    restart: always
    ports:
      - "5555:5000"`

Could you please try to run without the volumes path? Probably it’s a problem in the configuration

services:
  automation:
    image: ciuse99/suggestarr:latest
    container_name: SuggestArr
    restart: always
    ports:
      - "5000:5000"

Can confirm this works for me. Although I’m not sure why since I give full access to the folder

Glad to hear it works for you! I agree, it’s a bit puzzling, especially if you’ve already granted full access to the folder. I’ll work on finding a more permanent solution for this and have updated the README and Wiki with this workaround for now. It might not be necessary to store data in a custom location at the moment, but I’ll continue to investigate and see if there’s a better approach. Thanks for your patience!

Just 1 question. If you use the environment variables. Is there any reason data needs to be persistent for the app at this time?

The environment variables are stored in a .env file as a precaution to ensure that your configuration is not lost when the container is recreated. This way, even if the container is removed or restarted, your settings remain intact without the need to manually reconfigure everything.