cancel
Showing results for 
Search instead for 
Did you mean: 
ptt342
Cadet
Cadet
  • 1,087 Views

Error: Guided Exercise: Working with Databases - persisting-pg13 was exited!

In index 6.5: Create a PostgreSQL 13 container that uses the rpi-store-data-pg13 volume.

[student@workstation ~]$ podman run -d \
  --name persisting-pg13 \
  -e POSTGRESQL_USER=backend \
  -e POSTGRESQL_PASSWORD=secret_pass \
  -e POSTGRESQL_DATABASE=rpi-store \
  -v rpi-store-data-pg13:/var/lib/pgsql/data \
  registry.ocp4.example.com:8443/rhel9/postgresql-13:1 00e9...36a8

--> container persisting-pg13was exited!

[student@workstation ~]$ podman exec persisting-pg13 \
  pg_restore -d rpi-store /tmp/db_dump no output expected

 --> then the command above running with error can only exec sessions on running containers: container state improper.

3 Replies
Ariana
Cadet
Cadet
  • 1,009 Views

I also had an issue in that exercise. 

After 5.4 when I try to access localhost:5050. I get "Connection was reset". Anyone know how to fix this?

  • 938 Views

When mounting the folder for rpi-store-data, it is missing the :Z at the end.

If you run it without that and check the logs (podman logs persistent-12, or run it without -d), you will see "mkdir: cannot create directory '/var/lib/pgsql/data': Permission denied".

Chetan_Tiwary_
Community Manager
Community Manager
  • 927 Views

Hello @ptt342 !

Thanks for reaching out !

 I am unable to reproduce this in Ch05s04 lab :

Chetan_Tiwary__0-1707943725630.png

 

Chetan_Tiwary__1-1707943743903.png

 

Please redo this lab again and verify the same.

0 Kudos
Join the discussion
You must log in to join this conversation.