* package tag results better * Add docs for missing frontend * better error indication Fixes #8875 * fix test assertations * fix test exception * group setup admin stuff * add operations supgourp * add basic structure * move error code * fix link * fix grammar issues
7.6 KiB
title
title |
---|
FAQ |
Frequently Asked Questions
Below is a list of frequently asked questions. If you are having issues with InvenTree please consult this list first!
Installation Issues
Installing on Windows
InvenTree installation is not officially supported natively on Windows. However you can run on a Windows platform using docker.
Command 'invoke' not found
If the invoke
command does not work, it means that the invoke tool has not been correctly installed.
Refer to the invoke installation guide for more information.
Can't find any collection named tasks
Refer to the invoke guide for more information.
Invoke Version
If the installed version of invoke is too old, users may see error messages during the installation procedure. Refer to the invoke guide for more information.
INVE-E1 - No frontend included
Make sure you are running a stable or production release of InvenTree. The frontend panel is not included in development releases. More Information: Error Codes - INVE-E1
No module named
During the install or update process, you may be presented with an error like:
ModuleNotFoundError: No module named 'django'
Either the named modules are not installed, or the virtual environment is not correctly activated.
Check Virtual Environment
Ensure that the virtual environment is correctly activated before running any InvenTree commands.
Check Invoke Tool
Ensure that the invoke tool is correctly installed inside the virtual environment, with:
pip install --upgrade --ignore-installed invoke
Install Required Python Packages
Ensure that all required python packages are installed by running:
invoke install
'str' object has no attribute 'removeSuffix'
This error occurs because your installed python version is not up to date. We require Python {{ config.extra.min_python_version }} or newer
You (or your system administrator) needs to update python to meet the minimum requirements for InvenTree.
InvenTree Site URL
During the installation or update process, you may see an error similar to:
'No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL'
If you see this error, it means that the INVENTREE_SITE_URL
environment variable has not correctly specified. Refer to the configuration documentation for more information.
Login Issues
If you have successfully started the InvenTree server, but are experiencing issues logging in, it may be due to the security interactions between your web browser and the server. While the default configuration should work for most users, if you do experience login issues, ensure that your server access settings are correctly configured.
Session Cookies
The 0.17.0 release included a change to the way that session cookies were handled. This change may cause login issues for existing InvenTree installs which are upgraded from an older version. System administrators should refer to the server access settings and ensure that the following settings are correctly configured:
- INVENTREE_SESSION_COOKIE_SECURE:
False
- INVENTREE_COOKIE_SAMESITE:
False
Update Issues
Sometimes, users may encounter unexpected error messages when updating their InvenTree installation to a newer version.
The most common problem here is that the correct sequence of steps has not been followed:
- Ensure that the InvenTree web server and background worker processes are halted
- Update the InvenTree software (e.g. using git or docker, depending on installation method)
- Run the
invoke update
command - Restart the web server and background worker processes
For more information, refer to the installation guides:
!!! warning "Invoke Update"
You must ensure that the invoke update
command is performed every time you update InvenTree
Breaking Changes
Before performing an update, check the release notes! Any breaking changes (changes which require user intervention) will be clearly noted.
Cannot import name get_storage_class
When running an install or update, you may see an error similar to:
ImportError: cannot import name 'get_storage_class' from 'django.core.files.storage'
In such a situation, it is likely that the automatic backup procedure is unable to run, as the required python packages are not yet installed or are unavailable.
To proceed in this case, you can skip the backup procedure by running the invoke update
command with the --skip-backup
flag:
invoke update --skip-backup
Feature x does not work after update
If a particular menu / item is not visible after updating InvenTree, or a certain function no longer seems to work, it may be due to your internet browser caching old versions of CSS and JavaScript files.
Before raising an issue, try hard-refreshing the browser cache:
Ctrl + Shift + R
or
Ctrl + F5
!!! tip "A Refreshing Solution" Performing a hard page refresh will remove old javascript files from your browser's cache
Background Worker Issues
Background Worker "Not Running"
The background worker process must be started separately to the web-server application.
From the top-level source directory, run the following command from a separate terminal, while the server is already running:
invoke worker
!!! info "Supervisor" A better option is to manage the background worker process using a process manager such as supervisor. Refer to the production server guide.
Docker Issues
File Sync Issues - Docker
When installing under Docker, sometimes issues may arise keeping persistent data in sync. Refer to the common issues section in the docker setup guide for further details.
Permission denied for mkdir: /home/inventree
If you see an error message like this:
Permission denied for mkdir: /home/inventree/data/static
It means that the user running the InvenTree server does not have permission to create the required directories.
Ensure that the user running the InvenTree server has permission to create the required directories. For example, if running the server as the inventree
user, ensure that the inventree
user has permission to create the required directories.
If you are using Docker to run the InvenTree server, ensure that the user that runs the docker daemon has permission to create the required directories in the volume.
Failed to mount local volume
If, when running InvenTree setup using docker, you see an error message like this:
Error response from daemon: failed to mount local volume:
This means that either:
- The specified directory does not exist on your local machine
- The docker user does not have write permission to the specified directory
In either case, ensure that the directory is available on your local machine and the user account has the required permissions.