I ran a build, on Travis CI and got a permission denied error:
$ source ${TRAVIS_HOME}/otp/23.0/activate 3.01s$ ./rebar get-deps /home/travis/.travis/functions: line 355: ./rebar: Permission denied The command "eval ./rebar get-deps " failed. Retrying, 2 of 3. /home/travis/.travis/functions: line 355: ./rebar: Permission denied The command "eval ./rebar get-deps " failed. Retrying, 3 of 3. /home/travis/.travis/functions: line 355: ./rebar: Permission denied The command "eval ./rebar get-deps " failed 3 times. The command "./rebar get-deps" failed and exited with 126 during . Your build has been stopped.
I don't understand why I am getting this error message. I used the .travis.yml from the nitrogen framework which my project uses as a base. As you can see my .travis.yml is the same. Can someone please explain why this is happening and how to fix it?
It seem the OS path write permission problem. It is related to
eval ./rebar get-deps
failed. You can debug the problem by running./rebar get-deps
by yourself and find which path the program want to use, then set the path permission correctly or may be the path already exists.Or
rm -Rf deps
may be helpful.It may be related to
rebar
application, usechmod 700 rebar
to solve the problem.The followings are .travis.yml and Makefile, it show it use local
./rebar
file. you can change Makefile to globalrebar
file.I think you can branch your own
nitrgeon
repository, and use it then you can edit code as you like.In addition,
nitregon
try to run the download program(rebar), yourtravis
think this action is dangerous for running uncontrollable code as it will crash your server as virus.Test the
travis.ci
in your pc then test it into production system.