What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Errors when running any command in Docker

U0500RK40NR
U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
edited June 2023 in Slack General

hey , i am running any command in docker . I am getting this error
Error - Exception: Undefined constant Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::TABLE_PHP_NAME
in /data/vendor/propel/propel/src/Propel/Runtime/Map/DatabaseMap.php (193)

Command: /data/vendor/bin/console transfer:generate

Tagged:

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)
  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    i have setup new project

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    seems to be something cached maybe…. have you shut down the other one and deleted the docker containers etc?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    you could try docker/sdk clean && docker/sdk up --build --assets --data --jobs

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    and i was doing setup up for data export and run some commands like composer require spryker/data-export
    after that i am getting error .

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    maybe you did also composer update as well?

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    composer require spryker/data-export spryker/data-export-extension spryker/sales-data-export --update-with-dependencies

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    this command i have run

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    likely it installed the latest propel module as well then.

    does the following fix it for you?

    find ./src/Orm/Zed/ -type d -name "Map" | xargs rm -rf && find ./data/cache/propel/ -type f -name "loadDatabase.php" | xargs rm -rf && find ./src/Orm/Propel/ -type f -name "loadDatabase.php" | xargs rm -rf && console propel:model:build --no-post
    
  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    i didnot get your point

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    what does docker/sdk composer show propel/propel return?

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    sry, then this does not work… please go inside the cli with docker/sdk cli and then execute composer show propel/propel i thought spryker have a shortcut there as well

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    yeah… as expected. your composer update updated propel and therefore you need to execute

    find ./src/Orm/Zed/ -type d -name "Map" | xargs rm -rf && find ./data/cache/propel/ -type f -name "loadDatabase.php" | xargs rm -rf && find ./src/Orm/Propel/ -type f -name "loadDatabase.php" | xargs rm -rf && console propel:model:build --no-post
    

    its not your fault… its more about a problem with propel not using proper tags for their php8 support

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    so i have to run this command in docker cli ?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    yes

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    this fixed it for me last time

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    it deletes some files which are not working anymore after the propel update.

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    now it is working file . Can you help me to data export

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    or give any refrence for that please

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 βš–οΈ - Guardians (admin)

    I cant, sry. please have a look at the docs

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    ok . Thank you sir .

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    hey . Is there any documentation for Two factor authentication ?