0

此错误在 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
4

1 回答 1

1

我遇到过同样的问题。最终发现由于未知原因,我的系统上没有 /tmp 目录(消失了?)。我重新创建了它....现在它工作得很好。

于 2015-11-30T16:02:25.990 回答