You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/07/08 18:49:06 UTC

[GitHub] [incubator-devlake] shubham-cmyk opened a new issue, #2454: [Bug] Docker Container keep restarting.

shubham-cmyk opened a new issue, #2454:
URL: https://github.com/apache/incubator-devlake/issues/2454

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   Docker container keep restarting. 
   👀  Ubuntu Local host 
   ![image](https://user-images.githubusercontent.com/69793468/178051542-703c1551-96ef-46ec-8352-f26a8217b0f1.png)
   
   👀  AWS 
   <img width="949" alt="image (5)" src="https://user-images.githubusercontent.com/69793468/178051810-b2dfb461-58d8-4178-8c57-6e321909d07e.png">
   
   
   
   ### What you expected to happen
   
   👀  Docker Container logs 
   <img width="960" alt="image (6)" src="https://user-images.githubusercontent.com/69793468/178052237-a3f270c1-0728-4268-bb8a-58eb504e686a.png">
   
   Container are not starting up in proper order. 
   
   ### How to reproduce
   
   Release Version : 0.10.1
   
   Follow up the general installation method as stated in Readme 
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.10.1
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] shubham-cmyk closed issue #2454: [Bug] Docker Container keep restarting.

Posted by GitBox <gi...@apache.org>.
shubham-cmyk closed issue #2454: [Bug] Docker Container keep restarting. 
URL: https://github.com/apache/incubator-devlake/issues/2454


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] keon94 commented on issue #2454: [Bug] Docker Container keep restarting.

Posted by GitBox <gi...@apache.org>.
keon94 commented on issue #2454:
URL: https://github.com/apache/incubator-devlake/issues/2454#issuecomment-1179287550

   The ordering is technically fine (depends_on field in the compose file manages the ordering). The problem is, each container has a bootstrap process that takes some time to complete (e.g. mysql), so just because it has started it doesn't mean it's ready. In this case devlake is trying to talk to mysql before it is fully ready, and that throws an error.
   
   With docker-compose v2 one would define healthchecks in the compose file and have the containers wait using conditions until their dependencies are healthy before boostrapping. v3 removed this feature as far as I am aware.
   
   So our options are:
   1. Use the v2 docker-compose spec, and use healthchecks and conditions in the compose file
   2. Enhance the devlake service logic to retry DB connectivity for a while
   3. Apparently the more recent compose versions allow backwards portability as far as support for conditions go [see this discussion](https://github.com/peter-evans/docker-compose-healthcheck/issues/3). Maybe investigate this and see if it'll work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] hezyin commented on issue #2454: [Bug] Docker Container keep restarting.

Posted by GitBox <gi...@apache.org>.
hezyin commented on issue #2454:
URL: https://github.com/apache/incubator-devlake/issues/2454#issuecomment-1180679156

   @shubham-cmyk Hi Shubham, it's normal for the DevLake container to restart a couple of times while waiting for the MySQL container to boot up, but usually, it wouldn't take longer than 15 seconds. If you see the DevLake container constantly restarting while the MySQL container is up and running, then there's something wrong with the connection between the DevLake container and the MySQL container. I'd suggest that you double-check the connection string in the `.env` file. Make sure you use `mysql:3306` instead of `localhost:3306` in the connection string. Let me know if the problem persists. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org