当IBM Container执行调用cf ic命令的shell脚本时,会随机出现此错误。重新启动容器似乎可以解决此问题。
为什么我会看到这个?请问有什么问题?
cf version 6.12.2-24abed3-2015-07-15T21:21:01+00:00
+++ cf ic group list
+++ grep testgroup1445002343
+++ grep CREATE_COMPLETE
panic: Could not load en_US language files. God save the queen.
mkdir /tmp/cloudfoundry_cli_i18n_res300449142: read-only file system
goroutine 1 [running]:
runtime.panic(0x87e200, 0xc210070730)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/cloudfoundry/cli/cf/i18n.mustLoadDefaultLocale(0x7fc98e5f0990, 0x128aff8)
/var/vcap/data/gocd-agent/pipelines/Linux64-Unit-Tests/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/i18n/init.go:105 +0xe8
github.com/cloudfoundry/cli/cf/i18n.Init(0x7fc98e5f09c0, 0xc210068d80, 0x7fc98e5f0990, 0x128aff8, 0xc210068d80)
/var/vcap/data/gocd-agent/pipelines/Linux64-Unit-Tests/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/i18n/init.go:56 +0x1e4
main.setupDependencies(0x7fc98e46efa0)
/var/vcap/data/gocd-agent/pipelines/Linux64-Unit-Tests/src/github.com/cloudfoundry/cli/main/main.go:62 +0x3dd
main.init()
/var/vcap/data/gocd-agent/pipelines/Linux64-Unit-Tests/src/github.com/cloudfoundry/cli/main/main.go:31 +0xbd
goroutine 4 [syscall]:
os/signal.loop()
/usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init?1
/usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x31
答案 0 :(得分:1)
我有同样的问题。最终发现,由于未知原因,我的系统上没有/ tmp目录(消失了?)。我重新创建它......现在它工作得很好。