Well, I'm trying to register a device but I got this error.
*daemon.err openwisp: Failed to connect to controller during registration: 
curl exit code 2*

This is my playbook configuration







*- hosts: openwisp2  become: "{{ become | default('yes') }}"  roles:    - 
openwisp.openwisp2  vars:    openwisp2_default_from_email: "hugo"    
shared_secret: "test"   *
And my hosts file


*[openwisp2]localhost*

And in my router (I'm using Openwrt) I have this






















*config controller 'http'    option url -k 'https://localhost/'    #option 
interval '120'    option verify_ssl '0'    option shared_secret 'test'    
#option consistent_key '1'    #option mac_interface 'eth0'    #option 
merge_config '1'    #option test_config '1'    #option test_script 
'/usr/sbin/mytest'    option uuid ''    option key ''    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'*

I really don't know how to fix it :c

-- 
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].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/7bfbbf55-3fa4-4c05-96a2-46243fe9ef07%40googlegroups.com.

Reply via email to