Ofek Katriel
02/21/2022, 4:29 PMtouch: CONTAINER_ALREADY_STARTED_PLACEHOLDER: Permission denied
...
ERROR Unable to create SQL database. {"error": "pq: database \"temporal\" already exists", "logging-call-at": "handler.go:97"}
I'm running docker-compose as the same user that the repository files are owned by, in one of /home subdirs.
Thanks in advance :)docker-compose down
docker-compose rm -v
docker-compose up
Vinod Varma
02/21/2022, 6:50 PMCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
460ea08fe266 airbyte/db:0.35.32-alpha "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp airbyte-db
3dec2a2545a8 airbyte/worker:0.35.32-alpha "/bin/bash -c ${APPL…" About a minute ago Up About a minute airbyte-worker
c32eeeb6abed airbyte/temporal:0.35.32-alpha "./update-and-start-…" About a minute ago Up Less than a second 6933-6935/tcp, 6939/tcp, 7234-7235/tcp, 7239/tcp, 0.0.0.0:7233->7233/tcp, :::7233->7233/tcp airbyte-temporal
02ee6ad9e950 airbyte/scheduler:0.35.32-alpha "/bin/bash -c ${APPL…" About a minute ago Up About a minute airbyte-scheduler
c744159be131 airbyte/webapp:0.35.32-alpha "/docker-entrypoint.…" About a minute ago Up About a minute 0.0.0.0:8000->80/tcp, :::8000->80/tcp airbyte-webapp
928723df9e57 airbyte/server:0.35.32-alpha "/bin/bash -c ${APPL…" About a minute ago Up About a minute 8000/tcp, 0.0.0.0:8001->8001/tcp, :::8001->8001/tcp airbyte-server
This seems to be the failing part (from airbyte-temporal logs)
PostgreSQL started. + update_postgres_schema
+ CONTAINER_ALREADY_STARTED=CONTAINER_ALREADY_STARTED_PLACEHOLDER + '[' '!' -e CONTAINER_ALREADY_STARTED_PLACEHOLDER ']'
+ touch CONTAINER_ALREADY_STARTED_PLACEHOLDER touch: CONTAINER_ALREADY_STARTED_PLACEHOLDER: Permission denied
+ temporal-sql-tool --plugin postgres --ep db -u docker -p 5432 create --db temporal 2022-02-21T18:46:29.059Z ERROR Unable to create SQL database. {"error": "pq: database \"temporal\" already exists", "logging-call-at": "handler.go:97"}
Nathan Gold
02/22/2022, 10:11 AMuser
02/22/2022, 2:53 PM{
"level": "fatal",
"ts": "2022-02-22T14:50:29.871Z",
"msg": "error starting scanner",
"service": "worker",
"error": "context deadline exceeded",
"logging-call-at": "service.go:233",
"stacktrace": "<http://go.temporal.io/server/common/log.(*zapLogger).Fatal\n\t/temporal/common/log/zap_logger.go:150\ngo.temporal.io/server/service/worker.(*Service).startScanner\n\t/temporal/service/worker/service.go:233\ngo.temporal.io/server/service/worker.(*Service).Start\n\t/temporal/service/worker/service.go:153\ngo.temporal.io/server/service/worker.ServiceLifetimeHooks.func1.1\n\t/temporal/service/worker/fx.go:80|go.temporal.io/server/common/log.(*zapLogger).Fatal\n\t/temporal/common/log/zap_logger.go:150\ngo.temporal.io/server/service/worker.(*Service).startScanner\n\t/temporal/service/worker/service.go:233\ngo.temporal.io/server/service/worker.(*Service).Start\n\t/temporal/service/worker/service.go:153\ngo.temporal.io/server/service/worker.ServiceLifetimeHooks.func1.1\n\t/temporal/service/worker/fx.go:80>"
}
Disi Koa
02/22/2022, 9:23 PMdocker ps
without sudo user?Ivan Zaykov
02/23/2022, 10:09 AMLukas Novotny
02/23/2022, 4:43 PMdocker-compose
as sudo
results in problem not occurring
• adding USER root
in airbyte-temporal
Dockerfile
changes nothing
• user I'm starting docker-compose
with belongs to the docker
group+ echo 'whoami ' temporal
whoami temporal
+ echo 'ls -la '
total 52
drwxr-xr-x 1 root root 4096 Feb 23 17:07 .
drwxr-xr-x 1 root root 4096 Feb 23 17:07 ..
-rwxr-xr-x 1 root root 11698 Oct 20 19:29 auto-setup.sh
drwxr-xr-x 1 temporal temporal 4096 Feb 23 17:07 config
-rwxr-xr-x 1 root root 912 Oct 20 19:29 entrypoint.sh
drwxr-xr-x 7 root root 4096 Oct 20 19:33 schema
-rwxr-xr-x 1 root root 549 Oct 20 19:29 start-temporal.sh
-rwxrwxr-x 1 root root 4840 Feb 23 17:01 update-and-start-temporal.sh
when running docker-compose up
as non-sudo userJason Ofua
02/23/2022, 7:57 PMAlexander D
02/23/2022, 8:55 PM/home/<me>/airbyte
to /tmp/airbyte
and it behaves the same - error occursAlexandre Chouraki
02/24/2022, 10:17 AMdocker-compose down -v
and docker-compose up
. Or do you mean sth else?docker-compose down -v --rmi all
can we do thisAndrew Popp
02/25/2022, 10:40 PMKrzysztof Sazon
04/05/2022, 7:45 AM~/.docker/config.json
I had to use proxy again and this time, I've guessed and added some IP ranges to noProxy
that could be potentially used by airbyte and it's working 🙂