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
When the odoo container first runs, it will run the bitnami scripts in the /opt/bitnami/scripts/ folder. One action is to ensure that the /bitnami/odoo folder has the correct permissions by running the script
This will throw the error 'Read-only file system' because of the '.snapshot' special folder that the Oracle File Storage Service creates.
odoo odoo 03:55:10.22 INFO ==>
odoo odoo 03:55:10.22 INFO ==> Welcome to the Bitnami odoo container
odoo odoo 03:55:10.22 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
odoo odoo 03:55:10.22 INFO ==> Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami/ for more information.
odoo odoo 03:55:10.22 INFO ==>
odoo odoo 03:55:10.23 INFO ==> Validating settings in POSTGRESQL_CLIENT_* env vars
odoo odoo 03:55:10.32 INFO ==> Ensuring Odoo directories exist
odoo chmod: changing permissions of '/bitnami/odoo/.snapshot': Read-only file system
Using the volume-permission init container cannot solve this.
Since changing the bitnami scripts may impact other dependent components, the solution would be to allow a subPath parameter in the deployment.yaml template like this:
volumeMounts:
- name: odoo-datamountPath: /bitnami/odoo{{- if .Values.enableSubPath }}subPath: odoo{{- end }}
and deal with the mounted path accordingly in the other parts of the chart templates and scripts.
Either to allow a subPath volumeMount option, or to use the same approach as the initContainers in the same template, that ignores .snapshot and lost+found:
initContainers:
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
- name: volume-permissionsimage: {{ include "odoo.image" . }}imagePullPolicy: {{ .Values.image.pullPolicy | quote }}command:
- /bin/bashargs:
- -ec
- | mkdir -p /bitnami/odoo
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
Thank you for your response.
I've changed the storage class to block volume in order to finish the software evaluation.
After that I will try a solution and create a pull request.
Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.
Name and Version
bitnami/odoo 28.1.1
What architecture are you using?
amd64
What steps will reproduce the bug?
Storage Class definition:
And these persistence parameters in values.yml:
/opt/bitnami/scripts/
folder. One action is to ensure that the/bitnami/odoo
folder has the correct permissions by running the scriptand deal with the mounted path accordingly in the other parts of the chart templates and scripts.
Are you using any custom parameters or values?
What is the expected behavior?
Either to allow a subPath volumeMount option, or to use the same approach as the initContainers in the same template, that ignores .snapshot and lost+found:
What do you see instead?
An attempt to change the ownership of the .snapshot special folder resulting in an error.
The text was updated successfully, but these errors were encountered: