InvenTree: Error 503 during large/fast API access
Please verify that this bug has NOT been raised before.
- I checked and didn’t find similar issue
Describe the bug*
When accessing the API for e.g. going through all parts and modifying a parameter using inventree python library, we receive error 503 html page. It happens randomly. The server is running apache2 and gunicorn. Any tuning of timeout parameters or number of gunicorn / worker process was not successful. In the plugin settings only the “Enable * integration” are activated. No other plugins.
The only working setup is to disable plugin support (False) in config.yaml before starting the servers
For me it looks like there is an other process that “blocks” API access from time to time - but only if plugin sub-system is enabled
Steps to Reproduce
Bare metal with production setup - apache2 and gunicorn inventree python module and several hundreds of API requests
Expected behavior
no error messages
Deployment Method
- Docker
- Bare metal
Version Information
inventree 0.7x, 8.0 python 3.10 with inventree
Relevant log output
couldn't find any useful debug messages
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (9 by maintainers)
After I canceled the parallel stuck “python3 manage.py”, everything worked. The process was an artifact of a “docker exec” call to correct a syntax error in the configuration that prevented the container from restarting in the first place.
@SchrodingersGat, thanks for the helpful hints. Unfortunately I no longer have the messages from the console where you could see this. I think we’ll document it here for the next person who has problems with the keywords.
I have the same problem with a docker installation. Sporadic delivery of a html-page, displaying “The site is currently in maintenance and should be up again soon!” while api calls. after hours of fiddling with the inventree debug configuration i got no helpfull debug output adressing this issue.
the errors occur through all api endpoints. even if the gunicorn server only has to deliver files, the 503 error occurs sporadically.
i really don’t spot a pattern in the error. if you ask google about the sympton, only this one issue really comes up. i have already removed the “inventree-proxy” from the setup and am talking directly to the “inventree-server”.
i would like to solve the problem, but i have no idea how to get more information to narrow down the problem. changing “max_requests” to 0 does not fix the behavior.
the inventree version is 0.13.2. @SchrodingersGat can we re-open this issue und track it down?