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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...