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 i run into docker/sdk up problem with permission issue: Copy and merge schema files UnexpectedVal

24

Comments

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

    docker/sdk:1.14.3 will demand jenkins template.

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

    Before removing volume

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

    After removing:

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

    So my assumption is that volume artifacts that were created before mounts kept wrong user id

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

    If you run clea-data volume should be deleted… I wonder why it does not help.

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

    Did you have docker/sdk environment before an update to 1.15?

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

    nope, i just did a clean checkout of suit .. i try to cleanup the whole docker env .. maybe this helps ..

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

    @ULYHPR789 ok i tested a couple of sdk and none works ..

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

    I hope you do not run docker/sdk under root…

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

    nope πŸ™‚ i created docker grp and configured all correct πŸ™‚

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

    currently i run into issue with based on wrong suite and sdk ..

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

    right now i test latest sdk (1.15.0) and latest suite ..

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

    Suite and sdk must be compatible, yes.

    But we need to solve volume permission. We are using docker/sdk on linux and no such problems appear….

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

    ok, latest suite latest sdk no volumes, no images no container, no networks ..

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

    and now:
    UnexpectedValueException - Exception: There is no existing directory at "/var/log/spryker/DE/ZED" and its not buildable: Permission denied
    in /data/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php (172)

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

    host: id

    docker/sdk cli id

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

    --> DEVELOPMENT MODE
    uid=1001(spryker) gid=82(www-data) groups=82(www-data)

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

    ❯ id
    uid=1001(marcokaiser) gid=1001(marcokaiser) groups=1001(marcokaiser),27(sudo),998(docker)

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

    that’s expected.

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

    checked that .. id is correct πŸ™‚

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

    docker run -it --rm spryker_app ls -al /var/log

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

    Unable to find image 'spryker_app:latest' locally
    docker: Error response from daemon: pull access denied for spryker_app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
    See 'docker run --help'.

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

    dev maybe?

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

    docker run -it --rm spryker_app:dev ls -al /var/log

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

    right

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

    ❯ docker run -it --rm spryker_app:dev ls -al /var/log
    total 20
    drwxr-xr-x 1 root root 4096 Jul 3 12:48 .
    drwxr-xr-x 1 root root 4096 May 29 12:12 ..
    drwxrwxrwx 2 root root 4096 May 29 12:13 newrelic
    drwxr-xr-x 2 1000 spryker 4096 Jul 3 12:48 spryker

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

    wrong group ..

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

    err wrong owner

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

    group - is ok

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

    wrong owner - yep…