Bad Gateway errors on all apps other than the heroku sample app #282

Closed
Mmarzex opened this Issue Nov 2, 2013 · 19 comments

Projects

None yet

5 participants

@Mmarzex
Mmarzex commented Nov 2, 2013

Hi,

I have a simple node app that is just a bunch of get requests to a database basically but dokku deploys it but does not start a docker container and the proxying doesn't working giving me a Bad Gateway error when I try to load it. My question or rather concern is, is there a certain way that projects have to adhere to in order for dokku to work?

@ghost
ghost commented Nov 2, 2013

What version and arch of Ubuntu are you using?

@Mmarzex
Mmarzex commented Nov 2, 2013

I am using 13.10 and x86_64. I can change it if it is an issue, it's a brand new spun up instance so if needed I'll change it to get it working better.

@ghost
ghost commented Nov 2, 2013

13.10 has some issues with docker - try using 13.04 x64 instead and see if that helps

@Mmarzex
Mmarzex commented Nov 2, 2013

Alright I will try that out.

@Mmarzex
Mmarzex commented Nov 2, 2013

I tried with 13.04 x64 and it still didn't change it, it still gives me an error when I try to deploy my app.

@ghost
ghost commented Nov 2, 2013

Strange, could you post the full output when pushing?

@Mmarzex
Mmarzex commented Nov 2, 2013

Sure, here is the full outpust

it push mmevo master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 568 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
-----> Building imbue ...
       Node.js app detected
