Hi Federico,
I'm configuring my AP with Openwisp, and I want to register my device automatically in the Openwisp controller (which is already installed and it works), but I cannot complete the registration of the device.
When I try to configure the openwisp file in /etc/config/ I've this output:
Tue Jul 10 13:02:51 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:02:52 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
Tue Jul 10 13:02:57 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:02:57 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
Tue Jul 10 13:03:02 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:03:03 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
Tue Jul 10 13:03:08 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:03:09 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
Tue Jul 10 13:03:09 2018
daemon.info procd: Instance openwisp_config::instance1 s in a crash loop 6 crashes, 1 seconds since last crash
Tue Jul 10 13:04:56 2018
daemon.info openwisp: OpenWISP config agent started
Tue Jul 10 13:04:56 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:04:57 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
Tue Jul 10 13:06:16 2018
daemon.info openwisp: OpenWISP config agent stopping
Tue Jul 10 13:06:19 2018
daemon.info openwisp: OpenWISP config agent started
Tue Jul 10 13:06:19 2018
daemon.info openwisp: Registering device...
Tue Jul 10 13:06:19 2018 daemon.err openwisp: Registration failed! error: unrecognized secret
I don't understand if I forget anything in the initial configuration. This is my configuration file:
config controller 'http'
#option interval '120'
option verify_ssl '0'
option shared_secret 'L0c4l1v1ng123'
option consistent_key '1'
option mac_interface 'eth0.2'
#option merge_config '1'
#option test_config '1'
#option test_script '/usr/sbin/mytest'
option uuid ''
option key '7URB2bCK7nOxwHgrohqsl6ySFsJC4k96JXffoLAV+j8='
list unmanaged 'system.@led'
list unmanaged 'network.loopback'
list unmanaged 'network.@switch'
list unmanaged 'network.@switch_vlan'
# curl options
#option connect_timeout '15'
#option max_time '30'
#option capath '/etc/ssl/certs'
#option cacert '/etc/ssl/certs/ca-certificates.crt'
# hooks
#option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
Another question is : Is correct to suppose that the key option value is the shared-key which is stored in the cache of the device?
My device is a TP-link tl-wr841n v.13.
My apologies for my english.
Thanks,
Stefania Fratto