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: [email protected] <[email protected]> Per conto di Ajay
Tripathi
Inviato: domenica 28 febbraio 2021 19:14
A: OpenWISP <[email protected]>
Oggetto: Re: I: [openwisp] Problem installing Openwisp2
Hi,
For the first error, try looking for postfix:
```
apt update
apt-cache madison postfix
```
If the first command returns nothing then, postfix is available in the
following repositories:
```
http://deb.debian.org/debian buster/main amd64 Packages
http://deb.debian.org/debian buster/main Sources
```
Please add them in your sources and try again.
For the second problem, try updating pip:
```
sudo python -m pip install --upgrade pip
```
Best,
Ajay Tripathi
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected]
<mailto:[email protected]> .
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/88aafc21-5b62-4d4b-b210-a5a35953efecn%40googlegroups.com
<https://groups.google.com/d/msgid/openwisp/88aafc21-5b62-4d4b-b210-a5a35953efecn%40googlegroups.com?utm_medium=email&utm_source=footer>
.
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/02ae01d70e9b%246683ea80%24338bbf80%24%40gmail.com.