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: migrate_pim/apply_patch/apply_patch_ce.rst
+16-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Run the composer update command:
9
9
10
10
Be aware that your composer.json won't be updated and some dependencies might be missing or coming from an outdated version.
11
11
12
-
You have to check whether the latest composer.json is different from yours. In this case you should backup your current composer.json and download the newest one beforehand.
12
+
You have to make sure you have the latest version composer.json. In this case you should backup your current composer.json and download the newest one beforehand.
13
13
14
14
Double check in the output of this command that the latest version has been fetched, you can also check it by using the following command:
15
15
@@ -22,7 +22,7 @@ Then clean the cache, re-install assets and warmup the cache:
22
22
23
23
.. note::
24
24
25
-
Before launching the following commands, remember to stop the daemon to avoid generating outdated cache.
25
+
Before launching the following commands, remember to stop the daemons to avoid generating outdated cache.
26
26
27
27
28
28
.. code-block:: bash
@@ -43,7 +43,19 @@ Please **clear your browser's cache** before testing.
43
43
We set any other dependencies to their exact patch versions to avoid compatibility issues.
44
44
45
45
46
-
.. note::
46
+
Troubleshooting
47
+
-----------------------
48
+
49
+
50
+
**Cache issues**
51
+
52
+
If you get a 500 error after upgrading and clear cache isn't working, try clearing the apc cache with a PHP script or restart the Apache/Web server.
53
+
54
+
55
+
**Composer issues**
56
+
57
+
You have to make sure you have the latest version of composer.json. If this isn't the case, you should backup your current composer.json and download the newest one before updating.
47
58
48
-
If you get a 500 error after upgrading, and clear cache isn't working, try to clear the apc cache with a php script or restart Apache/Web server.
59
+
You need to get an archive containing Akeneo PIM and its PHP dependencies: https://download.akeneo.com/pim-community-standard-v6.0-latest-icecat.tar.gz
49
60
61
+
You can then copy the composer.json file to your pim installation.
You can check your current patch version with the following command: ``composer licenses | grep akeneo/pim``
25
+
26
+
To install the most recent patch, use the instructions in :doc:`/migrate_pim/apply_patch/index`
16
27
17
-
The root of your current installation dir is referred as $INSTALLATION_DIR.
28
+
The directory at the root of your current installation is referred to as ``$INSTALLATION_DIR``.
29
+
30
+
.. warning::
31
+
Please note that this part of the migration needs to be executed on your PIM 5.0 **before** upgrading your technical stack.
18
32
19
33
.. code:: bash
20
34
@@ -25,46 +39,50 @@ The root of your current installation dir is referred as $INSTALLATION_DIR.
25
39
$ php bin/console doctrine:migrations:migrate
26
40
$ rm -rf var/cache/
27
41
28
-
.. note::
42
+
If you are updating an Enterprise Edition instance and are working with Akeneo Support, please run the following command (after executing ``doctrine:migrations:migrate``)
43
+
and provide us with the output so that we can quickly check for any database issues:
29
44
30
-
WARNING: please note that this part of the migration needs to be executed on your PIM v5.0 ``before`` upgrading your technical stack.
45
+
.. code:: bash
31
46
47
+
$ php bin/console doctrine:migration:status
32
48
33
49
Requirements
34
50
************
35
51
36
52
Updated System components
37
53
-------------------------
38
54
39
-
You have to make sure your system components are updated to the version required for Akeneo PIM:
40
-
- PHP 8.0
41
-
- MySQL 8.0
42
-
- Elasticsearch 7.16
55
+
.. note::
56
+
If you are using Enterprise Edition on the Akeneo Cloud Flexibility offering,
57
+
Akeneo will handle the component upgrades if you open a ticket with our Support team.
58
+
59
+
Your system components must be updated to the versions required for Akeneo PIM:
60
+
- ``PHP 8.0``
61
+
- ``MySQL 8.0``
62
+
- ``Elasticsearch 7.16``
43
63
44
64
.. note::
45
-
Elasticsearch supports in-place update: Elasticsearch 7.16 will be able to use indexes created
46
-
by previous Elasticsearch 7.x.
65
+
Elasticsearch supports in-place update.
47
66
48
-
So there's no need to export and reimport data for this system.
67
+
Elasticsearch 7.16 will be able to use indexes created by previous versions of Elasticsearch 7.x.
49
68
69
+
This means there's no need to export and reimport data for this update.
50
70
51
71
Updated System dependencies
52
72
---------------------------
53
-
Check your system dependencies are in sync with :doc:`/install_pim/manual/system_requirements/system_requirements`
54
-
73
+
Check your system dependencies are in sync with the :doc:`/install_pim/manual/system_requirements/system_requirements`
55
74
56
75
Updated crontab definition
57
76
--------------------------
58
-
59
-
Check your crontab is in sync with :doc:`/cloud_edition/flexibility_mode/docs/crontasks`
60
-
77
+
Check that your crontab is in sync with :doc:`/cloud_edition/flexibility_mode/docs/crontasks`
61
78
62
79
Upgraded Virtual Host configuration
63
80
-----------------------------------
64
81
65
-
*OnPremise only*
82
+
OnPremise only
83
+
^^^^^^^^^^^^^^
66
84
67
-
Since Akeneo PIM, instead of using one fpm pool, we are using one for the API, and one for UI.
85
+
Akeneo PIM uses one fpm pool each for the API and the UI.
68
86
69
87
You can check the VirtualHost configuration for 6.0 on your system: :doc:`/install_pim/manual/index`
70
88
@@ -73,24 +91,24 @@ Prepare your project
73
91
74
92
Akeneo PIM composer.json
75
93
----------------------------
76
-
The root of your current installation dir is referred as $INSTALLATION_DIR.
77
94
78
95
Community Edition
79
96
^^^^^^^^^^^^^^^^^
80
97
81
-
You can download the composer.json file directly from the Github repository:
98
+
You can download the ``composer.json`` file directly from the Github repository:
WARNING! You have X previously executed migrations in the database that are not registered migrations.
187
+
WARNING! You have [a number of] previously executed migrations in the database that are not registered migrations.
167
188
189
+
This can be safely ignored. The message means that your database is up to date, but that Doctrine did not find the migration files corresponding to some prviously-run migrations.
168
190
169
-
This can be safely ignored as this only means that your database is up to date, but without finding the corresponding
170
-
migration files.
171
191
172
-
Another message could be `Migration _X_Y_ZZZZ was executed but did not result in any SQL statements`.
192
+
.. note::
193
+
You may also receive:
194
+
195
+
.. code:: text
173
196
174
-
This makes sense for some migration that only touches the Elasticsearch index or don't apply because no data linked
175
-
to this migration have been found.
197
+
Migration _X_Y_ZZZZ was executed but did not result in any SQL statements
198
+
199
+
If a migration only affects the Elasticsearch index or does not apply because no data associated with the migration were found, this can be safely ignored.
200
+
201
+
.. note::
202
+
The following message can also be safely ignored if it concerns the ``data-quality-insights`` migration:
203
+
204
+
.. code:: text
205
+
206
+
The migration has already been performed.
176
207
177
-
The message "The migration has already been performed." concerning the "data-quality-insights" migration could be ignored .
178
208
179
209
Migrate the job queue
180
210
*********************
181
211
182
-
In 6.0 we set up a new job queue. You may have jobs awaiting in the old queue, they must be migrated in the new queue:
212
+
In 6.0 we set up a new job queue (also known as job consumers). If you have jobs awaiting execution in the old queue, they must be migrated to the new queue.
Each Akeneo PIM version brings brand new features, so please check if you still need each custom bundle, as we may have incorporated the same or similar functionality into the PIM.
226
+
227
+
You can check for new features and changes in the changelog: :doc:`/migrate_pim/changelog`
228
+
229
+
197
230
Applying automatic fixes
198
231
------------------------
199
232
200
233
Some changes we made in the code of Akeneo PIM can be automatically applied to your own code.
201
234
202
-
In order to make this process easier and more error proof, we decided to use PHP Rector (https://github.com/rectorphp/rector)
235
+
In order to make this process easier and more error proof, we decided to use `PHP Rector <https://github.com/rectorphp/rector>`_.
203
236
to apply these changes.
204
237
205
-
206
238
Installing Rector
207
239
^^^^^^^^^^^^^^^^^
208
240
@@ -217,26 +249,20 @@ Applying automatic fixes
217
249
218
250
vendor/bin/rector process src/
219
251
220
-
221
252
.. note::
222
-
223
253
This will use the `rector.yaml` file created by the `prepare.sh` above.
224
-
Feel free to add your own refactoring rules inside it. More information on https://getrector.org/
254
+
Feel free to add your own refactoring rules inside it. More information on `getrector.org <https://getrector.org/>`_.
225
255
226
256
Identifying broken code
227
257
^^^^^^^^^^^^^^^^^^^^^^^^
228
258
229
259
You can use PHPStan to help you identify broken code:
230
260
231
-
232
261
.. code:: bash
233
262
234
263
composer require --dev phpstan/phpstan
235
264
vendor/bin/phpstan analyse src/
236
265
237
-
More information, please check https://github.com/phpstan/phpstan
238
-
239
-
From that point, you will have to migrate your bundle one by one.
266
+
For more information, please check the `PhpStan documentation <https://github.com/phpstan/phpstan>`_.
240
267
241
-
Remember to check if they are still relevant, as each Akeneo version
242
-
brings new features.
268
+
You should migrate your bundles one by one to avoid problems and locate any bugs.
0 commit comments