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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...