Calling Developers!
We are reenergizing our code contribution process! Learn More

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

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

    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
    Options

    Let me check that

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    Options

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

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    Options

    Thanks

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    Options

    no problem 🙂

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    Options

    Is there a way to fix the synchronization issue?

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    Options

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

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    edited March 2021
    Options

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

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    Options

    I'm using docker on WSL2 (win10)

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 🧑🏻‍🚀 - Cadet
    edited March 2021
    Options

    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
    Options

    Thanks!