clonemeagain / osticket-slack

a Slack plugin for osTicket
MIT License
47 stars 34 forks source link

get errormail for every new ticket #22

Closed d3datadev closed 1 year ago

d3datadev commented 4 years ago

Basically the connection to slack works. But now I get a mail with every new ticket:


Subject: "CronJob /path/to/osticket/mail_cron.sh" message: "didn't trigger"

what could be the reason? How can I fix it? this mail starts after activating the plugin.

Thomas

clonemeagain commented 4 years ago

Haven't looked at it in a while, but if you've got the error message, and any matching server logs we might be able to help.

On Tue, 7 Jul 2020, 17:22 D³ Data Development, notifications@github.com wrote:

Basically the connection to slack works. But now I get a mail with every new ticket: Subject: "CronJob /path/to/osticket/mail_cron.sh" message: "didn't trigger"

what could be the reason? How can I fix it? this mail starts after activating the plugin.

Thomas

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clonemeagain/osticket-slack/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGXTD3KP5K76GX6MGTYGGDR2LEJVANCNFSM4OSQPKVA .

d3datadev commented 4 years ago

thanks for your response. Unfortunality I have no new lines in our apache error.log.

Is there anything else I can check?

argumemnon commented 2 years ago

I am also having this issue. The email I receive has the subject line Cron root@server /usr/bin/php /path/to/osticket/api/cron.php

with the body message "didn't trigger"

In my apache error log for osTicket (in osticket/log/error.log) I saw [php7:notice] [pid 25329 (<--apache)] [client myremoteipaddress:51536] didn't trigger , referer: https://osticketaddress.com/scp/tickets.php?a=open&uid=69

argumemnon commented 2 years ago

Further research shows that it is being triggered by slack.php:

140 error_log("$ticket_subject didn't trigger $regex_subject_ignore");

clonemeagain commented 1 year ago

I can remove that line.. done

https://github.com/clonemeagain/osticket-slack/commit/1365d59683ae1a8a0dc3450f5c1c9dd70d406624