-
Notifications
You must be signed in to change notification settings - Fork 9
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
rsync: mkdir ".packages" file exists
#56
Comments
Running into this atm - any clue what is up? |
Interesting. I am assuming that if it is a clean deploy this would not happen but probably there is some cache which leaves .packages folder available like artefacts from the build itself. Maybe i am wrong but it sounds to me that we need to check in I will try to replicate this one and please if it is possible to write down nodejs version that you are using so i can debug it better. Regards, |
I'm running this on the |
Thanks for sharing since today is my birthday i will try to find some time to reproduce it but probably tomorrow i will have more clue and some PR onto how to fix it :) It should be realatively simple fix. |
Unfortunate i cannot reproduce it using docker or any other method. I have executed multiple times This is one Dockerfile that i build and i am running it from the FROM node:14.19-slim
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install rsync -y
RUN npm i -g @rxdi/firelink
COPY . .
RUN firelink install Any more clues onto how to replicate this one ? I have started to think about that it may be related with different versions of There is also a native copy method that can be used which will use nodejs fs module to copy appropriate files but it will be far more slower than
firelink --use-native-copy
Is there anything that may lead me how to debug it ? Do you have some example Dockerfile which i may test ? It is pretty interesting to happen since Thank you guys for the report this is the way we can make the world a better place :) |
It is interesting that there is ongoing ticket inside https://bugs.launchpad.net/ubuntu/+source/rsync/+bug/806880
Also i have found out this tread https://www.experts-exchange.com/questions/28318040/rsync-giving-'file-exists'-errors.html Where in the end the guy says hahaha i don't understand what is happening here actually :D |
I'm not executing this directly through Docker, there is the GitLab CI machinery in the middle, that is maybe reusing runners through execution, but I really have no idea where's the culprit.
If I look at two subsequent runs, one of which failed, I see the same rsync version (3.1.3-6).
I will give this a try, it could solve the problem despite the lower performance... but that's not a serious concern. I rather prefer having a consistent result.
I already tried that as a workaround, but doesn't help at all... this is a snippet from the GitLab CI log:
You should really try using GitLab CI. Don't know if @murphman300 also uses that or has any other info.
That could be a safety countermeasure that doesn't harm anyone and could help.
Really don't have any more info than what I already said.
Your remark on the idempotent nature of
You're welcome! Thanks for helping us solve this hairy issue. |
@ibobo hello there again! I have released 0.9.2 version of I really hope that this would not break anything else on some other people builds. Can you give it a try by installing it Will leave this issue open since i am not sure that this argument will fix the main cause of it... Cheers! |
We still experience the same issue (the deployment fails in ~50% of cases) even with the latest version of firelink 0.9.2 |
Hi, I'm using firelink to deploy from a GitLab CI script, and most times everything runs smoothly. Sometimes instead I get this error:
I couldn't find any way to replicate it, and I tried to fix it by adding a
rm -rf .packages
before running the deploy command to no avail.The text was updated successfully, but these errors were encountered: