GithubHelp home page GithubHelp logo

Comments (7)

vladd-bit avatar vladd-bit commented on July 3, 2024

Hello,

I presume that the code you are running is from the master branch. I am not experiencing the same issue, could you try deleting the containers and their volumes and re-creating them ?

Are there any log messages you can share from the db container ?

Thanks

from cogstack-nifi.

chamiw2008 avatar chamiw2008 commented on July 3, 2024

Hi,

I have deleted and created the containers and volumes many times with the same result.
( I am on Windows 10)

Can you let me know where to find the logs in the db container ?

I see that the two files are copied/accessible from the containers;

      - ../services/pgsamples/db_dump/db_samples-pdf-text-small.sql.gz:/data/db_samples.sql.gz:ro
      - ../services/pgsamples/init_db.sh:/docker-entrypoint-initdb.d/init_db.sh:ro
  - 

So I tried to run them from the container (/docker-entrypoint-initdb.d # ./init_db.sh) and got the below error;

Creating database: db_samples and user: test
psql: FATAL:  role "root" does not exist

Thanks,

from cogstack-nifi.

chamiw2008 avatar chamiw2008 commented on July 3, 2024

Hi,

Below is the only log on the container;

2021-11-23 19:22:47.743 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-11-23 19:22:47.743 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2021-11-23 19:22:47.764 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-11-23 19:22:47.828 UTC [48] LOG:  database system was shut down at 2021-11-23 19:22:47 UTC
2021-11-23 19:22:47.846 UTC [1] LOG:  database system is ready to accept connections

Thanks,

from cogstack-nifi.

vladd-bit avatar vladd-bit commented on July 3, 2024

Hello,

Make sure you are using the latest version of the repository.
The last thing I can suggest is making sure you have read/write/execute permissions on those files.

If you delete the volumes using docker volume rm deploy_samples-vol and recreate the container, could you post the log again using docker logs cogstack-samples-db ?

from cogstack-nifi.

chamiw2008 avatar chamiw2008 commented on July 3, 2024

Hi,

I think the below was missing in the master branch services.yml

  environment:
      # PG env vars
      - POSTGRES_USER=test
      - POSTGRES_PASSWORD=test

With it the DB was created.
(The tool HeidiSQL has issues showing data from Postgres.)

So will check and come back.

Thanks for the support.

from cogstack-nifi.

vladd-bit avatar vladd-bit commented on July 3, 2024

Hello,

If there no further updates I will close the ticket.

from cogstack-nifi.

chamiw2008 avatar chamiw2008 commented on July 3, 2024

from cogstack-nifi.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.