{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/2549","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/2549/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/2549/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/2549/events","html_url":"https://github.com/dokku/dokku/issues/2549","id":198881125,"number":2549,"title":"`Compiling static nginx binary` deploy stage failing for 0.7.1 and for the latest version","user":{"login":"Firfi","id":947595,"avatar_url":"https://avatars.githubusercontent.com/u/947595?v=3","gravatar_id":"","url":"https://api.github.com/users/Firfi","html_url":"https://github.com/Firfi","followers_url":"https://api.github.com/users/Firfi/followers","following_url":"https://api.github.com/users/Firfi/following{/other_user}","gists_url":"https://api.github.com/users/Firfi/gists{/gist_id}","starred_url":"https://api.github.com/users/Firfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firfi/subscriptions","organizations_url":"https://api.github.com/users/Firfi/orgs","repos_url":"https://api.github.com/users/Firfi/repos","events_url":"https://api.github.com/users/Firfi/events{/privacy}","received_events_url":"https://api.github.com/users/Firfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-05T05:49:24Z","updated_at":"2017-01-05T06:05:14Z","closed_at":null,"body":"Description of problem:\r\n\r\nI have a .static file in repo. This worked before, and I haven't made any changes on my server. \r\nI thought it may be fixed in latest version but the error persists (however, another one, but still with nginx). The old error had to do something with `cannot stat '/tmp/build/nginx`. The new one I'll describe below.\r\n\r\nOutput of the following commands\r\n\r\n- `uname -a`: `Linux firfiapps 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux`\r\n- `free -m`: \r\n\r\n```\r\n              total        used        free      shared  buff/cache   available\r\nMem:           3951         735         716          46        2499        2822\r\nSwap:             0           0           0\r\n```\r\n\r\n- `docker version`: 1.12.5\r\n- `docker -D info`:\r\n```\r\nContainers: 13\r\n Running: 9\r\n Paused: 0\r\n Stopped: 4\r\nImages: 48\r\nServer Version: 1.12.5\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 97\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: null host overlay bridge\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-38-generic\r\nOperating System: Ubuntu 16.04.1 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 3.859 GiB\r\nName: firfiapps\r\nID: HR5T:MDQD:NAWD:USFG:RKAU:HBTM:UZFO:JW7M:EULF:BXIJ:TX2T:QZJC\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): true\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n- `sigil -v`: `0.4.0`\r\n- `docker run -ti gliderlabs/herokuish:latest herokuish version`:\r\n\r\n```\r\nherokuish: 0.3.19\r\nbuildpacks:\r\n  heroku-buildpack-multi     v1.0.0\r\n  heroku-buildpack-ruby      v146\r\n  heroku-buildpack-nodejs    v91\r\n  heroku-buildpack-clojure   v75\r\n  heroku-buildpack-python    v82\r\n  heroku-buildpack-java      v46\r\n  heroku-buildpack-gradle    v18\r\n  heroku-buildpack-grails    v21\r\n  heroku-buildpack-scala     v72\r\n  heroku-buildpack-play      v26\r\n  heroku-buildpack-php       v110\r\n  heroku-buildpack-go        v44\r\n  heroku-buildpack-erlang    fa17af9\r\n  buildpack-nginx            v6\r\n  emberjs.tgz                latest\r\n```\r\n\r\n- `dokku version`: 0.7.2\r\n- `dokku plugin`:\r\n\r\n```\r\nplugn: 0.2.2\r\n  00_dokku-standard    0.7.2 enabled    dokku core standard plugin\r\n  20_events            0.7.2 enabled    dokku core events logging plugin\r\n  apps                 0.7.2 enabled    dokku core apps plugin\r\n  build-env            0.7.2 enabled    dokku core build-env plugin\r\n  certs                0.7.2 enabled    dokku core certificate management plugin\r\n  checks               0.7.2 enabled    dokku core checks plugin\r\n  common               0.7.2 enabled    dokku core common plugin\r\n  config               0.7.2 enabled    dokku core config plugin\r\n  docker-options       0.7.2 enabled    dokku core docker-options plugin\r\n  domains              0.7.2 enabled    dokku core domains plugin\r\n  enter                0.7.2 enabled    dokku core enter plugin\r\n  git                  0.7.2 enabled    dokku core git plugin\r\n  logs                 0.7.2 enabled    dokku core logs plugin\r\n  mongo                1.0.0 enabled    dokku mongo service plugin\r\n  named-containers     0.7.2 enabled    dokku core named containers plugin\r\n  nginx-vhosts         0.7.2 enabled    dokku core nginx-vhosts plugin\r\n  plugin               0.7.2 enabled    dokku core plugin plugin\r\n  proxy                0.7.2 enabled    dokku core proxy plugin\r\n  ps                   0.7.2 enabled    dokku core ps plugin\r\n  redis                1.0.0 enabled    dokku redis service plugin\r\n  repo                 0.7.2 enabled    dokku core repo plugin\r\n  shell                0.7.2 enabled    dokku core shell plugin\r\n  ssh-keys             0.7.2 enabled    dokku core ssh-keys plugin\r\n  storage              0.7.2 enabled    dokku core storage plugin\r\n  tags                 0.7.2 enabled    dokku core tags plugin\r\n  tar                  0.7.2 enabled    dokku core tar plugin\r\n```\r\n\r\n- `docker inspect CONTAINER_ID` (if applicable): NOT_DEPLOYED\r\n- `cat /home/dokku/MY APP/nginx.conf` (if applicable): No such file or directory\r\n- Link to the exact repository being deployed (if possible/applicable): not possible\r\n- If a deploy is failing or behaving unexpectedly:\r\n  - The type of application being deployed (node, php, python, ruby, etc.): `static`\r\n  - If using buildpacks, which custom buildpacks are in use - `no custom buildpacks`\r\n  - If using a `Dockerfile`, the contents of that file - `not using`\r\n  - If it exists, the contents of your `Procfile`. - `no Procfile`\r\n- Output of failing Dokku commands after running `dokku trace on`\r\n  (BEWARE: `trace on` will print environment variables for some commands, be sure you're not exposing any sensitive information when posting issues. You may replace these values with XXXXXXX):\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\n\r\nHow was Dokku installed?:\r\n\r\napt-get\r\n\r\nHow reproducible:\r\n\r\ndeploy the static site\r\n\r\nSteps to Reproduce:\r\n1. mkdir dokku-example && cd dokku-example && touch .static && touch index.html\r\n2. `tar cz . $* | ssh root@11.111.111.111 \"dokku tar:in app-name\"` (it isn't important if it's `git push` deploy; same error)\r\n\r\nActual Results:\r\n\r\nMost important:\r\n\r\n```\r\nDownload and unzip zlib\r\nremote:\r\nremote: gzip: stdin: not in gzip format\r\nremote: tar: Child returned status 1\r\nremote: tar: Error is not recoverable: exiting now\r\n```\r\n\r\nthen `Compiling static nginx binary` failing due to zlib:\r\n\r\n```\r\ncd ../zlib-1.2.8 \t&& make distclean \t&& CFLAGS=\"-O2 -fomit-frame-pointer -pipe \" CC=\"cc\" \t./configure \t&& make libz.a\r\n       make[1]: Leaving directory `/cache/nginx-1.10.1'\r\n       /bin/sh: 1: cd: can't cd to ../zlib-1.2.8\r\n       make[1]: *** [../zlib-1.2.8/libz.a] Error 2\r\n       make: *** [install] Error 2\r\n       make -f objs/Makefile install\r\n       make[1]: Entering directory `/cache/nginx-1.10.1'\r\n       cd ../zlib-1.2.8 \t&& make distclean \t&& CFLAGS=\"-O2 -fomit-frame-pointer -pipe \" CC=\"cc\" \t./configure \t&& make libz.a\r\n       make[1]: Leaving directory `/cache/nginx-1.10.1'\r\nTo dokku@[my app here]\r\n ! [remote rejected].\r\n```\r\n\r\nExpected Results:\r\n\r\ndeploy\r\n\r\nAdditional info:\r\n\r\nProbably it's gzip installation failing that leads to nginx installation fail\r\n"},"comment":{"url":"https://api.github.com/repos/dokku/dokku/issues/comments/270570956","html_url":"https://github.com/dokku/dokku/issues/2549#issuecomment-270570956","issue_url":"https://api.github.com/repos/dokku/dokku/issues/2549","id":270570956,"user":{"login":"Firfi","id":947595,"avatar_url":"https://avatars.githubusercontent.com/u/947595?v=3","gravatar_id":"","url":"https://api.github.com/users/Firfi","html_url":"https://github.com/Firfi","followers_url":"https://api.github.com/users/Firfi/followers","following_url":"https://api.github.com/users/Firfi/following{/other_user}","gists_url":"https://api.github.com/users/Firfi/gists{/gist_id}","starred_url":"https://api.github.com/users/Firfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firfi/subscriptions","organizations_url":"https://api.github.com/users/Firfi/orgs","repos_url":"https://api.github.com/users/Firfi/repos","events_url":"https://api.github.com/users/Firfi/events{/privacy}","received_events_url":"https://api.github.com/users/Firfi/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T06:05:14Z","updated_at":"2017-01-05T06:05:14Z","body":"*temporary fix for anyone stumbling around*\r\n\r\n`dokku config:set YOUR_APP BUILDPACK_URL=https://github.com/dokku/buildpack-nginx.git`\r\n\r\n"}}
{"actor":{"display_login":"Firfi"}}