Help accessing openwisp

585 views
Skip to first unread message

Rafael Silva Daniel

unread,
Apr 16, 2018, 3:27:14 PM4/16/18
to OpenWISP
Please help me!

so, the scenario: we have 48 enteresasys access points, that were managed by a c5210 wireless controller, also from enterasys, but that shit simply died, i started in the company this year to propose open source solutions, because here is a goverment office, we cant buy equipment so easily because of beurocratical reasons, so we need to fix it with an open source solution, im reading about open wisp for a week now, i installed openwisp using this how tos:

https://github.com/openwisp/ansible-openwisp2

after the process referenced by these how tos the outputwas:


root@OpenWISP-Deployer:~# ansible-playbook -i hosts playbook.yml -u root -k --become -K                                                                                                                        SSH password:
SUDO password[defaults to SSH password]:

PLAY [openwisp2] **********************************************************************************************************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : include_tasks] *************************************************************************************************************************************************************************
included: /root/.ansible/roles/Stouts.postfix/tasks/postfix.yml for OpenWISP2-Wireless-Controller

TASK [Stouts.postfix : include_tasks] *************************************************************************************************************************************************************************
included: /root/.ansible/roles/Stouts.postfix/tasks/install.deb.yml for OpenWISP2-Wireless-Controller

TASK [Stouts.postfix : Install requirements (Debian)] *********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'postfix', u'ca-certificates', u'mailutils', u'libsasl2-modules'])

TASK [Stouts.postfix : Install DKIM requirements (Debian)] ****************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=[])

TASK [Stouts.postfix : Install postfix-pcre] ******************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : include_tasks] *************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : include_tasks] *************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : include_tasks] *************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Ensure /etc/postfix directory is owned by root user] ***********************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix pt. 1] ***************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=main.cf)
ok: [OpenWISP2-Wireless-Controller] => (item=master.cf)

TASK [Stouts.postfix : Configure postfix pt. 2] ***************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix pt. 3] ***************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix pt. 4] ***************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix pt. 5] ***************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix pt. 6] ***************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix local user relay] ****************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure postfix sender canonical maps] ***********************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Configure SystemD] *********************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Ensure Postfix service is enabled (systemd)] *******************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [Stouts.postfix : Ensure Postfix is started] *************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set supervisor path (Debian)] ******************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set supervisor path (RedHat)] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set www user (Debian)] *************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set www user (RedHat)] *************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set python3_package_prefix for CentOS/RedHat] **************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set python3_package_prefix for Fedora] *********************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Update APT package cache] **********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install system packages] ***********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'sudo', u'software-properties-common', u'build-essential', u'supervisor', u'nginx', u'openssl', u'libssl-dev', u'libffi-dev', u'python-dev', u'redis-server'])

TASK [openwisp.openwisp2 : Install spatialite] ****************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'sqlite3', u'gdal-bin', u'libproj-dev', u'libgeos-dev', u'libspatialite-dev'])

