Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install errors and broken installation - unstyled login webpage and can't login #8715

Open
1 task done
grojguy opened this issue Dec 18, 2024 · 1 comment
Open
1 task done
Labels
question This is a question setup Relates to the InvenTree setup / installation process

Comments

@grojguy
Copy link

grojguy commented Dec 18, 2024

Deployment Method

  • Installer

Describe the problem*

Using the scripted installer on Debian 11 VPS...

  1. I get multiple warnings/errors during install. See install log excerpts in the "Relevant log output" section below.

  2. The webpage loads, but is unstyled...
    Image

  3. I am not able to login with the 'admin' credentials provided after the install.

  4. Also, selecting the new UI link results in a blank page.

This is my first install ever, so not very encouraging. Please help! Thank you.

Steps to Reproduce

First install attempt:
sudo wget -qO install.sh https://get.inventree.org && sudo bash install.sh
Result:
setup_2024-12-18_03_49_16.log
Problem as described above under "Describe the problem"

Uninstall (best guess, could find no guidance in docs)

sudo apt remove inventree
sudo rm -Rf /etc/inventree /opt/inventree

Install yarn to address 'yarn: command not found' error in first install log
sudo apt install yarn

Second install attempt:
sudo wget -qO install.sh https://get.inventree.org && sudo bash install.sh
Result:
setup_2024-12-18_17_03_37.log
Same problem as described above under "Describe the problem"

Relevant log output (from second install attempt)

error 1 excerpt:

/opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Failed to set maintenance mode state
2024-12-18 17:04:09,195 WARNING Failed to set maintenance mode state
/opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
2024-12-18 17:04:14,243 INFO Backing Up Database: /opt/inventree/data/database.sqlite3
2024-12-18 17:04:14,244 DEBUG Backup size: 70.0 B
2024-12-18 17:04:14,244 INFO Writing file to default-Wagner-Engineering-2024-12-18-170414.dump.gz
/opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
2024-12-18 17:04:17,775 DEBUG Backup size: 86.0 B
2024-12-18 17:04:17,776 INFO Writing file to Wagner-Engineering-2024-12-18-170417.tar.gz
/opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Failed to set maintenance mode state
2024-12-18 17:04:23,412 WARNING Failed to set maintenance mode state

error 2 excerpt:

# POI12| u |   Applying report.0019_returnorderreport_metadata... OK
/opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
# POI12| u |   Applying report.0020_stocklocationreport... OK

error 3 excerpt:

# POI12| u | Adding plugin sample static content
# POI12| u | - /opt/inventree/src/backend/InvenTree/plugin/samples/static
# POI12| u | /opt/inventree/env/lib/python3.9/site-packages/django/db/models/base.py:366: RuntimeWarning: Model 'company.company' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models.
# POI12| u |   new_class._meta.apps.register_model(new_class._meta.app_label, new_class)
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
t' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models.
# POI12| u |   new_class._meta.apps.register_model(new_class._meta.app_label, new_class)

error 4 excerpt:

# POI12| u | Updating frontend...
# POI12| u | Compiling frontend code...
# POI12| u | Installing frontend dependencies
# POI12| u | ERROR: InvenTree command failed: 'yarn install'
# POI12| u | - Refer to the error messages in the log above for more information

final installation completion output:

# POI14| Setting up InvenTree site URL
# POI15| Starting InvenTree
# POI15| Started InvenTree
# POI16| Printing Final message
####################################################################################
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://20.57.155.162/

Admin user data:
   Email: [email protected]
   Username: admin
   Password: O36Rw4qkB9upeeq8ARCq5xqCG2bkYGOnQ/NUU9EI0tk=
####################################################################################
# POI17| Running postinstall script - done - Wed Dec 18 17:05:51 UTC 2024
### Install done!
@grojguy grojguy added question This is a question setup Relates to the InvenTree setup / installation process triage:not-checked Item was not checked by the core team labels Dec 18, 2024
@matmair matmair removed the triage:not-checked Item was not checked by the core team label Dec 21, 2024
@matmair
Copy link
Member

matmair commented Dec 21, 2024

Your logs are missing the first few lines. There should be info like the following, which will be helpful in debugging:

root@debian-s-2vcpu-4gb-amd-fra1-01:~# wget -qO install.sh https://get.inventree.org && bash install.sh
### Installer for InvenTree - source: inventree/stable
### Detected distribution: Debian GNU/Linux 11
### Installing required packages for download
### Getting and adding key
### Adding package source
### Updating package lists
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:6 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:7 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/debian 11 InRelease [1857 B]
Get:8 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/debian 11/main amd64 Packages [7024 B]
Fetched 8881 B in 1s (16.7 kB/s)
Reading package lists... Done
### Setting installer args
### Installing InvenTree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

No branches or pull requests

2 participants