FH-CrOSSD / crossd

Critical Open-Source Software Database (CrOSSD)
https://health.crossd.tech
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

celery workers crashing #3

Closed tobiasdam closed 5 months ago

tobiasdam commented 5 months ago

After building the images of worker-drone and bak-rest-drone today, the container using that image crash right after starting.

The error is:

[OSError]: [Errno 30] Read-only file system: '/.local'
WARNING: Add '-v' to see the detailed traceback

Apparently pdm was updated to 2.13.0 and this causes the error.

pdm -v show following error:

[OSError]: [Errno 30] Read-only file system: '/.local'
WARNING: Add '-v' to see the detailed traceback
/home/collector-drone $ pdm -v
Traceback (most recent call last):
  File "/usr/local/bin/pdm", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pdm/core.py", line 341, in main
    return core.main(args or sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pdm/core.py", line 259, in main
    raise cast(Exception, err).with_traceback(traceback) from None
  File "/usr/local/lib/python3.11/site-packages/pdm/core.py", line 254, in main
    self.handle(project, options)
  File "/usr/local/lib/python3.11/site-packages/pdm/core.py", line 183, in handle
    os.makedirs(self.ui.log_dir, exist_ok=True)
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 225, in makedirs
OSError: [Errno 30] Read-only file system: '/.local'

The changelog states that the log dir is now configurable and changed the default (from /tmp to <home>/.local), see this

The config option is described here

tobiasdam commented 5 months ago

Our solution will be to configure PDM_LOG_DIR back to /tmp