odoo-17-docker-compose icon indicating copy to clipboard operation
odoo-17-docker-compose copied to clipboard

Can't solve permission issues

Open wdelfuego opened this issue 11 months ago • 1 comments

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 :)?

wdelfuego avatar Mar 27 '24 14:03 wdelfuego