Skip to content

[bug] multiple networks in openwisp2_admin_allowed_network breaks on debian bookworm #518

Closed
@asmodehn

Description

@asmodehn

Describe the bug
nginx v1.22.1 (current debian bookworm version) fails to start with current site template:

root@hostname:~# nginx -t
2025/06/04 18:23:19 [emerg] 8713#8713: unexpected "," in /etc/nginx/sites-enabled/10.0.5.4:58
nginx: configuration file /etc/nginx/nginx.conf test failed
root@hostname:~# sed -n '56,+3p' /etc/nginx/sites-enabled/10.0.5.4
        location /admin/ {
        try_files /opt/openwisp2/public_html/maintenance.html $uri @uwsgi;
        allow ['192.168.0.0/16', '10.0.0.0/24', '127.0.0.1'];
        deny all;
root@hostname:~# nginx -version
nginx version: nginx/1.22.1

Steps To Reproduce
Steps to reproduce the behavior:
On debian bookworm, deploy openwisp with multiple networks in openwisp2_admin_allowed_network

Expected behavior
This should work out of the box

System Informatioon:

  • 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:
root@hostname:~# cat /etc/issue
Debian GNU/Linux 12 \n \l

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions