rust-dlc: Run Sample failed when start docker

Hi @Devs, I try to run the test of sample codes, when start to the docker container. The oracle and oracle-db are both failed, I check the PostgreSQL db container logs, with the below errors:

PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-03-19 11:31:10.184 UTC [1] FATAL:  private key file "/certs/db.key" has group or world access
2024-03-19 11:31:10.184 UTC [1] DETAIL:  File must have permissions u=rw (0600) or less if owned by the database user, or permissions u=rw,g=r (0640) or less if owned by root.
2024-03-19 11:31:10.184 UTC [1] LOG:  database system is shut down

May I know how to figure out it?

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@h10086733 I checked again and I can see a similar log than yours at first:

oracle-server  | {"level":"info","msg":"ORM initialization starts","time":"2024-03-28T07:02:00Z"}
oracle-server  | {"level":"error","msg":"failed to connect to `host=oracle-db user=postgres database=db`: dial e
rror (dial tcp 172.26.0.4:5432: connect: connection refused)Could not open database.","time":"2024-03-28T07:02:0
0Z"}
oracle-server  | {"level":"info","msg":"ORM initialization end","time":"2024-03-28T07:02:00Z"}
oracle-server  | panic: Could not initialize database.
oracle-server  | 
oracle-server  | goroutine 1 [running]:
oracle-server  | main.newInitializedOrm(0xc00038e6e0, 0xc00006caa0, 0xc000010130)
oracle-server  |        /p2pderivatives-oracle/cmd/p2pdoracle/main.go:143 +0x1b8
oracle-server  | main.NewDefaultOracleAPI(0xc00006caa0, 0xc00038e6e0, 0x0, 0x0)
oracle-server  |        /p2pderivatives-oracle/cmd/p2pdoracle/main.go:183 +0x19b
oracle-server  | main.newInitializedRouter(0xc00006caa0, 0xc00038e6e0, 0x0)
oracle-server  |        /p2pderivatives-oracle/cmd/p2pdoracle/main.go:157 +0x39
oracle-server  | main.main()
oracle-server  |        /p2pderivatives-oracle/cmd/p2pdoracle/main.go:70 +0x189

But then the oracle-db finishes initializing and eventually the oracle-server starts working:

oracle-server  | {"level":"info","msg":"ORM initialization starts","time":"2024-03-28T07:02:01Z"}
oracle-db-1    | 2024-03-28 07:02:01.532 UTC [66] LOG:  statement: ;
oracle-server  | {"level":"info","msg":"ORM initialization end","time":"2024-03-28T07:02:01Z"}
oracle-db-1    | 2024-03-28 07:02:01.542 UTC [66] LOG:  execute lrupsc_1_0: SELECT count(*) FROM information_sch
ema.tables WHERE table_schema =  CURRENT_SCHEMA() AND table_name = $1 AND table_type = $2

If it’s not the case for you can you send a more detailed log including the traces for the oracle-db container? thanks ,I reinstalled the system and docker. Although I don’t know the reason, the problem has been resolved. Thank you again