Solved! The hostname of the ap was unrechable. Thanks to all Il giorno martedì 13 agosto 2019 13:45:04 UTC+2, matteo fedeli ha scritto: > > This is the curl request > curl -s > --connect-timeout 15 > --max-time 30 -k > --data backend=netjsonconfig.OpenWrt&key=5a9140a8e92ed6f168a818caaee09e05 > --data-urlencode secret=ccGbrULI41UEpopcxqjiLklE3RHwSmp9 > --data-urlencode name=AP_CISCO > --data-urlencode hardware_id= > --data-urlencode mac_address=00:18:0A:6A:79:93 > --data-urlencode tags= > --data-urlencode model=modelofdevice > --data-urlencode os=OpenWrt 18.06.4 r7808-ef686b7292 > --data-urlencode system=Qualcomm Atheros QCA9558 ver 1 rev 0 > -i https://openwisp.planet.bn/controller/register/ > > /tmp/openwisp/registration_parameters > > *I also found a SYNTAX ERROR in /usr/sbin/openwisp_config: (line 138)* > >> local tags=$(uci get openwisp.http.tags 2&> /dev/null) >> > > 2>&1 /dev/null or &> /dev/null ? > > Il giorno lunedì 12 agosto 2019 23:49:23 UTC+2, matteo fedeli ha scritto: >> >> ap conf >> >>> config controller 'http' >>> option url 'https://openwisp.planet.bn/' >>> option verify_ssl '0' >>> option shared_secret 'ccGbrULI41UEpopcxqjiLklE3RHwSmp9' >>> option consistent_key '1' >>> option mac_interface 'eth0' >>> option uuid '' >>> option key '' >>> >> >> >> Il giorno lunedì 12 agosto 2019 23:47:05 UTC+2, matteo fedeli ha scritto: >>> >>> I reinstalled all openwisp controller and the nossl config in my ap. >>> >>> hosts >>> >>>> [openwisp2] >>>> openwisp.planet.bn >>>> >>> >>> playbook.yml >>> >>>> - hosts: openwisp.planet.bn >>>> become: "{{ become | default('yes') }}" >>>> roles: >>>> - openwisp.openwisp2 >>>> vars: >>>> openwisp2_network_topology: true >>>> openwisp2_default_from_email: "[email protected]" >>>> >>> >>> >>> cat /tmp/openwisp/registration_parameters >>> HTTP/1.1 400 Bad Request >>> Server: nginx/1.14.0 (Ubuntu) >>> Date: Mon, 12 Aug 2019 21:36:06 GMT >>> Content-Type: text/plain >>> Content-Length: 81 >>> Connection: keep-alive >>> X-Openwisp-Controller: true >>> X-Frame-Options: SAMEORIGIN >>> >>> { >>> "name": [ >>> "Must be either a valid hostname or mac address." >>> ] >>> } >>> >>> This is my situation now... The auto-registration in my organization is >>> enabled >>> Il giorno mercoledì 7 agosto 2019 20:58:32 UTC+2, matteo fedeli ha >>> scritto: >>>> >>>> Hi, I trying to connect my openwrt AP (18.06.4) to my production server >>>> but i get registration failed: >>>> >>>> logread -f | grep wisp >>>>> Wed Aug 7 20:51:51 2019 daemon.info openwisp: OpenWISP config agent >>>>> started >>>>> Wed Aug 7 20:51:51 2019 daemon.info openwisp: Registering device... >>>>> Wed Aug 7 20:51:52 2019 daemon.err openwisp: Registration failed! } >>>>> >>>> >>>> this is my conf >>>> >>>> config controller 'http' >>>>> option url 'https://openwisp.planet.bn' >>>>> option verify_ssl '0' >>>>> option shared_secret 'LtmFYB7mLszBMlwkaP2hsVOlIGcKfXvB' >>>>> option uuid '' >>>>> option key '' >>>>> list unmanaged 'system.@led' >>>>> list unmanaged 'network.loopback' >>>>> list unmanaged 'network.@switch' >>>>> list unmanaged 'network.@switch_vlan' >>>>> >>>> >>>> What's the matter for you? >>>> >>>
-- 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/a50fdb86-c576-4251-9f7c-2f512d0ab646%40googlegroups.com.
