-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Labels
Description
Describe the bug
RUNNING HANDLER [openwisp.openwisp2 : Restart daphne] **************************************************************************************************************
fatal: [10.0.5.4]: FAILED! => {"changed": true, "cmd": ["supervisorctl", "restart", "daphne:asgi0"], "delta": "0:00:01.358892", "end": "2025-06-05 09:30:20.324525", "msg": "non-zero return code", "rc": 7, "start": "2025-06-05 09:30:18.965633", "stderr": "", "stderr_lines": [], "stdout": "daphne:asgi0: stopped\ndaphne:asgi0: ERROR (spawn error)", "stdout_lines": ["daphne:asgi0: stopped", "daphne:asgi0: ERROR (spawn error)"]}
Steps To Reproduce
Still unsure. deploying openwisp 1.1.1 or master with this role (slightly modified - currently tracking this issue down...) does trigger it for me...
Expected behavior
ansible playbook should work "out of the box"...
Logs
daphne.log
/opt/openwisp2/env/lib/python3.11/site-packages/openwisp_utils/admin_theme/system_info.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
Traceback (most recent call last):
File "/opt/openwisp2/env/bin/daphne", line 8, in <module>
sys.exit(CommandLineInterface.entrypoint())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/openwisp2/env/lib/python3.11/site-packages/daphne/cli.py", line 171, in entrypoint
cls().run(sys.argv[1:])
File "/opt/openwisp2/env/lib/python3.11/site-packages/daphne/cli.py", line 291, in run
self.server.run()
File "/opt/openwisp2/env/lib/python3.11/site-packages/daphne/server.py", line 130, in run
ep = serverFromString(reactor, str(socket_description))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/openwisp2/env/lib/python3.11/site-packages/twisted/internet/endpoints.py", line 1844, in serverFromString
nameOrPlugin, args, kw = _parseServer(description, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/openwisp2/env/lib/python3.11/site-packages/twisted/internet/endpoints.py", line 1764, in _parseServer
plugin = _matchPluginToPrefix(
^^^^^^^^^^^^^^^^^^^^^
File "/opt/openwisp2/env/lib/python3.11/site-packages/twisted/internet/endpoints.py", line 1779, in _matchPluginToPrefix
raise ValueError(f"Unknown endpoint type: '{endpointType}'")
ValueError: Unknown endpoint type: 'fd'
System Informatioon:
- Ansible Version:
(Project<3.12>) alexv@lenovo-ryzen-pop:~/Project/deploy$ ansible --version
ansible [core 2.18.6]
config file = /home/alexv/Project/deploy/ansible.cfg
configured module search path = ['/home/alexv/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/alexv/Project/.direnv/python-3.12/lib/python3.12/site-packages/ansible
ansible collection location = /home/alexv/Project/deploy/collections
executable location = /home/alexv/Project/.direnv/python-3.12/bin/ansible
python version = 3.12.7 (main, Mar 14 2025, 11:01:33) [GCC 11.4.0] (/home/alexv/Project/.direnv/python-3.12/bin/python3)
jinja version = 3.1.6
libyaml = True
- OS:
debian@hostname:/opt/openwisp2/log$ cat /etc/issue
Debian GNU/Linux 12 \n \l
- Python Version:
(env) debian@hostname:/opt/openwisp2$ python --version
Python 3.11.2
- Django Version:
(env) debian@hostname:/opt/openwisp2$ pip list | grep -e 'daphne\|Django\|Twisted'
daphne 4.2.0
Django 5.2.2
Twisted 24.11.0
I also remember having it on django 4.2, I will attempt to reproduce that one next, see if I spot something...
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To do (ansible/docker)