-----> Resolving engine versions

       WARNING: No version of Node.js specified in package.json, see:
       https://devcenter.heroku.com/articles/nodejs-support#versions

       Using Node.js version: 0.10.21
       Using npm version: 1.3.11
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
       npm WARN package.json imbue-backend@0.0.1 No repository field.
       npm http GET https://registry.npmjs.org/connect/1.8.5
       npm http GET https://registry.npmjs.org/express/2.5.2
       npm http GET https://registry.npmjs.org/request
       npm http GET https://registry.npmjs.org/mongoose
       npm http GET https://registry.npmjs.org/jade/0.20.0
       npm http 200 https://registry.npmjs.org/connect/1.8.5
       npm http GET https://registry.npmjs.org/connect/-/connect-1.8.5.tgz
       npm http 200 https://registry.npmjs.org/jade/0.20.0
       npm http GET https://registry.npmjs.org/jade/-/jade-0.20.0.tgz
       npm http 200 https://registry.npmjs.org/express/2.5.2
       npm http GET https://registry.npmjs.org/express/-/express-2.5.2.tgz
       npm http 200 https://registry.npmjs.org/connect/-/connect-1.8.5.tgz
       npm http 200 https://registry.npmjs.org/jade/-/jade-0.20.0.tgz
       npm http 200 https://registry.npmjs.org/request
       npm http 200 https://registry.npmjs.org/express/-/express-2.5.2.tgz
       npm http GET https://registry.npmjs.org/request/-/request-2.27.0.tgz
       npm http 200 https://registry.npmjs.org/request/-/request-2.27.0.tgz
       npm http 200 https://registry.npmjs.org/mongoose
       npm http GET https://registry.npmjs.org/mongoose/-/mongoose-3.6.20.tgz
       npm WARN excluding symbolic link lib/index.js -> jade.js
       npm http 200 https://registry.npmjs.org/mongoose/-/mongoose-3.6.20.tgz
       npm WARN engine express@2.5.2: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"v0.10.21","npm":"1.3.11"})
       npm WARN engine connect@1.8.5: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"v0.10.21","npm":"1.3.11"})
       npm http GET https://registry.npmjs.org/mkdirp/0.0.7
       npm http GET https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/mime
       npm http GET https://registry.npmjs.org/commander
       npm http GET https://registry.npmjs.org/mkdirp
       npm http GET https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/json-stringify-safe
       npm http GET https://registry.npmjs.org/tunnel-agent
       npm http GET https://registry.npmjs.org/forever-agent
       npm http GET https://registry.npmjs.org/http-signature
       npm http GET https://registry.npmjs.org/hawk
       npm http GET https://registry.npmjs.org/aws-sign
       npm http GET https://registry.npmjs.org/oauth-sign
       npm http GET https://registry.npmjs.org/cookie-jar
       npm http GET https://registry.npmjs.org/node-uuid
       npm http GET https://registry.npmjs.org/mime
       npm http GET https://registry.npmjs.org/form-data
       npm http GET https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/formidable
       npm http GET https://registry.npmjs.org/hooks/0.2.1
       npm http GET https://registry.npmjs.org/mongodb/1.3.19
       npm http GET https://registry.npmjs.org/ms/0.1.0
       npm http GET https://registry.npmjs.org/sliced/0.0.5
       npm http GET https://registry.npmjs.org/muri/0.3.1
       npm http GET https://registry.npmjs.org/mpromise/0.2.1
       npm http GET https://registry.npmjs.org/mpath/0.1.1
       npm http GET https://registry.npmjs.org/regexp-clone/0.0.1
       npm http 200 https://registry.npmjs.org/mkdirp/0.0.7
       npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.0.7.tgz
       npm http 200 https://registry.npmjs.org/mime
       npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
       npm http 200 https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/qs/-/qs-0.6.5.tgz
       npm http 200 https://registry.npmjs.org/mkdirp
       npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
       npm http 200 https://registry.npmjs.org/json-stringify-safe
       npm http 200 https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz
       npm http 200 https://registry.npmjs.org/tunnel-agent
       npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/forever-agent
       npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.5.0.tgz
       npm http 200 https://registry.npmjs.org/http-signature
       npm http GET https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
       npm http 200 https://registry.npmjs.org/aws-sign
       npm http GET https://registry.npmjs.org/aws-sign/-/aws-sign-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/oauth-sign
       npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.0.7.tgz
       npm http 200 https://registry.npmjs.org/commander
       npm http GET https://registry.npmjs.org/commander/-/commander-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/cookie-jar
       npm http GET https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/node-uuid
       npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
       npm http 200 https://registry.npmjs.org/mime
       npm http 200 https://registry.npmjs.org/qs/-/qs-0.6.5.tgz
       npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
       npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
       npm http 200 https://registry.npmjs.org/form-data
       npm http 200 https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz
       npm http 200 https://registry.npmjs.org/qs
       npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
       npm http 200 https://registry.npmjs.org/forever-agent/-/forever-agent-0.5.0.tgz
       npm http GET https://registry.npmjs.org/form-data/-/form-data-0.1.2.tgz
       npm http 200 https://registry.npmjs.org/aws-sign/-/aws-sign-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/hooks/0.2.1
       npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
       npm http 200 https://registry.npmjs.org/ms/0.1.0
       npm http 200 https://registry.npmjs.org/commander/-/commander-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
       npm http GET https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/formidable
       npm http 200 https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
       npm http 200 https://registry.npmjs.org/form-data/-/form-data-0.1.2.tgz
       npm http 200 https://registry.npmjs.org/mongodb/1.3.19
       npm http 200 https://registry.npmjs.org/sliced/0.0.5
       npm http GET https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
       npm http 200 https://registry.npmjs.org/muri/0.3.1
       npm http 200 https://registry.npmjs.org/regexp-clone/0.0.1
       npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
       npm http GET https://registry.npmjs.org/mongodb/-/mongodb-1.3.19.tgz
       npm http GET https://registry.npmjs.org/sliced/-/sliced-0.0.5.tgz
       npm http 200 https://registry.npmjs.org/mpromise/0.2.1
       npm http 200 https://registry.npmjs.org/mpath/0.1.1
       npm http GET https://registry.npmjs.org/muri/-/muri-0.3.1.tgz
       npm http GET https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz
       npm http GET https://registry.npmjs.org/mpromise/-/mpromise-0.2.1.tgz
       npm http GET https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
       npm http 200 https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/hawk
       npm http 200 https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
       npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
       npm http 200 https://registry.npmjs.org/muri/-/muri-0.3.1.tgz
       npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-1.3.19.tgz
       npm http 200 https://registry.npmjs.org/sliced/-/sliced-0.0.5.tgz
       npm http GET https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
       npm http 200 https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz
       npm http 200 https://registry.npmjs.org/mpromise/-/mpromise-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
       npm http 200 https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
       npm WARN engine commander@0.2.1: wanted: {"node":">= 0.4.x < 0.7.0"} (current: {"node":"v0.10.21","npm":"1.3.11"})
       npm http GET https://registry.npmjs.org/combined-stream
       npm http GET https://registry.npmjs.org/async
       npm http GET https://registry.npmjs.org/assert-plus/0.1.2
       npm http GET https://registry.npmjs.org/asn1/0.1.11
       npm http GET https://registry.npmjs.org/ctype/0.5.2
       npm http GET https://registry.npmjs.org/hoek
       npm http GET https://registry.npmjs.org/boom
       npm http GET https://registry.npmjs.org/sntp
       npm http GET https://registry.npmjs.org/cryptiles
       npm http 200 https://registry.npmjs.org/combined-stream
       npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.4.tgz
       npm http 200 https://registry.npmjs.org/ctype/0.5.2
       npm http 200 https://registry.npmjs.org/asn1/0.1.11
       npm http 200 https://registry.npmjs.org/assert-plus/0.1.2
       npm http GET https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
       npm http GET https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
       npm http GET https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz
       npm http 200 https://registry.npmjs.org/cryptiles
       npm http 200 https://registry.npmjs.org/boom
       npm http 200 https://registry.npmjs.org/sntp
       npm http GET https://registry.npmjs.org/cryptiles/-/cryptiles-0.2.2.tgz
       npm http GET https://registry.npmjs.org/boom/-/boom-0.4.2.tgz
       npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.4.tgz
       npm http GET https://registry.npmjs.org/sntp/-/sntp-0.2.4.tgz
       npm http GET https://registry.npmjs.org/sliced/0.0.4
       npm http 200 https://registry.npmjs.org/boom/-/boom-0.4.2.tgz
       npm http 200 https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
       npm http 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz
       npm http 200 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
       npm http 200 https://registry.npmjs.org/sntp/-/sntp-0.2.4.tgz
       npm http 200 https://registry.npmjs.org/hoek
       npm http 200 https://registry.npmjs.org/cryptiles/-/cryptiles-0.2.2.tgz
       npm http GET https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz
       npm http 200 https://registry.npmjs.org/async
       npm http 200 https://registry.npmjs.org/sliced/0.0.4
       npm http GET https://registry.npmjs.org/sliced/-/sliced-0.0.4.tgz
       npm http GET https://registry.npmjs.org/async/-/async-0.2.9.tgz
       npm http 200 https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz
       npm http 200 https://registry.npmjs.org/sliced/-/sliced-0.0.4.tgz
       npm http 200 https://registry.npmjs.org/async/-/async-0.2.9.tgz
       npm http GET https://registry.npmjs.org/bson/0.2.2
       npm http GET https://registry.npmjs.org/kerberos/0.0.3
       npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
       npm http 200 https://registry.npmjs.org/kerberos/0.0.3
       npm http GET https://registry.npmjs.org/kerberos/-/kerberos-0.0.3.tgz
       npm http 200 https://registry.npmjs.org/bson/0.2.2
       npm http GET https://registry.npmjs.org/bson/-/bson-0.2.2.tgz
       npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5
       npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz
       npm http 200 https://registry.npmjs.org/kerberos/-/kerberos-0.0.3.tgz
       npm http 200 https://registry.npmjs.org/bson/-/bson-0.2.2.tgz
       npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz

       > kerberos@0.0.3 install /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
       > (node-gyp rebuild 2> builderror.log) || (exit 0)


       > bson@0.2.2 install /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson
       > (node-gyp rebuild 2> builderror.log) || (exit 0)

       make: Entering directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
         SOLINK_MODULE(target) Release/obj.target/kerberos.node
         SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
         COPY Release/kerberos.node
       make: Leaving directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
       make: Entering directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
         CXX(target) Release/obj.target/bson/ext/bson.o
         SOLINK_MODULE(target) Release/obj.target/bson.node
         SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
         COPY Release/bson.node
       make: Leaving directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
       express@2.5.2 node_modules/express
       ├── qs@0.6.5
       ├── mkdirp@0.0.7
       └── mime@1.2.11

       jade@0.20.0 node_modules/jade
       ├── commander@0.2.1
       └── mkdirp@0.3.5

       connect@1.8.5 node_modules/connect
       ├── qs@0.6.5
       ├── mime@1.2.11
       └── formidable@1.0.14

       request@2.27.0 node_modules/request
       ├── json-stringify-safe@5.0.0
       ├── forever-agent@0.5.0
       ├── aws-sign@0.3.0
       ├── qs@0.6.5
       ├── tunnel-agent@0.3.0
       ├── oauth-sign@0.3.0
       ├── cookie-jar@0.3.0
       ├── node-uuid@1.4.1
       ├── mime@1.2.11
       ├── hawk@1.0.0 (cryptiles@0.2.2, sntp@0.2.4, boom@0.4.2, hoek@0.9.1)
       ├── http-signature@0.10.0 (assert-plus@0.1.2, asn1@0.1.11, ctype@0.5.2)
       └── form-data@0.1.2 (async@0.2.9, combined-stream@0.0.4)

       mongoose@3.6.20 node_modules/mongoose
       ├── regexp-clone@0.0.1
       ├── muri@0.3.1
       ├── sliced@0.0.5
       ├── hooks@0.2.1
       ├── mpath@0.1.1
       ├── ms@0.1.0
       ├── mpromise@0.2.1 (sliced@0.0.4)
       └── mongodb@1.3.19 (kerberos@0.0.3, bson@0.2.2)

       > bson@0.2.2 install /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson
       > (node-gyp rebuild 2> builderror.log) || (exit 0)

       make: Entering directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
         CXX(target) Release/obj.target/bson/ext/bson.o
         SOLINK_MODULE(target) Release/obj.target/bson.node
         SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
         COPY Release/bson.node
       make: Leaving directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'

       > kerberos@0.0.3 install /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
       > (node-gyp rebuild 2> builderror.log) || (exit 0)

       make: Entering directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
         SOLINK_MODULE(target) Release/obj.target/kerberos.node
         SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
         COPY Release/kerberos.node
       make: Leaving directory `/build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
       connect@1.8.5 /build/app/node_modules/connect
       qs@0.6.5 /build/app/node_modules/connect/node_modules/qs
       mime@1.2.11 /build/app/node_modules/connect/node_modules/mime
       formidable@1.0.14 /build/app/node_modules/connect/node_modules/formidable
       express@2.5.2 /build/app/node_modules/express
       mime@1.2.11 /build/app/node_modules/express/node_modules/mime
       qs@0.6.5 /build/app/node_modules/express/node_modules/qs
       mkdirp@0.0.7 /build/app/node_modules/express/node_modules/mkdirp
       jade@0.20.0 /build/app/node_modules/jade
       commander@0.2.1 /build/app/node_modules/jade/node_modules/commander
       mkdirp@0.3.5 /build/app/node_modules/jade/node_modules/mkdirp
       request@2.27.0 /build/app/node_modules/request
       qs@0.6.5 /build/app/node_modules/request/node_modules/qs
       json-stringify-safe@5.0.0 /build/app/node_modules/request/node_modules/json-stringify-safe
       forever-agent@0.5.0 /build/app/node_modules/request/node_modules/forever-agent
       tunnel-agent@0.3.0 /build/app/node_modules/request/node_modules/tunnel-agent
       http-signature@0.10.0 /build/app/node_modules/request/node_modules/http-signature
       assert-plus@0.1.2 /build/app/node_modules/request/node_modules/http-signature/node_modules/assert-plus
       asn1@0.1.11 /build/app/node_modules/request/node_modules/http-signature/node_modules/asn1
       ctype@0.5.2 /build/app/node_modules/request/node_modules/http-signature/node_modules/ctype
       hawk@1.0.0 /build/app/node_modules/request/node_modules/hawk
       hoek@0.9.1 /build/app/node_modules/request/node_modules/hawk/node_modules/hoek
       boom@0.4.2 /build/app/node_modules/request/node_modules/hawk/node_modules/boom
       cryptiles@0.2.2 /build/app/node_modules/request/node_modules/hawk/node_modules/cryptiles
       sntp@0.2.4 /build/app/node_modules/request/node_modules/hawk/node_modules/sntp
       aws-sign@0.3.0 /build/app/node_modules/request/node_modules/aws-sign
       oauth-sign@0.3.0 /build/app/node_modules/request/node_modules/oauth-sign
       cookie-jar@0.3.0 /build/app/node_modules/request/node_modules/cookie-jar
       node-uuid@1.4.1 /build/app/node_modules/request/node_modules/node-uuid
       mime@1.2.11 /build/app/node_modules/request/node_modules/mime
       form-data@0.1.2 /build/app/node_modules/request/node_modules/form-data
       combined-stream@0.0.4 /build/app/node_modules/request/node_modules/form-data/node_modules/combined-stream
       delayed-stream@0.0.5 /build/app/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream
       async@0.2.9 /build/app/node_modules/request/node_modules/form-data/node_modules/async
       mongoose@3.6.20 /build/app/node_modules/mongoose
       hooks@0.2.1 /build/app/node_modules/mongoose/node_modules/hooks
       mongodb@1.3.19 /build/app/node_modules/mongoose/node_modules/mongodb
       bson@0.2.2 /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/bson
       kerberos@0.0.3 /build/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
       ms@0.1.0 /build/app/node_modules/mongoose/node_modules/ms
       sliced@0.0.5 /build/app/node_modules/mongoose/node_modules/sliced
       muri@0.3.1 /build/app/node_modules/mongoose/node_modules/muri
       mpromise@0.2.1 /build/app/node_modules/mongoose/node_modules/mpromise
       sliced@0.0.4 /build/app/node_modules/mongoose/node_modules/mpromise/node_modules/sliced
       mpath@0.1.1 /build/app/node_modules/mongoose/node_modules/mpath
       regexp-clone@0.0.1 /build/app/node_modules/mongoose/node_modules/regexp-clone
       Dependencies installed
-----> Building runtime environment
-----> Discovering process types
-----> Releasing imbue ...
-----> Deploying imbue ...
-----> Cleaning up ...
=====> Application deployed:
       http://imbue.mmevo.net

To dokku@mmevo.net:imbue
   b9770a1..2211e3e  master -> master
@ghost
ghost commented Nov 2, 2013

Do you see anything when running docker ps -a? If so, post the output here as well as the output from running docker logs <container ID from first column in the row where you see app/imbue>

@Mmarzex
Mmarzex commented Nov 2, 2013

There is no running container and no containers in general from docker. There is however a docker image for my app.

@ghost
ghost commented Nov 2, 2013

Try running sudo -iu git dokku deploy:all and then seeing if any containers are present. I'm doing a fresh testing install now to see if I can reproduce

@ghost
ghost commented Nov 2, 2013

Hm, I can work it with the super simple example application I have (as you previously reported.) Are you relying on any Heroku addons or procs other than web?

@Mmarzex
Mmarzex commented Nov 2, 2013

I don't have anything other than express and sockets.io running and request. I tried your command and there is a container present but for the app/imbue but it still gives me the 502 error in browser. The docker logs for the container are

ID                  IMAGE               COMMAND                CREATED              STATUS              PORTS               NAMES
be4c0eac2b5d        app/imbue:latest    /bin/bash -c /start    About a minute ago   Exit 0

the docker logs command gives me nothing though.
@ghost
ghost commented Nov 2, 2013

Try running an interactive session (docker run -i -t app/imblue /bin/bash) and attempting to get your web process running manually. Strange it would exit 0 with no output. (In the meantime I've also tried to run something more than basic hello world with success)

@Mmarzex
Mmarzex commented Nov 2, 2013

I got it working. Stupid me a while ago during testing I manually set the port to 8082 which when I changed back to

port = process.env.PORT || 8082

Now It works!
@ghost
ghost commented Nov 2, 2013

Great!

@ghost ghost closed this Nov 2, 2013
@DarrylD
DarrylD commented Mar 29, 2014

Just want to chime in that this worked for me as well. Maybe we should make a note to make sure and use the env port. Coming nodejitsu and working locally, it wasn't necessary.

@AlJohri
Contributor
AlJohri commented Mar 29, 2014
@sebastiaandegeus

@Mmarzex in which file did you add this port line?

@scientist1642

Hmm, I'm also trying to deploy a rails app with the same issue (Gateway error) and I get no errors at all..
docker logs -

    I, [2015-02-18T22:09:04.510541 #16]  INFO -- : listening on addr=0.0.0.0:5000 fd=9
    I, [2015-02-18T22:09:04.812871 #16]  INFO -- : master process ready
    I, [2015-02-18T22:09:04.815086 #19]  INFO -- : worker=0 ready
    I, [2015-02-18T22:09:04.829571 #22]  INFO -- : worker=1 ready
    I, [2015-02-18T22:09:04.831589 #24]  INFO -- : worker=2 ready

test nodejs app is working fine.
UPD1: If I curl from the docker host it works fine.
UPD2: I restarted the nginx and it started woking.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment