Skip to content

Commit caa7d8a

Browse files
authored
Merge pull request #1844 from akeneo/merge_60_into_70
Merge 60 into 70
2 parents 172994b + 78f7101 commit caa7d8a

File tree

4 files changed

+103
-76
lines changed

4 files changed

+103
-76
lines changed

cloud_edition/flexibility_mode/docs/job_consumers_and_workers.rst

-11
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,6 @@ Examples
9797
# Disable the consumer not to be started automatically at instance boot up
9898
partners_systemctl pim_webhook_consumer disable
9999
100-
- Manage all daemons at once:
101-
.. code-block:: bash
102-
:linenos:
103-
104-
# Check the status of all daemons
105-
partners_systemctl pim_job_consumer@* status
106-
107-
# Restart all daemons
108-
partners_systemctl pim_job_consumer@* restart
109-
110-
111100
Onboarder
112101
---------
113102

maintain_pim/first_aid_kit/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Sometimes, it's quite clear that the behaviour you experience is a bug. But it i
1010

1111
If you have doubts, please have a look at the following resources. If not, go to the next step.
1212

13-
* `The PIM Help Center <https://help.akeneo.com/en_US/v3/index.html>`_
13+
* `The PIM Help Center <https://help.akeneo.com/en_US/v6/index.html>`_
1414
* `The PIM online API documentation <https://api.akeneo.com/>`_
1515

1616
.. tip::

migrate_pim/apply_patch/apply_patch_ce.rst

+16-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Run the composer update command:
99
1010
Be aware that your composer.json won't be updated and some dependencies might be missing or coming from an outdated version.
1111

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.
1313

1414
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:
1515

@@ -22,7 +22,7 @@ Then clean the cache, re-install assets and warmup the cache:
2222

2323
.. note::
2424

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.
2626

2727

2828
.. code-block:: bash
@@ -43,7 +43,19 @@ Please **clear your browser's cache** before testing.
4343
We set any other dependencies to their exact patch versions to avoid compatibility issues.
4444

4545

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.
4758

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
4960

61+
You can then copy the composer.json file to your pim installation.

migrate_pim/upgrade/upgrade_from_50_to_60.rst

+86-60
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,29 @@ Use this documentation to upgrade projects based on Akeneo PIM Community Edition
66
Disclaimer
77
**********
88

9-
Make sure your production database is backed-up before performing the data migration.
10-
The queue daemon(s) must be stopped as well.
9+
.. warning::
10+
Make sure your production database is backed-up and the queue daemon(s) have been stopped before performing any data migration.
1111

1212
Prepare your project for the new technical stack
1313
************************************************
1414

15-
Your current v5.0 application must have up to date migrations before migrating on the new technical stack.
15+
.. note::
16+
Your 5.0 application must be on the latest patch and migrations must be up-to-date before migrating to the new technical stack.
17+
18+
*If you do not apply the most recent patch and migrations, you may experience problems upgrading.*
19+
20+
Check the most recent patch version here:
21+
- `Enterprise Edition <https://updates.akeneo.com/EE-5.0.json>`_
22+
- `Community Edition <https://updates.akeneo.com/CE-5.0.json>`_
23+
24+
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`
1627

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.
1832

1933
.. code:: bash
2034
@@ -25,46 +39,50 @@ The root of your current installation dir is referred as $INSTALLATION_DIR.
2539
$ php bin/console doctrine:migrations:migrate
2640
$ rm -rf var/cache/
2741
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:
2944

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
3146
47+
$ php bin/console doctrine:migration:status
3248
3349
Requirements
3450
************
3551

3652
Updated System components
3753
-------------------------
3854

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``
4363

4464
.. 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.
4766

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.
4968

69+
This means there's no need to export and reimport data for this update.
5070

5171
Updated System dependencies
5272
---------------------------
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`
5574

5675
Updated crontab definition
5776
--------------------------
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`
6178

6279
Upgraded Virtual Host configuration
6380
-----------------------------------
6481

65-
*OnPremise only*
82+
OnPremise only
83+
^^^^^^^^^^^^^^
6684

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.
6886

6987
You can check the VirtualHost configuration for 6.0 on your system: :doc:`/install_pim/manual/index`
7088

@@ -73,24 +91,24 @@ Prepare your project
7391

7492
Akeneo PIM composer.json
7593
----------------------------
76-
The root of your current installation dir is referred as $INSTALLATION_DIR.
7794

7895
Community Edition
7996
^^^^^^^^^^^^^^^^^
8097

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:
8299

83100
.. code:: bash
84101
85102
$ curl https://raw.githubusercontent.com/akeneo/pim-community-standard/6.0/composer.json > $INSTALLATION_DIR/composer.json
86103
87104
Enterprise Edition
88105
^^^^^^^^^^^^^^^^^^
89-
Please visit your `Akeneo Portal <https://help.akeneo.com/portal/articles/get-akeneo-pim-enterprise-archive.html>`_ to download the archive.
106+
Please visit your `Akeneo Portal <https://help.akeneo.com/portal/articles/get-akeneo-pim-enterprise-archive.html>`_
107+
to download the archive, then expand it to the installation directory on your host:
90108

