I’ve deployed a snowplow-mini instance, AMI: snowplow-mini-0.2.2-1490013561-hvm-ebs-amd64 (ami-0c5f6f6a), and can connect on all the ports I should be able to. I then set up the good and bad Kibana indexes and using the snowplow-mini example-events webpage running on the instance sent a few test events. Nothing appeared in Kibana on either of the indexes which lead to some nosing around on the snowplow-mini instance. I can reproduce the problem described below with a single track page view event.
I believe that the stream enrich process is dying. After sending an event the snowplow_stream_enrich_0.7.0 service becomes stopped as does the snowplow_elasticsearch_sink_good_0.5.0 service although I suspect the latter is due to an EOF on the named pipe. I’ve found the /var/log/snowplow_elasticsearch_sink_bad_0.5.0.err log which I can send over but mostly it’s just repeating the lines:
SEVERE: Record failed with message: ElasticsearchParseException[failed to parse doc to extract routing/timestamp/id]; nested: ElasticsearchParseException[Failed to derive xcontent from (offset=0, length=44): [115, 117, 100, 111, 58, 32, 117, 110, 97, 98, 108, 101, 32, 116, 111, 32, 114, 101, 115, 111, 108, 118, 101, 32, 104, 111, 115, 116, 32, 105, 112, 45, 49, 48, 45, 49, 54, 51, 45, 51, 45, 49, 51, 52]];
Jul 10, 2017 9:34:54 AM com.snowplowanalytics.snowplow.storage.kinesis.elasticsearch.ElasticsearchSender attemptEmit$1
INFO: Emitted 0 records to Elasticsearch
Jul 10, 2017 9:34:54 AM com.snowplowanalytics.snowplow.storage.kinesis.elasticsearch.ElasticsearchSender printClusterStatus
WARNING: Cluster health is YELLOW.
Jul 10, 2017 9:34:54 AM com.snowplowanalytics.snowplow.storage.kinesis.elasticsearch.ElasticsearchSender attemptEmit$1
WARNING: Returning 1 records as failed
I can see the raw events arriving using cat /home/ubuntu/snowplow/pipes/raw-events-pipe. I believe this sets up a race condition on the named pipe so only ran for an single test. The base64 decoded event looked like the snowplow test event I fired. With only the snowplow_stream_enrich_0.7.0 service running, not the good sink, I saw nothing arrive when I set up my own cat /home/ubuntu/snowplow/pipes/enriched-events-pipe and the cat ended, presumably when the service did. The bad sink is still running and no events are showing up in Kibana. I haven’t been able to find any other useful logs.
Can anyone help here?
Thanks
Gareth