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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...