Alerting

Mobile Access Server: "Cast to date failed" when checking for triggered Alerts

martin_mueller
SplunkTrust
SplunkTrust

I've successfully installed the Splunk Mobile Access Server in a local network, and can use an iPhone to access dashboards through WiFi. However, once I configured an Alert to trigger I see no Alert on the iPhone and this error message every five minutes (= check interval for Alerts) in /opt/mserver/server/logs/server.log:

2014-07-28T14:32:18.025+02:00 - error:  category=fail_to_check_triggered_alerts, error=CastError, message=Cast to date failed for value "2014-07-28 14:32:01 CEST" at path "triggerTime", stack=MongooseError: Cast to date failed for value "2014-07-28 14:32:01 CEST" at path "triggerTime"
  at SchemaDate.cast (/opt/mserver/server/node_modules/mongoose/lib/schema/date.js:107:9)
  at SchemaDate.SchemaType.applySetters (/opt/mserver/server/node_modules/mongoose/lib/schematype.js:526:17)
  at /opt/mserver/server/node_modules/mongoose/lib/document.js:544:18
  at model.Document.$__try (/opt/mserver/server/node_modules/mongoose/lib/document.js:757:8)
  at model.Document.set (/opt/mserver/server/node_modules/mongoose/lib/document.js:543:24)
  at model.Document.set (/opt/mserver/server/node_modules/mongoose/lib/document.js:454:18)
  at model.Document (/opt/mserver/server/node_modules/mongoose/lib/document.js:60:10)
  at model.Model (/opt/mserver/server/node_modules/mongoose/lib/model.js:43:12)
  at new model (/opt/mserver/server/node_modules/mongoose/lib/model.js:2502:11)
  at /opt/mserver/server/node_modules/mongoose/lib/model.js:1516:15, worker=7

That date string looks fine to me. Halp?

1 Solution

jzhong_splunk
Splunk Employee
Splunk Employee

sorry, it seems to be a bug. The Mobile Access Server cannot recognize the CEST timezone. It expects UTC.

We can fix it in next version. Before that, could you please change the timezone on your mobile server as a workaround. Thank you.

View solution in original post

jzhong_splunk
Splunk Employee
Splunk Employee

sorry, it seems to be a bug. The Mobile Access Server cannot recognize the CEST timezone. It expects UTC.

We can fix it in next version. Before that, could you please change the timezone on your mobile server as a workaround. Thank you.

martin_mueller
SplunkTrust
SplunkTrust

Alright, thanks. I'll try that some time.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...