Hi Fernando,

I am a bit in a hurry and I have to be short.

The url parameter is wrong, URL means a complete URL, so it should be like
https://192.168.2.217

Fed

Il dom 12 mar 2017, 14:45 Fernando Pizarro <[email protected]> ha scritto:

> Hi all.
>
> Recently, I installed OpenWISP2 controller following the Github tutorial¹
> on Debian Jessie (8.7). This is my hosts file:
> [openwisp2]
> 192.168.2.217
>
> And this is my playbook file
> - hosts: openwisp2
>   roles:
>     - openwisp.openwisp2
>   vars:
>     openwisp2_shared_secret: NuevaPass
>
> I created a simple template with the timezone and a device configuration
> associated to the template but I can't register the device using the shared
> secret or the UUID/Keys configuration options.
>
> I'm using OpenWRT (15.05) with openwisp-config-nossl (0.4.6a/latest²)
> without susscess. My configration file using shared secret is:
> config controller 'http'
>         option url '192.168.2.217'
>         option verify_ssl '0'
>         option shared_secret 'NuevaPass'
>         option uuid ''
>         option key ''
>         list unmanaged 'system.@led'
>         list unmanaged 'network.loopback'
>         list unmanaged 'network.@switch'
>         list unmanaged 'network.@switch_vlan'
>
> And using UUID/Key options:
> config controller 'http'
>         option url '192.168.2.217'
>         option verify_ssl '0'
>         option uuid '11af3cd7eb0345e3b1b49836c11f4dc1'
>         option key '2E1KNRWA4glgm7LnbwyIlLlVQlQQW1GQ'
>         list unmanaged 'system.@led'
>         list unmanaged 'network.loopback'
>         list unmanaged 'network.@switch'
>         list unmanaged 'network.@switch_vlan'
>
> Using the shared secret option, the logs of the controller is:
> [...] "POST /controller/register/ HTTP/1.1" 301 184 "-" "curl/7.40.0"
>
> In OpenWRT:
> [...] daemon.info openwisp: Registering device...
> [...] daemon.err openwisp: Invalid url: missing X-Openwisp-Controller
> header
> [...] daemon.info procd: Instance openwisp_config::instance1 s in a crash
> loop 6 crashes, 0 seconds since last crash
>
> Using the UUID/Key options, logs in the controller:
> [...] "GET
> /controller/checksum/11af3cd7eb0345e3b1b49836c11f4dc1/?key=2E1KNRWA4glgm7LnbwyIlLlVQlQQW1GQ
> HTTP/1.1" 301 184 "-" "curl/7.40.0"
>
> And in OpenWRT:
> [...] daemon.err openwisp: Failed to retrieve checksum: HTTP/1.1 301 Moved
> Permanently
>
> What I'm doing wrong? I searched the log messages and I found this thread³
> with the same behaviour but it doesn't comment how to solved it. Somebody
> can I help me with this problem?
>
> Thanks for all.
> Fernando.
>
> Links:
> 1 - https://github.com/openwisp/ansible-openwisp2
> 2 - http://downloads.openwisp.org/openwisp-config/latest/
> 3 -
> https://groups.google.com/forum/#!msg/openwisp/PXS1ltknNf4/jjOXa8wNAQAJ
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to