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..

Hello All, Does anybody know why `docker/sdk console data:import company` report shows that 10 entit

U015HHFCU1M
U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet
edited March 2021 in Docker

Hello All,
Does anybody know why docker/sdk console data:import company report shows that 10 entities was imported in case I have data/import/company.csv file empty?
The CSV contained some rows before, but not anymore.
Is there any cache to flush?

Comments

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2021

    Hi, is this file also empty inside CLI container?
    It may be docker synchronisation issues between host and container, after some changes on host.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    Let me check that

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    You're probably right. I forced containers down and up again. Now all looks good.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    no problem πŸ™‚

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    Is there a way to fix the synchronization issue?

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    It seems that files get synced when containers are recreated but does not stay in sync

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2021

    Do you have mac? and if yes do you use docker-sync or mutagen?

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    I'm using docker on WSL2 (win10)

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2021

    I can’t help much with windows installation

    1) Did you executed this command?
    Before starting containers

    docker/sdk bootstrap deploy.dev.yml
    

    https://documentation.spryker.com/docs/installing-in-development-mode

    If not it probably take opache settings for not dev environment, this opcache configuration will not check if the file was modified.

    2) Change something in company.csv file on your host system.
    After it open cli container and check if file not changed inside it:

    docker/sdk cli cat -n data/import/company.csv
    

    If the file is old and not updated, than maybe someone else with spryker docker experience on windows can help in this thread.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks!