{"action":"closed","issue":{"url":"https://api.github.com/repos/goldmann/docker-scripts/issues/50","repository_url":"https://api.github.com/repos/goldmann/docker-scripts","labels_url":"https://api.github.com/repos/goldmann/docker-scripts/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/goldmann/docker-scripts/issues/50/comments","events_url":"https://api.github.com/repos/goldmann/docker-scripts/issues/50/events","html_url":"https://github.com/goldmann/docker-scripts/issues/50","id":131338634,"number":50,"title":"Squashing fails with \"ApplyLayer exit status 1 stdout:  stderr: no such file or directory\" or similar","user":{"login":"goldmann","id":43489,"avatar_url":"https://avatars.githubusercontent.com/u/43489?v=3","gravatar_id":"","url":"https://api.github.com/users/goldmann","html_url":"https://github.com/goldmann","followers_url":"https://api.github.com/users/goldmann/followers","following_url":"https://api.github.com/users/goldmann/following{/other_user}","gists_url":"https://api.github.com/users/goldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/goldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldmann/subscriptions","organizations_url":"https://api.github.com/users/goldmann/orgs","repos_url":"https://api.github.com/users/goldmann/repos","events_url":"https://api.github.com/users/goldmann/events{/privacy}","received_events_url":"https://api.github.com/users/goldmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/goldmann/docker-scripts/labels/squash","name":"squash","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-04T12:55:17Z","updated_at":"2016-03-17T12:00:48Z","closed_at":"2016-03-17T12:00:48Z","body":"Log:\r\n\r\n```\r\n2016-02-04 13:43:43,744 root         DEBUG    Moving unmodified layer '1962253fc10cf35c44d0990bc68291c6b32e8d5c1bda66e4dee2370b2a00c8af'...\r\n2016-02-04 13:43:43,744 root         DEBUG    Moving unmodified layer 'af5068b1ae3eb2e20cf9d94ebcc6df1691725339243262eeb61b48a0a77abc67'...\r\n2016-02-04 13:43:43,745 root         INFO     Squashed image name: squashed:latest\r\n2016-02-04 13:43:43,745 root         DEBUG    Generating tar archive for the squashed image...\r\n2016-02-04 13:43:44,243 root         DEBUG    Archive generated\r\n2016-02-04 13:43:44,243 root         DEBUG    Loading squashed image...\r\n2016-02-04 13:43:51,325 requests.packages.urllib3.connectionpool DEBUG    \"POST /v1.21/images/load HTTP/1.1\" 404 105\r\nTraceback (most recent call last):\r\n  File \"/home/goldmann/.local/bin/docker-scripts\", line 9, in <module>\r\n    load_entry_point('docker-scripts==0.4.4', 'console_scripts', 'docker-scripts')()\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker_scripts/cli.py\", line 96, in run\r\n    cli.run()\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker_scripts/cli.py\", line 88, in run\r\n    args.func(args)\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker_scripts/cli.py\", line 31, in run_squash\r\n    from_layer=args.from_layer, tag=args.tag, output_path=args.output_path, tmp_dir=args.tmp_dir).run()\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker_scripts/squash.py\", line 520, in run\r\n    self._load_image(new_image_dir)\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker_scripts/squash.py\", line 223, in _load_image\r\n    self.docker.load_image(buf.getvalue())\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker/api/image.py\", line 148, in load_image\r\n    self._raise_for_status(res)\r\n  File \"/home/goldmann/.local/lib/python2.7/site-packages/docker/client.py\", line 141, in _raise_for_status\r\n    raise errors.NotFound(e, response, explanation=explanation)\r\ndocker.errors.NotFound: 404 Client Error: Not Found (\"ApplyLayer exit status 1 stdout:  stderr: chtimes /opt/webserver/webapps/ROOT: no such file or directory\")\r\n```\r\n\r\nDocker daemon log:\r\n\r\n```\r\nFeb 04 13:43:45 mistress docker[396]: time=\"2016-02-04T13:43:45.162110621+01:00\" level=debug msg=\"Calling POST /v1.21/images/load\"\r\nFeb 04 13:43:45 mistress docker[396]: time=\"2016-02-04T13:43:45.162138096+01:00\" level=debug msg=\"POST /v1.21/images/load\"\r\nFeb 04 13:43:45 mistress docker[396]: time=\"2016-02-04T13:43:45.162935119+01:00\" level=info msg=\"{Action=load, Username=goldmann, LoginUID=1000, PID=634}\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.260096970+01:00\" level=debug msg=\"Loading d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.765199610+01:00\" level=debug msg=\"[deviceset] AddDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe basehash=af5068b1ae3eb2e20cf9d94ebcc6df1691725339243262eeb61b48a0a77abc67)\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.780599317+01:00\" level=debug msg=\"registerDevice(4678, d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.793644342+01:00\" level=debug msg=\"[deviceset] AddDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe basehash=af5068b1ae3eb2e20cf9d94ebcc6df1691725339243262eeb61b48a0a77abc67) END\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.795614828+01:00\" level=debug msg=\"activateDeviceIfNeeded(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:46 mistress docker[396]: time=\"2016-02-04T13:43:46.848969915+01:00\" level=debug msg=\"Start untar layer\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.007371332+01:00\" level=debug msg=\"[devmapper] UnmountDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.007400305+01:00\" level=debug msg=\"[devmapper] Unmount(/var/lib/docker/devicemapper/mnt/d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.418713471+01:00\" level=debug msg=\"[devmapper] Unmount done\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.418811361+01:00\" level=debug msg=\"[devmapper] deactivateDevice(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.418936583+01:00\" level=debug msg=\"[devmapper] removeDevice START(docker-253:4-5242881-d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.440845525+01:00\" level=debug msg=\"[devmapper] removeDevice END(docker-253:4-5242881-d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.440878944+01:00\" level=debug msg=\"[devmapper] deactivateDevice END(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.440889454+01:00\" level=debug msg=\"[devmapper] UnmountDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe) END\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.442179582+01:00\" level=debug msg=\"devmapper: DeleteDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe syncDelete=false) START\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.442192741+01:00\" level=debug msg=\"devmapper: issueDiscard(device: d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe). START\"\r\nFeb 04 13:43:49 mistress docker[396]: time=\"2016-02-04T13:43:49.442200543+01:00\" level=debug msg=\"activateDeviceIfNeeded(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.271166347+01:00\" level=debug msg=\"devmapper: issueDiscard(device: d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe). END\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.271200577+01:00\" level=debug msg=\"[devmapper] deactivateDevice(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.271260569+01:00\" level=debug msg=\"[devmapper] removeDevice START(docker-253:4-5242881-d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.296791905+01:00\" level=debug msg=\"[devmapper] removeDevice END(docker-253:4-5242881-d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.296825740+01:00\" level=debug msg=\"[devmapper] deactivateDevice END(d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.317886433+01:00\" level=debug msg=\"unregisterDevice(4678, d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe)\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.320975273+01:00\" level=debug msg=\"devmapper: DeleteDevice(hash=d500bc3c8bd13630b7536b2116cd0a68de1172876c0befb295c3314df66f2cfe syncDelete=false) END\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.321682713+01:00\" level=error msg=\"Handler for POST /v1.21/images/load returned error: ApplyLayer exit status 1 stdout:  stderr: chtimes /opt/webserver/webapps/ROOT: no such file or directory\"\r\nFeb 04 13:43:51 mistress docker[396]: time=\"2016-02-04T13:43:51.322406201+01:00\" level=error msg=\"HTTP Error\" err=\"ApplyLayer exit status 1 stdout:  stderr: chtimes /opt/webserver/webapps/ROOT: no such file or directory\" statusCode=404\r\n```"}}