Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't solve permission issues #9

Open
wdelfuego opened this issue Mar 27, 2024 · 1 comment
Open

Can't solve permission issues #9

wdelfuego opened this issue Mar 27, 2024 · 1 comment

Comments

@wdelfuego
Copy link

I've run the install script and the chmod -R 777 commands as specified in the README.
The Odoo container starts up fine, but the Postgres one doesn't.

When I run docker-compose up I get the following output:

db_1      | chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
db_1      | The files belonging to this database system will be owned by user "postgres".
db_1      | This user must also own the server process.
db_1      |
db_1      | The database cluster will be initialized with locale "en_US.utf8".
db_1      | The default database encoding has accordingly been set to "UTF8".
db_1      | The default text search configuration will be set to "english".
db_1      |
db_1      | Data page checksums are disabled.
db_1      |
db_1      | fixing permissions on existing directory /var/lib/postgresql/data ... initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
odoo-17_db_1 exited with code 1

The chmod commands did not fix this. I'm running macOS 13.6.3 (Ventura) on an MB Pro with M1.

What is going wrong here, and more importantly, what can I do to get things working :)?

@dgauche
Copy link

dgauche commented Aug 15, 2024

I get the same issue when running on 16" M1 Mac Sonoma 14.6.1 (23G93)

When I try this on an Ubuntu box it works fine.

@minhng92 this is the most relevant info I could find, hope that helps: https://stackoverflow.com/questions/44878062/initdb-could-not-change-permissions-of-directory-on-postgresql-container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants