See https://curl.se/libcurl/c/libcurl-errors.html

CURLE_COULDNT_CONNECT (7)
Failed to connect() to host or proxy.

Ensure the device can reach the OpenWISP server.
Eg:

curl https://10.0.2.15 --insecure

I added the --insecure flag since I suppose you're using a self-signed SSL
certificate because you're using a private ip.

Best regards
Federico

On Wed, Dec 2, 2020 at 3:42 AM MA S <[email protected]> wrote:

> Allow me to present my problem, I cannot find a solution to it
> I am having trouble registering the device showing this log
>
> *Failed to connect to controller during registration: curl exit code 7*
> I use openwisp contaner
> *------------------------------------------------------------*
> *config controller 'http'*
> *        option url 'https://10.0.2.15 <https://10.0.2.15>'*
> *        option interval '120'*
> *        #option verify_ssl '0'*
> *        option shared_secret 'SCKr9UIwZ9EKv7AgMdlHbc4tpy9YYlXu'*
> *        #option consistent_key '1'*
> *        #option mac_interface 'eth0'*
> *        #option management_interface 'br-lan'*
> *        #option merge_config '1'*
> *        #option test_config '1'*
> *        #option test_script '/usr/sbin/mytest'*
> *        #option hardware_id_script '/usr/sbin/read_hw_id'*
> *        #option hardware_id_key '1'*
> *        #option bootup_delay '0'*
> *        option uuid ''*
> *        option key ''*
> *         #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'*
> *        #option post_reload_hook '/usr/sbin/my_post_reload_hook'*
>
>
>
>
> --
> 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/030dbce2-b553-4193-b32a-685c0feaebafn%40googlegroups.com
> <https://groups.google.com/d/msgid/openwisp/030dbce2-b553-4193-b32a-685c0feaebafn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAERYH6XetFrDEhHdbOUM7THkecgttxJMnuX7A3W1%3DwK%3D-NBnzw%40mail.gmail.com.

Reply via email to