mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-27 21:26:43 +00:00
Add FAQ entry about docker volume issues (#394)
This commit is contained in:
parent
82b773b63f
commit
98a416ebe8
@ -39,9 +39,9 @@ or
|
||||
|
||||
InvenTree installation is not officially supported natively on Windows. Install using the WSL framework.
|
||||
|
||||
### Command 'inv' / 'invoke' not found
|
||||
### Command 'invoke' not found
|
||||
|
||||
If the `inv` or `invoke` command does not work, it means that the [invoke](https://pypi.org/project/invoke/) python library has not been correctly installed.
|
||||
If the `invoke` command does not work, it means that the [invoke](https://pypi.org/project/invoke/) python library has not been correctly installed.
|
||||
|
||||
Update the installed python packages with PIP:
|
||||
|
||||
@ -67,3 +67,7 @@ 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](./start/production.md).
|
||||
|
||||
### File Sync Issues - Docker
|
||||
|
||||
When installing under [Docker](./start/docker.md), sometimes issues may arise keeping [persistent data](./start/docker.md#persistent-data) in sync. Refer to the [common issues](./start/docker_prod.md#common-issues) section in the docker setup guide for further details.
|
||||
|
@ -102,6 +102,18 @@ InvenTree stores any persistent data (e.g. uploaded media files, database data,
|
||||
!!! info "Data Directory"
|
||||
Make sure you change the path to the local directory where you want persistent data to be stored.
|
||||
|
||||
#### Common Issues
|
||||
|
||||
When configuring a docker install, sometimes a misconfiguration can cause peculiar issues where it seems that the installation is functioning correctly, but uploaded files and plugins do not "persist" across sessions. In such cases, the "mounted" volume has not mapped to a directory on your local filesystem. This may occur if you have tried multiple setup options without clearing existing volume bindings.
|
||||
|
||||
!!! tip "Start with a clean slate"
|
||||
To prevent such issues, it is recommended that you start with a "clean slate" if you have previously configured an InvenTree installation under docker.
|
||||
|
||||
If you have previously setup InvenTree, remove existing volume bindings using the following command:
|
||||
|
||||
```docker volume rm -f inventree-production_inventree_data```
|
||||
|
||||
|
||||
## Production Setup Guide
|
||||
|
||||
### Edit Environment Variables
|
||||
|
Loading…
x
Reference in New Issue
Block a user