-
Notifications
You must be signed in to change notification settings - Fork 856
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
MS Teams notification reporting syntax incorrect
in Windows
#1245
Comments
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏 |
I just tried without the container, it fails with the same error. Downloaded and extracted the latest release, then ran it with the same arguments. |
Yeah, this is unfortunately a bug with the windows It should be possible to fix by ruling out any arguments that have "invalid" characters in the name. The The reason why it hasn't been fixed is that we don't really have any known windows users of watchtower. |
You do now! What can I do to help? |
You can try the branch fix/windows-flag-files and see if it fixes your problem. |
Ok, I'm getting a different error, now:
I built it with |
Yes, the problem is fixed. I'm not sure why the problem is happening when I run it from the command line directly, but if I put it in a container it works. I got the notification in Teams just fine. |
Just for completeness, this is the log I got (partially redacted):
|
Never mind this comment, I debugged in Windows (my first ever debug on golang!) and noticed my url was wrong, sorry about that.
|
Thanks for testing it! I use docker desktop with "Expose daemon on tcp://localhost:2375 without TLS" enabled, and the
to the image, which is probably why it works with just the pipe mounted. It should probably work the same way if your run:
|
Also, I added a check in the build script that adds |
When I set {
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}/main.go",
"args": [
"--label-enable",
"--notifications",
"msteams",
"--notification-msteams-hook",
"https://x.webhook.office.com/webhookb2/x",
"--run-once",
"--monitor-only",
"--debug"
],
"env": {
"DOCKER_HOST": "npipe:////./pipe/docker_engine"
},
}
]
} |
Hi @piksel, do you know when a new release will be made? We've been expecting this fix. |
I can't give a date, but I should be able to find some time for this pretty soon. |
Describe the bug
Running with the msteams notification yields an error.
To Reproduce
c:\bin\watchtower.exe --notifications msteams --notification-msteams-hook https://x.webhook.office.com/x --trace
Expected behavior
Runs without errors.
Environment
This is running as a container, using this images from visualon:
This image is running the latest 1.4.0 version in a Nano server.
Additional context
I tried it with
--trace
and--debug
, neither work, it exits immediately.If I run with trace and without the notification I can see that it works as expected, it finds the containers, and is able to connect to docker hub and do its thing.
I have a Linux server working fine with watchtower, using the same teams webhook url, so the url is not the problem.
I also tried it with the environment variables instead of the parameters, I got the same results.
The text was updated successfully, but these errors were encountered: