cloud-barista / cb-operator

The Operator for Cloud-Barista system
Apache License 2.0
6 stars 6 forks source link

TODO: Permission denied to ./CB_OPERATOR_MODE #59

Closed jihoon-seo closed 4 years ago

jihoon-seo commented 4 years ago

Error occurs when a normal (unprivileged) user executes cb-operator

ubuntu@ip-172-31-1-213:~/cb-operator/src$ ./operator
CB_OPERATOR_MODE file does not exist.

[Options]
1: Docker Compose environment (Requires Docker and Docker Compose)
2: Kubernetes environment (Requires Kubernetes cluster with Helm 3)

Choose 1 or 2: 1
[1: Docker Compose environment (Requires Docker and Docker Compose)] selected.

CB_OPERATOR_MODE is set to: DockerCompose
To change CB_OPERATOR_MODE, just delete the CB_OPERATOR_MODE file and re-run the cb-operator.
panic: open ./CB_OPERATOR_MODE: permission denied

goroutine 1 [running]:
main.errCheck(...)
        /home/ubuntu/cb-operator/src/main.go:29
main.readMode(0x82f760, 0xc0000b2008)
        /home/ubuntu/cb-operator/src/main.go:71 +0x2a6
main.readMode(0xc00010ff48, 0x4468ca)
        /home/ubuntu/cb-operator/src/main.go:84 +0xef
main.main()
        /home/ubuntu/cb-operator/src/main.go:102 +0x26

ubuntu@ip-172-31-1-213:~/cb-operator/src$ ll

--w----r-- 1 ubuntu ubuntu      13 Sep  2 06:45 CB_OPERATOR_MODE
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.