heroku cli 错误:“fork:资源暂时不可用”

heroku cli 错误:“fork:资源暂时不可用”

如何使用 Heroku 的命令行界面解决此错误:

-bash> heroku ps -a cool-app-name
/Users/billy/.local/share/heroku/client/bin/heroku: fork: Resource temporarily unavailable
/Users/billy/.local/share/heroku/client/bin/heroku: line 12: cd: : No such file or directory
/Users/billy/.local/share/heroku/client/bin/heroku: line 18: [: /Users/billy/.local/share/heroku/client/bin: unary operator expected
/Users/billy/.local/share/heroku/client/bin/heroku: line 21: /node: No such file or directory
/Users/billy/.local/share/heroku/client/bin/heroku: fork: Resource temporarily unavailable
/Users/billy/.local/share/heroku/client/bin/heroku: line 12: cd: : No such file or directory
/Users/billy/.local/share/heroku/client/bin/heroku: line 18: [: /Users/billy/.local/share/heroku/client/bin: unary operator expected
/Users/billy/.local/share/heroku/client/bin/heroku: line 21: /node: No such file or directory

无论heroku我运行什么命令,都会发生这种情况…… ps,,login无论如何。

答案1

更新

实际上,此解决方案仅适用于命令运行一两次……之后它会以同样的方式再次失败。因此这仍然是一个尚未解决的问题。

旧答案

移动~/.local/share/heroku...

-bash> mv ~/.local/share/heroku ~/.local/share/heroku-

然后heroku再次运行该工具(需要一点时间重新安装CLI) 并且问题应该得到解决...

-bash> heroku ps -a cool-app-name
heroku-cli: Installing CLI... 22.43MB/22.43MB
=== web (1X): bundle exec passenger start -p $PORT --max-pool-size 3 --nginx-config-template config/nginx.conf.erb (1)
web.1: up 2017/06/29 13:29:58 -0700 (~ 2h ago)

~/.local/share/heroku-一旦您确信一切按预期进行,您就可以将其删除。

相关内容