I first posted this issue on github
Maybe it’s preferred to ask this in the forum, so forgive me for copying this here:
Infos
- Docker version: 18.06.1-ce
- Docker-compose version: 1.13.0, build 1719ceb
- Operating system (Docker host): Photon OS
I have a stack running zammad and a stack running an instance of webhook.site
Both run on the same docker host 192.168.97.160
Zammad is run behind HAproxy on a pfsense and reachable worldwide with a working https:// URL (using LetsEncrypt).
Configured a webhook plus a trigger in Zammad, the logs in Zammad show that the webhook is triggered, but I don’t see the request in the “webhook.site” GUI. Testing from my browser or local PC (curl) works fine.
So the question is: do I have to do anything special to the Zammad Docker stack to allow these outgoing requests maybe?
Expected behavior
- webhooks created and triggered in Zammad show up in the webhook test site
Actual behavior
- no requests get to the test “receiver”
Steps to reproduce the behavior
- set up zammad docker-compose stack
- set up webhook.site as in here
- set up matching webhook in zammad, example: http://192.168.97.160:8084/0ad520c0-be1e-4f23-b488-bee8f3db1933
- set up trigger to trigger that webhook (everytime a ticket is edited, for first test)
- edit ticket
- wait for request to show up in “webhook.site” container
Sorry if I ask something obvious, I am new to webhooks …
additional
finding logs like:
zammad-scheduler_1 | I, [2022-11-18T10:40:26.758610 #1-109460] INFO -- : 2022-11-18T10:40:26+0000: [Worker(host:07fde5f684aa pid:1)] Job TriggerWebhookJob [4db1488c-6040-4895-803e-f69bcb35a3d0] from DelayedJob(default) with arguments: [{"_aj_globalid"=>"gid://zammad/Trigger/5"}, {"_aj_globalid"=>"gid://zammad/Ticket/88"}, {"_aj_globalid"=>"gid://zammad/Ticket::Article/180"}] (id=6893) (queue=default) RUNNING
zammad-scheduler_1 | E, [2022-11-18T10:40:30.886436 #1-109460] ERROR -- : 2022-11-18T10:40:30+0000: [Worker(host:07fde5f684aa pid:1)] Job TriggerWebhookJob [4db1488c-6040-4895-803e-f69bcb35a3d0] from DelayedJob(default) with arguments: [{"_aj_globalid"=>"gid://zammad/Trigger/5"}, {"_aj_globalid"=>"gid://zammad/Ticket/88"}, {"_aj_globalid"=>"gid://zammad/Ticket::Article/180"}] (id=6893) (queue=default) FAILED (4 prior attempts) with TriggerWebhookJob::RequestError: TriggerWebhookJob::RequestError
zammad-scheduler_1 | E, [2022-11-18T10:40:30.886513 #1-109460] ERROR -- : 2022-11-18T10:40:30+0000: [Worker(host:07fde5f684aa pid:1)] Job TriggerWebhookJob [4db1488c-6040-4895-803e-f69bcb35a3d0] from DelayedJob(default) with arguments: [{"_aj_globalid"=>"gid://zammad/Trigger/5"}, {"_aj_globalid"=>"gid://zammad/Ticket/88"}, {"_aj_globalid"=>"gid://zammad/Ticket::Article/180"}] (id=6893) (queue=default) FAILED permanently because of 5 consecutive failures
Found Failed to run background job TriggerWebhookJob
My “other side” replies with Code 200, at least it seems to be configured like that.