|
1 | 1 | --- |
2 | 2 | myst: |
3 | 3 | html_meta: |
4 | | - "description": "" |
5 | | - "property=og:description": "" |
6 | | - "property=og:title": "" |
7 | | - "keywords": "" |
| 4 | + "description": "Troubleshooting a Plone upgrade" |
| 5 | + "property=og:description": "Troubleshooting a Plone upgrade" |
| 6 | + "property=og:title": "Troubleshooting a Plone upgrade" |
| 7 | + "keywords": "Troubleshooting, upgrade, Plone, Zope, add-ons" |
8 | 8 | --- |
9 | 9 |
|
10 | | -# Troubleshooting |
| 10 | +(upgrading-troubleshooting-an-upgrade-label)= |
11 | 11 |
|
12 | | -```{admonition} Description |
13 | | -What to do when a problem occurs during a Plone upgrade. |
14 | | -``` |
| 12 | +# Troubleshooting an upgrade |
| 13 | + |
| 14 | +This chapter covers troubleshooting a Plone upgrade. |
15 | 15 |
|
16 | 16 | When a problem occurs during the migration we recommend that you take the following steps. |
17 | 17 |
|
| 18 | + |
| 19 | +(upgrading-troubleshooting-check-the-log-files-label)= |
| 20 | + |
18 | 21 | ## Check the log files |
19 | 22 |
|
20 | | -When a site error occurs, or Zope fails to start, there's probably an informative error message in Zope's log files. |
21 | | -Locate [these log files](https://plone.org/documentation/faq/plone-logs) and inspect instance.log. |
22 | | -Ignore irrelevant warnings and search for words such as error, exception and traceback (case-insensitive). |
| 23 | +When a site error occurs, or Zope fails to start, there is probably an informative error message in the log files. |
| 24 | +The log files are located in your project's `var/log` directory. |
| 25 | +Inspect `instance.log`. |
| 26 | +Ignore irrelevant warnings, and perform a case-insensitive search for words such as "error", "exception", and "traceback". |
| 27 | + |
| 28 | +When Zope does not start and there is no useful information in the log file, you can start Zope interactively. |
| 29 | + |
| 30 | +Plone 6 command: |
23 | 31 |
|
24 | | -When Zope doesn't start and there's no useful information in the log file, you can start Zope interactively and watch for error messages in the output: |
| 32 | +```shell |
| 33 | +make start-backend |
| 34 | +``` |
| 35 | + |
| 36 | +Plone 5.2 and earlier command: |
25 | 37 |
|
26 | | -```bash |
| 38 | +```shell |
27 | 39 | bin/instance fg |
28 | 40 | ``` |
29 | 41 |
|
30 | | -You may be able to find more information on the error messages in: |
| 42 | +Watch for error messages in the console. |
| 43 | + |
| 44 | +You may be able to find more information about the error messages in the following documents. |
| 45 | + |
| 46 | +- {doc}`Version-specific migration tips </backend/upgrading/version-specific-migration/index>` for your version of Plone |
| 47 | +- [Error Reference](https://docs.plone.org/appendices/error-reference.html) |
| 48 | + |
| 49 | +```{todo} |
| 50 | +See https://github.com/plone/documentation/issues/1323 |
| 51 | +``` |
| 52 | + |
31 | 53 |
|
32 | | -- the {doc}`Version-specific migration tips </backend/upgrading/version-specific-migration/index>` for your version of Plone |
33 | | -- the https://docs.plone.org/appendices/error-reference.html |
| 54 | +(upgrading-troubleshooting-test-without-customizations-label)= |
34 | 55 |
|
35 | 56 | ## Test without customizations |
36 | 57 |
|
37 | 58 | When you have customized page templates or Python scripts, your changes may interfere with changes in the new version of Plone. |
38 | | -It's important to rule out this possibility, since your customizations are unique to your site and no one on the planet will be able to help you solve it. |
| 59 | +It is important to rule out this possibility. |
| 60 | +Your customizations are unique to your site, and no one on the planet will be able to help you solve it. |
| 61 | + |
| 62 | +Temporarily remove your customizations. |
| 63 | +Remove your layers from `portal_skins`. |
| 64 | +Remove files from these layers on the file system. |
| 65 | +If the problem disappears, you will need to double-check your customizations. |
| 66 | +It is usually best to copy the original files of the new version of Plone to your skin, and re-customize those. |
| 67 | + |
39 | 68 |
|
40 | | -Temporarily remove your customizations, for example by removing your layers from portal_skins, or by removing files from these layers on the file system. |
41 | | -If the problem disappears, you'll need to double-check your customizations. |
42 | | -It's usually best to copy the original files of the new version of Plone to your skin, and re-customize those. |
| 69 | +(upgrading-troubleshooting-test-without-add-ons-label)= |
43 | 70 |
|
44 | 71 | ## Test without add-ons |
45 | 72 |
|
46 | 73 | Bugs or compatibility problems in add-ons that you have installed may cause problems in Plone. |
47 | | -Go to Site Setup > Add-ons and deactivate all add-ons that are not distributed with Plone. |
| 74 | +Go to {guilabel}`Site Setup > Add-ons`, and deactivate all add-ons that are not distributed with Plone. |
48 | 75 | Remove the deactivated add-ons from the packages of your Zope instance. |
49 | 76 |
|
50 | | -If the problem disappears, you'll need to doublecheck the offending product: |
| 77 | +If the problem disappears, you will need to double-check the offending product. |
51 | 78 |
|
52 | | -- Does it support the new version of Plone, Zope and Python? |
53 | | - Check the product's README.txt or other informational files or pages. |
54 | | -- Does the product require any additional migration procedures? |
55 | | - Check the product's INSTALL.txt, UPGRADE.txt or other informational files or pages. |
56 | | -- Does the product install properly? Re-install it and check the install log. |
| 79 | +- Does it support the new version of Plone, Zope, and Python? |
| 80 | + Check the product's `README.txt` or other informational files or pages. |
| 81 | +- Does the product require any additional migration procedures? |
| 82 | + Check the product's `INSTALL.txt`, `UPGRADE.txt`, or other informational files or pages. |
| 83 | +- Does the product install properly? |
| 84 | + Re-install it and check the installation log. |
| 85 | + |
| 86 | + |
| 87 | +(upgrading-troubleshooting-test-with-a-fresh-plone-instance-label)= |
57 | 88 |
|
58 | 89 | ## Test with a fresh Plone instance |
59 | 90 |
|
60 | 91 | Create a new Plone site with your new version of Plone. |
61 | | -You don't need a new Zope instance, since you can add another Plone site in the root of Zope. |
62 | | -If the problem does not occur in a fresh site, the cause of your problem is most likely a customization, an installed product or content that was not migrated properly. |
| 92 | +You do not need a new Zope instance, because you can add another Plone site in the root of Zope. |
| 93 | +If the problem does not occur in a fresh site, the cause of your problem is most likely a customization, an installed product, or content that was not migrated properly. |
| 94 | + |
| 95 | + |
| 96 | +(upgrading-troubleshooting-make-the-problem-reproducible-label)= |
63 | 97 |
|
64 | 98 | ## Make the problem reproducible |
65 | 99 |
|
66 | | -Before you go out and [ask for help](https://docs.plone.org/askforhelp.html), you should be able to describe your problem in such a way that others can reproduce it in their environment. |
| 100 | +Before you go out and [ask for help](https://plone.org/support/how-to-ask-for-help), you should be able to describe your problem in such a way that others can reproduce it in their environment. |
| 101 | + |
| 102 | +- Reduce the problem to the smallest possible domain. |
| 103 | +- Eliminate products and customizations that are not part of the problem. |
| 104 | + |
| 105 | +This makes it easier for others to reproduce the problem, and it increases your chances of meeting others with the same problem or even a solution. |
| 106 | +The more complex your story, the more likely that it is unique to your situation and impenetrable to others. |
67 | 107 |
|
68 | | -Reduce the problem to the smallest possible domain. |
69 | | -Eliminate products and customizations that are not part of the problem. |
70 | | -This makes it easier for others to reproduce the problem and it increases your chances of meeting others with the same problem or even a solution. |
71 | | -The more complex your story is, the more likely that it is unique to your situation and in-penetrable to others. |
| 108 | + |
| 109 | +(upgrading-troubleshooting-ask-for-help-label)= |
72 | 110 |
|
73 | 111 | ## Ask for help |
74 | 112 |
|
75 | | -[Ask for help](https://docs.plone.org/askforhelp.html) in the [Plone support channels](https://plone.org/support). Be sure to: |
| 113 | +[Ask for help](https://plone.org/support/how-to-ask-for-help) in the [Plone Community Forum](https://community.plone.org/) or request paid commercial support from [Plone service providers](https://plone.org/providers). |
| 114 | +Be sure to do the following. |
| 115 | + |
| 116 | +- Provide relevant source code for your customizations that are part of the problem. |
| 117 | +- Describe the exact configuration, software versions, migration history, error messages, and so on. |
| 118 | + |
76 | 119 |
|
77 | | -- Provide relevant source code for your customizations that are part of the problem. |
78 | | -- Describe the exact configuration, software versions, migration history, error messages and so on. |
| 120 | +(upgrading-troubleshooting-report-a-bug-label)= |
79 | 121 |
|
80 | 122 | ## Report a bug |
81 | 123 |
|
82 | | -Once you have investigated, analyzed, identified and confirmed the cause of your problem and you are convinced it's a bug (rather than an X-file), go to the appropriate bug tracker and report it: |
| 124 | +Once you have investigated, analyzed, identified, and confirmed the cause of your problem, and you are convinced it is a bug, go to the appropriate bug tracker and report it. |
83 | 125 |
|
84 | | -- Add-ons: the README usually tells how to report bugs |
85 | | -- [Plone Issue Tracker](https://github.com/plone/Products.CMFPlone/issues) |
| 126 | +- Add-ons: the README usually tells how to report bugs. |
| 127 | +- [Plone issue tracker](https://github.com/plone/Products.CMFPlone/issues). |
86 | 128 |
|
87 | | -Do not use the bug trackers to ask for help. |
88 | | -First analyze your problem and assert that it's a bug before you report it. |
| 129 | +Do not abuse the issue trackers by asking for support. |
0 commit comments