I am having a problem with registration device

131 views
Skip to first unread message

MA S

unread,
Dec 2, 2020, 2:04:59 PM12/2/20
to OpenWISP
I am using Docker
The log of openwrt
p1.JPG
The configuration file is as follows 
ح2.JPG
log the openwisp containers
p2.JPG 

Federico Capoano

unread,
Dec 2, 2020, 2:57:11 PM12/2/20
to OpenWISP
1. Please keep posting on the same thread and please send text logs instead of screenshots.

2. CURL exit code 6 according to the CURL exit codes docs means: 
 Couldn't resolve host. The given remote host was not resolved.

Since you are using a IP address, this is weird, it means the format of the URL param should be checked more closely and in fact is really wrong, it's http// instead of http://.

I ask to please check the exit code errors on your own and try to do this analysis autonomously before posting.
Thanks

Federico

--
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 openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/e23aab21-cd64-4b33-a340-cd68b56ff63bn%40googlegroups.com.
Message has been deleted

Ajay Tripathi

unread,
Dec 3, 2020, 10:29:51 AM12/3/20
to OpenWISP
Hi,

It's again a networking issue.
Can you do `ping` from router to server?
Can you do a simple `curl` like `curl -k https:<ip-addr>/admin`, does that get you the admin page on the router? 

These are again two basic tests that come to my mind! :-)


--
Best, 
Ajay Tripathi

MA S

unread,
Dec 3, 2020, 10:36:14 AM12/3/20
to OpenWISP
The problem was solved and the device was manually added uuid and key
But a new log appears as follows

Thu Dec  3 15:29:26 2020 daemon.err openwisp: Failed to retrieve checksum: HTTP/1.1 404 Not Found

When removing the addition manually and adding the device automatically, it is after removing the device from the console by typing shared_secret
Log is like this
 
Thu Dec  3 15:32:00 2020 daemon.info openwisp: Registering device...
Thu Dec  3 15:32:00 2020 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Thu Dec  3 15:32:05 2020 daemon.info openwisp: Registering device...
Thu Dec  3 15:32:06 2020 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Thu Dec  3 15:32:11 2020 daemon.info openwisp: Registering device...
Thu Dec  3 15:32:11 2020 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Thu Dec  3 15:32:16 2020 daemon.info openwisp: Registering device...
Thu Dec  3 15:32:16 2020 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Thu Dec  3 15:32:21 2020 daemon.info openwisp: Registering device...
Thu Dec  3 15:32:21 2020 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Thu Dec  3 15:32:21 2020 daemon.info procd: Instance openwisp_config::instance1 s in a crash loop 6 crashes, 0 seconds since last crash


Reply all
Reply to author
Forward
0 new messages