Hello everyone. I followed all the steps indicated in https://github.com/openwisp/ansible-openwisp2#usage-tutorial for the installation of Opewisp2, therefore:
ansible-galaxy install openwisp.openwisp2
openwisp2-ansible-playbook
[openwisp2]
debian-srv
- Using Cygwin I created a playbook file called playbook.yml with the following content:
- hosts: debian-srv
become:
roles:
- openwisp.openwisp2
vars:
openwisp2_default_from_email: "open...@openwisp2.mydomain.com"
ansible-playbook -i host playbook.yml -u root -k
Below the output that comes out to me:

Obviously Openwisp is not reachable on the Debian machine at https://debian-srv/admin
Thanks in advance
--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/016801d706f1%24ac4a8990%2404df9cb0%24%40gmail.com.
ok, I'm trying to manually install Postfix. To do this I have to install mailutils first. When I run:
sudo apt install mailutils
I get the following error:
E: Could not find the mailutils package
Maybe it's a source problem from which to get the installation packages? Does it refer to E: which maybe is the cd player, corresponding to the installation iso with which I created the Debian virtual machine?
If yes, how to remove E. from the installation sources?
thanks
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Federico Capoano
Inviato: lunedì 22 febbraio 2021 17:42
A: OpenWISP <open...@googlegroups.com>
Oggetto: Re: [openwisp] Problem installing Openwisp2
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAERYH6UYCOTwQjVADN%2B%3DS2X-CRoB0O1JeGOOp7Xkgugz3hScDA%40mail.gmail.com.
Hi, the Linux version is Debian 10.8 (Buster). I tried to perform a install the development version of the playbook using the following steps::
git clone https://github.com/openwisp/ansible-openwisp2.git openwisp.openwisp2
git clone https://github.com/nemesisdesign/Stouts.postfix
- hosts: debian-srv
become:
roles:
- openwisp.openwisp2
vars:
openwisp2_postfix_install: false
- Then I launched the Playbook using the command:
ansible-playbook -i hosts playbook.yml -u root -k
Unfortunately, I still find another error that I report below.
TASK [openwisp.openwisp2 : Install openwisp2 controller and its dependencies] *****************************************************************************************************************************
FAILED - RETRYING: Install openwisp2 controller and its dependencies (5 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (4 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (3 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (2 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (1 retries left).
fatal: [debian-srv]: FAILED! => {"attempts": 5, "changed": false, "cmd": ["/opt/openwisp2/env/bin/pip3", "install", "-U", "openwisp-controller~=0.8.2", "channels_redis~=3.1.0", "service_identity"], "msg": "stdout: Collecting openwisp-controller~=0.8.2\n Using cached openwisp_controller-0.8.3-py2.py3-none-any.whl (490 kB)\nCollecting channels_redis~=3.1.0\n Using cached channels_redis-3.1.0-py2.py3-none-any.whl (14 kB)\nCollecting service_identity\n Using cached service_identity-18.1.0-py2.py3-none-any.whl (11 kB)\nCollecting django-model-utils>=4.0\n Using cached django_model_utils-4.1.1-py3-none-any.whl (32 kB)\nCollecting django-reversion<3.1.0,>=3.0.5\n Using cached django_reversion-3.0.9-py3-none-any.whl (85 kB)\nCollecting django-flat-json-widget~=0.1.2\n Using cached django_flat_json_widget-0.1.2-py2.py3-none-any.whl (16 kB)\nCollecting netjsonconfig~=0.9.0\n Using cached netjsonconfig-0.9.1-py2.py3-none-any.whl (77 kB)\nCollecting openwisp-users~=0.5.1\n Using cached openwisp_users-0.5.1-py2.py3-none-any.whl (56 kB)\nCollecting scp<0.14.0,>=0.13.0\n Using cached scp-0.13.3-py2.py3-none-any.whl (8.2 kB)\nCollecting django-loci~=0.4.0\n Using cached django_loci-0.4.1-py2.py3-none-any.whl (43 kB)\nCollecting openwisp-utils[rest]~=0.7.1\n Using cached openwisp_utils-0.7.3-py2.py3-none-any.whl (72 kB)\nCollecting django<3.2,>=2.2\n Using cached Django-3.1.7-py3-none-any.whl (7.8 MB)\nCollecting django-taggit~=1.3.0\n Using cached django_taggit-1.3.0-py3-none-any.whl (45 kB)\nCollecting paramiko~=2.7.2\n Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB)\nCollecting swapper~=1.1.0\n Using cached swapper-1.1.2.post1-py3-none-any.whl (7.0 kB)\nCollecting celery<4.5.0,>=4.4.3\n Using cached celery-4.4.7-py2.py3-none-any.whl (427 kB)\nCollecting django-x509~=0.9.2\n Using cached django_x509-0.9.2-py2.py3-none-any.whl (51 kB)\nCollecting openwisp-notifications~=0.3\n Using cached openwisp_notifications-0.3-py2.py3-none-any.whl (160 kB)\nCollecting django-sortedm2m<3.1.0,>=3.0.0\n Using cached django_sortedm2m-3.0.2-py2.py3-none-any.whl (37 kB)\nCollecting djangorestframework-gis<0.17.0,>=0.12.0\n Using cached djangorestframework_gis-0.16-py2.py3-none-any.whl (18 kB)\nCollecting aioredis~=1.0\n Using cached aioredis-1.3.1-py3-none-any.whl (65 kB)\nCollecting asgiref~=3.0\n Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)\nCollecting msgpack~=1.0\n Using cached msgpack-1.0.2-cp37-cp37m-manylinux1_i686.whl (267 kB)\nCollecting channels~=2.2\n Using cached channels-2.4.0-py2.py3-none-any.whl (37 kB)\nCollecting pyasn1\n Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)\nRequirement already satisfied, skipping upgrade: cryptography in /usr/lib/python3/dist-packages (from service_identity) (2.6.1)\nCollecting pyasn1-modules\n Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)\nRequirement already satisfied, skipping upgrade: attrs>=16.0.0 in /opt/openwisp2/env/lib/python3.7/site-packages (from service_identity) (20.3.0)\nCollecting jinja2<3.0,>=2.9\n Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)\nRequirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from netjsonconfig~=0.9.0->openwisp-controller~=0.8.2) (1.12.0)\nCollecting jsonschema<3.3,>=3.0\n Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)\nCollecting django-phonenumber-field<5.1,>=4.0\n Using cached django_phonenumber_field-5.0.0-py3-none-any.whl (53 kB)\nCollecting packaging\n Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)\nCollecting django-extensions~=3.1.0\n Using cached django_extensions-3.1.1-py3-none-any.whl (222 kB)\nCollecting phonenumbers<8.13.0,>=8.11.0\n Using cached phonenumbers-8.12.18-py2.py3-none-any.whl (2.6 MB)\nCollecting django-allauth~=0.44.0\n Using cached django-allauth-0.44.0.tar.gz (572 kB)\nCollecting django-organizations<1.2.0,>=1.0.0\n Using cached django_organizations-1.1.2-py2.py3-none-any.whl (56 kB)\nCollecting django-leaflet<0.28,>=0.23\n Using cached django_leaflet-0.27.1-py3-none-any.whl (295 kB)\nCollecting geopy~=2.0.0\n Using cached geopy-2.0.0-py3-none-any.whl (111 kB)\nCollecting Pillow<=8.1.0,>=6.2.0\n Using cached Pillow-8.1.0-cp37-cp37m-manylinux1_i686.whl (2.1 MB)\nCollecting djangorestframework<3.12,>=3.11; extra == \"rest\"\n Using cached djangorestframework-3.11.2-py3-none-any.whl (911 kB)\nCollecting drf-yasg~=1.20.0; extra == \"rest\"\n Using cached drf_yasg-1.20.0-py2.py3-none-any.whl (1.6 MB)\nCollecting django-filter>=2.2.0<2.4.0; extra == \"rest\"\n Using cached django_filter-2.4.0-py3-none-any.whl (73 kB)\nCollecting pytz\n Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)\nCollecting sqlparse>=0.2.2\n Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)\nCollecting bcrypt>=3.1.3\n Downloading bcrypt-3.2.0.tar.gz (42 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n Preparing wheel metadata: started\n Preparing wheel metadata: finished with status 'error'\n\n:stderr: ERROR: Command errored out with exit status 1:\n command: /opt/openwisp2/env/bin/python3 /opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp1sb5s_18\n cwd: /tmp/pip-install-sux746b2/bcrypt\n Complete output (34 lines):\n Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 280, in <module>\n main()\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 263, in main\n json_out['return_val'] = hook(**hook_input['kwargs'])\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 133, in prepare_metadata_for_build_wheel\n return hook(metadata_directory, config_settings)\n File \"/usr/lib/python3/dist-packages/setuptools/build_meta.py\", line 140, in prepare_metadata_for_build_wheel\n self.run_setup()\n File \"/usr/lib/python3/dist-packages/setuptools/build_meta.py\", line 126, in run_setup\n exec(compile(code, __file__, 'exec'), locals())\n File \"setup.py\", line 76, in <module>\n cmdclass={\"test\": PyTest},\n File \"/usr/lib/python3/dist-packages/setuptools/__init__.py\", line 145, in setup\n return distutils.core.setup(**attrs)\n File \"/usr/lib/python3.7/distutils/core.py\", line 108, in setup\n _setup_distribution = dist = klass(attrs)\n File \"/usr/lib/python3/dist-packages/setuptools/dist.py\", line 447, in __init__\n k: v for k, v in attrs.items()\n File \"/usr/lib/python3.7/distutils/dist.py\", line 292, in __init__\n self.finalize_options()\n File \"/usr/lib/python3/dist-packages/setuptools/dist.py\", line 739, in finalize_options\n ep.load()(self, ep.name, value)\n File \"/tmp/pip-build-env-swtdh4rx/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 219, in cffi_modules\n add_cffi_module(dist, cffi_module)\n File \"/tmp/pip-build-env-swtdh4rx/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 49, in add_cffi_module\n execfile(build_file_name, mod_vars)\n File \"/tmp/pip-build-env-swtdh4rx/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 25, in execfile\n exec(code, glob, glob)\n File \"src/build_bcrypt.py\", line 21, in <module>\n ffi = FFI()\n File \"/tmp/pip-build-env-swtdh4rx/overlay/lib/python3.7/site-packages/cffi/api.py\", line 56, in __init__\n backend.__version__, backend.__file__))\n Exception: Version mismatch: this is the 'cffi' package version 1.14.5, located in '/tmp/pip-build-env-swtdh4rx/overlay/lib/python3.7/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.12.2, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-37m-i386-linux-gnu.so'. The two versions should be equal; check your installation.\n ----------------------------------------\nERROR: Command errored out with exit status 1: /opt/openwisp2/env/bin/python3 /opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp1sb5s_18 Check the logs for full command output.\nWARNING: You are using pip version 20.2.4; however, version 21.0.1 is available.\nYou should consider upgrading via the '/opt/openwisp2/env/bin/python3 -m pip install --upgrade pip' command.\n"}
PLAY RECAP ************************************************************************************************************************************************************************************************
debian-srv : ok=19 changed=0 unreachable=0 failed=1 skipped=7 rescued=0 ignored=1
And from the browser at https: // debian-srv / admin nothing.
Thank you
Da: Federico Capoano <federico...@gmail.com>
Inviato: mercoledì 24 febbraio 2021 02:17
A: leoni...@gmail.com
Oggetto: Re: [openwisp] Problem installing Openwisp2
It looks like postfix is giving you troubles on this system, which is unusual. What version of debian is this? We tested this playbook up to Debian buster.
Why don't you just install the development version of the playbook and turn off the installation of postfix by setting openwisp2_postfix_install: false ?
This should allow you to test the system and fix the postfix issue later on if you need.
Ciao
Federico
On Tue, Feb 23, 2021 at 1:33 PM <leoni...@gmail.com> wrote:
Hi, I was finally able to install Postfix on the Debian server. Now when I run
ansible-playbook -i host playbook.yml -u root -k
the following error comes up:
Da: Federico Capoano <federico...@gmail.com>
Inviato: martedì 23 febbraio 2021 15:54
A: leoni...@gmail.com
Cc: OpenWISP <open...@googlegroups.com>
Hi, I also realized that before the error reported above, there is another one before:
TASK [openwisp.openwisp2 : Update APT package cache] ******************************************************************************************************************************************************
[WARNING]: Could not find aptitude. Using apt-get instead
ok: [debian-srv]
TASK [openwisp.openwisp2 : Install system packages] *******************************************************************************************************************************************************
FAILED - RETRYING: Install system packages (5 retries left).
FAILED - RETRYING: Install system packages (4 retries left).
FAILED - RETRYING: Install system packages (3 retries left).
FAILED - RETRYING: Install system packages (2 retries left).
FAILED - RETRYING: Install system packages (1 retries left).
fatal: [debian-srv]: FAILED! => {"attempts": 5, "cache_update_time": 1614248697, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'nginx'' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stderr": "E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr_lines": ["E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nnginx is already the newest version (1.14.2-2+deb10u3).\n0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.\n2 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nSetting up nginx-full (1.14.2-2+deb10u3) ...\r\nJob for nginx.service failed because the control process exited with error code.\r\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\r\ninvoke-rc.d: initscript nginx, action \"start\" failed.\r\n\u001b[0;1;31m*\u001b[0m nginx.service - A high performance web server and a reverse proxy server\r\n Loaded: loaded (\u001b]8;;file://debian-srv/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)\r\n Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Thu 2021-02-25 11:35:57 CET; 7ms ago\r\n Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007\r\n Process: 21687 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)\r\n Process: 21688 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m\r\n\r\nFeb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nFeb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nFeb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nFeb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nFeb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nFeb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nFeb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] still could not bind()\r\nFeb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m\r\nFeb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Failed with result 'exit-code'.\u001b[0m\r\nFeb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m\r\ndpkg: error processing package nginx-full (--configure):\r\n installed nginx-full package post-installation script subprocess returned error exit status 1\r\ndpkg: dependency problems prevent configuration of nginx:\r\n nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:\r\n Package nginx-full is not configured yet.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:\r\n Package nginx-full is not configured yet.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n\r\ndpkg: error processing package nginx (--configure):\r\n dependency problems - leaving unconfigured\r\nErrors were encountered while processing:\r\n nginx-full\r\n nginx\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "nginx is already the newest version (1.14.2-2+deb10u3).", "0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.", "2 not fully installed or removed.", "After this operation, 0 B of additional disk space will be used.", "Setting up nginx-full (1.14.2-2+deb10u3) ...", "Job for nginx.service failed because the control process exited with error code.", "See \"systemctl status nginx.service\" and \"journalctl -xe\" for details.", "invoke-rc.d: initscript nginx, action \"start\" failed.", "\u001b[0;1;31m*\u001b[0m nginx.service - A high performance web server and a reverse proxy server", " Loaded: loaded (\u001b]8;;file://debian-srv/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)", " Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Thu 2021-02-25 11:35:57 CET; 7ms ago", " Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007", " Process: 21687 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)", " Process: 21688 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m", "", "Feb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Feb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Feb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Feb 25 11:35:56 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Feb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Feb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Feb 25 11:35:57 debian-srv nginx[21688]: nginx: [emerg] still could not bind()", "Feb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m", "Feb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Failed with result 'exit-code'.\u001b[0m", "Feb 25 11:35:57 debian-srv systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m", "dpkg: error processing package nginx-full (--configure):", " installed nginx-full package post-installation script subprocess returned error exit status 1", "dpkg: dependency problems prevent configuration of nginx:", " nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:", " Package nginx-full is not configured yet.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", " nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:", " Package nginx-full is not configured yet.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", "", "dpkg: error processing package nginx (--configure):", " dependency problems - leaving unconfigured", "Errors were encountered while processing:", " nginx-full", " nginx"]}
...ignoring
Thank you
Da: leoni...@gmail.com <leoni...@gmail.com>
Inviato: giovedì 25 febbraio 2021 11:14
A: open...@googlegroups.com
Oggetto: R: [openwisp] Problem installing Openwisp2
Hi, for the postfix problem, i have installed a development version of the playbook with which I ignored the installation of the postfix package.
Using the command python -m pip -V, I saw that the version of pip installed is 21.0.1
When I launch the Playbook using the command: ansible-playbook -i hosts playbook.yml -u root -k
The first problemi is the following:
TASK [openwisp.openwisp2 : Install system packages] ****************************
FAILED - RETRYING: Install system packages (5 retries left).
FAILED - RETRYING: Install system packages (4 retries left).
FAILED - RETRYING: Install system packages (3 retries left).
FAILED - RETRYING: Install system packages (2 retries left).
FAILED - RETRYING: Install system packages (1 retries left).
fatal: [debian-srv]: FAILED! => {"attempts": 5, "cache_update_time": 1614595933, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'nginx'' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stderr": "E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr_lines": ["E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nnginx is already the newest version (1.14.2-2+deb10u3).\n0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.\n2 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nSetting up nginx-full (1.14.2-2+deb10u3) ...\r\nJob for nginx.service failed because the control process exited with error code.\r\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\r\ninvoke-rc.d: initscript nginx, action \"start\" failed.\r\n\u001b[0;1;31m*\u001b[0m nginx.service - A high performance web server and a reverse proxy server\r\n Loaded: loaded (\u001b]8;;file://debian-srv/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)\r\n Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Mon 2021-03-01 11:53:46 CET; 14ms ago\r\n Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007\r\n Process: 27590 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)\r\n Process: 27591 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m\r\n\r\nMar 01 11:53:44 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nMar 01 11:53:44 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nMar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nMar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nMar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)\r\nMar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)\r\nMar 01 11:53:46 debian-srv nginx[27591]: nginx: [emerg] still could not bind()\r\nMar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m\r\nMar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Failed with result 'exit-code'.\u001b[0m\r\nMar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m\r\ndpkg: error processing package nginx-full (--configure):\r\n installed nginx-full package post-installation script subprocess returned error exit status 1\r\ndpkg: dependency problems prevent configuration of nginx:\r\n nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:\r\n Package nginx-full is not configured yet.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:\r\n Package nginx-full is not configured yet.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n\r\ndpkg: error processing package nginx (--configure):\r\n dependency problems - leaving unconfigured\r\nErrors were encountered while processing:\r\n nginx-full\r\n nginx\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "nginx is already the newest version (1.14.2-2+deb10u3).", "0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.", "2 not fully installed or removed.", "After this operation, 0 B of additional disk space will be used.", "Setting up nginx-full (1.14.2-2+deb10u3) ...", "Job for nginx.service failed because the control process exited with error code.", "See \"systemctl status nginx.service\" and \"journalctl -xe\" for details.", "invoke-rc.d: initscript nginx, action \"start\" failed.", "\u001b[0;1;31m*\u001b[0m nginx.service - A high performance web server and a reverse proxy server", " Loaded: loaded (\u001b]8;;file://debian-srv/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)", " Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Mon 2021-03-01 11:53:46 CET; 14ms ago", " Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007", " Process: 27590 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)", " Process: 27591 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m", "", "Mar 01 11:53:44 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Mar 01 11:53:44 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Mar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Mar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Mar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)", "Mar 01 11:53:45 debian-srv nginx[27591]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)", "Mar 01 11:53:46 debian-srv nginx[27591]: nginx: [emerg] still could not bind()", "Mar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m", "Mar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Failed with result 'exit-code'.\u001b[0m", "Mar 01 11:53:46 debian-srv systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m", "dpkg: error processing package nginx-full (--configure):", " installed nginx-full package post-installation script subprocess returned error exit status 1", "dpkg: dependency problems prevent configuration of nginx:", " nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:", " Package nginx-full is not configured yet.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", " nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:", " Package nginx-full is not configured yet.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", "", "dpkg: error processing package nginx (--configure):", " dependency problems - leaving unconfigured", "Errors were encountered while processing:", " nginx-full", " nginx"]}
...ignoring
the second problem is the following:
TASK [openwisp.openwisp2 : Install openwisp2 controller and its dependencies] ***
FAILED - RETRYING: Install openwisp2 controller and its dependencies (5 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (4 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (3 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (2 retries left).
FAILED - RETRYING: Install openwisp2 controller and its dependencies (1 retries left).
fatal: [debian-srv]: FAILED! => {"attempts": 5, "changed": false, "cmd": ["/opt/openwisp2/env/bin/pip3", "install", "-U", "openwisp-controller~=0.8.2", "channels_redis~=3.1.0", "service_identity"], "msg": "stdout: Collecting openwisp-controller~=0.8.2\n Using cached openwisp_controller-0.8.3-py2.py3-none-any.whl (490 kB)\nCollecting channels_redis~=3.1.0\n Using cached channels_redis-3.1.0-py2.py3-none-any.whl (14 kB)\nCollecting service_identity\n Using cached service_identity-18.1.0-py2.py3-none-any.whl (11 kB)\nCollecting django-loci~=0.4.0\n Using cached django_loci-0.4.1-py2.py3-none-any.whl (43 kB)\nCollecting paramiko~=2.7.2\n Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB)\nCollecting django-reversion<3.1.0,>=3.0.5\n Using cached django_reversion-3.0.9-py3-none-any.whl (85 kB)\nCollecting netjsonconfig~=0.9.0\n Using cached netjsonconfig-0.9.1-py2.py3-none-any.whl (77 kB)\nCollecting django-flat-json-widget~=0.1.2\n Using cached django_flat_json_widget-0.1.2-py2.py3-none-any.whl (16 kB)\nCollecting django-model-utils>=4.0\n Using cached django_model_utils-4.1.1-py3-none-any.whl (32 kB)\nCollecting django-sortedm2m<3.1.0,>=3.0.0\n Using cached django_sortedm2m-3.0.2-py2.py3-none-any.whl (37 kB)\nCollecting celery<4.5.0,>=4.4.3\n Using cached celery-4.4.7-py2.py3-none-any.whl (427 kB)\nCollecting django<3.2,>=2.2\n Using cached Django-3.1.7-py3-none-any.whl (7.8 MB)\nCollecting openwisp-users~=0.5.1\n Using cached openwisp_users-0.5.1-py2.py3-none-any.whl (56 kB)\nCollecting swapper~=1.1.0\n Using cached swapper-1.1.2.post1-py3-none-any.whl (7.0 kB)\nCollecting openwisp-notifications~=0.3\n Using cached openwisp_notifications-0.3-py2.py3-none-any.whl (160 kB)\nCollecting openwisp-utils[rest]~=0.7.1\n Using cached openwisp_utils-0.7.3-py2.py3-none-any.whl (72 kB)\nCollecting scp<0.14.0,>=0.13.0\n Using cached scp-0.13.3-py2.py3-none-any.whl (8.2 kB)\nCollecting djangorestframework-gis<0.17.0,>=0.12.0\n Using cached djangorestframework_gis-0.16-py2.py3-none-any.whl (18 kB)\nCollecting django-taggit~=1.3.0\n Using cached django_taggit-1.3.0-py3-none-any.whl (45 kB)\nCollecting django-x509~=0.9.2\n Using cached django_x509-0.9.2-py2.py3-none-any.whl (51 kB)\nCollecting aioredis~=1.0\n Using cached aioredis-1.3.1-py3-none-any.whl (65 kB)\nCollecting asgiref~=3.0\n Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)\nCollecting channels~=2.2\n Using cached channels-2.4.0-py2.py3-none-any.whl (37 kB)\nCollecting msgpack~=1.0\n Using cached msgpack-1.0.2-cp37-cp37m-manylinux1_i686.whl (267 kB)\nRequirement already satisfied, skipping upgrade: attrs>=16.0.0 in /opt/openwisp2/env/lib/python3.7/site-packages (from service_identity) (20.3.0)\nCollecting pyasn1-modules\n Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)\nRequirement already satisfied, skipping upgrade: cryptography in /usr/lib/python3/dist-packages (from service_identity) (2.6.1)\nCollecting pyasn1\n Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)\nCollecting geopy~=2.0.0\n Using cached geopy-2.0.0-py3-none-any.whl (111 kB)\nCollecting Pillow<=8.1.0,>=6.2.0\n Using cached Pillow-8.1.0-cp37-cp37m-manylinux1_i686.whl (2.1 MB)\nCollecting django-leaflet<0.28,>=0.23\n Using cached django_leaflet-0.27.1-py3-none-any.whl (295 kB)\nCollecting bcrypt>=3.1.3\n Using cached bcrypt-3.2.0.tar.gz (42 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n Preparing wheel metadata: started\n Preparing wheel metadata: finished with status 'error'\n\n:stderr: ERROR: Command errored out with exit status 1:\n command: /opt/openwisp2/env/bin/python3 /opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnhqa22u6\n cwd: /tmp/pip-install-m43g4tmf/bcrypt\n Complete output (34 lines):\n Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 280, in <module>\n main()\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 263, in main\n json_out['return_val'] = hook(**hook_input['kwargs'])\n File \"/opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py\", line 133, in prepare_metadata_for_build_wheel\n return hook(metadata_directory, config_settings)\n File \"/usr/lib/python3/dist-packages/setuptools/build_meta.py\", line 140, in prepare_metadata_for_build_wheel\n self.run_setup()\n File \"/usr/lib/python3/dist-packages/setuptools/build_meta.py\", line 126, in run_setup\n exec(compile(code, __file__, 'exec'), locals())\n File \"setup.py\", line 76, in <module>\n cmdclass={\"test\": PyTest},\n File \"/usr/lib/python3/dist-packages/setuptools/__init__.py\", line 145, in setup\n return distutils.core.setup(**attrs)\n File \"/usr/lib/python3.7/distutils/core.py\", line 108, in setup\n _setup_distribution = dist = klass(attrs)\n File \"/usr/lib/python3/dist-packages/setuptools/dist.py\", line 447, in __init__\n k: v for k, v in attrs.items()\n File \"/usr/lib/python3.7/distutils/dist.py\", line 292, in __init__\n self.finalize_options()\n File \"/usr/lib/python3/dist-packages/setuptools/dist.py\", line 739, in finalize_options\n ep.load()(self, ep.name, value)\n File \"/tmp/pip-build-env-h40qnlyf/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 219, in cffi_modules\n add_cffi_module(dist, cffi_module)\n File \"/tmp/pip-build-env-h40qnlyf/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 49, in add_cffi_module\n execfile(build_file_name, mod_vars)\n File \"/tmp/pip-build-env-h40qnlyf/overlay/lib/python3.7/site-packages/cffi/setuptools_ext.py\", line 25, in execfile\n exec(code, glob, glob)\n File \"src/build_bcrypt.py\", line 21, in <module>\n ffi = FFI()\n File \"/tmp/pip-build-env-h40qnlyf/overlay/lib/python3.7/site-packages/cffi/api.py\", line 56, in __init__\n backend.__version__, backend.__file__))\n Exception: Version mismatch: this is the 'cffi' package version 1.14.5, located in '/tmp/pip-build-env-h40qnlyf/overlay/lib/python3.7/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.12.2, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-37m-i386-linux-gnu.so'. The two versions should be equal; check your installation.\n ----------------------------------------\nERROR: Command errored out with exit status 1: /opt/openwisp2/env/bin/python3 /opt/openwisp2/env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnhqa22u6 Check the logs for full command output.\nWARNING: You are using pip version 20.2.4; however, version 21.0.1 is available.\nYou should consider upgrading via the '/opt/openwisp2/env/bin/python3 -m pip install --upgrade pip' command.\n"}
Thanks in advance
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Ajay Tripathi
Inviato: domenica 28 febbraio 2021 19:14
A: OpenWISP <open...@googlegroups.com>
Oggetto: Re: I: [openwisp] Problem installing Openwisp2
--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/88aafc21-5b62-4d4b-b210-a5a35953efecn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/08ff01d70b5e%24ff9ed670%24fedc8350%24%40gmail.com.
Hi Federico, but as these are virtual server platforms, I can also use a different Linux version.
For example I could use Ubuntu Focal (20.04) which I tried to use many months ago but was not yet fully supported. Or is it better to play it safe with Bionic (18.04.2) ?
Thank you
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Federico Capoano
Inviato: martedì 2 marzo 2021 04:10
A: open...@googlegroups.com
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6LepBgDadQ8Lb8DQK4hR%2BJURB2SN%2B%2B2HoAUqkp2Obgr5g%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/03fd01d70f22%249bbf9e10%24d33eda30%24%40gmail.com.
Hi, I installed OpenWisp2 on Ubuntu Focal (20.04) and it was finally successful! Now I just have to move on to the study phase of the configuration part.
Thank you
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Federico Capoano
Inviato: martedì 2 marzo 2021 14:47
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6%2BmGVfYWnM7NCyjTn%2BSbN1%3DS0eo9tw3G-FgWkbSH8oG3g%40mail.gmail.com.