Cant acces to local host web page

hi! i ran into this problem that i have an error when i try to connect to my raspberry pi ip adress showing that i have no connection, during the install it says nginx have failed to restart so the problem might be there but i dont know what to do, some help would be appreciate :slight_smile:

the last line of the install:

#### Installing and configuring nginx web server
Removed /etc/systemd/system/mycodoflask.service.
Removed /etc/systemd/system/multi-user.target.wants/mycodoflask.service.
ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': No such file or directory
Failed to enable unit: Unit file nginx.service does not exist.
Created symlink /etc/systemd/system/multi-user.target.wants/mycodoflask.service → /home/pi/Mycodo/install/mycodoflask.service.
Created symlink /etc/systemd/system/mycodoflask.service → /home/pi/Mycodo/install/mycodoflask.service.

#### Restarting nginx
Failed to restart nginx.service: Unit nginx.service not found.
#### Restarting mycodoflask

#### 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 10 times)...

thanks you and have a good day!

Hi. Please attach the full setup.log.

Hi thank you for you time here the log in two prt since i can<t upload it here :slight_smile: :

### Mycodo installation initiated Fri 29 Oct 2021 10:51:31 AM EDT
#### Mycodo installation began Fri 29 Oct 2021 10:51:39 AM EDT

#### Checking if swap size is 100 MB and needs to be changed to 512 MB
#### Swap not currently set to 100 MB. Not changing.

#### Updating apt repositories
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Reading package lists...
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

#### Uninstalling apt version of pip (if installed)
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python-pip' 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 187 not upgraded.

#### Installing prerequisite apt packages and update pip
Reading package lists...
Building dependency tree...
Reading state information...
Package 'apache2' is not installed, so not removed
Package 'python-cffi-backend' is not installed, so not removed
Package 'python3-cffi-backend' 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 187 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:8.3.0-1+rpi2).
g++ set to manually installed.
gcc is already the newest version (4:8.3.0-1+rpi2).
gcc set to manually installed.
git is already the newest version (1:2.20.1-2+deb10u3).
logrotate is already the newest version (3.14.0-4).
python3 is already the newest version (3.7.3-1).
python3-dev is already the newest version (3.7.3-1).
python3-dev set to manually installed.
python3-setuptools is already the newest version (40.8.0-1).
python3-setuptools set to manually installed.
python3-smbus is already the newest version (4.1-1).
rng-tools is already the newest version (2-unofficial-mt.14-1).
wget is already the newest version (1.20.1-1.1).
wget set to manually installed.
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.
The following additional packages will be installed:
  libio-pty-perl libipc-run-perl libnginx-mod-http-auth-pam
  libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-subs-filter
  libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libsigsegv2 nginx-common nginx-full
  python3-pylint-plugin-utils
Suggested packages:
  gawk-doc libtime-duration-perl libtimedate-perl fcgiwrap nginx-doc ssl-cert
  sqlite3-doc
The following NEW packages will be installed:
  gawk libffi-dev libi2c-dev libio-pty-perl libipc-run-perl
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libsigsegv2 moreutils nginx nginx-common nginx-full python3-pylint-common
  python3-pylint-plugin-utils sqlite3
0 upgraded, 23 newly installed, 0 to remove and 187 not upgraded.
Need to get 2,514 kB/3,520 kB of archives.
After this operation, 8,457 kB of additional disk space will be used.
Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf nginx-common all 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-auth-pam armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-dav-ext armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-echo armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-geoip armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-image-filter armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-subs-filter armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:8 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-upstream-fair armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:9 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-http-xslt-filter armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:10 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-mail armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:11 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnginx-mod-stream armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:12 http://raspbian.raspberrypi.org/raspbian buster/main armhf nginx-full armhf 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:13 http://raspbian.raspberrypi.org/raspbian buster/main armhf nginx all 1.14.2-2+deb10u2
  404  Not Found [IP: 93.93.128.193 80]
Err:14 http://raspbian.raspberrypi.org/raspbian buster/main armhf sqlite3 armhf 3.27.2-3
  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/nginx-common_1.14.2-2+deb10u2_all.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-auth-pam_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-dav-ext_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-echo_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-geoip_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-image-filter_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-subs-filter_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-upstream-fair_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-http-xslt-filter_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-mail_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/libnginx-mod-stream_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/nginx-full_1.14.2-2+deb10u2_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nginx/nginx_1.14.2-2+deb10u2_all.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/sqlite3/sqlite3_3.27.2-3_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Searching for pip
