Skip to content

Commit a42804d

Browse files
author
Paulo Ribeiro
committed
doc: Cherry-pick pull request #756 [ci skip]
1 parent 0fc5f9c commit a42804d

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

docs/troubleshoot/troubleshoot.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ If the error persists:
9898
1. Take note of the parameter `client_id` in the URL of the Bitbucket Cloud error page (for example, `r8QJDkkxj8unYfg4Bd`)
9999
2. Check if the value of the parameter matches the value of the Client ID of your Bitbucket OAuth consumer
100100

101-
## Codacy configuration
102-
103-
The following sections help you troubleshoot the Codacy configuration.
104-
105-
### Accessing the RabbitMQ dashboard
101+
## Accessing the RabbitMQ dashboard
106102

107103
We use RabbitMQ for the internal message queue between our components.
108104

@@ -131,3 +127,22 @@ If the **Code patterns** page of your repositories doesn't list a new tool that
131127
```bash
132128
curl -X POST localhost:9000/api/v1/engine/initialize
133129
```
130+
131+
## Upgrade failed: cannot patch "codacy-minio"
132+
133+
If you download and use an updated `values-production.yaml` file while upgrading to [Codacy Self-hosted 9.0.0](/release-notes/self-hosted/self-hosted-v9.0.0/), you'll get the following error:
134+
135+
> Error: UPGRADE FAILED: cannot patch "codacy-minio" with kind PersistentVolumeClaim: persistentvolumeclaims "codacy-minio" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
136+
137+
This happens because [we updated the MinIO PVC size](https://github.com/codacy/chart/commit/40a158f8b6f62a6f90387060b86fe1dd8d008ed5). As a workaround, you can either:
138+
139+
- Reset the PVC size back to the original value of 20Gi on your `values.yaml` file:
140+
141+
```yaml
142+
minio:
143+
fullnameOverride: codacy-minio
144+
persistence:
145+
size: 20Gi
146+
```
147+
148+
- [Uninstall your current version of Codacy](../maintenance/uninstall.md) and reinstall Codacy Self-hosted 9.0.0 directly. Your data won't be impacted by the uninstall since it's stored on the database.

0 commit comments

Comments
 (0)