WARNING lchown operation not permitted
Hi
I used a Amazon Linux as runner shell.
Since I upgraded my runner in v1.1.0.
I have got this warning on runner log. And I don't know why
I don't find what happen.
Guillaume
gitlab-ci-multi-runner 1.1.0 (a23a25a)
Using Shell executor...
Running on ip-XXXX...
Fetching changes...
Removing build/
HEAD is now at 1302e5c Merge branch 'configs-preprod' into 'master'
Checking out 1302e5c9 as master...
HEAD is now at 1302e5c... Merge branch 'configs-preprod' into 'master'
Downloading artifacts for package (565)...
Downloading artifacts from coordinator... ok id=565 token=o_Z4s1Fw
WARNING: build/: lchown build/: operation not permitted
WARNING: build/1.light-catchup.chunk.js: lchown build/1.light-catchup.chunk.js: operation not permitted
WARNING: build/bundle-api.js: lchown build/bundle-api.js: operation not permitted
WARNING: build/bundle-demo.js: lchown build/bundle-demo.js: operation not permitted
WARNING: build/configs/: lchown build/configs/: operation not permitted
WARNING: build/configs/canalplay/: lchown build/configs/canalplay/: operation not permitted
WARNING: build/configs/canalplay/prod.json: lchown build/configs/canalplay/prod.json: operation not permitted
WARNING: build/configs/cplus/: lchown build/configs/cplus/: operation not permitted
WARNING: build/configs/cplus/preprod.json: lchown build/configs/cplus/preprod.json: operation not permitted
WARNING: build/configs/cplus/prod.json: lchown build/configs/cplus/prod.json: operation not permitted
WARNING: build/configs/itele/: lchown build/configs/itele/: operation not permitted
WARNING: build/configs/itele/prod.json: lchown build/configs/itele/prod.json: operation not permitted
Downloading artifacts for build (563)...
Downloading artifacts from coordinator... ok id=563 token=o_Z4s1Fw
WARNING: build/: lchown build/: operation not permitted
WARNING: build/1.light-catchup.chunk.js: lchown build/1.light-catchup.chunk.js: operation not permitted
WARNING: build/bundle-api.js: lchown build/bundle-api.js: operation not permitted
WARNING: build/bundle-demo.js: lchown build/bundle-demo.js: operation not permitted
WARNING: build/configs/: lchown build/configs/: operation not permitted
WARNING: build/configs/canalplay/: lchown build/configs/canalplay/: operation not permitted
WARNING: build/configs/canalplay/prod.json: lchown build/configs/canalplay/prod.json: operation not permitted
WARNING: build/configs/cplus/: lchown build/configs/cplus/: operation not permitted
WARNING: build/configs/cplus/preprod.json: lchown build/configs/cplus/preprod.json: operation not permitted
WARNING: build/configs/cplus/prod.json: lchown build/configs/cplus/prod.json: operation not permitted
WARNING: build/configs/itele/: lchown build/configs/itele/: operation not permitted
WARNING: build/configs/itele/prod.json: lchown build/configs/itele/prod.json: operation not permitted
$ if [ -f /root/.bashrc ]; then source /root/.bashrc; fi
$ echo "Hello, I am $(whoami)@$(hostname):$PWD"
My YML File
before_script:
- if [ -f /root/.bashrc ]; then source /root/.bashrc; fi
- echo "Hello, I am $(whoami)@$(hostname):$PWD"
# Install ssh-agent if not already installed, it is required by Docker.
# (change apt-get to yum if you use a CentOS-based image)
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in GITLAB_USER_GITHUB_KEY variable to the agent store
- ssh-add <(echo "$GITLAB_USER_GITHUB_KEY")
# For Docker builds disable host key checking. Be aware that by adding that
# you are suspectible to man-in-the-middle attacks.
# WARNING: Use this only with the Docker executor, if you use it with shell
# you will overwrite your user's SSH config.
- mkdir -p ~/.ssh
- '[[ -f /.dockerinit ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
stages:
- build
- test
- package
- deploy
build:
image: ekino/docker-buildbox:latest-node5.7
stage: build
tags: [docker]
script:
- npm install
- npm run lint # we don't build if CS are not respected
- npm run build
artifacts:
paths:
- build
And an old build that not failed without change of my YML File
gitlab-ci-multi-runner 1.0.4 (014aa8c)
Using Shell executor...
Running on ip-XXXX...
Fetching changes...
HEAD is now at 3090be6 Merge branch 'feature/gitlab-ci' into 'master'
Checking out 3090be6b as master...
HEAD is now at 3090be6... Merge branch 'feature/gitlab-ci' into 'master'
$ if [ -f /root/.bashrc ]; then source /root/.bashrc; fi
$ echo "Hello, I am $(whoami)@$(hostname):$PWD"
Hello, I am gitlab-runner@ip-XXX:/home/gitlab-runner/builds/3777cd70/0/one-players/one-player-v2
$ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
/usr/bin/ssh-agent
$ eval $(ssh-agent -s)
Agent pid 11322
$ ssh-add <(echo "$GITLAB_USER_GITHUB_KEY")
Identity added: /dev/fd/63 (/dev/fd/63)
$ mkdir -p ~/.ssh
$ [[ -f /.dockerinit ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
$ apt-get -qqy install rsync
-bash: line 45: apt-get: command not found
Last login: Wed Mar 23 15:14:35 UTC 2016
My linux configuration
[ec2-user@ip-XXXXX /]$ cat /etc/*-release
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.03