Closed pandafy closed 2 years ago
sh-checker report
To get the full details, please check in the job output.
I have tested these two failing scenarios
root@pandafy-archer-c50:~# /etc/init.d/openwisp_config restart; logread -f
openwisp: OpenWISP config agent stopping
openwisp: OpenWISP config agent started
Tue Jul 12 12:40:04 2022 daemon.info openwisp: Local configuration outdated
Tue Jul 12 12:40:04 2022 daemon.info openwisp: Downloading configuration from controller...
Tue Jul 12 12:40:04 2022 daemon.info openwisp: Configuration downloaded, now applying it...
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: Could not apply configuration, openwisp-update-config exit code was 1
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: lua: /usr/sbin/openwisp-update-config:10: An error was encountered
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: stack traceback:
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: [C]: in function 'error'
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: /usr/sbin/openwisp-update-config:10: in main chunk
Tue Jul 12 12:40:04 2022 daemon.crit openwisp: [C]: ?
Tue Jul 12 12:40:10 2022 daemon.info openwisp: The most recent configuration backup was restored
root@pandafy-archer-c50:~# /etc/init.d/openwisp_config restart; logread -f
openwisp: OpenWISP config agent stopping
openwisp: OpenWISP config agent started
Tue Jul 12 12:40:38 2022 daemon.info openwisp: Local configuration outdated
Tue Jul 12 12:40:38 2022 daemon.info openwisp: Downloading configuration from controller...
Tue Jul 12 12:40:38 2022 daemon.info openwisp: Configuration downloaded, now applying it...
Tue Jul 12 12:40:38 2022 daemon.crit openwisp: Could not apply configuration, openwisp-update-config exit code was 1
Tue Jul 12 12:40:38 2022 daemon.crit openwisp: lua: /usr/sbin/openwisp-update-config:12: '=' expected near 'local'
Tue Jul 12 12:40:43 2022 daemon.info openwisp: The most recent configuration backup was restored
And ofcourse, the passing one
root@pandafy-archer-c50:~# /etc/init.d/openwisp_config restart; logread -f
openwisp: OpenWISP config agent stopping
openwisp: OpenWISP config agent started
Tue Jul 12 12:41:26 2022 daemon.info openwisp: Local configuration outdated
Tue Jul 12 12:41:26 2022 daemon.info openwisp: Downloading configuration from controller...
Tue Jul 12 12:41:26 2022 daemon.info openwisp: Configuration downloaded, now applying it...
Tue Jul 12 12:41:27 2022 daemon.info openwisp: Service openvpn has been reloaded via procd/ubus
Tue Jul 12 12:41:27 2022 daemon.info openwisp: Service system has been reloaded via procd/ubus
Tue Jul 12 12:41:31 2022 daemon.info dnsmasq[1652]: read /etc/hosts - 4 addresses
Tue Jul 12 12:41:31 2022 daemon.info dnsmasq[1652]: read /tmp/hosts/dhcp.dnsmasq1 - 2 addresses
Tue Jul 12 12:41:31 2022 daemon.info dnsmasq-dhcp[1652]: read /etc/ethers - 0 addresses
Tue Jul 12 09:41:32 2022 daemon.info openwisp: Testing configuration...
Tue Jul 12 09:41:32 2022 daemon.info openwisp: Configuration test succeeded
Tue Jul 12 09:41:32 2022 daemon.info openwisp: Configuration applied successfully
sh-checker report
To get the full details, please check in the job output.
Closes #168