为什么我在Travis CI Build for Rebar上拒绝拒绝允许?

发布于 2025-01-25 18:26:22 字数 787 浏览 5 评论 0原文

我在Travis CI上运行了一个构建,并获得了允许的拒绝错误:

$ source $ {travis_home}/otp/23.0/activate 3.01s $ ./rebar Get-deps/home/travis/.travis/functions:355:./rebar:许可拒绝命令“ eval ./ rebar get-deps” 失败的。重试,第2个中的2个。/home/travis/.travis/functions:355行: ./ rebar:权限拒绝命令“ eval ./rebar get-deps” 失败的。重试,3中的3个。/home/travis/.travis/functions:355行: ./rebar:权限拒绝命令“ eval ./rebar get-deps”失败 3次。命令“ ./rebar get-deps”失败并以126的 期间 。您的构建已停止。

我不明白为什么我会收到此错误消息。我使用。项目用作基础。如您所见,我的。 a>是一样的。有人可以解释为什么会发生这种情况以及如何解决吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木落 2025-02-01 18:26:22

OS路径写入权限问题似乎。它与eval./rebar Get-Deps失败有关。您可以通过运行./ rebar get-deps来调试问题,并查找程序要使用的路径,然后正确设置路径许可或可能是已经存在的路径。

RM -RF DEPS可能会有所帮助。

它可能与rebar应用程序有关,使用CHMOD 700 rebar解决问题。

以下是.travis.yml和makefile,它显示它使用本地./ rebar文件。您可以将makefile更改为全局rebar文件。

氮/.travis.yml

语言:erlang脚本:“ make travis” otp_release:

  • 23.0
  • 22.0
  • 21.3 tre_script:“ sudo apt-get-yes-force-yes安装libpam-runtime”

氮/makefile

rebar:=。/rebar

get-deps:$(rebar)get-deps

update-deps:$(rebar)update-deps

编译:$(rebar)编译

我认为您可以分支您自己的nitrgeon nitrgeon < /代码>存储库,然后使用它,然后可以根据需要编辑代码。

此外,nitregon尝试运行下载程序(rebar),您的travis认为此操作对于运行不可控制的代码是危险的,因为它会将您的服务器崩溃为病毒。

在PC中测试travis.ci,然后将其测试到生产系统中。

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, use chmod 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 global rebar file.

nitrogen/.travis.yml

language: erlang script: "make travis" otp_release:

  • 23.0
  • 22.0
  • 21.3 before_script: "sudo apt-get --yes --force-yes install libpam-runtime"

nitrogen/Makefile

REBAR:=./rebar

get-deps: $(REBAR) get-deps

update-deps: $(REBAR) update-deps

compile: $(REBAR) compile

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), your travis 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文