Skip to content

AttributeError: module 'luna' has no attribute 'on_starting' #519

@diagpope

Description

@diagpope

Duplicate, based on #412 which I cannot reopen, I see the same error while using 3.10 in venv

The raw start command from /etc/systemd/system/luna2-daemon.service

000000 14:05:33 [root@controller1 httpd]# /bin/bash -c "source /trinity/local/python/bin/activate && /trinity/local/python/bin/gunicorn --config /trinity/local/luna/daemon/config/gunicorn.py 'luna:daemon' --pid /run/trinity/luna.pid"^C
000000 14:05:45 [root@controller1 httpd]# ^C
000000 14:05:48 [root@controller1 httpd]# /bin/bash -c "source /trinity/local/python/bin/activate && /trinity/local/python/bin/gunicorn --config /trinity/local/luna/daemon/config/gunicorn.py 'luna:daemon' --pid /run/trinity/luna.pid"
Failed to read config file: /trinity/local/luna/daemon/config/gunicorn.py
Traceback (most recent call last):
  File "/trinity/local/python/lib/python3.10/site-packages/gunicorn/app/base.py", line 111, in get_config_from_filename
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/trinity/local/luna/daemon/config/gunicorn.py", line 27, in <module>
    on_starting = luna.on_starting      ## Called when service starts
AttributeError: module 'luna' has no attribute 'on_starting'

Did this not load?

import luna

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions