Hey guys – getting a odd postgreSQL error when attemping to run a large data migration on our staging environment. Migration worked fine locally. Any of you guys have a second to take a look at it?
fancyremarker
hey dleve123 — sure thing
(DMing)
dleve123 has quit
iamryo joined the channel
iamryo
Hey Aptible folks, trying out a deployment and getting the following: {"errorDetail":{"message":"The command [/bin/sh -c /build/builder] returned a non-zero code: 1"},"error":"The command [/bin/sh -c remote: uilder] returned a non-zero code: 1"}
Any insights?
fancyremarker
hi iamryo!
that's Docker's output for when a command in your Dockerfile fails
iamryo
Ahh...
fancyremarker
if that's the exact output, it might be that somewhere "uilder" is being called instead of say "builder" ?
iamryo
Yeah, weird. That's what I got back 'uilder'
Dockerfile stolen from a previous chat in here: FROM tutum/buildstep
PORT 3000
fancyremarker
hmm — which app handle? i'll take a look
iamryo has quit
iamryo joined the channel
iamryo
Sorry, disconnected there for a bit
it's iris-try-out
Build looks good locally too...
fancyremarker
ah — spotted the likely culprit
seeing this in the logs (they should be in your git push output too, but maybe not?)
chfn: PAM: System error
adduser: `/usr/bin/chfn -f u27659' returned error code 1. Exiting.
that should build — the only piece i'm not sure about is the ENTRYPOINT /exec
if that doesn't work, a solution would be to remove that from the Dockerfile and change the Procfile to run (e.g.) `/exec rails server`
iamryo
Looks like that did it
Thanks for the help
fancyremarker
np!
iamryo
Hmm... Looks like it deployed, but the "remote: INFO -- : Waiting for health check on web..." never seemed to return anything so it failed
What's it check for? 200?
fancyremarker
any HTTP response
iamryo
Is there a way to tell what failed?
fancyremarker
i think this is what i was mentioning re: the /exec ENTRYPOINT
i don't think that's quite right
(taking a look at buildstep...)
iamryo
I see
So maybe try adding that to the procfile?
fancyremarker
that would've been my suggestion, yes, but it seems that for your particular app, it's not properly detecting that it's a Rails app. i'm not sure why, to start