Welcome Vivian, please send:
- your /etc/config/openwisp contents (stripped down of sensitive data) - output of *logread | grep openwisp* when the registration fails - the openwisp-config2 version you are using (how did you install? did you compile yourself? If yes which commit?) - the ansible-openwisp2 version you are using - the command you use to launch the playbook Questions: - are you using the shared_secret contained in the default organization? Check by going to admin/openwisp_users/organization/ - the fact that the system breaks when you change or add an email may be a symptom that postfix is not configured correctly and the system cannot send the verification email, but the latest versions of ansible-openwisp2 should install postfix correctly, could you check if postfix is configured correctly and listening on localhost:25? Federico On Monday, April 10, 2017 at 6:19:27 PM UTC+2, Vivian Noronha wrote: > > > Hello Everyone, > > I have installed openwisp.openwisp2 using ansible-openwisp2 and this is > the response I get from the Openwisp2 when I send the registration request. > My server is located at 192.168.1.20 and clients at 192.168.1.1/24 > > > root@lede:~# curl -s --connect-timeout 15 --max-time 30 -k -i --data > "secret=XXXXX&name=9C:65:F9:1B:63:1A&backend=netjsonconfig.OpenWrt&mac_address=9C:65:F9:1B:63:1A&key=4d46a > c046b0d8f7350b82c53c2fe6a2a" https://192.168.1.20/controller/register/ > HTTP/1.1 403 Forbidden > Server: nginx/1.4.6 (Ubuntu) > Date: Mon, 10 Apr 2017 16:04:39 GMT > Content-Type: text/plain > Transfer-Encoding: chunked > Connection: keep-alive > X-Openwisp-Controller: true > X-Frame-Options: SAMEORIGIN > > Also when i try to save the user and email field in the Users section > after initial login it gives me Internal server 500 > here is the error.log for the same: > > 2017/04/10 15:02:06 [error] 11099#0: *20 upstream prematurely closed > connection while reading response header from upstream, client: > 192.168.1.42, server: 192.168.1.20, request: "POST > /admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > HTTP/1.1", upstream: "uwsgi://127.0.0.1:3031", host: "192.168.1.20", > referrer: " > https://192.168.1.20/admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > " > 2017/04/10 15:14:57 [error] 11099#0: *49 upstream prematurely closed > connection while reading response header from upstream, client: > 192.168.1.42, server: 192.168.1.20, request: "POST > /admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > HTTP/1.1", upstream: "uwsgi://127.0.0.1:3031", host: "192.168.1.20", > referrer: " > https://192.168.1.20/admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > " > 2017/04/10 16:14:39 [error] 11099#0: *114 upstream prematurely closed > connection while reading response header from upstream, client: > 192.168.1.42, server: 192.168.1.20, request: "POST > /admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > HTTP/1.1", upstream: "uwsgi://127.0.0.1:3031", host: "192.168.1.20", > referrer: " > https://192.168.1.20/admin/openwisp_users/user/32b76742-882d-43dd-add6-19fb84059abe/change/ > " > > Best, > Vivian > -- 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.