91109
.. code:: bash
92110
93-
$ tar xvzf pim-enterprise-standard-<archive-suffix>.tar.gz -C $INSTALLATION_DIR --strip-components 1 pim-enterprise-standard/composer.json
111+
$ tar xvzf pim-enterprise-standard-<ARCHIVE-SUFFIX>.tar.gz -C $INSTALLATION_DIR --strip-components 1 pim-enterprise-standard/composer.json
94112
95113
Load your PIM Enterprise dependencies
96114
*****************************************
@@ -100,16 +118,25 @@ Load your PIM Enterprise dependencies
100118
$ composer update
101119
102120
.. note::
121+
You may need to temporarily increase the memory provided to ``composer``, as this step can be very memory consuming:
103122

104-
You may need to increase the memory provided to `composer`, as this step can be very memory consuming:
105123

106124
.. code:: bash
107125
108-
$ php -d memory_limit=4G /path/to/composer update
126+
$ php -d memory_limit=4G <COMPOSER PATH>/composer update
109127
110128
Let Akeneo PIM continue the preparation for you
111129
***************************************************
112130

131+
.. warning::
132+
**Do not skip this step**
133+
134+
This script overwrites several configuration files, but it is necessary for the upgrade to succeed.
135+
136+
If you have customized your PIM (for example, by adding custom bundles),
137+
we suggest saving a backup copy of your configuration files,
138+
and you will need to resolve any conflicts.
139+
113140
Community Edition
114141
-----------------
115142

@@ -118,7 +145,6 @@ Community Edition
118145
$ export APP_ENV=prod
119146
$ vendor/akeneo/pim-community-dev/std-build/migration/prepare_50_to_60.sh
120147
121-
122148
Enterprise Edition
123149
------------------
124150

@@ -127,11 +153,6 @@ Enterprise Edition
127153
$ export APP_ENV=prod
128154
$ vendor/akeneo/pim-enterprise-dev/std-build/upgrade/prepare_50_to_60.sh
129155
130-
.. warning::
131-
This script overwrites several configuration files.
132-
133-
In case of customisation, you need to resolve conflicts.
134-
135156
Make sure your environment is ready to be migrated
136157
**************************************************
137158

@@ -140,11 +161,10 @@ Make sure your environment is ready to be migrated
140161
$ rm -Rf var/cache
141162
$ bin/console pim:installer:check-requirements
142163
143-
If this command detects something not working or not properly configured,
144-
please fix the problem before continuing.
164+
If this command detects something not working or not properly configured, please fix the problem before continuing.
145165

146-
Prepare the front
147-
*****************
166+
Prepare the front-end
167+
*********************
148168

149169
.. code:: bash
150170
@@ -160,49 +180,61 @@ Migrate your data
160180
$ bin/console pim:data-quality-insights:recompute-product-scores
161181
162182
.. note::
183+
You may receive the following warning:
163184

164-
You may receive the following warnings:
185+
.. code:: text
165186
166-
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.
167188
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.
168190

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.
171191

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
173196
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.
176207
177-
The message "The migration has already been performed." concerning the "data-quality-insights" migration could be ignored .
178208
179209
Migrate the job queue
180210
*********************
181211

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.
183213

184214
.. code:: bash
185215
186216
$ bin/console akeneo:batch:migrate-job-messages-from-old-queue
187217
188-
If you want to skip the interactive question and want to migrate directly:
218+
(Use the ``--no-interaction`` flag if you want to skip the interactive question and want to migrate directly.)
189219

190-
.. code:: bash
191-
192-
$ bin/console akeneo:batch:migrate-job-messages-from-old-queue --no-interaction
193220

194221
Migrating your custom code
195222
**************************
196223

224+
.. note::
225+
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+
197230
Applying automatic fixes
198231
------------------------
199232

200233
Some changes we made in the code of Akeneo PIM can be automatically applied to your own code.
201234

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>`_.
203236
to apply these changes.
204237

205-
206238
Installing Rector
207239
^^^^^^^^^^^^^^^^^
208240

@@ -217,26 +249,20 @@ Applying automatic fixes
217249
218250
vendor/bin/rector process src/
219251
220-
221252
.. note::
222-
223253
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/>`_.
225255

226256
Identifying broken code
227257
^^^^^^^^^^^^^^^^^^^^^^^^
228258

229259
You can use PHPStan to help you identify broken code:
230260

231-
232261
.. code:: bash
233262
234263
composer require --dev phpstan/phpstan
235264
vendor/bin/phpstan analyse src/
236265
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>`_.
240267

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

Comments
 (0)