Hello, when i run:

/etc/init.d/openwisp_config start

I get this log:

daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header

I've found that curl is getting this data:

root@OpenWrt:~# cat /tmp/openwisp/registration_parameters
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.0 (Ubuntu)
Date: Wed, 24 May 2017 01:03:06 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://10.0.0.44/controller/register/

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.10.0 (Ubuntu)</center>
</body>
</html>

and my curl line is:

curl -s --connect-timeout 15 --max-time 30 -k --data 
backend=netjsonconfig.OpenWrt&key=89352a4b0a15f8a44cbed1ab25cc059e 
--data-urlencode secret="sZo2yvxk0cQEmBgElc1a7XE3WPxw54Zd" --data-urlencode 
name="00:03:7F:BA:DB:02" --data-urlencode mac_address="00:03:7F:BA:DB:02" 
--data-urlencode tags="" --data-urlencode model="Edge-Core 
EAP1024A-v2/AP160" --data-urlencode os="OpenWrt Designated Driver 12009" -i 
http://10.0.0.44/controller/register/

Any idea what is going wrong?

Thanks, Wylis

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