Repository navigation
Closed
Description
Deployment Method
- Installer
- Docker Development
- Docker Production
- Bare metal Development
- Bare metal Production
- Digital Ocean image
- Other (please provide a link
Steps to Reproduce
Describe the problem*
I created a Ubuntu 22.04 VM and ran the installer script. After it said Install done, i restarted the VM & during the bootup process saw that "inventree-web-1.service" & "inventree-worker-1.service" services failed to start
sudo systemctl status inventree-web-1.service
× inventree-web-1.service
Loaded: loaded (/etc/systemd/system/inventree-web-1.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-05-22 01:13:07 UTC; 32s ago
Process: 995 ExecStart=/usr/bin/inventree run web (code=exited, status=127)
Main PID: 995 (code=exited, status=127)
CPU: 51ms
May 22 01:13:07 Inventree systemd[1]: inventree-web-1.service: Scheduled restart job, restart counter is at 5.
May 22 01:13:07 Inventree systemd[1]: Stopped inventree-web-1.service.
May 22 01:13:07 Inventree systemd[1]: inventree-web-1.service: Start request repeated too quickly.
May 22 01:13:07 Inventree systemd[1]: inventree-web-1.service: Failed with result 'exit-code'.
May 22 01:13:07 Inventree systemd[1]: Failed to start inventree-web-1.service.
yodaphone@Inventree:~$ sudo systemctl status inventree-worker-1.service
× inventree-worker-1.service
Loaded: loaded (/etc/systemd/system/inventree-worker-1.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-05-22 01:13:07 UTC; 56s ago
Process: 997 ExecStart=/usr/bin/inventree run worker (code=exited, status=127)
Main PID: 997 (code=exited, status=127)
CPU: 55ms
May 22 01:13:07 Inventree systemd[1]: inventree-worker-1.service: Scheduled restart job, restart counter is at 5.
May 22 01:13:07 Inventree systemd[1]: Stopped inventree-worker-1.service.
May 22 01:13:07 Inventree systemd[1]: inventree-worker-1.service: Start request repeated too quickly.
May 22 01:13:07 Inventree systemd[1]: inventree-worker-1.service: Failed with result 'exit-code'.
May 22 01:13:07 Inventree systemd[1]: Failed to start inventree-worker-1.service.
I have tried to run the installer by creating a user called inventree but its the same issue
i noticed one thing, the automated installer install python3.10 and there is an error "bash: line 1: python3.9: command not found"
when i visit the website i get a "502 Bad Gateway" error
I'm totally new to this and any help will be really appreciated
Steps to Reproduce
Just ran the installer as per the instructions.
Relevant log output
this is the setuplog
# Setting base environment variables
# No config file found: /etc/inventree/config.yaml, using envs or defaults
# Collected environment variables:
# INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
# INVENTREE_STATIC_ROOT=/opt/inventree/data/static
# INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
# INVENTREE_PLUGINS_ENABLED=true
# INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
# INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
# INVENTREE_DB_ENGINE=sqlite3
# INVENTREE_DB_NAME=/opt/inventree/data/database.sqlite3
# INVENTREE_DB_USER=sampleuser
# INVENTREE_DB_HOST=samplehost
# INVENTREE_DB_PORT=123456
# Getting the IP address of the server via web service
IP address is x.x.x.x
# Setting up python environment
bash: line 1: python3.9: command not found
bash: line 1: env/bin/pip: No such file or directory
# Unlinking default nginx config\n# Old file still in /etc/nginx/sites-available/default
# Stopping nginx
# Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
# Starting nginx
# (Re)creating init scripts
Created symlink /etc/systemd/system/multi-user.target.wants/inventree.service → /etc/systemd/system/inventree.service.
Created symlink /etc/systemd/system/inventree.service.wants/inventree-web.service → /etc/systemd/system/inventree-web.service.
Scaling up...
Created symlink /etc/systemd/system/inventree-web.service.wants/inventree-web-1.service → /etc/systemd/system/inventree-web-1.service.
--> done.
Created symlink /etc/systemd/system/inventree.service.wants/inventree-worker.service → /etc/systemd/system/inventree-worker.service.
Scaling up...
Created symlink /etc/systemd/system/inventree-worker.service.wants/inventree-worker-1.service → /etc/systemd/system/inventree-worker-1.service.
--> done.
# Enabling InvenTree on boot
# Creating admin user data
# Stopping InvenTree
# Updating InvenTree
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.37.1)
bash: line 1: invoke: command not found
# Set permissions for data dir and media: /opt/inventree/data
# Setting up InvenTree config values
# Writing the settings to the config file /etc/inventree/config.yaml
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
sed: can't read /etc/inventree/config.yaml: No such file or directory
chown: cannot access '/etc/inventree/config.yaml': No such file or directory
# Starting InvenTree
####################################################################################
This InvenTree install uses nginx, the settings for the webserver can be found in
/etc/nginx/sites-enabled/inventree.conf
Try opening InvenTree with either
http://localhost/ or http://x.x.x.x/
Admin user data:
Email: [email protected]
Username: admin
Password: OpdnpV/xxxxxxxxxxxxxxxx
####################################################################################
Activity
SchrodingersGat commentedon May 22, 2024
Looks like a number of errors have occurred during the installer process.
@matmair is it possible to exit the install if any of the subprocesses fail? It appears that the installer carries on regardless, giving users the apperance that it has "worked"...
mugane-dj commentedon May 22, 2024
I experienced the same issue when running
apt install --only-upgrade inventree. I used installer on the first installation. Below are some error traces:SchrodingersGat commentedon May 22, 2024
Looks like the python requirements are not being installed... @matmair is there any way for users to bypass the incorrect path for the requirements file?
matmair commentedon May 23, 2024
No the requirements are needed for the install process.
SchrodingersGat commentedon May 26, 2024
Ref: #7336
matmair commentedon May 27, 2024
@yodaphone can you confirm this was resolved with the latest update?
second-string commentedon May 27, 2024
I just ran the install script on a freshly spun-up server and I'm still hitting some of the same errors.
and
I think in my last install I had to manually copy the
datafolder in from the repo or maybe the docker image myself, and I tweaked my own nginx config but don't know if that was due to install or just I did it to match what I wanted better. Are we supposed to set up a python virtual env with python3.9 on the path before we run the install script?matmair commentedon May 27, 2024
@second-string are you running on ubuntu 22.04 using the installer script too? If not I would appreciate a separate bug report
second-string commentedon May 27, 2024
Yes also on 22.04. Do you want a fully separate issue or just a full log from me?
matmair commentedon May 27, 2024
And you are using the installer script - you are mentioning copying data and docker stuff, which has nothing to do with the installer script
yodaphone commentedon May 27, 2024
Hi matthias, i havent tried again as i moved on to a docker based install. but will try it once again, please give me a day or 2
second-string commentedon May 28, 2024
Yes correct. I realised after I posted my comment that my previous install was done bare metal manually, because I couldn't get the install script working ~a few months ago either. No docker for my actual install ever, I might have just pulled that container to get the proper
datafiles for the frontend. I can't remember if I got them from there or straight from the repo, I just remember that I had to manually download and copy them in.mugane-dj commentedon May 29, 2024
@SchrodingersGat The install script worked on Ubuntu 20.04 on my side.