Skip to content

Glowroot central is not starting: standard_init_linux.go:211: exec user process caused "no such file or directory" #735

Closed

Description

@mnatsakanyank

Glowroot central docker is not starting

docker run --name myglowroot2 \ kmnatsakanya@ZALANDO-11440 --link mycassandra:cassandra \ --publish 0.0.0.0:4000:4000 \ --publish 0.0.0.0:8181:8181 \ glowroot/glowroot-central:0.13.6

standard_init_linux.go:211: exec user process caused "no such file or directory"

Activity

  1. felipelutz commented on Jul 9, 2020

    @felipelutz

    This looks like a duplicate of #626. There's a workaround there that you can follow.
    By the way, I had the same problem, and I resolved following the instructions there.

  2. shivpathak commented on Aug 4, 2020

    @shivpathak

    I am also getting the same issue due to special character ^M in docker-entrypoint.sh and glowroot-central.sh

    fix is quit simple but the problem is we have to maintain our own custom image instead of using directly the official one due the the following change:

    1 - Open terminal pull and run docker image with entrypoint /bin/bash

    docker pull glowroot/glowroot-central:0.13.6
    docker run -it --entrypoint /bin/bash 8da922f4b984
    

    2 - After above command executed open another terminal and run following command

    docker cp 138c5d258320:/usr/local/bin/docker-entrypoint.sh /tmp/docker-entrypoint.sh
    docker cp 138c5d258320:/usr/local/bin/glowroot-central.sh /tmp/glowroot-central.sh
    
    dos2unix /tmp/glowroot-central.sh /tmp/docker-entrypoint.sh
    
    docker cp /tmp/glowroot-central.sh 138c5d258320:/usr/local/bin/glowroot-central.sh
    docker cp /tmp/docker-entrypoint.sh 138c5d258320:/usr/local/bin/docker-entrypoint.sh
    
    docker commit 138c5d258320 shivpathak23/glowroot:v0.13.6-special-char-fix
    
    docker login  -u shivpathak23
    docker push shivpathak23/glowroot:v0.13.6-special-char-fix
    

    Here in this example 8da922f4b984 docker imageID and 138c5d258320 is containerID

    3 - After all above steps I could use my own image shivpathak23/glowroot:v0.13.6-special-char-fix in kubernetes deployment or as docker run.

    Note- in kubernetes deployment we have to pass cmd and args as follows:

          - image:  shivpathak23/glowroot:v0.13.6-special-char-fix 
            name: glowroot-central-apm
            command: ['/usr/local/bin/docker-entrypoint.sh']
            args: ['/usr/local/bin/glowroot-central.sh']
    
  3. mturra-Pro commented on May 18, 2021

    @mturra-Pro

    This works with names instead of ids:
    1 - Open terminal pull and run docker image with entrypoint /bin/bash

    docker pull glowroot/glowroot-central:0.13.6
    docker run -it --name glowroot-central --entrypoint /bin/bash glowroot/glowroot-central:0.13.6
    

    2 - After above command executed open another terminal and run following command

    docker cp glowroot-central:/usr/local/bin/docker-entrypoint.sh /tmp/docker-entrypoint.sh
    docker cp glowroot-central:/usr/local/bin/glowroot-central.sh /tmp/glowroot-central.sh
    
    dos2unix /tmp/glowroot-central.sh /tmp/docker-entrypoint.sh
    
    docker cp /tmp/glowroot-central.sh glowroot-central:/usr/local/bin/glowroot-central.sh
    docker cp /tmp/docker-entrypoint.sh glowroot-central:/usr/local/bin/docker-entrypoint.sh
    
    docker commit glowroot-central glowroot/glowroot:v0.13.6-special-char-fix
    

    3 - After all above steps I could use my own image glowroot/glowroot-central:v0.13.6-special-char-fix in kubernetes deployment or as docker run.

  4. mturra-Pro commented on May 18, 2021

    @mturra-Pro

    Patch for Dockerfile

    Index: central/Dockerfile
    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    ===================================================================
    diff --git a/central/Dockerfile b/central/Dockerfile
    --- a/central/Dockerfile	(revision ace6a8c5b78796a22b74b219a9bcda6b8a5f05bf)
    +++ b/central/Dockerfile	(date 1621333942036)
    @@ -12,7 +12,8 @@
         && useradd --no-log-init -r -g glowroot glowroot \
         && chown -R glowroot:glowroot /usr/share/glowroot-central \
         && chmod a+x /usr/local/bin/docker-entrypoint.sh \
    -    && chmod a+x /usr/local/bin/glowroot-central.sh
    +    && chmod a+x /usr/local/bin/glowroot-central.sh \
    +    && sed -i 's/^M$//' /usr/local/bin/docker-entrypoint.sh /usr/local/bin/glowroot-central.sh
     
     EXPOSE 4000 8181
     
    @@ -24,4 +25,4 @@
     
     ENTRYPOINT ["docker-entrypoint.sh"]
     
    -CMD ["glowroot-central.sh"]
    +CMD ["glowroot-central.sh"]
    \ No newline at end of file
    
  5. materemias commented on Oct 26, 2021

    @materemias

    @trask, this is still blocking docker start with 0.14.0-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions