[solved] {"error":"nonsensical hours provided"}

Today morning I upgraded Zammad via RPM. Now if I try associate new ticket for agent I get error 500 {“error”:“nonsensical hours provided”}.

Version 2.9
Centos 7

Please use the template given for posting technical assistance requests.
Please include PGSQL- and elasticsearch version.

Also,m describe what you’re doing until the issue appears.

Please also provide your production-logfile from the moment where this error appears, this might help both sides on solving the issue.

  • Used Zammad version: 2.9.x
  • Used Zammad installation source: RPM
  • Operating system: CENTOS 7
  • Browser + version: Firefox 66.0

Expected behavior:

  • New ticket attaching to an agent give error {“error”:“nonsensical hours provided”}
    If ticket is opened, no error.

I, [2019-03-20T16:51:08.416066 #14053-47297499253060] INFO – : Started PUT “/api/v1/taskbar/8578” for 91.155.210.92 at 2019-03-20 16:51:08 +0200
I, [2019-03-20T16:51:08.421331 #14053-47297499253060] INFO – : Processing by TaskbarController#update as JSON
I, [2019-03-20T16:51:08.421426 #14053-47297499253060] INFO – : Parameters: {“key”=>“Ticket-5306”, “client_id”=>“123”, “callback”=>“TicketZoom”, “state”=>{“ticket”=>{}, “article”=>{“form_id”=>“093499395”}}, “params”=>{“ticket_id”=>“5306”, “init”=>true}, “prio”=>539, “notify”=>false, “active”=>false, “attachments”=>[], “updated_at”=>“2019-03-19T08:36:10.326Z”, “id”=>“8578”}
I, [2019-03-20T16:51:08.453179 #14053-47297499253060] INFO – : Completed 200 OK in 32ms (Views: 0.4ms | ActiveRecord: 4.2ms)
I, [2019-03-20T16:51:08.849057 #14053-69929786230800] INFO – : Started PUT “/api/v1/taskbar/8636” for 91.155.210.92 at 2019-03-20 16:51:08 +0200
I, [2019-03-20T16:51:08.854461 #14053-69929786230800] INFO – : Processing by TaskbarController#update as JSON
I, [2019-03-20T16:51:08.854572 #14053-69929786230800] INFO – : Parameters: {“key”=>“Ticket-5341”, “client_id”=>“123”, “callback”=>“TicketZoom”, “state”=>{“ticket”=>{}, “article”=>{“form_id”=>“087943647”}}, “params”=>{“ticket_id”=>“5341”, “shown”=>true}, “prio”=>561, “notify”=>false, “active”=>false, “attachments”=>[], “updated_at”=>“2019-03-20T13:17:55.298Z”, “id”=>“8636”}
I, [2019-03-20T16:51:08.927103 #14053-69929786230800] INFO – : Completed 200 OK in 72ms (Views: 0.8ms | ActiveRecord: 5.9ms)
I, [2019-03-20T16:51:09.046909 #14053-69929786230800] INFO – : Started PUT “/api/v1/taskbar/8635” for 91.155.210.92 at 2019-03-20 16:51:09 +0200
I, [2019-03-20T16:51:09.055334 #14053-69929786230800] INFO – : Processing by TaskbarController#update as JSON
I, [2019-03-20T16:51:09.055448 #14053-69929786230800] INFO – : Parameters: {“key”=>“Ticket-5342”, “client_id”=>“123”, “callback”=>“TicketZoom”, “state”=>{“ticket”=>{}, “article”=>{“form_id”=>“087960921”}}, “params”=>{“ticket_id”=>“5342”, “shown”=>true}, “prio”=>560, “notify”=>false, “active”=>false, “attachments”=>[], “updated_at”=>“2019-03-20T13:17:31.360Z”, “id”=>“8635”}
I, [2019-03-20T16:51:09.130097 #14053-69929786230800] INFO – : Completed 200 OK in 74ms (Views: 0.7ms | ActiveRecord: 6.8ms)
I, [2019-03-20T16:51:09.244987 #14053-69929786230800] INFO – : Started PUT “/api/v1/taskbar/8625” for 91.155.210.92 at 2019-03-20 16:51:09 +0200
I, [2019-03-20T16:51:09.252248 #14053-69929786230800] INFO – : Processing by TaskbarController#update as JSON
I, [2019-03-20T16:51:09.252391 #14053-69929786230800] INFO – : Parameters: {“key”=>“Ticket-5338”, “client_id”=>“123”, “callback”=>“TicketZoom”, “state”=>{“ticket”=>{“owner_id”=>“3”}, “article”=>{“form_id”=>“064201431”}}, “params”=>{“ticket_id”=>“5338”, “shown”=>true}, “prio”=>557, “notify”=>false, “active”=>true, “attachments”=>[], “updated_at”=>“2019-03-20T06:42:11.097Z”, “id”=>“8625”}
I, [2019-03-20T16:51:09.408849 #14053-69929786230800] INFO – : Completed 200 OK in 156ms (Views: 0.5ms | ActiveRecord: 7.2ms)
I, [2019-03-20T16:51:12.417847 #14053-47297497555120] INFO – : Started PUT “/api/v1/tickets/5338?all=true” for 91.155.210.92 at 2019-03-20 16:51:12 +0200
I, [2019-03-20T16:51:12.423883 #14053-47297497555120] INFO – : Processing by TicketsController#update as JSON
I, [2019-03-20T16:51:12.424011 #14053-47297497555120] INFO – : Parameters: {“number”=>“4253381”, “title”=>“pressure and flow controller TURBI M1”, “group_id”=>“2”, “owner_id”=>“585”, “customer_id”=>1305, “state_id”=>“1”, “priority_id”=>“2”, “updated_at”=>“2019-03-20T06:17:37.539Z”, “preferences”=>{“channel_id”=>4}, “pending_time”=>nil, “puhelinnumero”=>"", “id”=>“5338”, “all”=>“true”}
I, [2019-03-20T16:51:12.485754 #14053-47297497555120] INFO – : Enqueued SearchIndexJob (Job ID: c5a57a5a-9c27-4280-bf58-3b9488e54c50) to DelayedJob(default) with arguments: “Ticket”, 5338
I, [2019-03-20T16:51:12.492463 #14053-47297497555120] INFO – : Enqueued SearchIndexJob (Job ID: 9c547452-9f72-4043-8301-a4b17c49ad27) to DelayedJob(default) with arguments: “User”, 1305
E, [2019-03-20T16:51:12.517145 #14053-47297497555120] ERROR – : nonsensical hours provided (Biz::Error::Configuration)

Please run `zammad run rails r ‘p Calendar.all.pluck(:id, :name, :business_hours)’) and post the result here. This is most likely a miss configured SLA calendar.

bash: syntax error near unexpected token `(’

Little typo… zammad run rails r 'p Calendar.all.pluck(:id, :name, :business_hours)'

1 Like

[[1, “Finland_1”, {“mon”=>{“active”=>true, “timeframes”=>[[“08:00”, “16:00”]]}, “tue”=>{“active”=>true, “timeframes”=>[[“08:00”, “16:00”]]}, “wed”=>{“active”=>true, “timeframes”=>[[“08:00”, “17:00”]]}, “thu”=>{“active”=>true, “timeframes”=>[[“08:00”, “01:06”]]}, “fri”=>{“active”=>true, “timeframes”=>[[“08:00”, “15:00”]]}, “sat”=>{“active”=>false, “timeframes”=>[[“09:00”, “17:00”]]}, “sun”=>{“active”=>false, “timeframes”=>[[“09:00”, “17:00”]]}}]]

Here’s your problem.
You might want to fix Thursday to something later 08:00 :wink:

1 Like

Solved :slight_smile:

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.