-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
502 Bad Gateway after ubuntu 20 upgrade Inventree 0.15.1 #7246
Comments
You need to check the startup logs of inventree (wherever they may be in your particular case). Error 502 means that nginx wasn't able to connect to the inventree backend, which may in turn mean that it's not even starting. |
@shapirus thank you for the hint. But i am just a user of the system. Could you give me a few more hints on what or where i should look. I found in /opt/inventree/log a setup_xxx.log file from yesterday but i could not find startup logs. I have checked the status for ngunx but that seems to be running. Any hints pls i really need inventree to be up and running again. Br Martijn |
This is all specific to your particular setup. Since nobody knows the details of how it is configured in your case, it is not likely that someone will be able to give a useful answer. There are many possible ways to start the inventree processes and save (or not save) their logs. |
I can partly understand but as mentioned im a user and yes i installed inventree myself on a bare ubuntu system. That said I assume there are default locations where inventree stores this log. You also refer to a manual where should i be able to find this? Alternatively there will also be a config somewhere that instructs Inventree how to act where to store its data where to save its logs etc. Can you guide me there? Or pint me to someone that provides helps a s a service? Im based in the Netherlands if that helps. Br martijn |
Question, they mention: sudo systemctl status php7.4-fpm which is not running on my machine:
But than i'm not sure if its required or not for inventree. meanwhile i have also tried reinstalling Inventree ( any hints help is very much apreciated. br martijn |
Can you share the logs here? Where there any error messages present in those logs? |
Hi Oliver, these are the latest files:
and the content of setup_2024-05-16_19_05_43.log.1
Pls let me know if you require more. Br Martijn |
@matmair the error message at the start of the log looks suspicious to me:
Is this potentially a mangled path in the installer since we split the source code into the new directories? |
have the same issue with a fresh install on a vm, within the logs i only found user warnings. not that he couldnt find the requirements.txt. |
@mabroens can you see if setting the |
Hi Oliver, I had seen the post and will try but can you be more specific to what config file. |
@asscherhofstede can you please specify exactly which config file you adjusted? |
@SchrodingersGat @mabroens this one |
I just tried but my config.yml does not have that line. |
okay im reproducing the error, i just got a clean ubuntu 20.04 install and had the same issue. I've downloaded with if found two config.yaml files.
and both files are same, on line 88 you'll see uncomment line 88 on config file let me know if it works @mabroens |
@asscherhofstede should i just copy config_template.yaml to config.yml and make a backup of the original? |
just tried that but without success. still bad gateway |
@mabroens can you show us your config file. |
sure. i had already copied it 5 above but this is the cat:
|
@mabroens thanks for the config file! sorry i didnt notice the previous ones. first i would set debug to True if you are trying to figure out the error. try the blank config file from this link: and uncomment line 88. |
yes i had already done that. see a few up. . copied it uncommented the line 88 and than open web browser to Inventree . but still bad gateway. Br Martijn |
Yes but thats the template from within your program i mean from the github. And if debug is true try every sysmtctl even ngix. |
ah that i missed :-) copied it to the system and you mention "otherwise i would suggest clean install." is that my preference would be to do a clean install ie remove all except for my dB |
I wanna try before that on last thing. Im using And try if you would like: Im not sure how to handle that, maybe its as easy as using the old db. @SchrodingersGat I think it realy depends on wich version u had before this. |
|
Oh and tried this: |
an otherthing i tried, for what its worth.:
|
happy to debug but would also love to get it operational again. if i run or do you have any recommendations steps to take? |
@mabroens to confirm did you set the Strange that you are not getting any logs from systemctl.. Can you show the output of:
|
root@ASM100:~# journalctl -u inventree-web-1.service |
here's my config.yaml content
|
@mabroens ok, so looks like the web server is actually functioning at least. Next we should look at the
(let's say it's Then run:
|
root@ASM100:~# systemctl list-units --type=service --state=running LOAD = Reflects whether the unit definition was properly loaded. mei 20 11:40:17 ASM100 systemd[1]: Starting A high performance web server and a reverse proxy server... |
maybe there is a another ngix running on port you wanna use. im on port 80
im comparing my
|
this is what i get when excuting these 2 commands
|
I have Inventree working again on my ubuntu 22.04 baremetal. together with @asscherhofstede we had a debug session and found that installing on a new machine (Manual Install ) the out of the box was also not working. next i tried copying my files from the 'broken machine' o the new ubuntu 20. i.e. eventually i compared /etc/inventree/config.yaml between the 2 machines and found that on the 'broken' machine all path settings where modified after the update. correcting this than it worked on both machines. so up and running again. |
next step now is to relocate my db and other relevant files to an external machine like dropbox or NAS. Br Martijn |
Ref: #7336 |
@mabroens thanks for adding in that additional detail, I'll make a note of it. |
Seems like the original issue was resolved - can we close this @mabroens? |
yes we can thank you |
Deployment Method
Steps to Reproduce
Describe the problem*
after runnig sudo apt update && sudo apt upgrade and rebooting my Ubuntu 20 machin i am no longer able to connect to inventree. not remote nor local.
i get :
Please instruct me how to fix this.
Steps to Reproduce
sudo apt update && sudo apt upgrade reboot
Relevant log output
No response
The text was updated successfully, but these errors were encountered: