Edeliver error

I’m trying to understand how to use distillery and edeliver, and after reading several howtos, I settled on following this one:

Deploy Early and Often: Deploying Phoenix with Edeliver and Distillery (Part Two)

After:

mix edeliver build release production --verbose

I get the following error:

BUILDING RELEASE OF MYAPP APP ON BUILD HOST

-----> Authorizing hosts
Authorizing localhost on localhost:
-----> Ensuring hosts are ready to accept git pushes

A remote command failed on:

  user@localhost

Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:

FAILED with exit status 255:

    set -e
    if [ ! -d /tmp/edeliver/myapp/builds ]
    then
      mkdir -p /tmp/edeliver/myapp/builds
      cd /tmp/edeliver/myapp/builds
      git init
      git config receive.denyCurrentBranch ignore
    else
      cd /tmp/edeliver/myapp/builds
      git config receive.denyCurrentBranch ignore
    fi

Can anyone give any advice on how to fix this - what I’m doing wrong?

Thanks

  • First things first. Are you able to ssh user@localhost without providing a password?
  • do you actually have a user named user on your system?
  • is that user allowed to log in via ssh?
  • is that user allowed to create/access /tmp/edeliver/myapp/builds?
1 Like

Thanks NobbZ,

I ended up changing the build host from localhost to a remote server, and it fixed the permissions issue.