flowci / docker-install Goto Github PK
View Code? Open in Web Editor NEWHow to install flow.ci from docker
Home Page: https://flowci.github.io
License: MIT License
How to install flow.ci from docker
Home Page: https://flowci.github.io
License: MIT License
Got these errors:
flowci-core | 2019-11-15 07:09:11.760 INFO 1 --- [ main] org.mongodb.driver.cluster : Cluster description not yet available. Waiting for 30000 ms before timing out
flowci-core | 2019-11-15 07:09:29.622 INFO 1 --- [null'}-db:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server db:27017
flowci-core |
flowci-core | com.mongodb.MongoSocketException: db: Temporary failure in name resolution
flowci-core | at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:188) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:59) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.SocketStream.open(SocketStream.java:57) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:114) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
flowci-core | Caused by: java.net.UnknownHostException: db: Temporary failure in name resolution
flowci-core | at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAllByName0(InetAddress.java:1277) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAllByName(InetAddress.java:1193) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAllByName(InetAddress.java:1127) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getByName(InetAddress.java:1077) ~[na:1.8.0_181]
flowci-core | at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:186) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | ... 5 common frames omitted
flowci-core |
flowci-core | 2019-11-15 07:09:30.127 INFO 1 --- [null'}-db:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server db:27017
flowci-core |
flowci-core | com.mongodb.MongoSocketException: db
flowci-core | at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:188) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:59) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.SocketStream.open(SocketStream.java:57) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:114) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
flowci-core | Caused by: java.net.UnknownHostException: db
flowci-core | at java.net.InetAddress.getAllByName0(InetAddress.java:1281) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAllByName(InetAddress.java:1193) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getAllByName(InetAddress.java:1127) ~[na:1.8.0_181]
flowci-core | at java.net.InetAddress.getByName(InetAddress.java:1077) ~[na:1.8.0_181]
flowci-core | at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:186) ~[mongodb-driver-core-3.6.4.jar!/:na]
flowci-core | ... 5 common frames omitted
flowci-core |
在环境变量中修改默认系统管理员密码,启动时�打印的“当前参数值”显示确已修改,但登录时提示密码不对,用默认密码可以登录。
docker version:25.0.3
docker-compose version:v2.24.6
flowci-core is error:
exec ./wait_for_it.sh: exec format error
docker主机并不一定装有java环境,运行的时候提示:failed to run command 'java': No such file or directory
登陆时请求URL:http://127.0.0.1:8888/flow-api/user/login 端口请求应该是生效了但是没有响应返回
用admin/[email protected]都不行
Starting docker_flow.ci_1
Starting docker_flow.web_1
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 open shared object file: Permission denied
flow.ci_1 | Starting MariaDB database server: mysqld/usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | /usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
flow.ci_1 | ./usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
If I run the bin file, it shows as a Mac, but the docker image always shows as a linux machine and nothing really works.
I'd like to be able to run the docker file as it is lots easier. Do I have to change something to get it to build for Mac?
agent 的运行环境是Ubuntu, 如何让运行环境再mac os系统上面运行呢?
git clone https://github.com/FlowCI/docker.git
cd docker
./start-services.sh
When ./start-services.sh, "net/http: TLS handshake timeout" happens
Hi, 头一次用 flow,按照官方的 md 安装的,出现如下异常:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-mysql.config.xml]: Invocation of init method failed; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [build_number] in table [job]; found [int (Types#INTEGER)], but expecting [bigint (Types#BIGINT)] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668) org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:540) org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494) org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:171) javax.servlet.GenericServlet.init(GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748)
有人遇到吗?
安装后一直无法使用
flow.ci_1 | Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
flow.ci_1 | mysql is unavailable - retry 1s
win7 执行到./start-services.sh这一步时报错
##############Start Update Docker Images###################
Warning: failed to get default registry endpoint from daemon (An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info: open // ./pipe/docker_engine: The system cannot find the file specified.). Using system default: https://index.docker.io/v1/
An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/ v1.24/images/create?fromImage=flowci%2Fflow-platform&tag=latest: open //./pipe/d ocker_engine: The system cannot find the file specified.
Warning: failed to get default registry endpoint from daemon (An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info: open // ./pipe/docker_engine: The system cannot find the file specified.). Using system default: https://index.docker.io/v1/
An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/ v1.24/images/create?fromImage=flowci%2Fflow-web&tag=latest: open //./pipe/docker _engine: The system cannot find the file specified.
##############Finish Update Docker Images###################
###########环境变量说明###########
MYSQL_USER: 配置的Mysql的初始用户名, 默认是 root , 不可修改
JVM 最大堆大小为 1.5G
Mysql 的 默认存储路径是 /c/Users/zhaolinliu/data/flowci/mysql , 假如您正式部署请 选择正确的配置路径
MYSQL_PASSWORD: 配置的Mysql的初始密码, 默认是 flow.ci , 当前参数是 flow.ci
MYSQL_HOST: 配置的Mysql的HOST地址, 默认是 127.0.0.1 , 当前参数是 127.0.0.1
FLOW_API_DOMAIN: 部署的FlowApi地址, 默认是 127.0.0.1, 当前参数值是 127.0.0.1
FLOW_WEB_DOMAIN: 部署的FlowWeb地址, 默认是 127.0.0.1, 当前参数值是 127.0.0.1
FLOW_SYS_EMAIL: Flow 的系统账号, 默认是 [email protected], 当前参数值是 admin@flow. ci
FLOW_SYS_USERNAME: Flow 的系统用户名, 默认是 admin, 当前参数值是 admin
FLOW_SYS_PASSWORD: Flow 的系统密码, 默认是 123456, 当前参数值是 123456
Traceback (most recent call last):
File "", line 3, in
File "compose\cli\main.py", line 65, in main
File "compose\cli\main.py", line 117, in perform_command
File "compose\cli\main.py", line 849, in up
File "compose\project.py", line 372, in up
File "compose\project.py", line 539, in warn_for_swarm_mode
File "site-packages\docker\api\daemon.py", line 33, in info
File "site-packages\docker\utils\decorators.py", line 47, in inner
File "site-packages\docker\client.py", line 139, in _get
File "site-packages\requests\sessions.py", line 488, in get
File "site-packages\requests\sessions.py", line 475, in request
File "site-packages\requests\sessions.py", line 596, in send
File "site-packages\requests\adapters.py", line 423, in send
File "site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
File "site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
File "httplib.py", line 1057, in request
File "httplib.py", line 1097, in _send_request
File "httplib.py", line 1053, in endheaders
File "httplib.py", line 897, in _send_output
File "httplib.py", line 859, in send
File "site-packages\docker\transport\npipeconn.py", line 31, in connect
File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', '\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd \xd6\xb8\xb6\xa8\xb5\xc4\xce\xc4\xbc\xfe\xa1\xa3')
docker-compose returned -1
例子里 引导是host
+/flow-api
https://github.com/FlowCI/docker/blob/57835300131b7c588474736de6720a0564be3eef/start-agent.sh#L2
但实际操作只需要参数传host, 如果多加了/flow-api
后缀, 反而无法添加成功并且agent启动也不报错
被设置在Docker宿主机的/tmp/mysql
建议默认设置一个持久化的文件位置 比如/data/flowci
之类的地方
如何修改端口号 默认的8080 端口
flow.ci_1 | 14-Jun-2018 07:57:11.664 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [127] ms
flow.ci_1 | 14-Jun-2018 07:57:11.664 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
flow.ci_1 | Exception in thread "multi_async-task-1" com.flow.platform.core.exception.IllegalParameterException: The name of role 'ADMIN' is doesn't existed
flow.ci_1 | at com.flow.platform.api.service.user.RoleServiceImpl.find(RoleServiceImpl.java:65)
flow.ci_1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
flow.ci_1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
flow.ci_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
flow.ci_1 | at java.lang.reflect.Method.invoke(Method.java:498)
flow.ci_1 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
flow.ci_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
flow.ci_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
flow.ci_1 | at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
flow.ci_1 | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
flow.ci_1 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
flow.ci_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
flow.ci_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
flow.ci_1 | at com.sun.proxy.$Proxy160.find(Unknown Source)
flow.ci_1 | at com.flow.platform.api.initializers.UserRoleInit.initSystemPermissions(UserRoleInit.java:74)
flow.ci_1 | at com.flow.platform.api.initializers.UserRoleInit.doStart(UserRoleInit.java:69)
flow.ci_1 | at com.flow.platform.api.initializers.Initializer.start(Initializer.java:31)
flow.ci_1 | at com.flow.platform.core.context.AbstractContextInitHandler.onApplicationEvent(AbstractContextInitHandler.java:33)
flow.ci_1 | at com.flow.platform.api.context.ContextInitHandler.onApplicationEvent(ContextInitHandler.java:48)
flow.ci_1 | at com.flow.platform.api.context.ContextInitHandler.onApplicationEvent(ContextInitHandler.java:31)
flow.ci_1 | at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
flow.ci_1 | at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:134)
flow.ci_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
flow.ci_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
flow.ci_1 | at java.lang.Thread.run(Thread.java:748)
flow.ci_1 | 14-Jun-2018 07:57:11.686 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [22] ms
flow.ci_1 | 14-Jun-2018 07:57:11.687 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
flow.ci_1 | 14-Jun-2018 07:57:11.764 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [78] ms
flow.ci_1 | 14-Jun-2018 07:57:11.764 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
flow.ci_1 | 14-Jun-2018 07:57:11.771 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [7] ms
flow.ci_1 | 14-Jun-2018 07:57:11.771 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
flow.ci_1 | 14-Jun-2018 07:57:11.780 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [9] ms
flow.ci_1 | 14-Jun-2018 07:57:11.788 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
flow.ci_1 | 14-Jun-2018 07:57:11.807 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
flow.ci_1 | 14-Jun-2018 07:57:11.819 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 11890 ms
flow.ci_1 | 2018-06-14 07:57:13.090 [TRACE] com.flow.platform.plugin.dao.PluginDaoImpl - Plugin data been dumped to path: /root/flow-ci/git-repos/plugin_cache.json
flow.ci_1 | 2018-06-14 07:57:13.090 [TRACE] com.flow.platform.plugin.service.PluginServiceImpl - Finish Refresh Cache
完整日志如下,在我的mac上正常运行,在linux服务器上就不行了, ➜ flow.ci_docker git:(master) ✗ docker logs -f flow.agent 2018-03-28 10:35:21.468 [TRACE] App - ========= Flow Agent Started ========= 2018-03-28 10:35:21.471 [TRACE] App - === Server: http://123.206.191.88:8080/flow-api 2018-03-28 10:35:21.472 [TRACE] App - === Token: eab5d2b6-ffd2-4345-8878-4e0f2a4d36de 2018-03-28 10:35:21.472 [TRACE] App - === Start to load configuration log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2018-03-28 10:35:22.385 [ERROR] App - Cannot load agent config from zone java.lang.IllegalStateException: Unable to load agent setting with http status -1 at com.flow.platform.agent.Config.loadAgentConfig(Config.java:190) at com.flow.platform.agent.App.main(App.java:54)
服务器上部署core总是起不来。感觉应该是端口不通导致的。
zjh@linux:~/work/flowci-docker$ sudo MYSQL_PASSWORD=zjh329 ./start-services.sh
##############Start Update Docker Images###################
latest: Pulling from flowci/flow-platform
Digest: sha256:42c4036e180820b93169d538d298a10d04c16ab93b8bda4591df63903de2f860
Status: Image is up to date for flowci/flow-platform:latest
latest: Pulling from flowci/flow-web
Digest: sha256:0d6873b97a33ae9088870e3772c5890c7d45a08b551e2137c6c7387cf7500361
Status: Image is up to date for flowci/flow-web:latest
##############Finish Update Docker Images###################
###########环境变量说明###########
MYSQL_USER: 配置的Mysql的初始用户名, 默认是 root , 不可修改
JVM 最大堆大小为 1.5G
Mysql 的 默认存储路径是 /home/zjh/data/flowci/mysql , 假如您正式部署请选择正确的配置路径
MYSQL_PASSWORD: 配置的Mysql的初始密码, 默认是 flow.ci , 当前参数是 zjh329
MYSQL_HOST: 配置的Mysql的HOST地址, 默认是 127.0.0.1 , 当前参数是 127.0.0.1
FLOW_API_DOMAIN: 部署的FlowApi地址, 默认是 127.0.0.1, 当前参数值是 127.0.0.1
FLOW_WEB_DOMAIN: 部署的FlowWeb地址, 默认是 127.0.0.1, 当前参数值是 127.0.0.1
FLOW_SYS_EMAIL: Flow 的系统账号, 默认是 [email protected], 当前参数值是 [email protected]
FLOW_SYS_USERNAME: Flow 的系统用户名, 默认是 admin, 当前参数值是 admin
FLOW_SYS_PASSWORD: Flow 的系统密码, 默认是 123456, 当前参数值是 123456
Recreating flowcidocker_flow.ci_1 ...
Recreating flowcidocker_flow.ci_1 ... done
Recreating flowcidocker_flow.web_1 ...
Recreating flowcidocker_flow.web_1 ... done
Attaching to flowcidocker_flow.ci_1, flowcidocker_flow.web_1
flow.ci_1 | /usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
flow.ci_1 | Starting MariaDB database server: mysqld/usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
flow.ci_1 | /usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
flow.ci_1 | ./usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
flow.ci_1 | ./usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
flow.ci_1 | ./usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
flow.ci_1 | Fatal error in defaults handling. Program aborted
^CGracefully stopping... (press Ctrl+C again to force)
Stopping flowcidocker_flow.web_1 ...
Stopping flowcidocker_flow.ci_1 ...
^CKilling flowcidocker_flow.web_1 ...
Killing flowcidocker_flow.ci_1 ...
^CERROR: Aborting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.