2023-02-09 00:42:20 +01:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Troubleshooting
|
|
|
|
---
|
|
|
|
|
|
|
|
# Troubleshooting
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
Sometimes things go wrong and Part-DB shows an error message. This page should help you to solve the problem.
|
|
|
|
|
|
|
|
## Error messages
|
2023-10-15 13:21:14 +02:00
|
|
|
|
|
|
|
When a common, easy fixable error occurs (like a non-up-to-date database), Part-DB will show you some short instructions
|
|
|
|
on how to fix the problem. If you have a problem that is not listed here, please open an issue on GitHub.
|
2023-02-09 00:42:20 +01:00
|
|
|
|
|
|
|
## General procedure
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
If you encounter an error, try the following steps:
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2024-02-23 14:26:17 +01:00
|
|
|
* Clear the cache of Part-DB with the console command:
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
```bash
|
|
|
|
php bin/console cache:clear
|
|
|
|
```
|
2023-10-15 13:21:14 +02:00
|
|
|
|
|
|
|
* Check if the database needs an update (and perform it when needed) with the console command:
|
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
```bash
|
|
|
|
php bin/console doctrine:migrations:migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
If this does not help, please [open an issue on GitHub](https://github.com/Part-DB/Part-DB-symfony).
|
|
|
|
|
2024-02-23 14:26:17 +01:00
|
|
|
## Search for the user and reset the password:
|
2023-04-11 12:11:08 +02:00
|
|
|
|
2023-10-15 13:21:14 +02:00
|
|
|
You can list all users with the following command: `php bin/console partdb:users:list`
|
|
|
|
To reset the password of a user you can use the following
|
|
|
|
command: `php bin/console partdb:users:set-password [username]`
|
2023-04-11 12:11:08 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
## Error logs
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
Detailed error logs can be found in the `var/log` directory.
|
|
|
|
When Part-DB is installed directly, the errors are written to the `var/log/prod.log` file.
|
|
|
|
|
2023-10-15 13:21:14 +02:00
|
|
|
When Part-DB is installed with Docker, the errors are written directly to the console output.
|
2023-02-09 00:42:20 +01:00
|
|
|
You can see the logs with the following command, when you are in the folder with the `docker-compose.yml` file
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-02-09 00:42:20 +01:00
|
|
|
```bash
|
|
|
|
docker-compose logs -f
|
|
|
|
```
|
|
|
|
|
|
|
|
Please include the error logs in your issue on GitHub, if you open an issue.
|
|
|
|
|
|
|
|
## Report Issue
|
2023-10-15 13:21:14 +02:00
|
|
|
|
2023-04-11 12:11:08 +02:00
|
|
|
If an error occurs, or you found a bug, please [open an issue on GitHub](https://github.com/Part-DB/Part-DB-symfony).
|