Open slavashvets opened 7 years ago
Fixed - problem was in docker-compose config - it must be link to rabbitmq in dispatcher and frontend
Thanks, but the error still appears.
The log files look better, except one place:
worker_1 | INFO [main] (ConnectionHandler.java:240) - Creating connection cxn-1 to [rabbitmq:5672]
dispatcher_1 | INFO [main] (TestServicesUtils.java:71) - Failed to connect: Connection refused (Connection refused)
worker_1 | ERROR [main] (ConnectionHandler.java:130) - Failed to create connection cxn-1
worker_1 | java.net.ConnectException: Connection refused (Connection refused)
worker_1 | at java.net.PlainSocketImpl.socketConnect(Native Method)
worker_1 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
worker_1 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
worker_1 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
worker_1 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
worker_1 | at java.net.Socket.connect(Socket.java:589)
worker_1 | at com.rabbitmq.client.impl.FrameHandlerFactory.create(FrameHandlerFactory.java:32)
worker_1 | at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:676)
worker_1 | at net.jodah.lyra.internal.ConnectionHandler$3.call(ConnectionHandler.java:244)
worker_1 | at net.jodah.lyra.internal.ConnectionHandler$3.call(ConnectionHandler.java:237)
worker_1 | at net.jodah.lyra.internal.RetryableResource.callWithRetries(RetryableResource.java:51)
worker_1 | at net.jodah.lyra.internal.ConnectionHandler.createConnection(ConnectionHandler.java:237)
worker_1 | at net.jodah.lyra.internal.ConnectionHandler.createConnection(ConnectionHandler.java:120)
worker_1 | at net.jodah.lyra.Connections.create(Connections.java:69)
worker_1 | at simpleci.shared.utils.ConnectionUtils.createRabbitmqConnection(ConnectionUtils.java:40)
worker_1 | at simpleci.shared.utils.TestServicesUtils.testRabbitmq(TestServicesUtils.java:66)
worker_1 | at Main.testServices(Main.java:47)
worker_1 | at Main.main(Main.java:26)
worker_1 | INFO [main] (TestServicesUtils.java:71) - Failed to connect: Connection refused (Connection refused)
My docker-compose.yml
mysql:
image: mysql:5.6
env_file: parameters.env
volumes:
- "simpleci-mysql:/var/lib/mysql"
volume_driver: convoy
rabbitmq:
image: rabbitmq:latest
volumes:
- "simpleci-rabbitmq:/var/lib/rabbitmq"
volume_driver: convoy
redis:
image: redis:latest
volumes:
- "simpleci-redis:/var/lib/redis"
volume_driver: convoy
dispatcher:
image: simpleci/dispatcher
links:
- mysql:mysql
- rabbitmq:rabbitmq
- redis:redis
env_file: parameters.env
worker:
image: simpleci/worker
links:
- rabbitmq:rabbitmq
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
env_file: parameters.env
frontend:
image: simpleci/frontend
links:
- mysql:mysql
- rabbitmq:rabbitmq
- redis:redis
ports:
- "10002:80"
volumes:
- "simpleci-frontend:/var/log/simpleci"
volume_driver: convoy
env_file: parameters.env
Tested your confuguration with my gitlab server - work well.. Can you show /var/www/var/logs/prod.log from frontend container?
Sure:
[2016-12-28 06:23:05] request.INFO: Matched route "build_create". {"route":"build_create","route_parameters":{"_controller":"controller.build:createAction","id":"1","_route":"build_create"},"request_uri":"http://***/project/1/build/create","method":"GET"} []
[2016-12-28 06:23:05] security.DEBUG: Read existing security token from the session. {"key":"_security_main"} []
[2016-12-28 06:23:05] security.DEBUG: User was reloaded from a user provider. {"username":"admin","provider":"FOS\\UserBundle\\Security\\UserProvider"} []
[2016-12-28 06:23:07] request.CRITICAL: Uncaught PHP Exception Gitlab\Exception\RuntimeException: "{"message"=>"500 Internal Server Error"}" at /var/www/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/HttpClient/Listener/ErrorListener.php line 60 {"exception":"[object] (Gitlab\\Exception\\RuntimeException(code: 500): {\"message\"=>\"500 Internal Server Error\"} at /var/www/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/HttpClient/Listener/ErrorListener.php:60)"} []
[2016-12-28 06:23:07] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []
It seems that problem is in communicating between simpleci and gitlab. What version of gitlab are you using?
GitLab 7.1.1 facfec4
Could it be more descriptive message then "500 Error"? Or, at least, add requirement for minimal version of gitlab to the documentation?
Fixed in 0.6.3 - now you can fill branch and commit info to build form even if an error with gitlab api occurred.
Steps to reproduce
docker-compose up
+ New build
Expected
"New build" form
Actual
URL:
http://.../project/1/build/create
Message:
Log output from docker-compose