Mesosphere安装PermissionError:/genconf/config.yaml

我有一个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

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

最佳答案 禁用Selinux!

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

$getenforce 
Disabled
点赞