Hey Fernando, it looks like a bug, I could have introduced it with this
change:
https://github.com/openwisp/openwisp-config/commit/078ee273447c06fc7897a8db098ab50c3c31c6f8

Could you tell me the openwisp_config version? Check it with:

openwisp_config --version

Could you pate all the log entries of openwisp_config? Get them by doing:

logread | grep openwisp

Federico

On Sun, Mar 12, 2017 at 7:46 PM Fernando Pizarro <[email protected]> wrote:

> Hi Fed, thanks for your answer.
>
> Now, I has been testing with the openssl package and I'm very impressed
> and excited to start to play with the controller.
>
> My actual OpenWRT configuration file is:
> config controller 'http'
>         option url 'https://192.168.2.217'
>         option verify_ssl '0'
>         option merge_config '1'
>         option uuid '9242675b3b204e8cad5a7fd6233e8618'
>         option key 'yFBoDy32Brd8eB1Zseb5SYbUMklXNyCP'
>
>         list unmanaged 'system.@led'
>         list unmanaged 'network.loopback'
>         list unmanaged 'network.@switch'
>         list unmanaged 'network.@switch_vlan'
>
>
> But when I try to use the shared_secret without UUID/Key's options I can't
> register the device. OpenWRT configuration is:
> config controller 'http'
>         option url 'https://192.168.2.217'
>
>         option verify_ssl '0'
>         option shared_secret 'NuevaPass'
>         option merge_config '1'
>
>         option uuid ''
>         option key ''
>         list unmanaged 'system.@led'
>         list unmanaged 'network.loopback'
>         list unmanaged 'network.@switch'
>         list unmanaged 'network.@switch_vlan'
>
>
> And the log of OpenWRT:
> [...] daemon.info openwisp: Registering device...
> [...] daemon.err openwisp: Registration failed!
> [...] daemon.info procd: Instance openwisp_config::instance1 s in a crash
> loop 6 crashes, 0 seconds since last crash
>
>
> Controller's logs doesn't register anything since I changed url value. How
> I can check thats requests? It's possible register devices without UUID/Key
> values?
>
> Thanks for all.
> Fernando.
>
>
> El domingo, 12 de marzo de 2017, 15:21:39 (UTC+1), Federico Capoano
> escribió:
>
> 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.
>

-- 
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