Content
Container stops in docker
Added by Henry Madsen Jensen over 1 year ago
this is the last lines in my log file before the container stops running
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
-> 0.0024s
== 20220831073113 WorkPackageProjectForeignKey: migrated (0.0051s) ============
I, [2023-04-08T12:47:28.123228 #85] INFO -- : Migrating to MigrateTimestampsToWithTimezone (20220831081937)
== 20220831081937 MigrateTimestampsToWithTimezone: migrating ==================
-- execute("DO $$ DECLARE t record; BEGIN FOR t IN SELECT column_name, table_name, data_type FROM information_schema.columns WHERE table_schema = ANY (SELECT unnest(string_to_array(replace(setting, '\"$user\"', CURRENT_USER), ', ')) FROM pg_settings WHERE name = 'search_path') AND data_type = 'timestamp without time zone' LOOP EXECUTE 'ALTER TABLE ' || t.table_name || ' ALTER COLUMN ' || t.column_name || ' TYPE timestamp with time zone USING ' || t.column_name || ' AT TIME ZONE ''UTC'''; END LOOP; END$$;")
I use this command to install OP in docker
docker run -d --name openproject \
-p 7890:80 \
-e SERVER_HOSTNAME=nas.mydomain.xxx \
-e SECRET_KEY_BASE=secret \
-e OPENPROJECT_EDITION="bim" \
-e OPENPROJECT_HTTPS=false \
-v /volume1/docker/openproject/pgdata:/var/openproject/pgdata \
-v /volume1/docker/openproject/assets:/var/openproject/assets \
openproject/community:12
what am i doing wrong, i tried install on my older nas, but was told it could not run on linux kernel 3
Replies (1)
I found that when i dont add the variable - OPENPROJECT_HOST__NAME=, then the container runs fine, but i cant access it