Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI runtime exec failed #14

Open
lazzarello opened this issue Feb 24, 2021 · 2 comments
Open

OCI runtime exec failed #14

lazzarello opened this issue Feb 24, 2021 · 2 comments
Labels
bug Something isn't working infos needed Extra informations are needed

Comments

@lazzarello
Copy link

This same branch / commit ID builds successfully on my Gitlab server but when run locally with glci I get the following error.

$ glci --only-jobs=build
-----------------------------------------------
Running job "build" for stage "build"
-----------------------------------------------

ℹ - Using existing image "gcr.io/kaniko-project/executor:debug"
mkdir -p /root/.docker
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "process_linux.go:101: executing setns process caused \"exit status 1\"": unknown
✘  - build

The build stage in my .gitlab-ci.yml looks like this

build:
  stage: build
  image: gcr.io/kaniko-project/executor:debug
  before_script:
    - mkdir -p /root/.docker
    - echo $DOCKER_AUTH_CONFIG > /root/.docker/config.json
  script:
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $RUN_TAG --destination $BRANCH_TAG --destination $COMMIT_TAG
  tags:
    - kubernetes
  variables:
    GIT_SUBMODULE_STRATEGY: normal
@mdubourg001
Copy link
Owner

I've tried to run the job you provided as example and got the same error. Could you please provide the Dockerfile used to build this image ?

Thanks for reporting this by the way ! 👌

@mdubourg001 mdubourg001 added bug Something isn't working infos needed Extra informations are needed labels Mar 1, 2021
@lazzarello
Copy link
Author

Here ya go. I'm limited to how many details I can post publicly. I hope this is enough to work from.

FROM my-private-registry.com/team/base-images/webapp-base:master
COPY ./enterprise /mnt/enterprise
COPY ./custom_addons /mnt/custom_addons

ENV WEBAPP_BASE_RC /etc/webapp/webapp.conf
COPY ./webapp.conf $WEBAPP_RC

EXPOSE 8069 8072

RUN pip3 install -r /mnt/custom_addons/requirements.txt

COPY ./wsgi/webapp_wsgi.py /etc/webapp/
RUN chown webapp:webapp /etc/webapp/webapp_wsgi.py && chmod ug+rwx /etc/webapp/webapp_wsgi.py

COPY ./scripts/ /etc/webapp/scripts
RUN chown -R webapp:webapp /etc/webapp/scripts && chmod -R ug+rwx /etc/webapp/scripts

USER webapp
RUN echo 'function webapp-shell() { /etc/webapp/webapp/webapp-bin shell -d "$WEBAPP_DB_NAME" --db_host="$WEBAPP_DB_HOST" --db_password="$WEBAPP_DB_PASSWORD"; } '>> ~/.bashrc
RUN echo 'export -f webapp-shell;' >> ~/.bashrc

WORKDIR /etc/webapp/webapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infos needed Extra informations are needed
Projects
None yet
Development

No branches or pull requests

2 participants