mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-14 21:22:20 +00:00
[docs] Troubleshooting Guide (#10574)
* [docs] troubleshooting guide Adds a rough troubleshooting guide * Add docs for showing docker logs
This commit is contained in:
@@ -6,6 +6,10 @@ title: FAQ
|
|||||||
|
|
||||||
Below is a list of frequently asked questions. If you are having issues with InvenTree please consult this list first!
|
Below is a list of frequently asked questions. If you are having issues with InvenTree please consult this list first!
|
||||||
|
|
||||||
|
Also, you can refer to our [GitHub page](https://github.com/inventree/inventree/issues) for known issues and bug reports - perhaps your issue has already been reported!
|
||||||
|
|
||||||
|
If you cannot resolve the issue, please refer to the [troubleshooting guide](#troubleshooting-guide).
|
||||||
|
|
||||||
## Installation Issues
|
## Installation Issues
|
||||||
|
|
||||||
### Installing on Windows
|
### Installing on Windows
|
||||||
@@ -191,3 +195,76 @@ This means that either:
|
|||||||
- The docker user does not have write permission to the specified directory
|
- 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.
|
In either case, ensure that the directory is available *on your local machine* and the user account has the required permissions.
|
||||||
|
|
||||||
|
## Troubleshooting Guide
|
||||||
|
|
||||||
|
If you are struggling with an issue which is not covered in the FAQ above, please refer to the following troubleshooting steps.
|
||||||
|
|
||||||
|
Even if you cannot immediately resolve the issue, the information below will be very useful when reporting the issue on GitHub.
|
||||||
|
|
||||||
|
### Run Update Step
|
||||||
|
|
||||||
|
If you have recently installed or updated your InvenTree instance, make sure that you have run the `invoke update` command, which will perform any required database migrations and other update tasks. This is a *critical step* after any system update.
|
||||||
|
|
||||||
|
#### Docker
|
||||||
|
|
||||||
|
If you are have installed InvenTree via Docker:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose exec inventree-server invoke update
|
||||||
|
```
|
||||||
|
#### Installer
|
||||||
|
|
||||||
|
If you have installed InvenTree via the installer script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
inventree run invoke update
|
||||||
|
```
|
||||||
|
|
||||||
|
### Logged Errors
|
||||||
|
|
||||||
|
Look at the logged error reports in the admin section - you will need to be an administrator to access this section. If a critical error has occurred, it may be logged here.
|
||||||
|
|
||||||
|
### GitHub Issues
|
||||||
|
|
||||||
|
Before raising a new issue, please check the [GitHub issues page](https://github.com/inventree/inventree) for reported issues. If your issue is a common one, it may already have been reported - and perhaps even resolved!
|
||||||
|
|
||||||
|
### Web Browser Console
|
||||||
|
|
||||||
|
If you are experiencing issues with the web interface, you can open the developer console in your web browser to check for error messages. This may vary slightly between web browsers, but there is a wealth of information available online if you need help.
|
||||||
|
|
||||||
|
Once the developer console is open, there are two places to check for error messages:
|
||||||
|
|
||||||
|
#### Console Tab
|
||||||
|
|
||||||
|
Navigate to the *Console* tab in the developer tools. Any error messages will be highlighted in red. They may indicate either a rendering issue, or a problem with a network request.
|
||||||
|
|
||||||
|
#### Network Tab
|
||||||
|
|
||||||
|
Navigate to the *Network* tab in the developer tools. Check for any requests which have a status code of 400 or greater (indicating an error). Click on the request to see more information about the error.
|
||||||
|
|
||||||
|
### Server Logs
|
||||||
|
|
||||||
|
Finally, you can check the server logs for error messages. The location of the server logs will depend on how you have installed InvenTree.
|
||||||
|
|
||||||
|
#### Docker
|
||||||
|
|
||||||
|
If you are using Docker, you can view the server logs with the following command:
|
||||||
|
|
||||||
|
To display logs for all running containers:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs
|
||||||
|
```
|
||||||
|
|
||||||
|
Refer to the [docker documentation](./start/docker_install.md#viewing-logs) for more information.
|
||||||
|
|
||||||
|
#### Installer
|
||||||
|
|
||||||
|
If you are using the installer script, you can view the server logs with the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
inventree logs
|
||||||
|
```
|
||||||
|
|
||||||
|
Refer to the [installer documentation](./start/installer.md#viewing-logs) for more information.
|
||||||
|
@@ -183,6 +183,32 @@ docker compose run --rm inventree-server invoke export-records -f /home/inventre
|
|||||||
|
|
||||||
This will export database records to the file `data.json` in your mounted volume directory.
|
This will export database records to the file `data.json` in your mounted volume directory.
|
||||||
|
|
||||||
|
## Viewing Logs
|
||||||
|
|
||||||
|
To view the logs for the InvenTree container(s), use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs
|
||||||
|
```
|
||||||
|
|
||||||
|
To view the logs for a specific container, use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs <container-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs inventree-server
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also "follow" the logs in real time, using the `-f` flag:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose logs -f
|
||||||
|
```
|
||||||
|
|
||||||
## Further Configuration
|
## Further Configuration
|
||||||
|
|
||||||
### Check your security posture
|
### Check your security posture
|
||||||
|
Reference in New Issue
Block a user