ModuleNotFoundError after Storage Service upgrade to v0.21

54 views
Skip to first unread message

gou...@wrlc.org

unread,
Nov 5, 2023, 2:49:19 PM11/5/23
to archivematica
Platform: Ubuntu 22
Upgrade Method: Manual from SS 0.20

The upgrade completed without any errors that I saw, but starting the storage service failed with "ModuleNotFoundError: No module named 'storage_service'".

I run the storage server on a dedicated server, and I successfully upgraded an AM pipeline server to 1.15 and those services started up ok.

I noticed on this page that the storage service "is designed to run in Python 3.9" -- does that mean that the python 3.10 that came with the Ubuntu 22 upgrade might be the problem? Or did something happen during the Archivematica update that I missed?

Here is the full journalctl log. Any suggestions would be appreciated.
systemd[1]: Started Archivematica Storage Service.
gunicorn[986]: [2023-11-05 14:06:50 -0500] [986] [INFO] Starting gunicorn 21.2.0
gunicorn[986]: [2023-11-05 14:06:50 -0500] [986] [INFO] Listening at: http://127.0.0.1:8001 (986)
gunicorn[986]: [2023-11-05 14:06:50 -0500] [986] [INFO] Using worker: gevent
gunicorn[1783]: [2023-11-05 14:06:50 -0500] [1783] [INFO] Booting worker with pid: 1783
gunicorn[1783]: [2023-11-05 14:06:50 -0500] [1783] [ERROR] Exception in worker process
gunicorn[1783]: Traceback (most recent call last):
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/arbiter.py", line 60>
gunicorn[1783]:     worker.init_process()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/workers/ggevent.py",>
gunicorn[1783]:     super().init_process()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/workers/base.py", li>
gunicorn[1783]:     self.load_wsgi()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/workers/base.py", li>
gunicorn[1783]:     self.wsgi = self.app.wsgi()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/app/base.py", line 6>
gunicorn[1783]:     self.callable = self.load()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", lin>
gunicorn[1783]:     return self.load_wsgiapp()
gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", lin>
gunicorn[1783]:     return util.import_app(self.app_uri)
Nov 05 14:06:51 archivematica-18.wrlc2k.wrlc.org gunicorn[1783]:   File "/usr/share/archivematica/virtualenvs/archivematica-storage-service/lib/python3.10/site-packages/gunicorn/util.py", line 371, >
gunicorn[1783]:     mod = importlib.import_module(module)
gunicorn[1783]:   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
gunicorn[1783]:     return _bootstrap._gcd_import(name[level:], package, level)
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
gunicorn[1783]:   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
gunicorn[1783]: ModuleNotFoundError: No module named 'storage_service'
gunicorn[1783]: [2023-11-05 14:06:51 -0500] [1783] [INFO] Worker exiting (pid: 1783)
gunicorn[986]: [2023-11-05 14:06:51 -0500] [986] [ERROR] Worker (pid:1783) exited with code 3
gunicorn[986]: [2023-11-05 14:06:51 -0500] [986] [ERROR] Shutting down: Master
gunicorn[986]: [2023-11-05 14:06:51 -0500] [986] [ERROR] Reason: Worker failed to boot.
systemd[1]: archivematica-storage-service.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
systemd[1]: archivematica-storage-service.service: Failed with result 'exit-code'.
Reply all
Reply to author
Forward
0 new messages