-
Notifications
You must be signed in to change notification settings - Fork 23
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
Filewatcher problem with rsync #441
Comments
Does the file get loaded again after the unload? |
Nope, that's the full log. Habapp forgets about this file. What's interesting, when I copy files using scp, everythong works, rsync does it in some not compatible way. Another interesting thing: I tried to change behavior of rsync using --inplace flag, but it doesn't change anythong, habapp behaves in the same way. |
I can't make sense of it. Could you additionally show me the corresponding file events from the HABApp events? |
You have everything in the first post, or is there anything more? |
No, the corresponding issued file events are missing. You typically find these in the |
Ahh, I see. |
You can set the logging level for the event file to INFO, then do rsync and then set it back to warning again. It will be picked up on the fly. |
Hi
I use rsync to deploy configuration to production, and have habapp running in a docker container. Recently I found a strange behavior of filewatcher. After copying a new file using rsync, it removes any references to it. Probably it happens because rsync creates temporary file and then moves it to final location. Habapp sees this move and then interprets it as file removal.
EDIT:
Probably the answer is here:
HABApp/src/HABApp/core/files/watcher/base_watcher.py
Line 55 in 5ccb2d6
and here:
HABApp/src/HABApp/core/files/watcher/base_watcher.py
Line 61 in 5ccb2d6
You can see it in the logs (it's Loki, read from bottom):
The text was updated successfully, but these errors were encountered: