Dokku: `Compiling static nginx binary` deploy stage failing for 0.7.1 and for the latest version

Created on 5 Jan 2017  路  2Comments  路  Source: dokku/dokku

Description of problem:

I have a .static file in repo. This worked before, and I haven't made any changes on my server.
I 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.

Output of the following commands

  • 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
  • free -m:
              total        used        free      shared  buff/cache   available
Mem:           3951         735         716          46        2499        2822
Swap:             0           0           0
  • docker version: 1.12.5
  • docker -D info:
Containers: 13
 Running: 9
 Paused: 0
 Stopped: 4
Images: 48
Server Version: 1.12.5
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 97
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host overlay bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-38-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.859 GiB
Name: firfiapps
ID: HR5T:MDQD:NAWD:USFG:RKAU:HBTM:UZFO:JW7M:EULF:BXIJ:TX2T:QZJC
Docker Root Dir: /var/lib/docker
Debug Mode (client): true
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8
  • sigil -v: 0.4.0
  • docker run -ti gliderlabs/herokuish:latest herokuish version:
herokuish: 0.3.19
buildpacks:
  heroku-buildpack-multi     v1.0.0
  heroku-buildpack-ruby      v146
  heroku-buildpack-nodejs    v91
  heroku-buildpack-clojure   v75
  heroku-buildpack-python    v82
  heroku-buildpack-java      v46
  heroku-buildpack-gradle    v18
  heroku-buildpack-grails    v21
  heroku-buildpack-scala     v72
  heroku-buildpack-play      v26
  heroku-buildpack-php       v110
  heroku-buildpack-go        v44
  heroku-buildpack-erlang    fa17af9
  buildpack-nginx            v6
  emberjs.tgz                latest
  • dokku version: 0.7.2
  • dokku plugin:
plugn: 0.2.2
  00_dokku-standard    0.7.2 enabled    dokku core standard plugin
  20_events            0.7.2 enabled    dokku core events logging plugin
  apps                 0.7.2 enabled    dokku core apps plugin
  build-env            0.7.2 enabled    dokku core build-env plugin
  certs                0.7.2 enabled    dokku core certificate management plugin
  checks               0.7.2 enabled    dokku core checks plugin
  common               0.7.2 enabled    dokku core common plugin
  config               0.7.2 enabled    dokku core config plugin
  docker-options       0.7.2 enabled    dokku core docker-options plugin
  domains              0.7.2 enabled    dokku core domains plugin
  enter                0.7.2 enabled    dokku core enter plugin
  git                  0.7.2 enabled    dokku core git plugin
  logs                 0.7.2 enabled    dokku core logs plugin
  mongo                1.0.0 enabled    dokku mongo service plugin
  named-containers     0.7.2 enabled    dokku core named containers plugin
  nginx-vhosts         0.7.2 enabled    dokku core nginx-vhosts plugin
  plugin               0.7.2 enabled    dokku core plugin plugin
  proxy                0.7.2 enabled    dokku core proxy plugin
  ps                   0.7.2 enabled    dokku core ps plugin
  redis                1.0.0 enabled    dokku redis service plugin
  repo                 0.7.2 enabled    dokku core repo plugin
  shell                0.7.2 enabled    dokku core shell plugin
  ssh-keys             0.7.2 enabled    dokku core ssh-keys plugin
  storage              0.7.2 enabled    dokku core storage plugin
  tags                 0.7.2 enabled    dokku core tags plugin
  tar                  0.7.2 enabled    dokku core tar plugin
  • docker inspect CONTAINER_ID (if applicable): NOT_DEPLOYED
  • cat /home/dokku/MY APP/nginx.conf (if applicable): No such file or directory
  • Link to the exact repository being deployed (if possible/applicable): not possible
  • If a deploy is failing or behaving unexpectedly:

    • The type of application being deployed (node, php, python, ruby, etc.): static

    • If using buildpacks, which custom buildpacks are in use - no custom buildpacks

    • If using a Dockerfile, the contents of that file - not using

    • If it exists, the contents of your Procfile. - no Procfile

  • Output of failing Dokku commands after running dokku trace on
    (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):

Environment details (AWS, VirtualBox, physical, etc.):

How was Dokku installed?:

apt-get

How reproducible:

deploy the static site

Steps to Reproduce:

  1. mkdir dokku-example && cd dokku-example && touch .static && touch index.html
  2. tar cz . $* | ssh [email protected] "dokku tar:in app-name" (it isn't important if it's git push deploy; same error)

Actual Results:

Most important:

Download and unzip zlib
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now

then Compiling static nginx binary failing due to zlib:

cd ../zlib-1.2.8    && make distclean   && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="cc"     ./configure     && make libz.a
       make[1]: Leaving directory `/cache/nginx-1.10.1'
       /bin/sh: 1: cd: can't cd to ../zlib-1.2.8
       make[1]: *** [../zlib-1.2.8/libz.a] Error 2
       make: *** [install] Error 2
       make -f objs/Makefile install
       make[1]: Entering directory `/cache/nginx-1.10.1'
       cd ../zlib-1.2.8     && make distclean   && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="cc"     ./configure     && make libz.a
       make[1]: Leaving directory `/cache/nginx-1.10.1'
To dokku@[my app here]
 ! [remote rejected].

Expected Results:

deploy

Additional info:

Probably it's gzip installation failing that leads to nginx installation fail

Most helpful comment

temporary fix for anyone stumbling around

dokku config:set YOUR_APP BUILDPACK_URL=https://github.com/dokku/buildpack-nginx.git

It will check out the latest buildpack version (3 days ago)

All 2 comments

I see a very probable relation to this: https://github.com/dokku/buildpack-nginx/commit/0a46959ef7509dbd441b04412fdfa46684005c7d

(maybe zlib release just disappeared)

temporary fix for anyone stumbling around

dokku config:set YOUR_APP BUILDPACK_URL=https://github.com/dokku/buildpack-nginx.git

It will check out the latest buildpack version (3 days ago)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christiangenco picture christiangenco  路  5Comments

hhff picture hhff  路  4Comments

bots-business picture bots-business  路  3Comments

mappu picture mappu  路  4Comments

knzudgt picture knzudgt  路  4Comments