Error when running propel install in the CLI container

Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
edited June 2023 in Propel ORM

Hi guys

when I try to run propel install in the CLI container I get this error

Any clues?

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.
ยซ1

Comments

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    it seems like this container does not have

    SPRYKER_DB_*
    

    env vars declared

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I could work it around by just running the command propel:install in zed instead of the CLI container

  • can you try localhost instead of 127.0.0.1? (wild guess)

  • password is secret ?

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I tried also ๐Ÿ˜„

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    the password is secret by default isnt it?

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I am using secret as password

  • Posts: 9 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    on my system the database is called "postgres" and "eu-docker" is a schema.

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I tried postgres also but did not work

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    thats why I changed it to eu-docker

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    what are other params that you are using?

  • Posts: 9 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    No, no other parameters.
    Do you have another Postgress instance running on your machine, which would not know anything about the spryker user?!

  • what does your deploy.dev.yml say?

  • Unknown
    edited May 2021

    any customization?

  • Cloud Platform Architect Sprykee Posts: 781 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited May 2021

    docker/sdk ps

    Please, check that database is running

    @UM9F81RCP

  • Cloud Platform Architect Sprykee Posts: 781 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    May be you have MySQL/Maria instead of PGSQL running. Check it too

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    ๐Ÿ™‚

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    of course it is running, on port 5432

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    @UJN2JRU4F no customization

  • Cloud Platform Architect Sprykee Posts: 781 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Do you have 5432 port forwarded to the host? (it should be declared in deploy.yml file as separate tcp endpoint)

    Also please check that credentials in deploy.yml file for database.

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yes

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    running this command

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    โžœ nc -vz 0.0.0.0 5432

    Connection to 0.0.0.0 port 5432 [tcp/postgresql] succeeded!

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    is success

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    the port is open on the host because it is forwarded from the Gateway container

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    spryker_b2b_dev_gateway_1           /docker-entrypoint.sh ngin ...   Up             0.0.0.0:16379->16379/tcp,:::16379->16379/tcp, 0.0.0.0:443->443/tcp,:::443->443/tcp, 0.0.0.0:5432->5432/tcp,:::5432->5432/tcp, 0.0.0.0:5672->5672/tcp,:::5672->5672/tcp, 0.0.0.0:80->80/tcp,:::80->80/tcp, 0.0.0.0:9200->9200/tcp,:::9200->9200/tcp
    
  • Cloud Platform Architect Sprykee Posts: 781 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    sudo lsof -nP -i4TCP:5432 | grep LISTEN
    
  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    thank you

  • Posts: 516 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    this last command listed 2 processes

Welcome!

It looks like you're new here. Sign in or register to get started.