-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues and found none that matched mine
Describe the issue
adwatchd doesn't detect file changing when overriding a file by copying via RDP connection.
Steps to reproduce it
- Windows Server 2022 Standard with adwatchd(0.14.2~24.04)
- Content of the adwatchd.yaml is below
verbose: 0
dirs:
- \\example.com\sysvol\example.com\Ubuntu
- Reproducing steps are:
- Check the version id of \example.com\sysvol\example.com\Ubuntu\GPT.ini
- Place a script into \example.com\sysvol\example.com\Ubuntu\scripts. e.g. the script path is
\\example.com\sysvol\example.com\Ubuntu\scripts\hello_world.sh
- Edit the
hello_world.sh
script on the local machine. - Copy the modified
hello_world.sh
via RDP directly onto\\example.com\sysvol\example.com\Ubuntu\scripts\hello_world.sh
- Excepted Behaviour: adwatchd detect the file changing and increment version in the GPT.ini.
- Actual Behaviour: adwatchd doesn't detect the file changing. it doesn't increment version in the GPT.ini, too.
It seems the issue is limited to the case where copying a file via RDP. I tried the modified script to elsewhere than \\example.com\sysvol\example.com\Ubuntu\scripts\
, for example C:\Users\Administrators\Desktop\
and copy it into \\example.com\sysvol\example.com\Ubuntu\scripts\
. In this case, the version of GPT.ini is updated as expected. This seems a workaround.
Ubuntu users: System information
N/A.
ubuntu-bug adsys --save=/tmp/report.txt
isn't applicable because it is a bug with adwatchd.
Non Ubuntu users: System information
Environment
- adsys version: please run
adsysctl version
- Distribution: (NAME in
/etc/os-release
) - Distribution version: (VERSION_ID on
/etc/os-release
):
Log files
Please redact/remove sensitive information:
adsys service logs can be acquired by running `adsysctl service cat -v`.
You can increase the amount of information displayed by increasing the verbosity level (-v) to -vv or -vvv.
Application settings
Please redact/remove sensitive information:
Paste the contents of your adsys.yaml file here, if you created one.
Additional information
No response
Double check your logs
- I have redacted any sensitive information from the logs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working