Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker启动的时候这个错误解决不了 #31

Open
zhangcjl opened this issue Mar 26, 2018 · 8 comments
Open

docker启动的时候这个错误解决不了 #31

zhangcjl opened this issue Mar 26, 2018 · 8 comments

Comments

@zhangcjl
Copy link

zhangcjl commented Mar 26, 2018

root@ubuntu:/home/zhangcjl/docker# FLOW_API_DOMAIN=192.168.11.16 FLOW_WEB_DOMAIN=192.168.11.16 ./start-services.sh
##############Start Update Docker Images###################
latest: Pulling from flowci/flow-platform
Digest: sha256:6e7a8a0f33f9272c9df595e91a2f16825896946fd6124d250147d47926583119
Status: Image is up to date for flowci/flow-platform:latest
latest: Pulling from flowci/flow-web
Digest: sha256:ebec006624dc5660305bb66b08ecdf6ea4c9d516e376cae57bdad70e40244890
Status: Image is up to date for flowci/flow-web:latest
##############Finish Update Docker Images###################
###########环境变量说明###########
MYSQL_USER: 配置的Mysql的初始用户名, 默认是 root , 不可修改
JVM 最大堆大小为 1.5G
Mysql 的 默认存储路径是 /var/lib/mysql , 假如您正式部署请选择正确的配置路径
MYSQL_PASSWORD: 配置的Mysql的初始密码, 默认是 flow.ci , 当前参数是 123
MYSQL_HOST: 配置的Mysql的HOST地址, 默认是 127.0.0.1 , 当前参数是 localhost
FLOW_API_DOMAIN: 部署的FlowApi地址, 默认是 127.0.0.1, 当前参数值是 192.168.11.16
FLOW_WEB_DOMAIN: 部署的FlowWeb地址, 默认是 127.0.0.1, 当前参数值是 192.168.11.16
FLOW_SYS_EMAIL: Flow 的系统账号, 默认是 [email protected], 当前参数值是 [email protected]
FLOW_SYS_USERNAME: Flow 的系统用户名, 默认是 admin, 当前参数值是 admin
FLOW_SYS_PASSWORD: Flow 的系统密码, 默认是 123456, 当前参数值是 123456
Starting docker_flow.ci_1 ... done
Starting docker_flow.web_1 ... done
Attaching to docker_flow.ci_1, docker_flow.web_1
flow.ci_1 | /usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | Starting MariaDB database server: mysqld/usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | /usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied
^CGracefully stopping... (press Ctrl+C again to force)
Stopping docker_flow.web_1 ...
Stopping docker_flow.ci_1 ...
Killing docker_flow.web_1 ... done
Killing docker_flow.ci_1 ... done

@yunheli
Copy link
Contributor

yunheli commented Mar 26, 2018

@zhangcjl 是什么系统?

@yunheli
Copy link
Contributor

yunheli commented Mar 26, 2018

@zhangcjl add docker-compose privileged: true 试试

@zhangcjl
Copy link
Author

系统是ubuntu16.04

@yunheli
Copy link
Contributor

yunheli commented Mar 26, 2018

@zhangcjl 添加 privileged: true 试了么?

@zhangcjl
Copy link
Author

version: '2'
services:

flow.ci:
image: flowci/flow-platform:latest
privileged: true
networks:
- backend
environment:
CATALINA_OPTS: $CATALINA_OPTS
FLOW_API_DOMAIN: $FLOW_API_DOMAIN
FLOW_WEB_DOMAIN: $FLOW_WEB_DOMAIN
FLOW_SYS_EMAIL: $FLOW_SYS_EMAIL
FLOW_SYS_USERNAME: $FLOW_SYS_USERNAME
FLOW_SYS_PASSWORD: $FLOW_SYS_PASSWORD
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_HOST: $MYSQL_HOST
PORT: 8080
volumes:
- "/flow-ci/data:/root/flow-ci"
- "
/flow-ci/db:/var/lib/mysql"
- "/flow-ci/git-cache:/root/flow-ci/git-cache"
- "
/flow-ci/git-repos:/root/flow-ci/git-repos"
- "~/flow-ci/repository:/root/.m2/repository"
ports:
- "8080:8080"
- "2181:2181"

flow.web:
image: flowci/flow-web:latest
privileged: true
networks:
- backend
environment:
- FLOW_API_DOMAIN=http://$FLOW_API_DOMAIN

默认第一个是有加,第二个没加,我刚加了,还是一样,mysql5.7我默认安装好就没修改什么,就装了个mysql-service 和mysql-client

@yunheli
Copy link
Contributor

yunheli commented Mar 26, 2018

@zhangcjl 宿主机 MySQL的db store目录也是 /flow-ci/db这个么?

@ydj1989591
Copy link

请问下解决了没有? 我刚刚安装也出现了这个问题,不知道怎么解决了,求助。

@yinyanghuafa
Copy link

privileged: true 试了么?
注释掉“privileged: true”,反而能解决“mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied”这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants