ansible-openwisp2 issueshttps://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues2019-01-23T18:37:21Zhttps://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/86Deprecation Warning in openwisp.openwisp2 set_fact task2019-01-23T18:37:21ZHispanicomarco@ingmg.comDeprecation Warning in openwisp.openwisp2 set_fact taskTASK [openwisp.openwisp2 : set_fact] *******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|failed use result is failed. This feature will be removed in version
...TASK [openwisp.openwisp2 : set_fact] *******************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|failed 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.https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/85[django] Internal server error2019-01-23T18:37:21ZHispanicomarco@ingmg.com[django] Internal server error*Created by: nemesisdesign*
I've noticed a periodic internal server error on some instances.
At first sight it seems that some processes crash and exit because they can't write to logs for permission reasons. It seems the permission ...*Created by: nemesisdesign*
I've noticed a periodic internal server error on some instances.
At first sight it seems that some processes crash and exit because they can't write to logs for permission reasons. It seems the permission of some logs change from `www-data` to `root` at some point. Further investigation is needed.https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/84[ci] Avoid duplication of basic running test2019-01-23T18:37:21ZHispanicomarco@ingmg.com[ci] Avoid duplication of basic running test*Created by: nemesisdesign*
These lines seem duplicated:
- https://github.com/openwisp/ansible-openwisp2/blob/master/.travis.yml#L31
- https://github.com/openwisp/ansible-openwisp2/blob/master/.gitlab-ci.yml#L16-L19
Maybe we can ...*Created by: nemesisdesign*
These lines seem duplicated:
- https://github.com/openwisp/ansible-openwisp2/blob/master/.travis.yml#L31
- https://github.com/openwisp/ansible-openwisp2/blob/master/.gitlab-ci.yml#L16-L19
Maybe we can extract those lines in a script that gets called by both CI systemshttps://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/83Ansible install fails in migrate on Ubuntu 14.042019-01-23T18:37:21ZHispanicomarco@ingmg.comAnsible install fails in migrate on Ubuntu 14.04Ansible fails in Ubuntu 14.04 on the migrate task.
See https://travis-ci.org/hispanico/ansible-openwisp2/jobs/368290716Ansible fails in Ubuntu 14.04 on the migrate task.
See https://travis-ci.org/hispanico/ansible-openwisp2/jobs/368290716https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/81Missing headers when instaling on arbian based on debian strech2019-01-23T18:37:21ZHispanicomarco@ingmg.comMissing headers when instaling on arbian based on debian strech*Created by: Yasen6275*
Tried to install controller on SBC with armbian based on Debian Strech and got veeery long error.
The major clue in it was:
" The headers or library files could not be found for jpeg,
a required depende...*Created by: Yasen6275*
Tried to install controller on SBC with armbian based on Debian Strech and got veeery long error.
The major clue in it was:
" The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source."
After installing libjpeg-dev, instalation went smoothlyhttps://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/77Ansible install fails in migrate on Debian Buster and Ubuntu 182019-01-23T18:37:21ZHispanicomarco@ingmg.comAnsible install fails in migrate on Debian Buster and Ubuntu 18*Created by: jdeluyck*
Installation in Debian Buster (aka testing) fails on the migrate step. Not entirely sure why.
Running in x86_64.
```
TASK [openwisp.openwisp2 : migrate] *******************************************************...*Created by: jdeluyck*
Installation in Debian Buster (aka testing) fails on the migrate step. Not entirely sure why.
Running in x86_64.
```
TASK [openwisp.openwisp2 : migrate] **********************************************************************************************************************
fatal: [openwisp.home.lan]: FAILED! => {"changed": false, "cmd": "./manage.py migrate --noinput", "msg": "\n:stderr: Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py\", line 51, in get_new_connection\n conn.load_extension(self.spatialite_lib)\nsqlite3.OperationalError: mod_spatialite: cannot open shared object file: No such file or directory\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"./manage.py\", line 10, in <module>\n execute_from_command_line(sys.argv)\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/core/management/__init__.py\", line 371, in execute_from_command_line\n utility.execute()\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/core/management/__init__.py\", line 365, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/core/management/base.py\", line 288, in run_from_argv\n self.execute(*args, **cmd_options)\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/core/management/base.py\", line 335, in execute\n output = self.handle(*args, **options)\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/core/management/commands/migrate.py\", line 77, in handle\n connection.prepare_database()\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py\", line 61, in prepare_database\n with self.cursor() as cursor:\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 255, in cursor\n return self._cursor()\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 232, in _cursor\n self.ensure_connection()\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 216, in ensure_connection\n self.connect()\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 194, in connect\n self.connection = self.get_new_connection(conn_params)\n File \"/opt/openwisp2/env/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py\", line 55, in get_new_connection\n ) from exc\ndjango.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension \"mod_spatialite\"\n", "path": "/opt/openwisp2/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "state": "absent", "syspath": ["/tmp/ansible_5L_TsX", "/tmp/ansible_5L_TsX/ansible_modlib.zip", "/tmp/ansible_5L_TsX/ansible_modlib.zip", "/usr/lib/python2.7", "/usr/lib/python2.7/plat-x86_64-linux-gnu", "/usr/lib/python2.7/lib-tk", "/usr/lib/python2.7/lib-old", "/usr/lib/python2.7/lib-dynload", "/usr/local/lib/python2.7/dist-packages", "/usr/lib/python2.7/dist-packages"]}
```https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/69[django] Add support for CORS (Cross-Origin Resource Sharing)2019-01-23T18:37:22ZHispanicomarco@ingmg.com[django] Add support for CORS (Cross-Origin Resource Sharing)*Created by: nemesisdesign*
We need to make it possible to enable CORS because [other applications may need to access some APIs to get data](https://lists.funkfeuer.at/pipermail/interop-dev/2017-December/000732.html).
We can use this...*Created by: nemesisdesign*
We need to make it possible to enable CORS because [other applications may need to access some APIs to get data](https://lists.funkfeuer.at/pipermail/interop-dev/2017-December/000732.html).
We can use this module: [django-cors-headers](https://pypi.python.org/pypi/django-cors-headers/2.1.0) - which is configurable via django settings, we have to make sure we can configure every available setting of this module, possibly using a single ansible variable containing a dictionary.
This feature should be optional and turned off by default now.https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/61[python3] Automatically install python 3.5 or 3.6 if available2019-01-23T18:37:22ZHispanicomarco@ingmg.com[python3] Automatically install python 3.5 or 3.6 if available*Created by: nemesisdesign*
Django 2.0 officially suggests to use python 3.5 or higher.
We should add a way for the role to automatically install python 3.5 or 3.6 if available in the system packages and ensure it is used by openwisp2.*Created by: nemesisdesign*
Django 2.0 officially suggests to use python 3.5 or higher.
We should add a way for the role to automatically install python 3.5 or 3.6 if available in the system packages and ensure it is used by openwisp2.https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/58Ideas for improving documentation2019-01-23T18:37:22ZHispanicomarco@ingmg.comIdeas for improving documentation*Created by: h0n3yc4k3*
1) Create a database of error's (maybe in wiki?)
For example I (and HizkiFW) had this problem:
> ERROR! the role 'openwisp.openwisp2' was not found in /home/artem/openwisp2-ansible-playbook/roles:/home/artem/...*Created by: h0n3yc4k3*
1) Create a database of error's (maybe in wiki?)
For example I (and HizkiFW) had this problem:
> ERROR! the role 'openwisp.openwisp2' was not found in /home/artem/openwisp2-ansible-playbook/roles:/home/artem/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/artem/openwisp2-ansible-playbook
> The error appears to have been in '/home/artem/openwisp2-ansible-playbook/playbook.yml': line 4, column 7, but may
> be elsewhere in the file depending on the exact syntax problem.
> The offending line appears to be:
> roles:
> - openwisp.openwisp2
> ^ here
2) Is working `ansible-playbook -i hosts playbook.yml -u <user> -k --become -K` command? (bcs I used *root* all the time)
3) Swap "Install OpenWISP2 locally" and steps (like "Install ansible") place
4) Add subtitles for video's of installing/using openwisp
5) And maybe record new videos about openwisp
https://gitlab.ninux.org/openwisp/ansible-openwisp2/-/issues/57[postfix] Stouts.postfix2019-01-23T18:37:22ZHispanicomarco@ingmg.com[postfix] Stouts.postfix*Created by: nemesisdesign*
One patch still needs to be sent: https://github.com/nemesisdesign/Stouts.postfix/commit/3c42624da203e6f92cf340d8b828f0ec6feef181
Change the dependencies in meta/main.yml to use the latest [Stouts.postfix ...*Created by: nemesisdesign*
One patch still needs to be sent: https://github.com/nemesisdesign/Stouts.postfix/commit/3c42624da203e6f92cf340d8b828f0ec6feef181
Change the dependencies in meta/main.yml to use the latest [Stouts.postfix role](https://github.com/Stouts/Stouts.postfix) (instead of my fork, my patches have been merged months ago), remove my fork, install the main Stouts.postfix role in the local environment and test the installation again to ensure it works.