Thanks. The secret was updated two months ago and expires in 2026 - so I don´t think so.
The production.log says:
E, [2024-11-11T19:33:15.619683#6566-179920] ERROR -- : Can't use Channel::Driver::Imap: #<RuntimeError: Failed to refresh XOAUTH2 access_token of provider 'microsoft365': Request failed! (code: 0)>
E, [2024-11-11T19:33:15.619703#6566-179920] ERROR -- : Failed to refresh XOAUTH2 access_token of provider 'microsoft365': Request failed! (code: 0) (RuntimeError)
app/models/channel.rb:370:in `rescue in refresh_xoauth2!'
app/models/channel.rb:355:in `refresh_xoauth2!'
app/models/channel.rb:58:in `fetch'
app/models/channel.rb:36:in `fetch'
(eval):1:in `eval_job_method'
Re authentication and admin grant buttons give a 500 error:
E, [2024-11-11T19:43:04.383135#6566-179860] ERROR -- : https://geo.zammad.com/lookup?ip=91.114.81.36: #<RuntimeError: 0/>
I, [2024-11-11T19:43:04.389901#6566-179860] INFO -- : 2024-11-11T19:43:04+0100: [Worker(host:support pid:6566)] Job UserDeviceLogJob [c0ef3b4e-3510-40e4-ae5e-ca1706b17dcc] from DelayedJob(default) with arguments: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36", "91.114.81.36", 4, "-1868058830", "session"] (id=2889264) (queue=default) COMPLETED after 2.0447
I, [2024-11-11T19:43:05.343788#6566-179880] INFO -- : ProcessScheduledJobs running...
I, [2024-11-11T19:43:05.345426#6566-179880] INFO -- : Running job thread for 'Process ticket escalations.' (Ticket.process_escalation) status is: sleep
I, [2024-11-11T19:43:05.345487#6566-179880] INFO -- : Running job thread for 'Check 'Channel' streams.' (Channel.stream) status is: sleep
I, [2024-11-11T19:43:05.345655#6566-179880] INFO -- : Running job thread for 'Check channels.' (Channel.fetch) status is: sleep
I, [2024-11-11T19:43:05.345704#6566-179880] INFO -- : Running job thread for 'Generate 'Session' data.' (Sessions.jobs) status is: sleep
I, [2024-11-11T19:43:05.345750#6566-179880] INFO -- : Running job thread for 'Execute planned jobs.' (Job.run) status is: sleep
I, [2024-11-11T19:43:14.496786#6557-230460] INFO -- : Started GET "/api/v1/external_credentials/microsoft365/callback?code=[FILTERED]&session_state=2e50528a-8913-4a02-938c-1e1a5ac264ac" for 91.114.81.36 at 2024-11-11 19:43:14 +0100
I, [2024-11-11T19:43:14.505682#6557-230460] INFO -- : Processing by ExternalCredentialsController#callback as HTML
I, [2024-11-11T19:43:14.505756#6557-230460] INFO -- : Parameters: {"code"=>"[FILTERED]", "session_state"=>"2e50528a-8913-4a02-938c-1e1a5ac264ac", "provider"=>"microsoft365"}
I, [2024-11-11T19:43:15.347172#6566-179880] INFO -- : ProcessScheduledJobs running...
I, [2024-11-11T19:43:15.349115#6566-179880] INFO -- : Running job thread for 'Process ticket escalations.' (Ticket.process_escalation) status is: sleep
I, [2024-11-11T19:43:15.349230#6566-179880] INFO -- : Running job thread for 'Check 'Channel' streams.' (Channel.stream) status is: sleep
I, [2024-11-11T19:43:15.349421#6566-179880] INFO -- : Running job thread for 'Check channels.' (Channel.fetch) status is: sleep
I, [2024-11-11T19:43:15.349473#6566-179880] INFO -- : Running job thread for 'Generate 'Session' data.' (Sessions.jobs) status is: sleep
I, [2024-11-11T19:43:15.349519#6566-179880] INFO -- : Running job thread for 'Execute planned jobs.' (Job.run) status is: sleep
E, [2024-11-11T19:43:18.527653#6557-230460] ERROR -- : Request failed! (code: 0)
E, [2024-11-11T19:43:18.528101#6557-230460] ERROR -- : Request failed! (code: 0) (RuntimeError)
lib/external_credential/microsoft365.rb:209:in `authorize_tokens'
lib/external_credential/microsoft365.rb:46:in `link_account'
app/models/external_credential.rb:21:in `link_account'
app/controllers/external_credentials_controller.rb:43:in `callback'
app/controllers/application_controller/has_download.rb:17:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:16:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:15:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
I, [2024-11-11T19:43:18.536784#6557-230460] INFO -- : Completed 500 Internal Server Error in 4030ms (Views: 2.5ms | ActiveRecord: 1.9ms | Allocations: 7009)
I, [2024-11-11T19:43:23.979425#6566-179920] INFO -- : execute Channel.fetch (try_count 0)...
I, [2024-11-11T19:43:25.351052#6566-179880] INFO -- : ProcessScheduledJobs running...
I, [2024-11-11T19:43:25.352449#6566-179880] INFO -- : Running job thread for 'Check channels.' (Channel.fetch) status is: sleep
I, [2024-11-11T19:43:25.352525#6566-179880] INFO -- : Running job thread for 'Check 'Channel' streams.' (Channel.stream) status is: sleep
I, [2024-11-11T19:43:25.352767#6566-179880] INFO -- : Running job thread for 'Process ticket escalations.' (Ticket.process_escalation) status is: sleep
I, [2024-11-11T19:43:25.352879#6566-179880] INFO -- : Running job thread for 'Generate 'Session' data.' (Sessions.jobs) status is: sleep
I, [2024-11-11T19:43:25.353271#6566-179880] INFO -- : Running job thread for 'Execute planned jobs.' (Job.run) status is: sleep