You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Sudura, I had the same issue. When installed as root it installed with no errors, however I can not get it to run as it only displays a 502 error. The 502 error may be related to : #6156, I will post my findings there.
yeah, does look like a permission problem.. either make the file readable for other or elevate yourself as root and then run the installer. you may need to fix some permissions afterwards.
Your user is not allowed to modify the apt keys, you will need to run the command with sudo wget -qO install.sh https://get.inventree.org/ && sudo bash install.sh
With wget -qO install.sh https://get.inventree.org/ && sudo bash install.sh the installation works, now its the above mentioned 502 Bad Gateway error
@matmair I can confirm the information that @Sudura said. As such we can close and maybe update the one line installer to include the sudo. Thanks for the help.
basilisvirus@Zen:~/invtree$ sudo wget -qO install.sh https://get.inventree.org && bash install.sh
### Installer for InvenTree - source: inventree/stable
### Detected distribution: Ubuntu 22.04
### Installing required packages for download
Selecting previously unselected package apt-transport-https.
(Reading database ... 24215 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.4.12_all.deb ...
Unpacking apt-transport-https (2.4.12) ...
Setting up apt-transport-https (2.4.12) ...
### Installing libssl1.1
deb http://security.ubuntu.com/ubuntu focal-security main
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2954 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [444 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [13.2 kB]
Fetched 3636 kB in 2s (1504 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libssl1.1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1323 kB of archives.
After this operation, 4131 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu focal-security/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.22 [1323 kB]
Fetched 1323 kB in 1s (1092 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 24219 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.22) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.22) ...
Processing triggers for libc-bin (2.35-0ubuntu3.7) ...
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
### Getting and adding key
tee: /etc/apt/trusted.gpg.d/pkgr-inventree.gpg: Permission denied
But then I used: basilisvirus@Zen:~/invtree$ sudo wget -qO install.sh https://get.inventree.org && sudo bash install.sh
Activity
SparkeyinVA commentedon Jan 8, 2024
@Sudura, I had the same issue. When installed as root it installed with no errors, however I can not get it to run as it only displays a 502 error. The 502 error may be related to : #6156, I will post my findings there.
tomse commentedon Jan 8, 2024
yeah, does look like a permission problem.. either make the file readable for other or elevate yourself as root and then run the installer. you may need to fix some permissions afterwards.
sudo chmod o+r /etc/apt/trusted.gpg.d/pkgr-inventree.gpg"run script"
or
sudo -i"run script"
matmair commentedon Jan 8, 2024
Your user is not allowed to modify the apt keys, you will need to run the command with sudo
wget -qO install.sh https://get.inventree.org/ && sudo bash install.shSudura commentedon Jan 10, 2024
With
wget -qO install.sh https://get.inventree.org/ && sudo bash install.shthe installation works, now its the above mentioned 502 Bad Gateway errormatmair commentedon Jan 10, 2024
So we can close this?
SparkeyinVA commentedon Jan 10, 2024
@matmair I can confirm the information that @Sudura said. As such we can close and maybe update the one line installer to include the sudo. Thanks for the help.
Basilisvirus commentedon May 25, 2024
Had the same issue when trying:
But then I used:
basilisvirus@Zen:~/invtree$ sudo wget -qO install.sh https://get.inventree.org && sudo bash install.shand installed correctly.
SchrodingersGat commentedon May 26, 2024
@Basilisvirus thanks for that additional information, I will add a note to the documentation: #7339