TASK [openwisp.openwisp2 : Install mod-spatialite (may fail on older linux distros)] **************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set_fact] **************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` instead use `result is failed`. This feature will be removed in version 2.9. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install acl if acting as non-root user] ********************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : ensure supervisor is started] ******************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install python2 packages] **********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=[])

TASK [openwisp.openwisp2 : Install python3 packages] **********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'python3', u'python3-pip', u'python3-dev', u'python-virtualenv'])

TASK [openwisp.openwisp2 : Install python3-pyparsing] *********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=[])

TASK [openwisp.openwisp2 : Install python wheel (optional, allowed to fail)] **********************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'python-wheel', u'python3-wheel'])

TASK [openwisp.openwisp2 : Install python3-virtualenv] ********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=[u'python3-virtualenv'])

TASK [openwisp.openwisp2 : Install ntp] ***********************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install epel-release (if RedHat/Centos)] *******************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install system packages] ***********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=sudo)
skipping: [OpenWISP2-Wireless-Controller] => (item=gcc)
skipping: [OpenWISP2-Wireless-Controller] => (item=supervisor)
skipping: [OpenWISP2-Wireless-Controller] => (item=nginx)
skipping: [OpenWISP2-Wireless-Controller] => (item=openssl)
skipping: [OpenWISP2-Wireless-Controller] => (item=openssl-devel)
skipping: [OpenWISP2-Wireless-Controller] => (item=libffi-devel)
skipping: [OpenWISP2-Wireless-Controller] => (item=python-devel)
skipping: [OpenWISP2-Wireless-Controller] => (item=redis)
skipping: [OpenWISP2-Wireless-Controller] => (item=python-firewall)
skipping: [OpenWISP2-Wireless-Controller] => (item=libsemanage-python)
skipping: [OpenWISP2-Wireless-Controller] => (item=policycoreutils-python)
skipping: [OpenWISP2-Wireless-Controller] => (item=redhat-rpm-config)

TASK [openwisp.openwisp2 : Install spatialite] ****************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=sqlite)
skipping: [OpenWISP2-Wireless-Controller] => (item=gdal)
skipping: [OpenWISP2-Wireless-Controller] => (item=proj-devel)
skipping: [OpenWISP2-Wireless-Controller] => (item=geos-devel)
skipping: [OpenWISP2-Wireless-Controller] => (item=libspatialite-devel)

TASK [openwisp.openwisp2 : set_fact] **************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : ensure supervisor is started] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : ensure nginx is enabled] ***********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install python2 packages] **********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=python-pip)
skipping: [OpenWISP2-Wireless-Controller] => (item=python-virtualenv)

TASK [openwisp.openwisp2 : Install python3 packages] **********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install python wheel (optional, allowed to fail)] **********************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install python3 virtualenv] ********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : (CentOS/RedHat) Always install pip] ************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : (CentOS/RedHat/Fedora) Install/upgrade virtualenv via pip] *************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install ntp] ***********************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set_fact] **************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set custom package list] ***********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)

TASK [openwisp.openwisp2 : Add network_topology to custom package list if set and enabled] ********************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=False)
skipping: [OpenWISP2-Wireless-Controller] => (item=False)

TASK [openwisp.openwisp2 : Update pip & related tools] ********************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=pip)
ok: [OpenWISP2-Wireless-Controller] => (item=setuptools)
ok: [OpenWISP2-Wireless-Controller] => (item=wheel)

TASK [openwisp.openwisp2 : Install openwisp2 controller and its dependencies] *********************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=openwisp-controller)
ok: [OpenWISP2-Wireless-Controller] => (item=asgi_redis)
ok: [OpenWISP2-Wireless-Controller] => (item=service_identity)

TASK [openwisp.openwisp2 : Install openwisp2 network topology and its dependencies] ***************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=openwisp-network-topology)

TASK [openwisp.openwisp2 : Install custom OpenWISP 2 Python packages] *****************************************************************************************************************************************

TASK [openwisp.openwisp2 : Install extra python packages] *****************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=bpython)

TASK [openwisp.openwisp2 : Install uwsgi] *********************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller] => (item=uwsgi)

TASK [openwisp.openwisp2 : Install psycopg2] ******************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install MySQL-python] **************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install raven (sentry client)] *****************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : openwisp_users present in settings.py?] ********************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : multi-tenancy migration dumpdata] **************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : upload multitenancy_prepare_data.py script] ****************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : prepare data for multitenancy migration] *******************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : DROP sqlite database] **************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : DROP postgres database] ************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : CREATE postgres database] **********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : install python-mysqldb in system python packages] **********************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : DROP mysql database] ***************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : CREATE mysql database] *************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : urls.py] ***************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : upload generate_django_secret_key.py script] ***************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : generate new django SECRET_KEY] ****************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : get django SECRET_KEY] *************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set permission to secret key file] *************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set secret_key fact] ***************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : settings.py] ***********************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : migrate] ***************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set permissions to sqlite db] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : upload multitenancy_prepare_db.py script] ******************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : prepare DB for multitenancy migration] *********************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : multitenancy migration loaddata] ***************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create /opt/openwisp2] *************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create "/opt/openwisp2/openwisp2"] *************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create "/opt/openwisp2/log"] *******************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : manage.py] *************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : __init__.py] ***********************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : urls.py] ***************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : wsgi.py] ***************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : asgi.py] ***************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : upload generate_django_secret_key.py script] ***************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : generate new django SECRET_KEY] ****************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : get django SECRET_KEY] *************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set permission to secret key file] *************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set secret_key fact] ***************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : settings.py] ***********************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : migrate] ***************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : set permissions to sqlite db] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : collectstatic] *********************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create load_initial_data.py script] ************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : load initial data] *****************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Configure firewall] ****************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller] => (item=http)
skipping: [OpenWISP2-Wireless-Controller] => (item=https)

TASK [openwisp.openwisp2 : Set http_can_network_connect] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set SELinux permissive mode (for testing puropses)] ********************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set correct labels for nginx logs] *************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Set label on log directory] ********************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Relabel files] *********************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : uwsgi.ini] *************************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : supervisor uwsgi] ******************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : supervisor runworker] **************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : supervisor daphne] *****************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create "/opt/openwisp2/public_html"] ***********************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create "/opt/openwisp2/ssl"] *******************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : create SSL cert if not exists yet] *************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : nginx site available] **************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : nginx site enabled] ****************************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : nginx site] ************************************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install topology update cron] ******************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install topology snapshot save cron] ***********************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Install clearsessions cronjob] *****************************************************************************************************************************************************
ok: [OpenWISP2-Wireless-Controller]

TASK [openwisp.openwisp2 : Change superuser password hint] ****************************************************************************************************************************************************
skipping: [OpenWISP2-Wireless-Controller]

PLAY RECAP ****************************************************************************************************************************************************************************************************
OpenWISP2-Wireless-Controller : ok=54   changed=0    unreachable=0    failed=0


so, now theres no instructions on how to access the openwisp page admin, i dont mind reading, but i sincerely dont found any indepth documentation, if anyone could at least point me to a more detailed reading about ansible, sadly i dont have any backgroud in python or ansible :(, please help me!

Federico Capoano

unread,
Apr 16, 2018, 3:35:42 PM4/16/18
to open...@googlegroups.com
Please read this paragraph carefully: https://github.com/openwisp/ansible-openwisp2#run-the-playbook

if more people would contribute to the community we'd have better documentation.
Unfortunately at the moment the number of users that are helping us to improve the documentation is close to zero.
So either help us or at least take the time to read what's already provided.

I hope this helps.

Best regards
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.
For more options, visit https://groups.google.com/d/optout.

Rafael Silva Daniel

unread,
Apr 16, 2018, 3:42:47 PM4/16/18
to OpenWISP
Thanks very much for the response Federico! i will read this carefully right now! really, thank you!

I understand what you are saying about the documentation, i would be very happy  in contribute with the community in this after i gained more knowlege about openwisp, i can help with it in some way?

Federico Capoano

unread,
Apr 16, 2018, 3:48:56 PM4/16/18
to open...@googlegroups.com
That would be great Rafael.

The repo which contains our documentation is here: https://github.com/openwisp/openwisp2-docs
The result is published automatically at http://openwisp.io/docs/ 

Please also read these two pages when you have time:

Rafael Silva Daniel

unread,
Apr 17, 2018, 8:12:39 AM4/17/18
to open...@googlegroups.com
Hey, Frederico, i continued trying but getting :(

Bad Request (400)

But i think it is some dependency missing in the server that im using, i will study this more throughly, and when i acomplish to set all the wireless network here using openwisp i will make a complete how to of it in my native language and in english and send it to you to revise, or publish it somewhere, i believe so much in the ideal of this tool! thank you very much!

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

Артур Скок

unread,
Apr 17, 2018, 9:19:03 AM4/17/18
to open...@googlegroups.com
Hello.
/opt/openwisp2/log folder may contain more comprehensive information. In most cases openwisp returns same error on malformed request but it is strange if there is "clear" installation.
Also check section ALLOWED_HOSTS at /opt/openwisp2/openwisp2/settings.py
Could you report output of next commands?
netstat -anolp | grep 443
netstat -anolp | grep uwsgi

Rafael Silva Daniel

unread,
Apr 17, 2018, 1:03:01 PM4/17/18
to open...@googlegroups.com
Hello arthur! thanks for also looking at my case too!

i checked these logs, error.log says:

ERROR 2018-04-16 19:53:23,300] module: exception, process: 536, thread: 140546850326272
Invalid HTTP_HOST header: '10.85.18.14'. You may need to add '10.85.18.14' to ALLOWED_HOSTS.


[ERROR 2018-04-16 20:23:46,934] module: exception, process: 536, thread: 140547369068288
Invalid HTTP_HOST header: '10.85.18.14'. You may need to add '10.85.18.14' to ALLOWED_HOSTS.


[ERROR 2018-04-16 20:23:47,165] module: exception, process: 536, thread: 140546850326272
Invalid HTTP_HOST header: '10.85.18.14'. You may need to add '10.85.18.14' to ALLOWED_HOSTS.


[ERROR 2018-04-17 12:06:42,294] module: exception, process: 536, thread: 140547369068288
Invalid HTTP_HOST header: '10.85.18.14'. You may need to add '10.85.18.14' to ALLOWED_HOSTS.


daphne.log says:

 UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'opentype''.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.
:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'opentype''.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.



and the runworkr.log says, various lines about calling files, but these two errors:

raise socket.error(SERVER_CLOSED_CONNECTION_ERROR)
OSError: Connection closed by server.


as you referenced to me, i included 10.85.18.14 in ALLOWED_HOSTS in settings.py

and the output of the two commands suggested:

netstat -anolp | grep 443
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      503/nginx: master p  off (0.00/0/0)


and the other:

netstat -anolp | grep uwsgi
tcp        0      0 127.0.0.1:3031          0.0.0.0:*               LISTEN      586/uwsgi            off (0.00/0/0)
unix  3      [ ]         STREAM     CONNECTED     13178    586/uwsgi
unix  3      [ ]         STREAM     CONNECTED     13179    586/uwsgi
unix  3      [ ]         STREAM     CONNECTED     13367    586/uwsgi
unix  3      [ ]         STREAM     CONNECTED     13180    586/uwsgi
unix  3      [ ]         STREAM     CONNECTED     13177    586/uwsgi
unix  3      [ ]         STREAM     CONNECTED     13368    586/uwsgi



i think the problem is that i dont have any kwnolege about ngnix and little pratical kwnolege of http servers :(, i will study about nignix to be able to troubleshoot it better 

Артур Скок

unread,
Apr 18, 2018, 6:38:13 AM4/18/18
to open...@googlegroups.com
Hello.
Django's "problem" that you need restart not only nginx but also uwsgi which intermediate between nginx and python.
cd /opt/openwisp2
source ./env/bin/activate
ps aux  |  grep -i uwsgi  |  awk '{print $2}'  |  xargs sudo kill -9

#if UWSGI will not start automatically (check with "netstat -anolp | grep uwsgi")
uwsgi --ini /opt/openwisp2/uwsgi.ini

/etc/init.d/nginx restart
deactivate

Federico Capoano

unread,
Apr 18, 2018, 9:58:41 AM4/18/18
to open...@googlegroups.com
This line: You may need to add '10.85.18.14' to ALLOWED_HOSTS.

Is a good clue.

Could you paste the contents of your playbook.yml please?

Federico

Rafael Silva Daniel

unread,
Apr 18, 2018, 1:06:52 PM4/18/18
to open...@googlegroups.com
Arthur, Federico! thanks, it worked right now! after i messed arrown with the line ALLOWED_HOSTS, i included not only the name of the host but the ip, i registered the name pointing to the ip in /etc/hosts but i dont know what happened but ok, it worked now: after including the ip of the host in ALLOWED_HOSTS

i wil proceed with the tests now, thanks!

this is for a goverment office in brasil, our goverment in brazil is in a big messed up crisis right now, this tool can save 17.000 dolars in public resources, thanks guys, very much! it means a lot, when i understand much about it i will try my best to document tuturials and how tos in portugues and english to help popularize the tool, thank you again!

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

Federico Capoano

unread,
Apr 18, 2018, 6:06:53 PM4/18/18
to OpenWISP
That's great news to hear Rafael!

Have you edited the settings.py manually? If you did, that's not the best long term solution because if you run the ansible playbook again to upgrade openwisp you will lose your manual changes.
If that's the case post please let me know and we'll try to help you setting up the playbook in the best way to avoid future problems.

Fed

Rafael Silva Daniel

unread,
Apr 19, 2018, 4:11:44 PM4/19/18
to open...@googlegroups.com
Sorry for the late reply! i was away from the office today,

But yeah, i edited it in the settings.py, it is better to edit it in the playbook.yml right? you asked me to show the contets, they are:

/root/playbook.yml

- hosts: openwisp2
  become: "{{ become | default('yes') }}"
  roles:
    - openwisp.openwisp2
  vars:
    openwisp2_default_from_email: "openwisp2@OpenWISP-Wireless-Controller"

in this instructions, the only allowed hosts would be the one called openwisp2, right? i understanded it right??


--

Federico Capoano

unread,
Apr 19, 2018, 4:28:04 PM4/19/18
to open...@googlegroups.com
Sorry, could you show me also how you did call the ansible-playbook command?

I'm trying to understand if you used the --connection local way or not.

Federico

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

Rafael Silva Daniel

unread,
Apr 20, 2018, 9:05:04 AM4/20/18
to open...@googlegroups.com
sure! i used this command

ansible-playbook -i hosts playbook.yml -u root -k --become -K, is it right??

i confess that i only reproduced what i read in the howto, i might getting this errors because i dont know exactly what im doing, but i am testing, studing and researching about it, before i formulate another question, you know? but the system now is acessible, im trying to use it to manage the access points

can i ask a more pratical question in this same thread? 

2018-04-19 17:27 GMT-03:00 Federico Capoano <federico...@gmail.com>:
Sorry, could you show me also how you did call the ansible-playbook command?

I'm trying to understand if you used the --connection local way or not.

Federico
On Thu, Apr 19, 2018 at 5:11 PM Rafael Silva Daniel <rafaelsi...@gmail.com> wrote:
Sorry for the late reply! i was away from the office today,

But yeah, i edited it in the settings.py, it is better to edit it in the playbook.yml right? you asked me to show the contets, they are:

/root/playbook.yml

- hosts: openwisp2
  become: "{{ become | default('yes') }}"
  roles:
    - openwisp.openwisp2
  vars:
    openwisp2_default_from_email: "openwisp2@OpenWISP-Wireless-Controller"

in this instructions, the only allowed hosts would be the one called openwisp2, right? i understanded it right??

2018-04-18 19:06 GMT-03:00 Federico Capoano <federico...@gmail.com>:
That's great news to hear Rafael!

Have you edited the settings.py manually? If you did, that's not the best long term solution because if you run the ansible playbook again to upgrade openwisp you will lose your manual changes.
If that's the case post please let me know and we'll try to help you setting up the playbook in the best way to avoid future problems.

Fed

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

Federico Capoano

unread,
Apr 20, 2018, 10:40:24 AM4/20/18
to open...@googlegroups.com
Could you share the contents of hosts?

Does it contain 10.85.18.14 or not?

For any question that is not related to this problem of ALLOWED_HOSTS, please open a new thread and use a subject which describes the problem you are experiencing, always check the logs first, that's the best thing you can do to help us reply more easily and hence faster.

Federico

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit https://groups.google.com/d/optout.

--
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.
Reply all
Reply to author
Forward
0 new messages