Skip to content

Instantly share code, notes, and snippets.

View sacheendra's full-sized avatar

Sacheendra Talluri sacheendra

  • Amsterdam, The Netherlands
View GitHub Profile
@sacheendra
sacheendra / rancher_cloud_init.yml
Created March 21, 2016 02:37
Terraform rancher cloud init
#cloud-config
coreos:
units:
- name: format-volume.service
command: start
content: |
[Unit]
Description=Formats the secondary drive
After=dev-xvdb.device
@sacheendra
sacheendra / rancher_agent_disconnect_error_3
Created March 19, 2016 17:38
Rancher agent disconnect agent error
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1 is not accessible
ERROR: Could not reach http://server.rancher-stack.6b6992d6.svc.dockerapp.io/v1. Giving up.
@sacheendra
sacheendra / rancher_agent_disconnect_error_2
Created March 19, 2016 17:37
Rancher agent disconnect full error
server-1 | 2016-03-18T19:05:42.019173885Z 2016-03-18 19:05:42,018 ERROR [:] [] [] [] [tp682774205-466] [i.g.i.g.s.ApiRequestFilterDelegate ] Unhandled exception in API for request [io.github.ibuildthecloud.gdapi.request.ApiRequest@3701f90c] java.lang.NullPointerException: null
server-1 | 2016-03-18T19:05:42.019283960Z at io.cattle.platform.iaas.api.auditing.AuditServiceImpl.logRequest(AuditServiceImpl.java:77) ~[cattle-framework-auditing-0.5.0-SNAPSHOT.jar:na]
server-1 | 2016-03-18T19:05:42.019296788Z at io.cattle.platform.iaas.api.auditing.AuditLogsRequestHandler.handle(AuditLogsRequestHandler.java:23) ~[cattle-framework-auditing-0.5.0-SNAPSHOT.jar:na]
server-1 | 2016-03-18T19:05:42.019303448Z at io.github.ibuildthecloud.gdapi.servlet.ApiRequestFilterDelegate.doFilter(ApiRequestFilterDelegate.java:86) ~[cattle-framework-java-server-0.5.0-SNAPSHOT.jar:na]
server-1 | 2016-03-18T19:05:42.019309418Z at io.cattle.platform.api.servlet.ApiRequestFilter$1.runInContext(ApiRequestFilter.java:90) [cattle-framework
@sacheendra
sacheendra / rancher_agent_disconnect_error_1
Created March 19, 2016 17:36
Rancher agent disconnect error 1
server-1 | 2016-03-18T11:56:40.779355901Z time="2016-03-18T11:56:40Z" level=info msg="Stack Create Event Done" eventId=b2f8a4c1-296c-480e-9724-457555a63182 resourceId=1e11
server-1 | 2016-03-18T18:48:42.550951404Z 2016-03-18 18:48:42,550 ERROR [:] [] [] [] [ecutorService-5] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [42] count [1]
server-1 | 2016-03-18T18:49:05.714196774Z 2016-03-18 18:49:05,713 ERROR [:] [] [] [] [ecutorService-1] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [42] count [1]
server-1 | 2016-03-18T18:49:10.714974411Z 2016-03-18 18:49:10,714 ERROR [:] [] [] [] [cutorService-10] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [42] count [2]
server-1 | 2016-03-18T18:49:15.715713598Z 2016-03-18 18:49:15,715 ERROR [:] [] [] [] [cutorService-10] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [42] count [3]
server-1 | 2016-03-18T18:49:20.716779290Z 2016-03-18 18:49:20,716 ERROR [:] [] [] [] [ecutorService
elasticsearch:
image: 'elasticsearch:2.2'
command: 'elasticsearch -Des.discovery.zen.minimum_master_nodes=3 -Des.cluster.name=my_app_es_1 -Des.discovery.zen.ping.unicast.hosts=elasticsearch-1:9300,elasticsearch-2:9300,elasticsearch-3:9300,elasticsearch-4:9300,elasticsearch-5:9300 -Des.network.publish_host=_ethwe:ipv4_ -Des.network.bind_host=0'
deployment_strategy: every_node
environment:
- ES_HEAP_SIZE=4g
ports:
- '9200:9200'
- '9300:9300'
tags:
[2015-05-10 22:07:53,158][WARN ][org.elasticsearch ] Exception cause unwrapping ran for 10 levels...
org.elasticsearch.transport.RemoteTransportException: [search1.localdomain][inet[/172.31.43.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search7.localdomain][inet[/172.31.37.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search1.localdomain][inet[/172.31.43.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search7.localdomain][inet[/172.31.37.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search1.localdomain][inet[/172.31.43.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search7.localdomain][inet[/172.31.37.234:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [search1.localdomain][
@sacheendra
sacheendra / updatedoc_err
Created April 12, 2015 12:38
Elasticsearch says script is missing, but script is present.
curl -XPOST localhost:9200/test/Materials/Steel/_update?pretty=true -d '
{
"lang": "groovy",
"script_file": "updateDocument",
"scripted_upsert":true,
"params": {
"update": {
"foo": "bar"
},
"timestamp": 130
@sacheendra
sacheendra / clobject.js
Created June 7, 2014 17:28
Using Closures to emulate objects with private variables.
var Counter = function(value) {
var count;
if(typeof value === 'number')
count = value;
else
count = 0;
return {
increment: function(num) { count = count + (num || 1); return this },
decrement: function(num) { count = count - (num || 1); return this },