-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Bug]: Source git branch doesn't update #2895
Comments
I've encountered this issue as well just now on the cloud version |
Hey, following up after doing a bit of trial and error. |
Since 4 beta .317 added |
Has this been fixed @replete ? Or what did you do to work around this issue? I've encountered the same issue with a multi service deployment and only one of the services' is updated. The other two services do not get updated. Here's my compose file as an example:
|
@Nneji123 no idea, I moved on because it was not reliable and will revisit in a year or so. Shame because this workflow is the best feature IMO |
I am also experiencing this issue. Docker Compose with 1 service that is not updating. If I copy my master branch to a "test" branch and use that one to deploy it works (at least the first time). |
Is their a workaround to this? I am using via Github application. |
i'm also getting this bug with githubapp and deploy keys any updates on this? also, how do i manually force a git pull on a project? i think this would be the simplest/easiest fix for now. |
same issue here. Trying to find a solution |
I have the same issue. I'm going to see if deleting the app and recreating it works. Not brilliant but everything else is so good I don't want to throw the baby out with the bathwater, so will wait for the developer to fix. |
i tried everything and gave up mine was deploying a private directory with a docker-compose file. i tried with github app and deploy keys and neither worked. basically coolify doesnt fetch new commits/update the vps branch, no matter what. it was random because some redeploys/deploys fetched new updates, but then it gets stuck. i talked about it on discord, few people tried to help but nothing worked so i gave it up. if i had a button to manually force a branch update / git pull i would be fine, but i dont see any options to do that. @andrasbacsai |
A lot of the time I see this they have a volume mount, which overwrites what gets built in the container So first question does yours have a volume mount? |
When I had this issue a few weeks ago, it ended up being a container running on server built using the same branch i.e. Docker Compose. So it was using the same ports etc. So when you deploy, your changes are pushed, but the container being "served" is the old container, so you don't see any changes. I fixed it by running docker ps in the terminal, finding duplicate containers and deleting. Mine was caused by restoring a backup and Coolify not "knowing" the old container still existed and redeploying. So yeah, maybe check if you have any "unmanaged resources" on your server. |
After checking the logs, the GitHub commit ID was correct, so the problem didn't come from there. The solution: delete the Coolify resource and recreate it. Before deleting, remember to save your environment variables. Then recreate the resource and deploy. This forced Coolify to take into account the latest code and create a new image without using old caches (which I had deleted...). |
@sdezza did u have a volume mount like .:./app ? |
yes:
I deleted all the volumes (UI and docker command), same issue. |
@sdezza you cant have this .:/usr/src/app it just overwrites whats built |
@djsisson make sense! Should be like the flower mount? |
@sdezza no, you do not need any mounts here, if you need some files from your repo, just copy them in inside your dockerfile, all youre doing otherwise is overwriting what has been built if there is some static files you need then u can mount ot a directory within /usr/src/app/staticdir this mount is usually used during dev, where its using your local repo, for prod you should not have such mounts |
Well, that explains why I can't deploy anything. I did have a volume like Force deploy with no cache, disabling cache...etc doesn't seem to work. Current commit is pulled, but the filesystem in the built container does not match. Feel like I'm losing my mind, we can't update apps, at all. It's definitely not workable to delete and recreate the app on each deployment once it stops working |
After removing the app, and recreating it, a new build reflected the changes. However, new builds just don't, again. It appears to be essentially broken, which significantly reduces the utility of coolify ;/ Edit: Maybe this is the issue?
Seems that on every redeploy, the |
How to work around
This consistently avoids the problem for me by pruning unused images each time. |
I am having this issue with v4.0.0-beta.380. With docker-compose:
This is the deployment log: The commit id is correct. Just the application remains in the old state :/ Nothing of above said works for me. No the Stop container, cleanup and deploy again. Neither the |
@fguillen docker compose is a plugin, that automates running docker commands. pull_policy: always The above will not be an issue in your instance, but i will leave for others incase. For your issue you must remove the volume mounts, the first time your app is ran they are created and populated with what is in the image only use mounts for things like config files and uploads, do not use for files that you include when you build |
@djsisson it works, thanks! This is my docker-compose.yml now:
I have remove the |
Description
The source git branch doesn't update on a public repository / docker-compose.
I didn't test other build-packs/resource types.
Minimal Reproduction
https://www.loom.com/share/46359b1ba1864ac3a8cad54c64e04de0
Exception or Error
No response
Version
317
Cloud?
The text was updated successfully, but these errors were encountered: