Mesosphere安装PermissionError:/genconf/config.yaml

时间:2016-04-15 09:10:01

标签: mesosphere

我有一个Mesosphere-EE,并在Fedora 23服务器(内核4.4)上安装:

$ bash dcos_generate_config.ee.sh --web -v

然后输出:

Running mesosphere/dcos-genconf docker with BUILD_DIR set to/home/mesos-ee/genconf
Usage of loopback devices is strongly discouraged for production use.Either use `--storage-opt dm.thinpooldev` or use `--storage-opt
dm.no_warn_on_loop_devices=true` to suppress this warning.
07:53:46:: Logger set to DEBUG
07:53:46:: ====> Starting DCOS installer in web mode
07:53:46:: DCOS Installer v1
07:53:46:: Starting server ('0.0.0.0', 9000)

然后我通过vnc启动firefox,vnc在root上。然后:

07:53:57:: Root page requested. 07:53:57:: Serving/usr/local/lib/python3.4/site-packages/dcos_installer/templates/index.html
07:53:58:: Request for configuration type made. 
07:53:58::Configuration file not found, /genconf/config.yaml. Writing new onewith all defaults. 
07:53:58:: Error handling request
PermissionError: [Errno 13] Permission denied: '/genconf/config.yaml'

但我已经有了genconf / config.yaml,它看起来像是:

bootstrap_url: http://<bootstrap_public_ip>:<your_port>
cluster_name: '<cluster-name>'
exhibitor_storage_backend: zookeeper
exhibitor_zk_hosts: <host1>:2181,<host2>:2181,<host3>:2181
exhibitor_zk_path: /dcos
master_discovery: static
master_list:
- <master-private-ip-1>
- <master-private-ip-2>
- <master-private-ip-3>
superuser_username: <username>
superuser_password_hash: <hashed-password>
resolvers:
- 8.8.8.8
- 8.8.4.4

我不知道发生了什么事。如果你有任何想法,请告诉我,非常感谢你!

2 个答案:

答案 0 :(得分:2)

禁用Selinux!

SELINUX=disabled文件中配置/etc/selinux/config,然后重新启动! 确保命令getenforce禁用selinux。

$ getenforce 
Disabled

答案 1 :(得分:0)

哲。 正确安装企业版取决于正确的系统先决条件。无论如何,我认为你仍然在引导节点上,所以我会给你一些在当前任务中成功的路径。 以root身份或以发出sudo dcos_generate_config.ee.sh的用户身份运行脚本 该脚本还将自动生成配置文件;如果你想使用自己的配置文件,那么在运行脚本之前创建一个名为genconf的文件夹并将其放入其中。您应该更改&lt;&gt;内的值使用您的特定配置。如果您需要更多有关特定案例的帮助,请发送电子邮件至infofs2 at gmail.com

相关问题