howto upgrade ansible-openwisp2

82 views
Skip to first unread message

Michele Salerno

unread,
Apr 18, 2022, 12:45:02 PM4/18/22
to OpenWISP
Hi,

if i install ansible-openwisp2 and after a month a new version of
openwisp-controller, how to do?

I tried to launch the playbook again bat if change device i have error
550, i try restart supervisor, or reboot ... i have error.
Maybe not the right way to upgrade.

Best regards,

Michele

--
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,
Apr 19, 2022, 9:09:26 AM4/19/22
to open...@googlegroups.com
Running the playbook again shouldn't cause those issues, so you likely have a weird situation to handle there.

An alternative way to upgrade is manually, this also involves risk because you need to know what you're doing.
The commands to do it are:

cd /opt/openwisp2
source env/bin/activate
./manage.py migrate
./manage.py collectstatic --noinput
supervisorctl restart all

Best regards
Federico Capoano

--
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 on the web, visit https://groups.google.com/d/msgid/openwisp/2c9e9d29-7ef8-bdfc-6831-1754b1bf4df4%40gmail.com.
Reply all
Reply to author
Forward
0 new messages