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: [email protected] <[email protected]> Per conto di Federico Capoano Inviato: martedì 2 marzo 2021 14:47 A: [email protected] Oggetto: Re: [openwisp] Problem installing Openwisp2 Try Ubuntu 20, now is supported. Il mar 2 mar 2021, 00:12 <[email protected] <mailto:[email protected]> > ha scritto: 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: [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > Per conto di Federico Capoano Inviato: martedì 2 marzo 2021 04:10 A: [email protected] <mailto:[email protected]> Oggetto: Re: [openwisp] Problem installing Openwisp2 These look like system issues, it's weird that you're getting so many of them, the installation runs smoothly for me on Debian, where are you getting the image from? Anyway, sometimes problems arise, in these cases you have to look on google, for example, I googled the error message in the ansible output and found this: https://stackoverflow.com/questions/43325110/exception-version-mismatchcffi Try the same approach if you encounter other issues. Best regards Federico Capoano OpenWISP OÜ Harjumaa, Tallinn, Sepapaja tn 6, 15551 VAT: EE101989729 <http://openwisp.io> openwisp.io On Thu, Feb 25, 2021 at 5:14 AM <[email protected] <mailto:[email protected]> > wrote: 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:: * in the openwisp2-ansible-playbook folder I created a roles subfolder and placed myself in it * I have cloned ansible-openwisp2 and Stouts.postfix git clone https://github.com/openwisp/ansible-openwisp2.git openwisp.openwisp2 git clone <https://github.com/nemesisdesign/Stouts.postfix> https://github.com/nemesisdesign/Stouts.postfix * I edited the playbook.yml file by modifying it as follows: - 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 <http://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 <http://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 <[email protected] <mailto:[email protected]> > Inviato: mercoledì 24 febbraio 2021 02:17 A: [email protected] <mailto:[email protected]> 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 <[email protected] <mailto:[email protected]> > 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 <[email protected] <mailto:[email protected]> > Inviato: martedì 23 febbraio 2021 15:54 A: [email protected] <mailto:[email protected]> Cc: OpenWISP <[email protected] <mailto:[email protected]> > Oggetto: Re: [openwisp] Problem installing Openwisp2 I'm not sure how to help, I never had this issue with Debian. I suggest asking in the support channels / forums of Debian. Best F. On Mon, Feb 22, 2021 at 1:34 PM <[email protected] <mailto:[email protected]> > wrote: 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: [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > Per conto di Federico Capoano Inviato: lunedì 22 febbraio 2021 17:42 A: OpenWISP <[email protected] <mailto:[email protected]> > Oggetto: Re: [openwisp] Problem installing Openwisp2 Hi, it's complaining that it cannot install the postfix package, but this looks like a system issue rather than an OpenWISP issue. What happens if you try to install the postfix package manually? In the development version there's a config option to disable the installation of postfix, in case this helps. You would have to set an external SMTP to make email sending work though. Best regards Federico On Fri, Feb 19, 2021 at 2:01 PM <[email protected] <mailto:[email protected]> > wrote: Hello everyone. I followed all the steps indicated in https://github.com/openwisp/ansible-openwisp2#usage-tutorial for the installation of Opewisp2, therefore: * hi I have a virtual machine Debian 10.8 (Buster) called Debian-srv with ip 172.16.0.211 on Hyper-v of my win10 pc with ip 172.16.0.104 * on this Debian machine I have enabled ssh access to the root user by editing the / etc / ssh / sshd_config file and replacing the line #PermitRootLogin prohibit-password with the line PermitRootLogin yes * on my pc i have installed Cigwin * Using Cygwin I installed Ansible, Git and joe * Using Cygwin I have installed the Openwisp role running the command ansible-galaxy install openwisp.openwisp2 * Using Cygwin I chose and created a Working Directory called: openwisp2-ansible-playbook * Using Cygwin I created an inventory file called host with the following content: [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: "[email protected] <mailto:[email protected]> " * Using Cygwin i launched the playbook to install Openwisp on the server by running the following command: 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 [email protected] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/016801d706f1%24ac4a8990%2404df9cb0%24%40gmail.com <https://groups.google.com/d/msgid/openwisp/016801d706f1%24ac4a8990%2404df9cb0%24%40gmail.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] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAERYH6UYCOTwQjVADN%2B%3DS2X-CRoB0O1JeGOOp7Xkgugz3hScDA%40mail.gmail.com <https://groups.google.com/d/msgid/openwisp/CAERYH6UYCOTwQjVADN%2B%3DS2X-CRoB0O1JeGOOp7Xkgugz3hScDA%40mail.gmail.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] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/08ff01d70b5e%24ff9ed670%24fedc8350%24%40gmail.com <https://groups.google.com/d/msgid/openwisp/08ff01d70b5e%24ff9ed670%24fedc8350%24%40gmail.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] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6LepBgDadQ8Lb8DQK4hR%2BJURB2SN%2B%2B2HoAUqkp2Obgr5g%40mail.gmail.com <https://groups.google.com/d/msgid/openwisp/CAAGgX6LepBgDadQ8Lb8DQK4hR%2BJURB2SN%2B%2B2HoAUqkp2Obgr5g%40mail.gmail.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] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/03fd01d70f22%249bbf9e10%24d33eda30%24%40gmail.com <https://groups.google.com/d/msgid/openwisp/03fd01d70f22%249bbf9e10%24d33eda30%24%40gmail.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] <mailto:[email protected]> . To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6%2BmGVfYWnM7NCyjTn%2BSbN1%3DS0eo9tw3G-FgWkbSH8oG3g%40mail.gmail.com <https://groups.google.com/d/msgid/openwisp/CAAGgX6%2BmGVfYWnM7NCyjTn%2BSbN1%3DS0eo9tw3G-FgWkbSH8oG3g%40mail.gmail.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/080001d710b4%24cfaedc20%246f0c9460%24%40gmail.com.
