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
{{ message }}
Repository navigation
Install script does not install static web files #9787
Ugh yes I just realised the issue is the VM has too little memory so something go OOM'd:
# POI12| u | InvenTree database migrations completed
# POI12| u | Updating frontend...
# POI12| u | Downloading frontend...
# POI12| u | [INFO] Running in package environment, got commit "2a7f5f94c8dc1d05b417e654225d4da75f7791bd" from VERSION file
# POI12| u | Frontend commit is already `2a7f5f94c8dc1d05b417e654225d4da75f7791bd`
# POI12| u | ERROR: InvenTree command failed: 'python3 manage.py prerender'
# POI12| u | - Refer to the error messages in the log above for more information
# POI12| Set permissions for data dir and media: /opt/inventree/data
# POI13| Setting up InvenTree config values
# POI13| Writing the settings to the config file /etc/inventree/config.yaml
and in the console:
[ 912.241357] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/inventree-worker-1.service,task=python,pid=9093,uid=999
[ 912.242598] Out of memory: Killed process 9093 (python) total-vm:263468kB, anon-rss:136348kB, file-rss:0kB, shmem-rss:32kB, UID:999 pgtables:396kB oom_score_adj:0
I think the install script should check the exit code for the various stages of the installer (or even just add set -e so it will not proceed if something fails). This would help with #9625 and this.
There also seems to be something off with this (undescribed thus I am guessing) environment, as there are a bunch of sudo: unable to resolve host inventreetest: Name or service not known sprinkled all around. That might be an issue with hostnames.
There also seems to be something off with this (undescribed thus I am guessing) environment, as there are a bunch of sudo: unable to resolve host inventreetest: Name or service not known sprinkled all around. That might be an issue with hostnames.
Yes the hostname of the VM didn't resolve.
The root cause was insufficient memory so the OOM killed the install combined with the package script not checking for errors.
There are only so many checks and balances that we can run, and it's hard to account for every possible error case. In this case can you clean the install and start again?
Activity
SchrodingersGat commentedon Jun 16, 2025
@DanielO it's possible that an error in the script caused it to fault part way during the process. Can you please share the full output text?
DanielO commentedon Jun 16, 2025
Ugh yes I just realised the issue is the VM has too little memory so something go OOM'd:
and in the console:
I think the install script should check the exit code for the various stages of the installer (or even just add
set -eso it will not proceed if something fails). This would help with #9625 and this.SchrodingersGat commentedon Jun 16, 2025
@DanielO thanks for the feedback. Did you succeed after increasing VM memory?
DanielO commentedon Jun 16, 2025
Unfortunately no, it ends up broken a different way:
ie the
collectpluginsprocess fails and the admin user data is blank (notably in the original failed install it was not blank)If I run
sudo apt remove inventreeandsudo rm -rf /opt/inventree /etc/inventreethen re-run the script it works.SchrodingersGat commentedon Jun 16, 2025
This looks similar to #9789 in terms of what happens when the installer fails part way through and then is re-attempted.
@matmair is this the recommended approach? We should add to the docs if so
matmair commentedon Jun 17, 2025
I can not reproduce this so no idea
matmair commentedon Jun 17, 2025
There also seems to be something off with this (undescribed thus I am guessing) environment, as there are a bunch of
sudo: unable to resolve host inventreetest: Name or service not knownsprinkled all around. That might be an issue with hostnames.DanielO commentedon Jun 17, 2025
Yes the hostname of the VM didn't resolve.
The root cause was insufficient memory so the OOM killed the install combined with the package script not checking for errors.
matmair commentedon Jun 17, 2025
I see no issue here and would close this as not planned
DanielO commentedon Jun 18, 2025
The underlying issue is the package scripts do not check for errors and continue running when earlier steps have failed.
This makes it difficult to actual error (and rectify it).
github-actions commentedon Aug 17, 2025
This issue seems stale. Please react to show this is still important.
DanielO commentedon Aug 17, 2025
It's still an issue!
SchrodingersGat commentedon Aug 17, 2025
There are only so many checks and balances that we can run, and it's hard to account for every possible error case. In this case can you clean the install and start again?
DanielO commentedon Aug 17, 2025
I think checking if a process returns non-zero is pretty straight forward and would detect this issue.
Or, have
set -eat the top - then it won't look like it succeeded.SchrodingersGat commentedon Aug 17, 2025
Would you be willing to submit a PR to implement this? Perhaps @matmair could review it - he's the expert on the installer 👍