Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

OpenWisp, OpenWRT and ZeroTier version 1.12 and 1.14

44 views
Skip to first unread message

Michele Salerno

unread,
Feb 15, 2025, 12:29:46 PMFeb 15
to OpenWISP
Hi,

I want to upgrade my routers to the new stable version of OpenWRT but
obviously I have error as the zerotier config has changed from version 1.14.


[feature] Added support for ZeroTier > 1.14 #312 #319

https://github.com/openwisp/netjsonconfig/pull/319


My OpenWisp is a VM under Proxmox, I made a backup and updated the
ansible playbook with command: ansible-galaxy install -r
requirements.yml --force

My requirements.yml is:

---
collections:
  - name: community.general

roles:
  - src: https://github.com/openwisp/ansible-openwisp2.git
    version: master
    name: openwisp.openwisp2

  - src: https://github.com/mikysal78/Stouts.openvpn.git
    name: Stouts.openvpn

  - src: https://github.com/openwisp/ansible-openwisp-wifi-login-pages.git
    version: master
    name: openwisp-wifi-login-pages

  - src: https://github.com/mikysal78/iptables.git
    version: master
    name: openwisp2-iptables

  - name: geerlingguy.postgresql
  - src: nkakouros.easyrsa
  - src: mikysal78.ninux_common
  - src: geerlingguy.certbot

I launched the playbook and restarted the VM.

I tried creating a new template for zerotier but the configuration seen
from the preview does not change from the old template.

With the update, freeradius also does not start.
I restored the VM.

I ask:
How to do the upgrade?
Of course until all routers are upgraded I need to keep both versions.


My installation of OpenWisp is this:

System Information
OpenWISP Version: 24.11.1
Installed OpenWISP Modules
openwisp-controller: 1.1
openwisp-firmware-upgrader: 1.1
openwisp-ipam: 1.1
openwisp-monitoring: 1.1.1
openwisp-network-topology: 1.1.1
openwisp-notifications: 1.1
openwisp-radius: 1.1
openwisp-users: 1.1.0
openwisp-utils: 1.1.1
netdiff: 1.1
netjsonconfig: 1.1
OS Information
OS version: #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07)
Kernel version: 6.1.0-31-amd64
Hardware platform: x86_64


Brest regards.

Michele

Federico Capoano

unread,
Feb 18, 2025, 9:11:02 AMFeb 18
to open...@googlegroups.com
The versions you're using look good.

What is the exact problem you're experiencing?
Based on what you have mentioned to me in the private messages, if I remember correctly, you need the new configuration but you're still seeing the old one?

If that's the case, have you tried the following?

cd /opt/openwisp2
source env/bin/activate
python manage.py clear_cache
supervisorctl restart openwisp2

Try also changing the zerotier template slightly.
This should make sure any cache gets cleared and you get the new format.

Best regards
Federico Capoano
OpenWISP OÜ
Kotkapoja tn 2a-10, 10615, Harju maakond, Tallinn, Estonia
VAT: EE101989729


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/openwisp/1ee2ad26-9207-428c-b221-6d3b2e9e1320%40gmail.com.

Michele Salerno

unread,
Feb 25, 2025, 2:11:24 PMFeb 25
to open...@googlegroups.com

Hi Federico,

I just tried again to update debian and the playbook.
In the roles I checked the CHANGE.log file and the version Version 24.11.1 [2024-11-27].

I launched the playbook, ran the commands to clear the cache, also cleared the chrome cache but it doesn't change.

I tried to create a new zerotier server (I put myself certified against the previous one), I created the zerotier template with the new vpn server but the preview is still the same.

package zerotier

config zerotier 'ow_zt'
	option config_path '/etc/openwisp/zerotier'
	option copy_config_path '1'
	option enabled '1'
	list join '3eaf426dc622857c'
	option secret '{{secret}}'

config network 'owzt22857c'
	option id '3eaf426dc622857c'

# ---------- files ---------- #

# path: /etc/openwisp/zerotier/devicemap
# mode: 0644

# network_id=interface_name
3eaf426dc622857c=owzt22857c

My System Info

OpenWISP Version: 24.11.1