Best match: pip 21.3.1
Adding pip 21.3.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3 script to /usr/local/bin
Installing pip3.9 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.3.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

#### Checking python 3 virtualenv
#### Virtualenv doesn't exist. Creating...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: virtualenv==20.7.0 in /usr/local/lib/python3.7/dist-packages (20.7.0)
Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv==20.7.0) (1.12.0)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/local/lib/python3.7/dist-packages (from virtualenv==20.7.0) (0.3.3)
Requirement already satisfied: backports.entry-points-selectable>=1.0.4 in /usr/local/lib/python3.7/dist-packages (from virtualenv==20.7.0) (1.1.0)
Requirement already satisfied: importlib-metadata>=0.12 in /usr/local/lib/python3.7/dist-packages (from virtualenv==20.7.0) (4.8.1)
Requirement already satisfied: filelock<4,>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from virtualenv==20.7.0) (3.3.1)
Requirement already satisfied: platformdirs<3,>=2 in /usr/local/lib/python3.7/dist-packages (from virtualenv==20.7.0) (2.4.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.12->virtualenv==20.7.0) (3.6.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.12->virtualenv==20.7.0) (3.10.0.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
created virtual environment CPython3.7.3.final.0-32 in 1024ms
  creator CPython3Posix(dest=/home/pi/Mycodo/env, clear=False, no_vcs_ignore=False, global=True)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==21.2.4, setuptools==58.1.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator

#### 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.2.4)
Collecting pip
  Using cached https://www.piwheels.org/simple/pip/pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-21.3.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.3.1)
Requirement already satisfied: setuptools in ./env/lib/python3.7/site-packages (58.1.0)
Collecting setuptools
  Using cached https://www.piwheels.org/simple/setuptools/setuptools-58.3.0-py3-none-any.whl (946 kB)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 58.1.0
    Uninstalling setuptools-58.1.0:
      Successfully uninstalled setuptools-58.1.0
Successfully installed setuptools-58.3.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting alembic==1.7.4
  Using cached https://www.piwheels.org/simple/alembic/alembic-1.7.4-py3-none-any.whl (209 kB)
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.2.0
  Using cached https://www.piwheels.org/simple/bcrypt/bcrypt-3.2.0-cp37-cp37m-linux_armv7l.whl (57 kB)
Collecting daemonize==2.5.0
  Using cached https://www.piwheels.org/simple/daemonize/daemonize-2.5.0-py2.py3-none-any.whl (5.2 kB)
Collecting distro==1.6.0
  Using cached https://www.piwheels.org/simple/distro/distro-1.6.0-py2.py3-none-any.whl (17 kB)
Collecting email_validator==1.1.3
  Using cached https://www.piwheels.org/simple/email-validator/email_validator-1.1.3-py2.py3-none-any.whl (18 kB)
Collecting filelock==3.3.0
  Using cached https://www.piwheels.org/simple/filelock/filelock-3.3.0-py3-none-any.whl (9.7 kB)
Collecting Flask==2.0.2
  Using cached https://www.piwheels.org/simple/flask/Flask-2.0.2-py3-none-any.whl (95 kB)
Collecting Flask_Accept==0.0.6
  Using cached https://www.piwheels.org/simple/flask-accept/flask_accept-0.0.6-py3-none-any.whl (3.8 kB)
Collecting Flask_Babel==2.0.0
  Using cached https://www.piwheels.org/simple/flask-babel/Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB)
Collecting Flask_Compress==1.10.1
  Using cached https://www.piwheels.org/simple/flask-compress/Flask_Compress-1.10.1-py3-none-any.whl (7.9 kB)
Collecting Flask_Limiter==1.4
  Using cached https://www.piwheels.org/simple/flask-limiter/Flask_Limiter-1.4-py3-none-any.whl (15 kB)
Collecting Flask_Login==0.5.0
  Using cached https://www.piwheels.org/simple/flask-login/Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB)
Collecting Flask_Marshmallow==0.14.0
  Using cached https://www.piwheels.org/simple/flask-marshmallow/flask_marshmallow-0.14.0-py2.py3-none-any.whl (10 kB)
Collecting Flask_RESTX==0.5.1
  Using cached https://www.piwheels.org/simple/flask-restx/flask_restx-0.5.1-py2.py3-none-any.whl (5.3 MB)
Collecting Flask_Session==0.4.0
  Using cached https://www.piwheels.org/simple/flask-session/Flask_Session-0.4.0-py2.py3-none-any.whl (7.5 kB)
Collecting Flask_SQLAlchemy==2.5.1
  Using cached https://www.piwheels.org/simple/flask-sqlalchemy/Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting Flask_Talisman==0.8.1
  Using cached https://www.piwheels.org/simple/flask-talisman/flask_talisman-0.8.1-py2.py3-none-any.whl (18 kB)
Collecting Flask_WTF==0.15.1
  Using cached https://www.piwheels.org/simple/flask-wtf/Flask_WTF-0.15.1-py2.py3-none-any.whl (13 kB)
Collecting geocoder==1.38.1
  Using cached https://www.piwheels.org/simple/geocoder/geocoder-1.38.1-py2.py3-none-any.whl (98 kB)
Collecting gunicorn==20.1.0
  Using cached https://www.piwheels.org/simple/gunicorn/gunicorn-20.1.0-py3-none-any.whl (81 kB)
Collecting influxdb==5.3.1
  Using cached https://www.piwheels.org/simple/influxdb/influxdb-5.3.1-py2.py3-none-any.whl (77 kB)
Collecting marshmallow_sqlalchemy==0.26.1
  Using cached https://www.piwheels.org/simple/marshmallow-sqlalchemy/marshmallow_sqlalchemy-0.26.1-py2.py3-none-any.whl (15 kB)
Collecting pyro5==5.12
  Using cached https://www.piwheels.org/simple/pyro5/Pyro5-5.12-py3-none-any.whl (77 kB)
Collecting pyserial==3.5
  Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting python-dateutil==2.8.2
  Using cached https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting requests==2.26.0
  Using cached https://www.piwheels.org/simple/requests/requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting setuptools==58.2.0
  Using cached https://www.piwheels.org/simple/setuptools/setuptools-58.2.0-py3-none-any.whl (946 kB)
Collecting SQLAlchemy==1.4.26
  Using cached https://www.piwheels.org/simple/sqlalchemy/SQLAlchemy-1.4.26-cp37-cp37m-linux_armv7l.whl (1.6 MB)
Collecting Werkzeug==2.0.2
  Using cached https://www.piwheels.org/simple/werkzeug/Werkzeug-2.0.2-py3-none-any.whl (288 kB)
Collecting WTForms==2.3.3
  Using cached https://www.piwheels.org/simple/wtforms/WTForms-2.3.3-py2.py3-none-any.whl (169 kB)
Collecting importlib-resources
  Using cached https://www.piwheels.org/simple/importlib-resources/importlib_resources-5.3.0-py3-none-any.whl (28 kB)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from alembic==1.7.4->-r /home/pi/Mycodo/install/requirements.txt (line 2)) (4.8.1)
Collecting Mako
  Using cached https://www.piwheels.org/simple/mako/Mako-1.1.5-py2.py3-none-any.whl (76 kB)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from bcrypt==3.2.0->-r /home/pi/Mycodo/install/requirements.txt (line 4)) (1.12.0)
Collecting cffi>=1.1
  Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.0-cp37-cp37m-linux_armv7l.whl (346 kB)
Collecting dnspython>=1.15.0
  Using cached https://www.piwheels.org/simple/dnspython/dnspython-2.1.0-py3-none-any.whl (241 kB)
Requirement already satisfied: idna>=2.0.0 in /usr/lib/python3/dist-packages (from email_validator==1.1.3->-r /home/pi/Mycodo/install/requirements.txt (line 7)) (2.6)
Collecting click>=7.1.2
  Using cached https://www.piwheels.org/simple/click/click-8.0.3-py3-none-any.whl (97 kB)
Collecting itsdangerous>=2.0
  Using cached https://www.piwheels.org/simple/itsdangerous/itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Jinja2>=3.0
  Using cached https://www.piwheels.org/simple/jinja2/Jinja2-3.0.2-py3-none-any.whl (133 kB)
Collecting pytz
  Using cached https://www.piwheels.org/simple/pytz/pytz-2021.3-py3-none-any.whl (511 kB)
Collecting Babel>=2.3
  Using cached https://www.piwheels.org/simple/babel/Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
Collecting brotli
  Using cached https://www.piwheels.org/simple/brotli/Brotli-1.0.9-cp37-cp37m-linux_armv7l.whl (2.5 MB)
Collecting limits
  Using cached https://www.piwheels.org/simple/limits/limits-1.5.1-py3-none-any.whl (16 kB)
Collecting marshmallow>=2.0.0
  Using cached https://www.piwheels.org/simple/marshmallow/marshmallow-3.14.0-py3-none-any.whl (47 kB)
Collecting jsonschema
  Using cached https://www.piwheels.org/simple/jsonschema/jsonschema-4.1.2-py3-none-any.whl (69 kB)
Collecting aniso8601>=0.82
  Using cached https://www.piwheels.org/simple/aniso8601/aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)
Collecting cachelib
  Using cached https://www.piwheels.org/simple/cachelib/cachelib-0.4.1-py3-none-any.whl (14 kB)
Collecting ratelim
  Using cached https://www.piwheels.org/simple/ratelim/ratelim-0.1.6-py2.py3-none-any.whl (4.0 kB)
Collecting future
  Using cached https://www.piwheels.org/simple/future/future-0.18.2-py3-none-any.whl (491 kB)
Collecting msgpack
  Using cached https://www.piwheels.org/simple/msgpack/msgpack-1.0.2-cp37-cp37m-linux_armv7l.whl (267 kB)
Collecting serpent>=1.27
  Using cached https://www.piwheels.org/simple/serpent/serpent-1.40-py3-none-any.whl (9.6 kB)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.26.0->-r /home/pi/Mycodo/install/requirements.txt (line 29)) (2018.8.24)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests==2.26.0->-r /home/pi/Mycodo/install/requirements.txt (line 29)) (1.24.1)
Collecting charset-normalizer~=2.0.0
  Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-2.0.7-py3-none-any.whl (42 kB)
Requirement already satisfied: MarkupSafe in /usr/lib/python3/dist-packages (from WTForms==2.3.3->-r /home/pi/Mycodo/install/requirements.txt (line 33)) (1.1.0)
Collecting pycparser
  Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting MarkupSafe
  Using cached https://www.piwheels.org/simple/markupsafe/MarkupSafe-2.0.1-cp37-cp37m-linux_armv7l.whl (31 kB)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->alembic==1.7.4->-r /home/pi/Mycodo/install/requirements.txt (line 2)) (3.10.0.2)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->alembic==1.7.4->-r /home/pi/Mycodo/install/requirements.txt (line 2)) (3.6.0)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Using cached https://www.piwheels.org/simple/pyrsistent/pyrsistent-0.18.0-cp37-cp37m-linux_armv7l.whl (100 kB)
Collecting attrs>=17.4.0
  Using cached https://www.piwheels.org/simple/attrs/attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Requirement already satisfied: decorator in /usr/lib/python3/dist-packages (from ratelim->geocoder==1.38.1->-r /home/pi/Mycodo/install/requirements.txt (line 22)) (4.3.0)
Installing collected packages: MarkupSafe, Werkzeug, pytz, pyrsistent, pycparser, Jinja2, itsdangerous, click, charset-normalizer, attrs, WTForms, SQLAlchemy, setuptools, serpent, requests, ratelim, python-dateutil, msgpack, marshmallow, Mako, limits, jsonschema, importlib-resources, future, Flask, dnspython, cffi, cachelib, brotli, Babel, aniso8601, pyserial, pyro5, marshmallow-sqlalchemy, influxdb, gunicorn, geocoder, Flask-WTF, Flask-Talisman, Flask-SQLAlchemy, Flask-Session, Flask-RESTX, Flask-Marshmallow, Flask-Login, Flask-Limiter, Flask-Compress, Flask-Babel, Flask-Accept, filelock, email-validator, distro, daemonize, bcrypt, argparse, alembic
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 1.1.0
    Not uninstalling markupsafe at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'MarkupSafe'. No files were found to uninstall.
  Attempting uninstall: Werkzeug
    Found existing installation: Werkzeug 0.14.1
    Not uninstalling werkzeug at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'Werkzeug'. No files were found to uninstall.
  Attempting uninstall: Jinja2
    Found existing installation: Jinja2 2.10
    Not uninstalling jinja2 at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'Jinja2'. No files were found to uninstall.
  Attempting uninstall: itsdangerous
    Found existing installation: itsdangerous 0.24
    Not uninstalling itsdangerous at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'itsdangerous'. No files were found to uninstall.
  Attempting uninstall: click
    Found existing installation: Click 7.0
    Not uninstalling click at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'Click'. No files were found to uninstall.
  Attempting uninstall: setuptools
    Found existing installation: setuptools 58.3.0
    Uninstalling setuptools-58.3.0:
      Successfully uninstalled setuptools-58.3.0
  Attempting uninstall: requests
    Found existing installation: requests 2.21.0
    Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'requests'. No files were found to uninstall.
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.7.3
    Not uninstalling python-dateutil at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'python-dateutil'. No files were found to uninstall.
  Attempting uninstall: Flask
    Found existing installation: Flask 1.0.2
    Not uninstalling flask at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'Flask'. No files were found to uninstall.
  Attempting uninstall: pyserial
    Found existing installation: pyserial 3.4
    Not uninstalling pyserial at /usr/lib/python3/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'pyserial'. No files were found to uninstall.
  Attempting uninstall: filelock
    Found existing installation: filelock 3.3.1
    Not uninstalling filelock at /usr/local/lib/python3.7/dist-packages, outside environment /home/pi/Mycodo/env
    Can't uninstall 'filelock'. No files were found to uninstall.
Successfully installed Babel-2.9.1 Flask-2.0.2 Flask-Accept-0.0.6 Flask-Babel-2.0.0 Flask-Compress-1.10.1 Flask-Limiter-1.4 Flask-Login-0.5.0 Flask-Marshmallow-0.14.0 Flask-RESTX-0.5.1 Flask-SQLAlchemy-2.5.1 Flask-Session-0.4.0 Flask-Talisman-0.8.1 Flask-WTF-0.15.1 Jinja2-3.0.2 Mako-1.1.5 MarkupSafe-2.0.1 SQLAlchemy-1.4.26 WTForms-2.3.3 Werkzeug-2.0.2 alembic-1.7.4 aniso8601-9.0.1 argparse-1.4.0 attrs-21.2.0 bcrypt-3.2.0 brotli-1.0.9 cachelib-0.4.1 cffi-1.15.0 charset-normalizer-2.0.7 click-8.0.3 daemonize-2.5.0 distro-1.6.0 dnspython-2.1.0 email-validator-1.1.3 filelock-3.3.0 future-0.18.2 geocoder-1.38.1 gunicorn-20.1.0 importlib-resources-5.3.0 influxdb-5.3.1 itsdangerous-2.0.1 jsonschema-4.1.2 limits-1.5.1 marshmallow-3.14.0 marshmallow-sqlalchemy-0.26.1 msgpack-1.0.2 pycparser-2.20 pyro5-5.12 pyrsistent-0.18.0 pyserial-3.5 python-dateutil-2.8.2 pytz-2021.3 ratelim-0.1.6 requests-2.26.0 serpent-1.40 setuptools-58.2.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pylibftdi==0.19.0
  Using cached https://www.piwheels.org/simple/pylibftdi/pylibftdi-0.19.0-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.4.1
  Using cached https://www.piwheels.org/simple/smbus2/smbus2-0.4.1-py2.py3-none-any.whl (11 kB)
Installing collected packages: smbus2, pylibftdi
Successfully installed pylibftdi-0.19.0 smbus2-0.4.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting testfixtures==6.18.3
  Using cached https://www.piwheels.org/simple/testfixtures/testfixtures-6.18.3-py2.py3-none-any.whl (96 kB)
Collecting mock==4.0.3
  Using cached https://www.piwheels.org/simple/mock/mock-4.0.3-py3-none-any.whl (28 kB)
Collecting pytest==6.2.5
  Using cached https://www.piwheels.org/simple/pytest/pytest-6.2.5-py3-none-any.whl (280 kB)
Collecting factory_boy==3.2.0
  Using cached https://www.piwheels.org/simple/factory-boy/factory_boy-3.2.0-py2.py3-none-any.whl (35 kB)
Collecting webtest==3.0.0
  Using cached https://www.piwheels.org/simple/webtest/WebTest-3.0.0-py3-none-any.whl (31 kB)
Collecting iniconfig
  Using cached https://www.piwheels.org/simple/iniconfig/iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting py>=1.8.2
  Using cached https://www.piwheels.org/simple/py/py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting toml
  Using cached https://www.piwheels.org/simple/toml/toml-0.10.2-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: importlib-metadata>=0.12 in /usr/local/lib/python3.7/dist-packages (from pytest==6.2.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (4.8.1)
Requirement already satisfied: attrs>=19.2.0 in ./env/lib/python3.7/site-packages (from pytest==6.2.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (21.2.0)
Collecting pluggy<2.0,>=0.12
  Using cached https://www.piwheels.org/simple/pluggy/pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting packaging
  Downloading https://www.piwheels.org/simple/packaging/packaging-21.2-py3-none-any.whl (40 kB)
Collecting Faker>=0.7.0
  Using cached https://www.piwheels.org/simple/faker/Faker-9.7.1-py3-none-any.whl (1.2 MB)
Collecting WebOb>=1.2
  Using cached https://www.piwheels.org/simple/webob/WebOb-1.8.7-py2.py3-none-any.whl (114 kB)
Collecting waitress>=0.8.5
  Using cached https://www.piwheels.org/simple/waitress/waitress-2.0.0-py3-none-any.whl (56 kB)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from webtest==3.0.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 6)) (4.7.1)
Requirement already satisfied: python-dateutil>=2.4 in ./env/lib/python3.7/site-packages (from Faker>=0.7.0->factory_boy==3.2.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (2.8.2)
Collecting text-unidecode==1.3
  Using cached https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Requirement already satisfied: typing-extensions>=3.10.0.2 in /usr/local/lib/python3.7/dist-packages (from Faker>=0.7.0->factory_boy==3.2.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (3.10.0.2)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.12->pytest==6.2.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (3.6.0)
Requirement already satisfied: pyparsing<3,>=2.0.2 in /usr/lib/python3/dist-packages (from packaging->pytest==6.2.5->-r /home/pi/Mycodo/install/requirements-testing.txt (line 4)) (2.2.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.4->Faker>=0.7.0->factory_boy==3.2.0->-r /home/pi/Mycodo/install/requirements-testing.txt (line 5)) (1.12.0)
Installing collected packages: text-unidecode, WebOb, waitress, toml, py, pluggy, packaging, iniconfig, Faker, webtest, testfixtures, pytest, mock, factory-boy
Successfully installed Faker-9.7.1 WebOb-1.8.7 factory-boy-3.2.0 iniconfig-1.1.1 mock-4.0.3 packaging-21.2 pluggy-1.0.0 py-1.10.0 pytest-6.2.5 testfixtures-6.18.3 text-unidecode-1.3 toml-0.10.2 waitress-2.0.0 webtest-3.0.0
--2021-10-29 10:54:12--  https://project-downloads.drogon.net/wiringpi-latest.deb
Resolving project-downloads.drogon.net (project-downloads.drogon.net)... 188.246.205.22, 2a03:9800:10:7b::2
Connecting to project-downloads.drogon.net (project-downloads.drogon.net)|188.246.205.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52260 (51K) [application/x-debian-package]
Saving to: ‘wiringpi-latest.deb’

     0K .......... .......... .......... .......... .......... 97%  241K 0s
    50K .                                                     100% 1974G=0.2s

2021-10-29 10:54:13 (246 KB/s) - ‘wiringpi-latest.deb’ saved [52260/52260]

(Reading database ... 153022 files and directories currently installed.)
Preparing to unpack wiringpi-latest.deb ...
Unpacking wiringpi (2.52) over (2.52) ...
Setting up wiringpi (2.52) ...
Processing triggers for man-db (2.8.5-2) ...

#### Ensuring compatible version of influxdb is installed ####
/home/pi/Mycodo/mycodo/scripts/upgrade_commands.sh: line 387: gawk: command not found
#### Incorrect InfluxDB version (v) installed. Installing v1.8.0-1...
(Reading database ... 153022 files and directories currently installed.)
Preparing to unpack influxdb_1.8.0_armhf.deb ...
Unpacking influxdb (1.8.0-1) over (1.8.0-1) ...
Setting up influxdb (1.8.0-1) ...
Processing triggers for man-db (2.8.5-2) ...

#### Creating InfluxDB database and user
#### Attempting to connect...
#### Could not connect to Influxdb. Waiting 60 seconds then trying again...
#### Attempting to connect...
#### Influxdb database and user successfully created

#### 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 `i2c'.
The user `mycodo' is already a member of `kmem'.
The user `mycodo' is already a member of `video'.
gpio:x:997:pi,mycodo
The user `mycodo' is already a member of `gpio'.
The user `pi' is already a member of `mycodo'.
The user `mycodo' is already a member of `pi'.

#### Compiling mycodo_wrapper

#### Creating symlinks to Mycodo executables

#### Creating files and directories

#### Setting permissions

#### Installing logrotate scripts
Mycodo logrotate script installed

#### Generating SSL certificates at /home/pi/Mycodo/mycodo/mycodo_flask/ssl_certs (replace with your own if desired)
Generating RSA private key, 4096 bit long modulus (2 primes)
............................................................................................................++++
.......................................................................................................++++
e is 65537 (0x010001)
writing RSA key
Signature ok
subject=O = mycodo, OU = mycodo, CN = mycodo
Getting Private key

#### 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/pt/LC_MESSAGES/messages.po to mycodo_flask/translations/pt/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/zh/LC_MESSAGES/messages.po to mycodo_flask/translations/zh/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/nb/LC_MESSAGES/messages.po to mycodo_flask/translations/nb/LC_MESSAGES/messages.mo
compiling catalog mycodo_flask/translations/sv/LC_MESSAGES/messages.po to mycodo_flask/translations/sv/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/fr/LC_MESSAGES/messages.po to mycodo_flask/translations/fr/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/sr/LC_MESSAGES/messages.po to mycodo_flask/translations/sr/LC_MESSAGES/messages.mo
compiling catalog mycodo_flask/translations/pl/LC_MESSAGES/messages.po to mycodo_flask/translations/pl/LC_MESSAGES/messages.mo

#### Generating widget HTML files

#### 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 `i2c'.
The user `mycodo' is already a member of `kmem'.
The user `mycodo' is already a member of `video'.
gpio:x:997:pi,mycodo
The user `mycodo' is already a member of `gpio'.
The user `pi' is already a member of `mycodo'.
The user `mycodo' is already a member of `pi'.

#### Compiling mycodo_wrapper

#### Creating symlinks to Mycodo executables

#### Creating files and directories

#### Setting permissions

#### Installing and configuring nginx web server
Removed /etc/systemd/system/mycodoflask.service.
Removed /etc/systemd/system/multi-user.target.wants/mycodoflask.service.
ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': No such file or directory
Failed to enable unit: Unit file nginx.service does not exist.
Created symlink /etc/systemd/system/multi-user.target.wants/mycodoflask.service → /home/pi/Mycodo/install/mycodoflask.service.
Created symlink /etc/systemd/system/mycodoflask.service → /home/pi/Mycodo/install/mycodoflask.service.

#### Restarting nginx
Failed to restart nginx.service: Unit nginx.service not found.
#### Restarting mycodoflask

#### 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 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...
#### Could not connect to http://localhost. Waiting 60 seconds then trying again (up to 10 times)...
#### Trying again...

#### Setting permissions

#### Restarting the Mycodo daemon
#### Mycodo Installer finished Fri 29 Oct 2021 11:06:38 AM EDT
#### Total install time: 14 minutes and 59 seconds

*********************************
** Mycodo finished installing! **
*********************************

Although the install finished, it doesn't necessarily mean it installed correctly.
If you experience issues, review the full install log located at:
/home/pi/Mycodo/install/setup.log

Go to https://192.168.1.128/, or whatever your device's
IP address is, to create an admin user and log in.

Draging and dropping files is how you attach. I mentioned attaching to avoid pasting very long in-line text.

Notice that you have many errors installing prerequisites. This is your issue and is likely an issue with your network.

My raspberry pie is connect via ethernet cable and the internet is stable i dont understand why it cant download the prerequisites.

Network issues can be temporary. Try installing again at a different time.