pi@raspberrypi:~ $ sudo bash ~/Mycodo/mycodo/scripts/upgrade_post.sh #### Running initialization #### Creating mycodo user useradd: user 'mycodo' already exists The user `mycodo' is already a member of `adm'. The user `mycodo' is already a member of `dialout'. The user `mycodo' is already a member of `gpio'. The user `mycodo' is already a member of `i2c'. The user `mycodo' is already a member of `kmem'. The user `mycodo' is already a member of `video'. The user `pi' is already a member of `mycodo'. The user `mycodo' is already a member of `pi'. #### Compiling mycodo_wrapper /home/pi/Mycodo/mycodo/scripts/mycodo_wrapper.c: In function ‘upgrade_commands’: /home/pi/Mycodo/mycodo/scripts/mycodo_wrapper.c:17:5: warning: ‘strncat’ specified bound 255 equals destination size [-Wstringop-overflow=] strncat(full_cmd, "/upgrade_commands.sh ", sizeof(full_cmd)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pi/Mycodo/mycodo/scripts/mycodo_wrapper.c: In function ‘main’: /home/pi/Mycodo/mycodo/scripts/mycodo_wrapper.c:35:4: warning: ‘strncat’ specified bound 255 equals destination size [-Wstringop-overflow=] strncat(restoreScript, "/upgrade_commands.sh backup-create", sizeof(restoreScript)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### Creating symlinks to Mycodo executables #### Creating files and directories #### Setting permissions #### Checking if swap size is 100 MB and needs to be changed to 512 MB #### Swap not currently set to 100 MB. Not changing. #### Checking python 3 virtualenv #### Virtualenv already exists, skipping creation #### Updating apt repositories Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.9 kB] Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [376 kB] Fetched 13.4 MB in 41s (326 kB/s) Reading package lists... Done #### Installing prerequisite apt packages and update pip Reading package lists... Done Building dependency tree Reading state information... Done Package 'apache2' is not installed, so not removed The following packages were automatically installed and are no longer required: libpython-all-dev python-all-dev python-asn1crypto python-configparser python-cookies python-crypto python-entrypoints python-enum34 python-funcsigs python-jwt python-keyrings.alt python-mock python-pbr python-responses python-wheel python-xdg python3-asn1crypto python3-cookies python3-dbus python3-entrypoints python3-jwt python3-responses Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done gawk is already the newest version (1:4.2.1+dfsg-1). gcc is already the newest version (4:8.3.0-1+rpi2). git is already the newest version (1:2.20.1-2+deb10u3). libffi-dev is already the newest version (3.2.1-9). libi2c-dev is already the newest version (4.1-1). logrotate is already the newest version (3.14.0-4). moreutils is already the newest version (0.62-1+b1). nginx is already the newest version (1.14.2-2+deb10u3). python3 is already the newest version (3.7.3-1). python3-dev is already the newest version (3.7.3-1). python3-pylint-common is already the newest version (0.2.5-2). python3-setuptools is already the newest version (40.8.0-1). python3-smbus is already the newest version (4.1-1). rng-tools is already the newest version (2-unofficial-mt.14-1). sqlite3 is already the newest version (3.27.2-3+deb10u1). wget is already the newest version (1.20.1-1.1). The following packages were automatically installed and are no longer required: libpython-all-dev python-all-dev python-asn1crypto python-configparser python-cookies python-crypto python-entrypoints python-enum34 python-funcsigs python-jwt python-keyrings.alt python-mock python-pbr python-responses python-wheel python-xdg python3-asn1crypto python3-cookies python3-dbus python3-entrypoints python3-jwt python3-responses Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded. Searching for pip Best match: pip 21.1.1 Adding pip 21.1.1 to easy-install.pth file Installing pip script to /usr/local/bin Installing pip3 script to /usr/local/bin Installing pip3.8 script to /usr/local/bin Using /usr/local/lib/python3.7/dist-packages Processing dependencies for pip Finished processing dependencies for pip Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (21.1.1) WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv #### Installing and configuring nginx web server Removed /etc/systemd/system/mycodoflask.service. Removed /etc/systemd/system/multi-user.target.wants/mycodoflask.service. Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable nginx Failed to enable unit: Connection timed out #### Installing logrotate scripts Mycodo logrotate script installed #### Updating pip Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pip in ./env/lib/python3.7/site-packages (21.1.1) #### Installing pip requirements Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pip in ./env/lib/python3.7/site-packages (21.1.1) Requirement already satisfied: setuptools in ./env/lib/python3.7/site-packages (56.2.0) Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting alembic==1.4.0 Downloading https://www.piwheels.org/simple/alembic/alembic-1.4.0-py2.py3-none-any.whl (157 kB) |████████████████████████████████| 157 kB 32 kB/s Collecting argparse==1.4.0 Using cached https://www.piwheels.org/simple/argparse/argparse-1.4.0-py2.py3-none-any.whl (23 kB) Collecting bcrypt==3.1.7 Downloading https://www.piwheels.org/simple/bcrypt/bcrypt-3.1.7-cp37-cp37m-linux_armv7l.whl (57 kB) |████████████████████████████████| 57 kB 195 kB/s Requirement already satisfied: daemonize==2.5.0 in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 5)) (2.5.0) Collecting distro==1.4.0 Downloading https://www.piwheels.org/simple/distro/distro-1.4.0-py2.py3-none-any.whl (17 kB) Requirement already satisfied: filelock==3.0.12 in /usr/local/lib/python3.7/dist-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 7)) (3.0.12) Collecting Flask==1.1.1 Downloading https://www.piwheels.org/simple/flask/Flask-1.1.1-py2.py3-none-any.whl (94 kB) |████████████████████████████████| 94 kB 989 bytes/s Requirement already satisfied: Flask_Accept==0.0.6 in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 9)) (0.0.6) Collecting Flask_Babel==1.0.0 Downloading https://www.piwheels.org/simple/flask-babel/Flask_Babel-1.0.0-py3-none-any.whl (9.5 kB) Collecting Flask_Compress==1.4.0 Downloading https://www.piwheels.org/simple/flask-compress/Flask_Compress-1.4.0-py3-none-any.whl (3.9 kB) Collecting Flask_Limiter==1.1.0 Downloading https://www.piwheels.org/simple/flask-limiter/Flask_Limiter-1.1.0-py3-none-any.whl (13 kB) Collecting Flask_Login==0.4.1 Downloading https://www.piwheels.org/simple/flask-login/Flask_Login-0.4.1-py2.py3-none-any.whl (15 kB) Collecting Flask_Marshmallow==0.10.1 Downloading https://www.piwheels.org/simple/flask-marshmallow/flask_marshmallow-0.10.1-py2.py3-none-any.whl (9.7 kB) Collecting Flask_RESTX==0.1.1 Downloading https://www.piwheels.org/simple/flask-restx/flask_restx-0.1.1-py2.py3-none-any.whl (2.6 MB) |████████████████████████████████| 2.6 MB 17 kB/s Collecting Flask_SQLAlchemy==2.4.1 Downloading https://www.piwheels.org/simple/flask-sqlalchemy/Flask_SQLAlchemy-2.4.1-py2.py3-none-any.whl (17 kB) Collecting Flask_SSLify==0.1.5 Downloading https://www.piwheels.org/simple/flask-sslify/Flask_SSLify-0.1.5-py3-none-any.whl (3.5 kB) Requirement already satisfied: Flask_WTF==0.14.3 in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 18)) (0.14.3) Requirement already satisfied: geocoder==1.38.1 in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 19)) (1.38.1) Collecting gunicorn==20.0.4 Downloading https://www.piwheels.org/simple/gunicorn/gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) |████████████████████████████████| 77 kB 14 kB/s Collecting influxdb==5.2.3 Downloading https://www.piwheels.org/simple/influxdb/influxdb-5.2.3-py2.py3-none-any.whl (73 kB) |████████████████████████████████| 73 kB 625 bytes/s Collecting marshmallow_sqlalchemy==0.21.0 Downloading https://www.piwheels.org/simple/marshmallow-sqlalchemy/marshmallow_sqlalchemy-0.21.0-py2.py3-none-any.whl (12 kB) Collecting pyro5==5.7 Downloading https://www.piwheels.org/simple/pyro5/Pyro5-5.7-py3-none-any.whl (77 kB) |████████████████████████████████| 77 kB 17 kB/s Requirement already satisfied: pyserial in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 24)) (3.5) Requirement already satisfied: python-dateutil==2.8.1 in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 25)) (2.8.1) Requirement already satisfied: requests in ./env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements.txt (line 26)) (2.25.1) Collecting SQLAlchemy==1.3.13 Downloading https://www.piwheels.org/simple/sqlalchemy/SQLAlchemy-1.3.13-cp37-cp37m-linux_armv7l.whl (1.2 MB) |████████████████████████████████| 1.2 MB 25 kB/s WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/werkzeug/ Collecting Werkzeug==0.16.1 Downloading https://www.piwheels.org/simple/werkzeug/Werkzeug-0.16.1-py2.py3-none-any.whl (327 kB) |████████████████████████████████| 327 kB 82 kB/s Collecting WTForms==2.2.1 Downloading https://www.piwheels.org/simple/wtforms/WTForms-2.2.1-py2.py3-none-any.whl (166 kB) |████████████████████████████████| 166 kB 359 kB/s Requirement already satisfied: Mako in ./env/lib/python3.7/site-packages (from alembic==1.4.0->-r /home/pi/Mycodo/install/requirements.txt (line 2)) (1.1.4) Requirement already satisfied: python-editor>=0.3 in ./env/lib/python3.7/site-packages (from alembic==1.4.0->-r /home/pi/Mycodo/install/requirements.txt (line 2)) (1.0.4) Requirement already satisfied: cffi>=1.1 in ./env/lib/python3.7/site-packages (from bcrypt==3.1.7->-r /home/pi/Mycodo/install/requirements.txt (line 4)) (1.14.5) Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from bcrypt==3.1.7->-r /home/pi/Mycodo/install/requirements.txt (line 4)) (1.12.0) Requirement already satisfied: itsdangerous>=0.24 in /usr/lib/python3/dist-packages (from Flask==1.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 8)) (0.24) Requirement already satisfied: click>=5.1 in /usr/lib/python3/dist-packages (from Flask==1.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 8)) (7.0) Requirement already satisfied: Jinja2>=2.10.1 in ./env/lib/python3.7/site-packages (from Flask==1.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 8)) (3.0.1) Requirement already satisfied: Babel>=2.3 in ./env/lib/python3.7/site-packages (from Flask_Babel==1.0.0->-r /home/pi/Mycodo/install/requirements.txt (line 10)) (2.9.1) Requirement already satisfied: pytz in ./env/lib/python3.7/site-packages (from Flask_Babel==1.0.0->-r /home/pi/Mycodo/install/requirements.txt (line 10)) (2021.1) Requirement already satisfied: limits in ./env/lib/python3.7/site-packages (from Flask_Limiter==1.1.0->-r /home/pi/Mycodo/install/requirements.txt (line 12)) (1.5.1) Requirement already satisfied: marshmallow>=2.0.0 in ./env/lib/python3.7/site-packages (from Flask_Marshmallow==0.10.1->-r /home/pi/Mycodo/install/requirements.txt (line 14)) (3.12.1) Requirement already satisfied: jsonschema in ./env/lib/python3.7/site-packages (from Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (3.2.0) Requirement already satisfied: aniso8601>=0.82 in ./env/lib/python3.7/site-packages (from Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (9.0.1) Requirement already satisfied: future in ./env/lib/python3.7/site-packages (from geocoder==1.38.1->-r /home/pi/Mycodo/install/requirements.txt (line 19)) (0.18.2) Requirement already satisfied: ratelim in ./env/lib/python3.7/site-packages (from geocoder==1.38.1->-r /home/pi/Mycodo/install/requirements.txt (line 19)) (0.1.6) Requirement already satisfied: setuptools>=3.0 in ./env/lib/python3.7/site-packages (from gunicorn==20.0.4->-r /home/pi/Mycodo/install/requirements.txt (line 20)) (56.2.0) Requirement already satisfied: serpent>=1.27 in ./env/lib/python3.7/site-packages (from pyro5==5.7->-r /home/pi/Mycodo/install/requirements.txt (line 23)) (1.40) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements.txt (line 26)) (2018.8.24) Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements.txt (line 26)) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements.txt (line 26)) (2.6) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements.txt (line 26)) (1.24.1) Requirement already satisfied: pycparser in ./env/lib/python3.7/site-packages (from cffi>=1.1->bcrypt==3.1.7->-r /home/pi/Mycodo/install/requirements.txt (line 4)) (2.20) Requirement already satisfied: MarkupSafe>=2.0 in ./env/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask==1.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 8)) (2.0.1) Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from jsonschema->Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (4.0.1) Requirement already satisfied: pyrsistent>=0.14.0 in ./env/lib/python3.7/site-packages (from jsonschema->Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (0.17.3) Requirement already satisfied: attrs>=17.4.0 in ./env/lib/python3.7/site-packages (from jsonschema->Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (21.2.0) Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->jsonschema->Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (3.10.0.0) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->jsonschema->Flask_RESTX==0.1.1->-r /home/pi/Mycodo/install/requirements.txt (line 15)) (3.4.1) Requirement already satisfied: decorator in /usr/lib/python3/dist-packages (from ratelim->geocoder==1.38.1->-r /home/pi/Mycodo/install/requirements.txt (line 19)) (4.3.0) Installing collected packages: Werkzeug, WTForms, SQLAlchemy, Flask, pyro5, marshmallow-sqlalchemy, influxdb, gunicorn, Flask-SSLify, Flask-SQLAlchemy, Flask-RESTX, Flask-Marshmallow, Flask-Login, Flask-Limiter, Flask-Compress, Flask-Babel, distro, bcrypt, argparse, alembic Attempting uninstall: Werkzeug Found existing installation: Werkzeug 1.0.1 Uninstalling Werkzeug-1.0.1: Successfully uninstalled Werkzeug-1.0.1 Attempting uninstall: WTForms Found existing installation: WTForms 2.3.3 Uninstalling WTForms-2.3.3: Successfully uninstalled WTForms-2.3.3 Attempting uninstall: SQLAlchemy Found existing installation: SQLAlchemy 1.4.7 Uninstalling SQLAlchemy-1.4.7: Successfully uninstalled SQLAlchemy-1.4.7 Attempting uninstall: Flask Found existing installation: Flask 1.1.2 Uninstalling Flask-1.1.2: Successfully uninstalled Flask-1.1.2 Attempting uninstall: pyro5 Found existing installation: Pyro5 5.12 Uninstalling Pyro5-5.12: Successfully uninstalled Pyro5-5.12 Attempting uninstall: marshmallow-sqlalchemy Found existing installation: marshmallow-sqlalchemy 0.24.2 Uninstalling marshmallow-sqlalchemy-0.24.2: Successfully uninstalled marshmallow-sqlalchemy-0.24.2 Attempting uninstall: influxdb Found existing installation: influxdb 5.3.1 Uninstalling influxdb-5.3.1: Successfully uninstalled influxdb-5.3.1 Attempting uninstall: gunicorn Found existing installation: gunicorn 20.1.0 Uninstalling gunicorn-20.1.0: Successfully uninstalled gunicorn-20.1.0 Attempting uninstall: Flask-SQLAlchemy Found existing installation: Flask-SQLAlchemy 2.5.1 Uninstalling Flask-SQLAlchemy-2.5.1: Successfully uninstalled Flask-SQLAlchemy-2.5.1 Attempting uninstall: Flask-RESTX Found existing installation: flask-restx 0.3.0 Uninstalling flask-restx-0.3.0: Successfully uninstalled flask-restx-0.3.0 Attempting uninstall: Flask-Marshmallow Found existing installation: flask-marshmallow 0.14.0 Uninstalling flask-marshmallow-0.14.0: Successfully uninstalled flask-marshmallow-0.14.0 Attempting uninstall: Flask-Login Found existing installation: Flask-Login 0.5.0 Uninstalling Flask-Login-0.5.0: Successfully uninstalled Flask-Login-0.5.0 Attempting uninstall: Flask-Limiter Found existing installation: Flask-Limiter 1.4 Uninstalling Flask-Limiter-1.4: Successfully uninstalled Flask-Limiter-1.4 Attempting uninstall: Flask-Compress Found existing installation: Flask-Compress 1.9.0 Uninstalling Flask-Compress-1.9.0: Successfully uninstalled Flask-Compress-1.9.0 Attempting uninstall: Flask-Babel Found existing installation: Flask-Babel 2.0.0 Uninstalling Flask-Babel-2.0.0: Successfully uninstalled Flask-Babel-2.0.0 Attempting uninstall: distro Found existing installation: distro 1.5.0 Uninstalling distro-1.5.0: Successfully uninstalled distro-1.5.0 Attempting uninstall: bcrypt Found existing installation: bcrypt 3.2.0 Uninstalling bcrypt-3.2.0: Successfully uninstalled bcrypt-3.2.0 Attempting uninstall: alembic Found existing installation: alembic 1.5.8 Uninstalling alembic-1.5.8: Successfully uninstalled alembic-1.5.8 Successfully installed Flask-1.1.1 Flask-Babel-1.0.0 Flask-Compress-1.4.0 Flask-Limiter-1.1.0 Flask-Login-0.4.1 Flask-Marshmallow-0.10.1 Flask-RESTX-0.1.1 Flask-SQLAlchemy-2.4.1 Flask-SSLify-0.1.5 SQLAlchemy-1.3.13 WTForms-2.2.1 Werkzeug-0.16.1 alembic-1.4.0 argparse-1.4.0 bcrypt-3.1.7 distro-1.4.0 gunicorn-20.0.4 influxdb-5.2.3 marshmallow-sqlalchemy-0.21.0 pyro5-5.7 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pylibftdi==0.18.1 Downloading https://www.piwheels.org/simple/pylibftdi/pylibftdi-0.18.1-py2.py3-none-any.whl (32 kB) Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from -r /home/pi/Mycodo/install/requirements-rpi.txt (line 3)) (0.7.0) Collecting smbus2==0.3.0 Downloading https://www.piwheels.org/simple/smbus2/smbus2-0.3.0-py2.py3-none-any.whl (9.1 kB) Installing collected packages: smbus2, pylibftdi Attempting uninstall: smbus2 Found existing installation: smbus2 0.4.1 Uninstalling smbus2-0.4.1: Successfully uninstalled smbus2-0.4.1 Attempting uninstall: pylibftdi Found existing installation: pylibftdi 0.19.0 Uninstalling pylibftdi-0.19.0: Successfully uninstalled pylibftdi-0.19.0 Successfully installed pylibftdi-0.18.1 smbus2-0.3.0 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting testfixtures==6.12.0 Downloading https://www.piwheels.org/simple/testfixtures/testfixtures-6.12.0-py2.py3-none-any.whl (87 kB) |████████████████████████████████| 87 kB 39 kB/s Collecting mock==4.0.1 Downloading https://www.piwheels.org/simple/mock/mock-4.0.1-py3-none-any.whl (28 kB) Collecting pytest==5.3.5 Downloading https://www.piwheels.org/simple/pytest/pytest-5.3.5-py3-none-any.whl (235 kB) |████████████████████████████████| 235 kB 74 kB/s Collecting factory_boy==2.12.0 Downloading https://www.piwheels.org/simple/factory-boy/factory_boy-2.12.0-py2.py3-none-any.whl (36 kB) Collecting webtest==2.0.34 Downloading https://www.piwheels.org/simple/webtest/WebTest-2.0.34-py2.py3-none-any.whl (32 kB) Requirement already satisfied: py>=1.5.0 in ./env/lib/python3.7/site-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (1.10.0) Collecting more-itertools>=4.0.0 Downloading https://www.piwheels.org/simple/more-itertools/more_itertools-8.8.0-py3-none-any.whl (48 kB) |████████████████████████████████| 48 kB 301 kB/s Requirement already satisfied: attrs>=17.4.0 in ./env/lib/python3.7/site-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (21.2.0) Requirement already satisfied: importlib-metadata>=0.12 in /usr/local/lib/python3.7/dist-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (4.0.1) Requirement already satisfied: pluggy<1.0,>=0.12 in ./env/lib/python3.7/site-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (0.13.1) Requirement already satisfied: wcwidth in /usr/lib/python3/dist-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (0.1.7) Requirement already satisfied: packaging in ./env/lib/python3.7/site-packages (from pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (20.9) Requirement already satisfied: Faker>=0.7.0 in ./env/lib/python3.7/site-packages (from factory_boy==2.12.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (8.2.0) Requirement already satisfied: six in /usr/lib/python3/dist-packages (from webtest==2.0.34->-r /home/pi/Mycodo/install/requirements-testing.txt (line 6)) (1.12.0) Requirement already satisfied: waitress>=0.8.5 in ./env/lib/python3.7/site-packages (from webtest==2.0.34->-r /home/pi/Mycodo/install/requirements-testing.txt (line 6)) (2.0.0) Requirement already satisfied: WebOb>=1.2 in ./env/lib/python3.7/site-packages (from webtest==2.0.34->-r /home/pi/Mycodo/install/requirements-testing.txt (line 6)) (1.8.7) Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from webtest==2.0.34->-r /home/pi/Mycodo/install/requirements-testing.txt (line 6)) (4.7.1) Requirement already satisfied: text-unidecode==1.3 in ./env/lib/python3.7/site-packages (from Faker>=0.7.0->factory_boy==2.12.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (1.3) Requirement already satisfied: python-dateutil>=2.4 in ./env/lib/python3.7/site-packages (from Faker>=0.7.0->factory_boy==2.12.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (2.8.1) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.12->pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (3.4.1) Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.12->pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (3.10.0.0) Requirement already satisfied: pyparsing>=2.0.2 in /usr/lib/python3/dist-packages (from packaging->pytest==5.3.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (2.2.0) Installing collected packages: more-itertools, webtest, testfixtures, pytest, mock, factory-boy Attempting uninstall: webtest Found existing installation: WebTest 2.0.35 Uninstalling WebTest-2.0.35: Successfully uninstalled WebTest-2.0.35 Attempting uninstall: testfixtures Found existing installation: testfixtures 6.17.1 Uninstalling testfixtures-6.17.1: Successfully uninstalled testfixtures-6.17.1 Attempting uninstall: pytest Found existing installation: pytest 6.2.3 Uninstalling pytest-6.2.3: Successfully uninstalled pytest-6.2.3 Attempting uninstall: mock Found existing installation: mock 4.0.3 Uninstalling mock-4.0.3: Successfully uninstalled mock-4.0.3 Attempting uninstall: factory-boy Found existing installation: factory-boy 3.2.0 Uninstalling factory-boy-3.2.0: Successfully uninstalled factory-boy-3.2.0 Successfully installed factory-boy-2.12.0 mock-4.0.1 more-itertools-8.8.0 pytest-5.3.5 testfixtures-6.12.0 webtest-2.0.34 #### Checking for updates to dependencies Traceback (most recent call last): File "/home/pi/Mycodo/mycodo/utils/update_dependencies.py", line 129, in device_unmet_dependencies, _ = return_dependencies(each_device) File "/home/pi/Mycodo/mycodo/mycodo_flask/utils/utils_general.py", line 1076, in return_dependencies parse_controller_information(), File "/home/pi/Mycodo/mycodo/utils/controllers.py", line 66, in parse_controller_information controller_custom = load_module_from_file(full_path, 'controllers') File "/home/pi/Mycodo/mycodo/utils/modules.py", line 17, in load_module_from_file module_custom = importlib.util.module_from_spec(spec) File "", line 580, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader' #### Ensuring compatible version of influxdb is installed #### #### Incorrect InfluxDB version (v1.8.0-1) installed. Installing v1.7.9-1... dpkg: warning: downgrading influxdb from 1.8.0-1 to 1.7.9-1 (Reading database ... 153477 files and directories currently installed.) Preparing to unpack influxdb_1.7.9_armhf.deb ... Unpacking influxdb (1.7.9-1) over (1.8.0-1) ... Setting up influxdb (1.7.9-1) ... Installing new version of config file /etc/influxdb/influxdb.conf ... Processing triggers for man-db (2.8.5-2) ... #### Upgrading Mycodo database with alembic (if needed) INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. #### Executing post-alembic script Found revision IDs to execute code: [] Completed without errors. Deleting /home/pi/Mycodo/databases/alembic_post_upgrade_versions #### Disabling installed mycodo startup script Removed /etc/systemd/system/mycodo.service. Removed /etc/systemd/system/multi-user.target.wants/mycodo.service. #### Enabling current mycodo startup script Created symlink /etc/systemd/system/mycodo.service → /home/pi/Mycodo/install/mycodo.service. Created symlink /etc/systemd/system/multi-user.target.wants/mycodo.service → /home/pi/Mycodo/install/mycodo.service. #### Compiling Translations compiling catalog mycodo_flask/translations/sv/LC_MESSAGES/messages.po to mycodo_flask/translations/sv/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/fr/LC_MESSAGES/messages.po to mycodo_flask/translations/fr/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/ru/LC_MESSAGES/messages.po to mycodo_flask/translations/ru/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/nl/LC_MESSAGES/messages.po to mycodo_flask/translations/nl/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/pt/LC_MESSAGES/messages.po to mycodo_flask/translations/pt/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/zh/LC_MESSAGES/messages.po to mycodo_flask/translations/zh/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/nb/LC_MESSAGES/messages.po to mycodo_flask/translations/nb/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/es/LC_MESSAGES/messages.po to mycodo_flask/translations/es/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/de/LC_MESSAGES/messages.po to mycodo_flask/translations/de/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/it/LC_MESSAGES/messages.po to mycodo_flask/translations/it/LC_MESSAGES/messages.mo compiling catalog mycodo_flask/translations/sr/LC_MESSAGES/messages.po to mycodo_flask/translations/sr/LC_MESSAGES/messages.mo #### Updating Mycodo restart monitor crontab entry Removing crontab entry ... Appending to crontab: ----------------------------------------------- @reboot /var/mycodo-root/env/bin/python /var/mycodo-root/mycodo/scripts/restart_daemon.py --continuouscheck & ----------------------------------------------- To remove previously added crontab entry, run: /home/pi/Mycodo/install/crontab.sh restart_daemon --remove #### Setting permissions #### Restarting the Mycodo daemon Mycodo previously shut down properly #### Restarting nginx #### Reloading mycodoflask mycodoflask.service is not active, cannot reload. #### Connecting to http://localhost (creates Mycodo database if it doesn't exist) #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... #### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 5 times)... #### Trying again... Stage 3 execution time summary: initialize: 16 s update-swap-size: 0 s setup-virtualenv: 0 s update-apt: 89 s update-packages: 29 s web-server-update: 31 s update-logrotate: 11 s update-pip3: 13 s update-pip3-packages: 588 s update-dependencies: 4 s update-influxdb: 138 s update-alembic: 7 s update-alembic-post: 4 s update-mycodo-startup-script: 1 s compile-translations: 61 s update-cron: 3 s update-permissions: 1 s restart-daemon: 36 s web-server_reload: 6 s web-server-connect: 609 s