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

Hi guys. I am having problems with getting suite to build via docker with the deploy.dev.yml. I b2c-

Thomas Lehner
Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

Hi guys. I am having problems with getting suite to build via docker with the deploy.dev.yml. I b2c-demo builds and runs fine with the deploy.dev.yml and the deploy.yml also works fine in both shops.

chmod: changing permissions of '/data/config/Zed/dev_only_private.key': Operation not permitted
chmod: changing permissions of '/data/config/Zed/dev_only_public.key': Operation not permitted
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 1035 installs, 0 updates, 0 removals


  [RuntimeException]
  /data/vendor does not exist and could not be created.


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

Comments

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hello Thomas,

    What OS are you on?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    Debian

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    it seems it is permission issue.
    Please, run
    id

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet
  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    sure seems like it. Strange. I also tried as root:

    uid=0(root) gid=0(root) groups=0(root)
    
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Root is not a good choice.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Are you able to use user 1000:1000 ?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    edited July 2020

    yes, sure, that is what i used before resorting to root πŸ™‚ unfortunately, it results in the same error

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    @ULYHPR789 i will take a look into the thread you linked and tinker around myself. it is not an urgent issue. i will update this thread here, if i come across a solution. Thanks for the input

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    ok. Thank you for sharing issues.

  • U015AQKSZJ7
    U015AQKSZJ7 Posts: 52 πŸ§‘πŸ»β€πŸš€ - Cadet

    if support needed let me know πŸ™‚

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    edited July 2020

    Thanks for the offer. So this worked for me now: building using deploy.dev.yml failed for me with a permissions error described above. I tried strarting from a clean slate, but to no avail. In the end, after receiving another permission error during building, i used chown -R 1000:1000 on the suite root directory and started the whole build process again. To my surprise everything worked after that.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Did you set permission locally?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    before the chown i did not set up any special permissions whatsoever if that is what you mean

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    I mean on host or in container?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    on host