-
Notifications
You must be signed in to change notification settings - Fork 19
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
I can't get docker live #39
Comments
Do you have docker installed on the machine and all of the environment variables set? |
@knownasilya yes I have docker also I pulled the image, using docker with unix socks (default one) |
If you put a console log in your docker runner dependency here: https://github.com/Strider-CD/strider-docker-runner/blob/master/lib/run.js#L9 is there an error? Also you can check what config it's using here: https://github.com/Strider-CD/strider-docker-runner/blob/master/lib/run.js#L8 |
2015-10-14T14:56:28.011Z - info: { image: '' } // default image |
So it seems like it never reaches https://github.com/Strider-CD/strider-docker-runner/blob/master/lib/run.js#L53, which version of the runner are you using? |
Well docker is running using debug... but processes is stopped Maybe the ssh key? (this works on default runner) 2015-10-14T15:09:16.537Z - info: Wed, 14 Oct 2015 15:09:16 GMT strider-docker-runner:create-container image is already locally
2015-10-14T15:09:16.734Z - info: Wed, 14 Oct 2015 15:09:16 GMT strider-docker-runner:create-container [runner:docker] container id 08c1364e18096f1b32a1924e9c9d2b9c627548e835b1ba5bf294d232aa39041d
2015-10-14T15:09:17.199Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container running command git
2015-10-14T15:09:17.200Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container with args [ 'clone',
'--recursive',
'URI',
'.',
'--branch',
'master' ]
2015-10-14T15:09:17.206Z - info: Git Version:1.9
2015-10-14T15:09:17.442Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container done with the container null { StatusCode: 127 }
2015-10-14T15:09:17.446Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container Stopped the container! |
It is creating the container.. just tested. 2015-10-14T15:03:48.298Z - info: list images
2015-10-14T15:03:48.299Z - info: { '0': null,
'1':
[ { Id: '0775c0acc5079656dc0b51cccc4ebbe0b923a3768ccd958f84164c1953304409',
ParentId: '4f24c86d80648d9057b35fc9bc289a442bc7aa04e5c1cb22c3142f72a4aadefd',
RepoTags: [Object],
RepoDigests: [],
Created: 1444764132,
Size: 31781270,
VirtualSize: 795944333,
Labels: null } ] }
2015-10-14T15:03:48.486Z - info: create images
2015-10-14T15:03:48.486Z - info: { '0': null,
'1': {"id":"4b015007bc77a0aafe3ac3bf0a26c87f681d553eb89dca6adb7a7e2da866ad1c"} } But for second message is not finding the strider.json 2015-10-14T15:03:48.166Z - info: job.prepare - strider.json not found, skipping config merge |
Could you be having the same issue as #36 ?
That's fine, and is not an error, unless you have one defined. |
@knownasilya what about the 2015-10-14T15:09:16.537Z - info: Wed, 14 Oct 2015 15:09:16 GMT strider-docker-runner:create-container image is already locally
2015-10-14T15:09:16.734Z - info: Wed, 14 Oct 2015 15:09:16 GMT strider-docker-runner:create-container [runner:docker] container id 08c1364e18096f1b32a1924e9c9d2b9c627548e835b1ba5bf294d232aa39041d
2015-10-14T15:09:17.199Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container running command git
2015-10-14T15:09:17.200Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container with args [ 'clone',
'--recursive',
'URI',
'.',
'--branch',
'master' ]
2015-10-14T15:09:17.206Z - info: Git Version:1.9
2015-10-14T15:09:17.442Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container done with the container null { StatusCode: 127 }
2015-10-14T15:09:17.446Z - info: Wed, 14 Oct 2015 15:09:17 GMT strider-docker-runner:create-container Stopped the container! I searched and status code 127 on docker is command not found. But running on host sudo docker run -t strider/strider-docker-slave git
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
These are common Git commands used in various situations:
start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions)
bisect Find by binary search the change that introduced a bug
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
checkout Switch branches or restore working tree files
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
merge Join two or more development histories together
rebase Forward-port local commits to the updated upstream head
tag Create, list, delete or verify a tag object signed with GPG
collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept. Any idea? |
The part with 'URI', '.' looks fishy. Is that an obfuscated command, or from a console log directly from the code? |
I just changed for NDA... Is a valid uri generated same as with default On Wed, Oct 14, 2015, 9:53 PM Ilya Radchenko [email protected]
|
@knownasilya I tested with many commands and all are returning 127 status code. |
Git commands only? What about other commands that should be there by default, like |
Same, it is returning 127 2015-10-16T19:20:34.772Z - info: Fri, 16 Oct 2015 19:20:34 GMT strider-docker-runner:create-container running command bash
2015-10-16T19:20:34.795Z - info: Fri, 16 Oct 2015 19:20:34 GMT strider-docker-runner:create-container with args [ '-e', '-x', '-c', 'pwd' ]
2015-10-16T19:20:35.124Z - info: Fri, 16 Oct 2015 19:20:35 GMT strider-docker-runner:create-container done with the container null { StatusCode: 127 }
2015-10-16T19:20:35.131Z - info: Fri, 16 Oct 2015 19:20:35 GMT strider-docker-runner:create-container Stopped the container! |
So maybe it's the 'bash' command? |
well the bash command is the plugin shell script. running de command outside strider all works, also with default runner but docker runner stops running docker but test still running I have to cancel manually. |
Are you by any chance running on an old version of CentOS/Kernel/Docker? This error is usually something to do with older versions of the kernel and indicate an Can you post the results of
Don't forget to mask client details |
@davemackintosh here you have them cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" docker --version
Docker version 1.8.2, build 0a8c2e3 docker inspect 0775c0acc5079656dc0b51cccc4ebbe0b923a3768ccd958f84164c1953304409
[
{
"Id": "0775c0acc5079656dc0b51cccc4ebbe0b923a3768ccd958f84164c1953304409",
"Parent": "4f24c86d80648d9057b35fc9bc289a442bc7aa04e5c1cb22c3142f72a4aadefd",
"Comment": "",
"Created": "2015-10-13T19:22:12.987828589Z",
"Container": "1736d2e23f9a1bd25ed0446d01f97dd6920f54719703a83572e8f2404e7e886a",
"ContainerConfig": {
"Hostname": "**",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": null,
"PublishService": "",
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOME=/home/strider"
],
"Cmd": [
"/bin/sh",
"-c",
"npm install bower -g"
],
"Image": "4f24c86d80648d9057b35fc9bc289a442bc7aa04e5c1cb22c3142f72a4aadefd",
"Volumes": null,
"VolumeDriver": "",
"WorkingDir": "/home/strider/workspace",
"Entrypoint": null,
"NetworkDisabled": false,
"MacAddress": "",
"OnBuild": [],
"Labels": null
},
"DockerVersion": "1.8.3",
"Author": "Luis Carlos Cruz \[email protected]\u003e",
"Config": {
"Hostname": "*",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": null,
"PublishService": "",
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOME=/home/strider"
],
"Cmd": [
"/bin/sh",
"-c",
"supervisord -c /etc/supervisor/supervisord.conf \u0026\u0026 su strider -c 'strider-docker-slave'"
],
"Image": "4f24c86d80648d9057b35fc9bc289a442bc7aa04e5c1cb22c3142f72a4aadefd",
"Volumes": null,
"VolumeDriver": "",
"WorkingDir": "/home/strider/workspace",
"Entrypoint": null,
"NetworkDisabled": false,
"MacAddress": "",
"OnBuild": [],
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 31781270,
"VirtualSize": 795944333,
"GraphDriver": {
"Name": "devicemapper",
"Data": {
"DeviceId": "20",
"DeviceName": "docker-202:1-589943-0775c0acc5079656dc0b51cccc4ebbe0b923a3768ccd958f84164c1953304409",
"DeviceSize": "107374182400"
}
}
}
] |
I followed all steps and using strider/strider-docker-slave I can't get the second message on environment.
https://github.com/Strider-CD/strider-docker-runner#verification
The text was updated successfully, but these errors were encountered: