Skip to content

Commit 9c9bce3

Browse files
committed
Clean up Troubleshooting
1 parent d48f40a commit 9c9bce3

File tree

1 file changed

+83
-42
lines changed

1 file changed

+83
-42
lines changed
Lines changed: 83 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,129 @@
11
---
22
myst:
33
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"
88
---
99

10-
# Troubleshooting
10+
(upgrading-troubleshooting-an-upgrade-label)=
1111

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

1616
When a problem occurs during the migration we recommend that you take the following steps.
1717

18+
19+
(upgrading-troubleshooting-check-the-log-files-label)=
20+
1821
## Check the log files
1922

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

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

26-
```bash
38+
```shell
2739
bin/instance fg
2840
```
2941

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+
3153

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)=
3455

3556
## Test without customizations
3657

3758
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+
3968

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)=
4370

4471
## Test without add-ons
4572

4673
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.
4875
Remove the deactivated add-ons from the packages of your Zope instance.
4976

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

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)=
5788

5889
## Test with a fresh Plone instance
5990

6091
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)=
6397

6498
## Make the problem reproducible
6599

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

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)=
72110

73111
## Ask for help
74112

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+
76119

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)=
79121

80122
## Report a bug
81123

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

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).
86128

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

Comments
 (0)