snibox-docker icon indicating copy to clipboard operation
snibox-docker copied to clipboard

Snibox won't bind mount to host folders

Open gkoerk opened this issue 6 years ago • 4 comments

It seems the frontend doesn't like the folders I am trying to bind mount for static_files. I've tried chmod on them and even chown, but I don't know the UID:GID this process expects to own a common static_files directory. Any ideas?

gkoerk avatar Oct 21 '18 03:10 gkoerk

Same issue here, it works with:

volumes: pg-data: static-files:

But not anymore when assigning folders to these volumes.

touste avatar Jun 25 '19 10:06 touste

Precisely. Same problem. How do we successfully bind mount to a directory to persist data?

gkoerk avatar Jun 25 '19 18:06 gkoerk

Any progress on this?

denis-ev avatar Apr 19 '20 04:04 denis-ev

Would be interested too...

not sure if it is related, but i get this, when i run docker-compose up without -d demonizing it.


database_1  | waiting for server to start....2021-11-17 20:00:00.496 UTC [32] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database_1  | 2021-11-17 20:00:00.522 UTC [33] LOG:  database system was shut down at 2021-11-17 20:00:00 UTC
database_1  | 2021-11-17 20:00:00.528 UTC [32] LOG:  database system is ready to accept connections 
database_1  |  done
database_1  | server started
database_1  | 
database_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
database_1  | 
database_1  | waiting for server to shut down....2021-11-17 20:00:00.586 UTC [32] LOG:  received fast shutdown request
database_1  | 2021-11-17 20:00:00.587 UTC [32] LOG:  aborting any active transactions
database_1  | 2021-11-17 20:00:00.590 UTC [32] LOG:  worker process: logical replication launcher (PID 39) exited with exit code 1
database_1  | 2021-11-17 20:00:00.590 UTC [34] LOG:  shutting down
database_1  | 2021-11-17 20:00:00.612 UTC [32] LOG:  database system is shut down
database_1  |  done
database_1  | server stopped
database_1  | 
database_1  | PostgreSQL init process complete; ready for start up.
database_1  | 
database_1  | 2021-11-17 20:00:00.694 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
database_1  | 2021-11-17 20:00:00.697 UTC [1] LOG:  listening on IPv6 address "::", port 5432
database_1  | 2021-11-17 20:00:00.700 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database_1  | 2021-11-17 20:00:00.721 UTC [41] LOG:  database system was shut down at 2021-11-17 20:00:00 UTC
database_1  | 2021-11-17 20:00:00.724 UTC [1] LOG:  database system is ready to accept connections
database_1  | 2021-11-17 20:00:06.355 UTC [48] ERROR:  relation "users" does not exist at character 566
database_1  | 2021-11-17 20:00:06.355 UTC [48] STATEMENT:                SELECT a.attname, format_type(a.atttypid, a.atttypmod),
database_1  |                        pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
database_1  |                        c.collname, col_description(a.attrelid, a.attnum) AS comment
database_1  |                   FROM pg_attribute a
database_1  |                   LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
database_1  |                   LEFT JOIN pg_type t ON a.atttypid = t.oid
database_1  |                   LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
database_1  |                  WHERE a.attrelid = '"users"'::regclass
database_1  |                    AND a.attnum > 0 AND NOT a.attisdropped
database_1  |                  ORDER BY a.attnum

aslmx avatar Nov 17 '21 20:11 aslmx