Installed OpenWISP Modules

  • openwisp-controller: 1.1.1
  • openwisp-firmware-upgrader: 1.1.1
  • openwisp-ipam: 1.1
  • openwisp-monitoring: 1.1.2
  • openwisp-network-topology: 1.1.1
  • openwisp-notifications: 1.1
  • openwisp-radius: 1.1.1
  • openwisp-users: 1.1.0
  • openwisp-utils: 1.1.1
  • netdiff: 1.1
  • netjsonconfig: 1.1


    On ghithub i see now netjsonconfig is last release 1.1.1.post1

    I updated the playbook roles, why didn't netjsonconfig also updated?

    How do I update it via ansible?

    Best regards,

    Michele


    Il 18/02/25 15:10, Federico Capoano ha scritto:
    To view this discussion, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6KDsXd43yJuns81x1M7UBCCDLTwxSujv-sDh35q3sUyQA%40mail.gmail.com.
    -- 
    Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
    
    Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.

    Federico Capoano

    unread,
    Feb 26, 2025, 8:42:17 AMFeb 26
    to open...@googlegroups.com
    Can you share your template please?

    You could update the library manually, eg:

    cd /opt/openwisp2
    source env/bin/activate
    pip install -U netjsonconfig

    Federico


    Michele Salerno

    unread,
    Feb 26, 2025, 1:05:09 PMFeb 26
    to open...@googlegroups.com

    Yes, this night I couldn't sleep and tried to manually update netjsonconfig.
    I also tried creating a new vpn with zerotier and new template. It always generates a code like the old template.

    {
        "zerotier": [
            {
                "disabled": false,
                "name": "ow_zt",
                "networks": [
                    {
                        "id": "3eaf426dc60192af",
                        "ifname": "owzt0192af"
                    }
                ],
                "secret": "{{secret}}",
                "config_path": "/etc/openwisp/zerotier"
            }
        ],
        "interfaces": []
    }


    I read the guide to convert config to json https://netjsonconfig.openwisp.org/en/stable/general/commandline_utility.html

    # convert an OpenWrt tar.gz to NetJSON and print to standard output (with 4 space indentation)
    netjsonconfig --native config.tar.gz --backend openwrt --method json -a indent="    "

    On a test router I loaded the original configuration from the zerotier package, saved the config but I get error in conversion (https://github.com/openwisp/netjsonconfig/issues/342) .... I installed netjsonconfig on my notebook for convert.

    You know we use openwisp for ninux (network community), it is not for professional use.
    We don't have sensitive data, privately we can give ssh or admin access to openwisp to find the error...maybe it can also help you in development or documentation.

    Bye bye

    Michele



    Il 26/02/25 14:42, Federico Capoano ha scritto:

    Gagan Deep (pandafy)

    unread,
    Mar 3, 2025, 10:44:46 AMMar 3
    to OpenWISP

    Hello Michele,

    Thank you for reporting the bug in NetJSONConfig. I have created and merged the fix, and it will be included in the next bugfix release, which is expected soon.

    If you'd like to test this change beforehand, you can install NetJSONConfig from the 1.1 branch on GitHub by following these steps:


    cd /opt/openwisp2
    source env/bin/activate
    pip install -UI https://github.com/openwisp/netjsonconfig/tarball/1.1


    Let me know if you have any questions or encounter any issues.

    Best regards,
    Gagan Deep

    Message has been deleted

    Michele Salerno

    unread,
    Mar 4, 2025, 6:31:04 PMMar 4
    to open...@googlegroups.com

    Hi,

    i have update but a strange thing happens.

    I created the template “Zerotier 1.4”


    On the test device:
    - I removed the template
    - I emptied the zerotier file.
    - I inserted the template.

    It is applied even if the global section comes below and not above.

    After a few minutes the file becomes like this:


    logread -f is

    because config zerotier 'ow_zt' e not global?

    I try to update zerotier

    root@ReginaMargherita116-AP:config # opkg list-installed |grep zerotier
    zerotier - 1.14.1-r1
    root@ReginaMargherita116-AP:config #

    Thanks.

    Michele


    Il 03/03/25 09:41, Gagan Deep (pandafy) ha scritto:
    Reply all
    Reply to author
    Forward
    0 new messages