I create a pipeline with a task to restart docker compose in my own server. I use SSH command, the command like this docker-compose -f nginx-***/docker-compose.yml --verbose --no-ansi restart
I've tested and executed manually in my server, execute result is OK. but when I run the pipeline in azure devOps, the result is error. Like below:
2018-12-02T01:32:14.7706987Z Successfully connected. 2018-12-02T01:32:14.7710676Z docker-compose -f nginx-***/docker-compose.yml --verbose --no-ansi restart 2018-12-02T01:32:16.2418821Z 2018-12-02T01:32:16.2482992Z
[error]compose.config.config.find: Using configuration files: ./nginx-***/docker-compose.yml 2018-12-02T01:32:16.2495769Z
2018-12-02T01:32:16.2574373Z 2018-12-02T01:32:16.2575165Z
[error]docker.utils.config.find_config_file: Trying paths: ['//.docker/config.json', '//.dockercfg']
2018-12-02T01:32:16.2575462Z 2018-12-02T01:32:16.2575984Z 2018-12-02T01:32:16.2576288Z
[error]docker.utils.config.find_config_file: Found file at path: /***/.docker/config.json 2018-12-02T01:32:16.2576660Z
2018-12-02T01:32:16.2577795Z 2018-12-02T01:32:16.2578204Z
[error]docker.auth.load_config: Found 'auths' section 2018-12-02T01:32:16.2579190Z 2018-12-02T01:32:16.2579655Z
2018-12-02T01:32:16.2580035Z ##[error]docker.auth.parse_auth: Found entry (registry='xxx.xxx.xxx', username='xxxx') 2018-12-02T01:32:16.2580237Z 2018-12-02T01:32:16.2608435Z 2018-12-02T01:32:16.2608704Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET /v1.22/version HTTP/1.1" 200 543 2018-12-02T01:32:16.2610775Z
2018-12-02T01:32:16.2622309Z docker-py version: 3.4.1 2018-12-02T01:32:16.2622480Z CPython version: 3.6.6 2018-12-02T01:32:16.2622545Z OpenSSL version: OpenSSL 1.1.0f 25 May 2017 2018-12-02T01:32:16.2622629Z 2018-12-02T01:32:16.2622929Z
[error]compose.cli.command.get_client: docker-compose version 1.22.0, build f46880fe 2018-12-02T01:32:16.2623729Z docker-py version: 3.4.1 2018-12-02T01:32:16.2623809Z CPython version: 3.6.6 2018-12-02T01:32:16.2623879Z OpenSSL version: OpenSSL 1.1.0f 25 May
2017 2018-12-02T01:32:16.2623968Z 2018-12-02T01:32:16.2624312Z 2018-12-02T01:32:16.2624807Z ##[error]compose.cli.command.get_client: Docker base_url: http+docker://localhost 2018-12-02T01:32:16.2625260Z 2018-12-02T01:32:16.2625970Z 2018-12-02T01:32:16.2626892Z
[error]compose.cli.command.get_client: Docker version: Platform={'Name': ''}, Components=[{'Name': 'Engine', 'Version':
'18.06.1-ce', 'Details': {'ApiVersion': '1.38', 'Arch': 'amd64', 'BuildTime': '2018-08-21T17:23:15.000000000+00:00', 'Experimental': 'false', 'GitCommit': 'e68fc7a', 'GoVersion': 'go1.10.3', 'KernelVersion': '4.15.0-39-generic', 'MinAPIVersion': '1.12', 'Os': 'linux'}}], Version=18.06.1-ce, ApiVersion=1.38, MinAPIVersion=1.12, GitCommit=e68fc7a, GoVersion=go1.10.3, Os=linux, Arch=amd64, KernelVersion=4.15.0-39-generic, BuildTime=2018-08-21T17:23:15.000000000+00:00 2018-12-02T01:32:16.2627977Z 2018-12-02T01:32:16.2629771Z 2018-12-02T01:32:16.2630254Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('nginx***_default') 2018-12-02T01:32:16.2630520Z
2018-12-02T01:32:16.3437785Z 2018-12-02T01:32:16.3438120Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET /v1.22/networks/nginx***_default HTTP/1.1" 404 36
2018-12-02T01:32:16.3438380Z 2018-12-02T01:32:16.3465193Z 2018-12-02T01:32:16.3465775Z
[error]compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label':
['com.docker.compose.project=nginx-***', 'com.docker.compose.oneoff=False']}) 2018-12-02T01:32:16.3466140Z 2018-12-02T01:32:16.3466460Z 2018-12-02T01:32:16.3467136Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET
/v1.22/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dnginx-***%22%2C+%22com.docker.compose.oneoff%3DFalse%22]%7D HTTP/1.1" 200 None 2018-12-02T01:32:16.3467815Z 2018-12-02T01:32:16.3468072Z 2018-12-02T01:32:16.3468367Z
[error]compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 3 items) 2018-12-02T01:32:16.3468611Z 2018-12-02T01:32:16.3468812Z 2018-12-02T01:32:16.3469125Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container <-
('7f4a1383faa177e75b7ec9af569766a9c108e4b5acd79f42a0dbe598bdc3d1cd') 2018-12-02T01:32:16.3469329Z 2018-12-02T01:32:16.3469462Z 2018-12-02T01:32:16.3469668Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET
/v1.22/containers/7f4a1383faa177e75b7ec9af569766a9c108e4b5acd79f42a0dbe598bdc3d1cd/json HTTP/1.1" 200 None 2018-12-02T01:32:16.3469859Z 2018-12-02T01:32:16.3470283Z 'Args': ['-g', 'daemon off;'], 2018-12-02T01:32:16.3470507Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3470713Z 'AttachStderr': False, 2018-12-02T01:32:16.3470959Z 'AttachStdin': False, 2018-12-02T01:32:16.3471154Z 'AttachStdout': False, 2018-12-02T01:32:16.3471417Z 'Cmd': ['nginx', '-g', 'daemon off;'], 2018-12-02T01:32:16.3471617Z 'Domainname': '', 2018-12-02T01:32:16.3471847Z 'Entrypoint': None, 2018-12-02T01:32:16.3472099Z 'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 2018-12-02T01:32:16.3472275Z ... 2018-12-02T01:32:16.3472355Z 2018-12-02T01:32:16.3472685Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
2018-12-02T01:32:16.3473091Z 'Args': ['-g', 'daemon off;'], 2018-12-02T01:32:16.3473737Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3474042Z 'AttachStderr': False, 2018-12-02T01:32:16.3474451Z 'AttachStdin': False, 2018-12-02T01:32:16.3474789Z 'AttachStdout': False, 2018-12-02T01:32:16.3475061Z 'Cmd': ['nginx', '-g', 'daemon off;'], 2018-12-02T01:32:16.3475304Z 'Domainname': '', 2018-12-02T01:32:16.3475593Z 'Entrypoint': None, 2018-12-02T01:32:16.3475894Z 'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 2018-12-02T01:32:16.3476014Z ... 2018-12-02T01:32:16.3476052Z 2018-12-02T01:32:16.3476279Z 2018-12-02T01:32:16.3476656Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container <-
('34cd28d213516460a0cf2eeec80fb713e1dfe496914a31bc27cba59ab40c685e') 2018-12-02T01:32:16.3477126Z 2018-12-02T01:32:16.3477218Z 2018-12-02T01:32:16.3477420Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET
/v1.22/containers/34cd28d213516460a0cf2eeec80fb713e1dfe496914a31bc27cba59ab40c685e/json HTTP/1.1" 200 None 2018-12-02T01:32:16.3477607Z 2018-12-02T01:32:16.3642305Z 'Args': ['xxxx.dll'], 2018-12-02T01:32:16.3642652Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3642882Z 'AttachStderr': False, 2018-12-02T01:32:16.3643090Z 'AttachStdin': False, 2018-12-02T01:32:16.3643996Z 'AttachStdout': False, 2018-12-02T01:32:16.3644252Z 'Cmd': None, 2018-12-02T01:32:16.3644541Z 'Domainname': '', 2018-12-02T01:32:16.3644826Z 'Entrypoint': ['dotnet', 'AgritoAdminApp.dll'], 2018-12-02T01:32:16.3645135Z 'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 2018-12-02T01:32:16.3645275Z ... 2018-12-02T01:32:16.3645317Z 2018-12-02T01:32:16.3648162Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
2018-12-02T01:32:16.3648640Z 'Args': ['xxxx.dll'], 2018-12-02T01:32:16.3648890Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3649140Z 'AttachStderr': False, 2018-12-02T01:32:16.3649341Z 'AttachStdin': False, 2018-12-02T01:32:16.3649730Z 'AttachStdout': False, 2018-12-02T01:32:16.3649966Z 'Cmd': None, 2018-12-02T01:32:16.3650152Z 'Domainname': '', 2018-12-02T01:32:16.3650401Z 'Entrypoint': ['dotnet', 'AgritoAdminApp.dll'], 2018-12-02T01:32:16.3650650Z 'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 2018-12-02T01:32:16.3650748Z ... 2018-12-02T01:32:16.3650781Z 2018-12-02T01:32:16.3653105Z 2018-12-02T01:32:16.3655792Z
[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container <-
('1e79ea7c93188b80c1d99ea52705bf79900d4451df61e3bdccd084e54252d737') 2018-12-02T01:32:16.3656177Z 2018-12-02T01:32:16.3658614Z 2018-12-02T01:32:16.3660045Z
[error]urllib3.connectionpool._make_request: http://localhost:None "GET
/v1.22/containers/1e79ea7c93188b80c1d99ea52705bf79900d4451df61e3bdccd084e54252d737/json HTTP/1.1" 200 None 2018-12-02T01:32:16.3660301Z 2018-12-02T01:32:16.3662715Z 'Args': ['/etc/docker/registry/config.yml'], 2018-12-02T01:32:16.3663388Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3663701Z
'AttachStderr': False, 2018-12-02T01:32:16.3663943Z
'AttachStdin': False, 2018-12-02T01:32:16.3664238Z
'AttachStdout': False, 2018-12-02T01:32:16.3664508Z 'Cmd': ['/etc/docker/registry/config.yml'], 2018-12-02T01:32:16.3664797Z
'Domainname': '', 2018-12-02T01:32:16.3665061Z
'Entrypoint': ['/entrypoint.sh'], 2018-12-02T01:32:16.3665574Z
'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'], 2018-12-02T01:32:16.3665711Z ... 2018-12-02T01:32:16.3665751Z 2018-12-02T01:32:16.3667926Z[error]compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
2018-12-02T01:32:16.3668451Z 'Args': ['/etc/docker/registry/config.yml'], 2018-12-02T01:32:16.3668663Z 'Config': {'ArgsEscaped': True, 2018-12-02T01:32:16.3668857Z
'AttachStderr': False, 2018-12-02T01:32:16.3669112Z
'AttachStdin': False, 2018-12-02T01:32:16.3669306Z
'AttachStdout': False, 2018-12-02T01:32:16.3669553Z 'Cmd': ['/etc/docker/registry/config.yml'], 2018-12-02T01:32:16.3669752Z
'Domainname': '', 2018-12-02T01:32:16.3669955Z
'Entrypoint': ['/entrypoint.sh'], 2018-12-02T01:32:16.3670242Z
'Env': ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'], 2018-12-02T01:32:16.3670303Z ... 2018-12-02T01:32:16.3670380Z 2018-12-02T01:32:16.3680081Z 2018-12-02T01:32:16.3682850Z[error]Restarting nginx-***_revp_1 ... 2018-12-02T01:32:16.3683658Z 2018-12-02T01:32:16.3686051Z
2018-12-02T01:32:16.3687676Z ##[error]Restarting nginx-_app_1
... 2018-12-02T01:32:16.3687925Z 2018-12-02T01:32:16.3689805Z 2018-12-02T01:32:16.3691190Z ##[error]Restarting nginx-_registry_1 ... 2018-12-02T01:32:16.3691438Z 2018-12-02T01:32:16.3701343Z 2018-12-02T01:32:16.3704559Z ##[error]compose.parallel.feed_queue: Pending: {, , } 2018-12-02T01:32:16.3704911Z 2018-12-02T01:32:16.3707357Z 2018-12-02T01:32:16.3708954Z ##[error]compose.parallel.feed_queue: Starting producer thread for 2018-12-02T01:32:16.3709589Z 2018-12-02T01:32:16.3711439Z 2018-12-02T01:32:16.3712909Z[error]compose.cli.verbose_proxy.proxy_callable: docker restart <- ('1e79ea7c93188b80c1d99ea52705bf79900d4451df61e3bdccd084e54252d737',
timeout=10) 2018-12-02T01:32:16.3713252Z 2018-12-02T01:32:16.3716095Z 2018-12-02T01:32:16.3717730Z ##[error]compose.parallel.feed_queue: Starting producer thread for 2018-12-02T01:32:16.3717990Z 2018-12-02T01:32:16.3725036Z 2018-12-02T01:32:16.3727302Z
[error]compose.cli.verbose_proxy.proxy_callable: docker restart <- ('7f4a1383faa177e75b7ec9af569766a9c108e4b5acd79f42a0dbe598bdc3d1cd',
timeout=10) 2018-12-02T01:32:16.3728113Z 2018-12-02T01:32:16.3730878Z 2018-12-02T01:32:16.3734816Z ##[error]compose.parallel.feed_queue: Starting producer thread for 2018-12-02T01:32:16.3735125Z 2018-12-02T01:32:16.3740238Z 2018-12-02T01:32:16.3742123Z
[error]compose.cli.verbose_proxy.proxy_callable: docker restart <- ('34cd28d213516460a0cf2eeec80fb713e1dfe496914a31bc27cba59ab40c685e',
timeout=10) 2018-12-02T01:32:16.3742746Z 2018-12-02T01:32:17.0570154Z 2018-12-02T01:32:17.0600737Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0601307Z 2018-12-02T01:32:17.0601592Z 2018-12-02T01:32:17.0602012Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0602242Z 2018-12-02T01:32:17.0602541Z
2018-12-02T01:32:17.0602822Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0603248Z 2018-12-02T01:32:17.0603426Z 2018-12-02T01:32:17.0604212Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0604661Z 2018-12-02T01:32:17.0605061Z
2018-12-02T01:32:17.0605271Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0605684Z 2018-12-02T01:32:17.0606103Z 2018-12-02T01:32:17.0606293Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0606573Z 2018-12-02T01:32:17.0606672Z
2018-12-02T01:32:17.0606866Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.0607079Z 2018-12-02T01:32:17.1181282Z 2018-12-02T01:32:17.1181706Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.1183728Z 2018-12-02T01:32:17.2183096Z
2018-12-02T01:32:17.2184168Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.2184572Z 2018-12-02T01:32:17.3188761Z 2018-12-02T01:32:17.3189367Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.3189908Z 2018-12-02T01:32:17.4187556Z
2018-12-02T01:32:17.4187863Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.4188173Z 2018-12-02T01:32:17.5195819Z 2018-12-02T01:32:17.5196176Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.5196547Z 2018-12-02T01:32:17.6195380Z
2018-12-02T01:32:17.6196437Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.6196950Z 2018-12-02T01:32:17.7200896Z 2018-12-02T01:32:17.7201272Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.7201592Z 2018-12-02T01:32:17.8205262Z
2018-12-02T01:32:17.8205970Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.8206727Z 2018-12-02T01:32:17.9209821Z 2018-12-02T01:32:17.9212278Z
[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.9212703Z 2018-12-02T01:32:17.9711586Z
compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9712036Z 2018-12-02T01:32:17.9719350Z
[error]urllib3.connectionpool._make_request: http://localhost:None "POST
/v1.22/containers/34cd28d213516460a0cf2eeec80fb713e1dfe496914a31bc27cba59ab40c685e/restart?t=10 HTTP/1.1" 204 0 2018-12-02T01:32:17.9720514Z compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9720757Z 2018-12-02T01:32:17.9721281Z 2018-12-02T01:32:17.9721851Z
[error]compose.parallel.parallel_execute_iter: Finished processing: 2018-12-02T01:32:17.9722404Z
2018-12-02T01:32:17.9746982Z 2018-12-02T01:32:17.9747936Z
[error]Restarting nginx-***_app_1 ... done 2018-12-02T01:32:17.9748848Z 2018-12-02T01:32:17.9749032Z
2018-12-02T01:32:17.9749233Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.9749451Z 2018-12-02T01:32:17.9749861Z compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9749959Z 2018-12-02T01:32:17.9750194Z
[error]urllib3.connectionpool._make_request: http://localhost:None "POST
/v1.22/containers/1e79ea7c93188b80c1d99ea52705bf79900d4451df61e3bdccd084e54252d737/restart?t=10 HTTP/1.1" 204 0 2018-12-02T01:32:17.9750648Z compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9751017Z 2018-12-02T01:32:17.9751241Z 2018-12-02T01:32:17.9751583Z
[error]compose.parallel.parallel_execute_iter: Finished processing:
2018-12-02T01:32:17.9751796Z 2018-12-02T01:32:17.9752033Z 2018-12-02T01:32:17.9752316Z ##[error]Restarting nginx-***_registry_1 ... done 2018-12-02T01:32:17.9752508Z 2018-12-02T01:32:17.9752594Z 2018-12-02T01:32:17.9752760Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.9752986Z 2018-12-02T01:32:17.9876795Z compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9876970Z 2018-12-02T01:32:17.9877298Z
[error]urllib3.connectionpool._make_request: http://localhost:None "POST
/v1.22/containers/7f4a1383faa177e75b7ec9af569766a9c108e4b5acd79f42a0dbe598bdc3d1cd/restart?t=10 HTTP/1.1" 204 0 2018-12-02T01:32:17.9878384Z compose.cli.verbose_proxy.proxy_callable: docker restart -> None 2018-12-02T01:32:17.9878436Z 2018-12-02T01:32:17.9878671Z 2018-12-02T01:32:17.9879051Z
[error]compose.parallel.parallel_execute_iter: Finished processing: 2018-12-02T01:32:17.9879255Z
2018-12-02T01:32:17.9879455Z 2018-12-02T01:32:17.9879834Z
[error]Restarting nginx-***_revp_1 ... done 2018-12-02T01:32:17.9880351Z 2018-12-02T01:32:17.9886676Z
2018-12-02T01:32:17.9886972Z ##[error]compose.parallel.feed_queue: Pending: set() 2018-12-02T01:32:17.9887253Z 2018-12-02T01:32:18.0941509Z ##[error]Command failed with errors on remote machine. 2018-12-02T01:32:18.2304406Z ##[section]Finishing: Pull latest image
Comments
Post a Comment