You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrade/1_to_2.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,15 @@ The upgrade process works very similar to a normal (minor release) upgrade.
48
48
1. Make a backup of your existing Part-DB installation, including the database, data directories and the configuration files and `.env.local` file.
49
49
The `php bin/console partdb:backup` command can help you with this.
50
50
2. Pull the v2 version. For git installation you can do this with `git checkout v2.0.0` (or newer version)
51
-
3. Run `composer install --no-dev -o` to update the dependencies.
52
-
4. Run `yarn install` and `yarn build` to update the frontend assets.
53
-
5. Rund `php bin/console doctrine:migrations:migrate` to update the database schema.
54
-
6. Clear the cache with `php bin/console cache:clear`.
55
-
7. Open your Part-DB instance in the browser and log in as an admin user.
56
-
8. Go to the user or group permissions page, and give yourself (and other administrators) the right to change system settings (under "System" and "Configuration").
57
-
9. You can now go to the settings page (under "System" and "Settings") and check if all settings are correct.
58
-
10. Parameters which were previously set via environment variables are greyed out and cannot be changed in the web interface.
51
+
3. Remove the `var/cache/` directory inside the Part-DB installation to ensure that no old cache files remain.
52
+
4. Run `composer install --no-dev -o` to update the dependencies.
53
+
5. Run `yarn install` and `yarn build` to update the frontend assets.
54
+
6. Rund `php bin/console doctrine:migrations:migrate` to update the database schema.
55
+
7. Clear the cache with `php bin/console cache:clear`.
56
+
8. Open your Part-DB instance in the browser and log in as an admin user.
57
+
9. Go to the user or group permissions page, and give yourself (and other administrators) the right to change system settings (under "System" and "Configuration").
58
+
10. You can now go to the settings page (under "System" and "Settings") and check if all settings are correct.
59
+
11. Parameters which were previously set via environment variables are greyed out and cannot be changed in the web interface.
59
60
If you want to change them, you must migrate them to the settings interface as described below.
60
61
61
62
### Docker installation
@@ -87,3 +88,15 @@ After the migration run successfully, the contents of your environment variables
87
88
Go through the environment variables listed by the command and remove them from your environment variable configuration (e.g. `.env.local` file or docker compose file), or just comment them out for now.
88
89
89
90
If you want to keep some environment variables, just leave them as they are, they will still work as before, the migration command only affects the settings stored in the database.
91
+
92
+
93
+
## Troubleshooting
94
+
95
+
### cache:clear fails: You have requested a non-existent parameter "jbtronics.settings.proxy_dir".
96
+
If you receive an error like
97
+
```
98
+
In App_KernelProdContainer.php line 2839:
99
+
You have requested a non-existent parameter "jbtronics.settings.proxy_dir".
100
+
```
101
+
when running `php bin/console cache:clear` or `composer install`. You have to manually delete the `var/cache/`
102
+
directory inside your Part-DB installation and try again.
0 commit comments