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-depsfailed. You can debug the problem by running./rebar get-depsby 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 depsmay be helpful.It may be related to
rebarapplication, usechmod 700 rebarto solve the problem.The followings are .travis.yml and Makefile, it show it use local
./rebarfile. you can change Makefile to globalrebarfile.I think you can branch your own
nitrgeonrepository, and use it then you can edit code as you like.In addition,
nitregontry to run the download program(rebar), yourtravisthink this action is dangerous for running uncontrollable code as it will crash your server as virus.Test the
travis.ciin your pc then test it into production system.