Skip to content

Commit d8e093e

Browse files
committed
Added documentation about manually deleting the var/cache folder while upgrading from 1 to 2
This is related to issue #1084
1 parent 351e084 commit d8e093e

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

docs/upgrade/1_to_2.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ The upgrade process works very similar to a normal (minor release) upgrade.
4848
1. Make a backup of your existing Part-DB installation, including the database, data directories and the configuration files and `.env.local` file.
4949
The `php bin/console partdb:backup` command can help you with this.
5050
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.
5960
If you want to change them, you must migrate them to the settings interface as described below.
6061

6162
### Docker installation
@@ -87,3 +88,15 @@ After the migration run successfully, the contents of your environment variables
8788
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.
8889

8990
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

Comments
 (0)