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:
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
On Tue, 25 Feb 2025 at 16:11, Michele Salerno <[email protected]> wrote:
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:
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
+372 59361689
*openwisp.io* <http://openwisp.io>
On Sat, 15 Feb 2025 at 14:29, Michele Salerno
<[email protected]> wrote:
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
--
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 [email protected]
<mailto:openwisp%[email protected]>.
To view this discussion, visit
https://groups.google.com/d/msgid/openwisp/1ee2ad26-9207-428c-b221-6d3b2e9e1320%40gmail.com.
--
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 [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/openwisp/CAAGgX6KDsXd43yJuns81x1M7UBCCDLTwxSujv-sDh35q3sUyQA%40mail.gmail.com
<https://groups.google.com/d/msgid/openwisp/CAAGgX6KDsXd43yJuns81x1M7UBCCDLTwxSujv-sDh35q3sUyQA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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.
--
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 [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/openwisp/ab027f63-54ed-40a2-8a41-f789a54320d0%40gmail.com
<https://groups.google.com/d/msgid/openwisp/ab027f63-54ed-40a2-8a41-f789a54320d0%40gmail.com?utm_medium=email&utm_source=footer>.
--
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 [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/openwisp/CAAGgX6LXNGvPLYZ71yGTnRdtkQpiLyCWhsNSrKM-4rcaBN_9Rw%40mail.gmail.com
<https://groups.google.com/d/msgid/openwisp/CAAGgX6LXNGvPLYZ71yGTnRdtkQpiLyCWhsNSrKM-4rcaBN_9Rw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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.
--
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 [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/openwisp/92e9a5c9-42a1-4494-8c01-37b83a2fb129%40gmail.com.