Skip to content

Instantly share code, notes, and snippets.

View vibhcool's full-sized avatar

Vibhor Verma vibhcool

View GitHub Profile
[vibhcool@localhost loklak_server]$ kubectl get pods
NAME READY STATUS RESTARTS AGE
loklak-4041428833-0gssj 0/1 Evicted 0 6h
loklak-4041428833-167tk 0/1 Evicted 0 1d
loklak-4041428833-17860 0/1 Evicted 0 1d
loklak-4041428833-18rjt 0/1 Evicted 0 1d
loklak-4041428833-1ml8l 0/1 Evicted 0 6h
loklak-4041428833-26nf9 0/1 Evicted 0 1d
loklak-4041428833-2h2bj 0/1 Evicted 0 1d
loklak-4041428833-474b5 0/1 Evicted 0 1d
[vibhcool@localhost loklak_server]$ kubectl get services
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 172.21.0.1 <none> 443/TCP 3d
loklak 172.21.247.76 <nodes> 30000:31822/TCP 2d
[vibhcool@localhost loklak_server]$ kubectl describe services
Name: kubernetes
Namespace: default
Labels: component=apiserver
provider=kubernetes
Annotations: <none>
@vibhcool
vibhcool / GSOC17_Report.md
Last active September 2, 2017 03:34
[GSOC-2017] Work Product Submission, Vibhor Verma, FOSSASIA

GSOC-2017 Work Product Submission, FOSSASIA

Student: Vibhor Verma

Github Handle: @vibhcool

Project: Add more harvester to loklak server

Organisation: FOSSASIA

@vibhcool
vibhcool / loklak
Created August 26, 2017 12:44
out of server capacity error
2017-08-26 17:54:53.530:WARN :org.loklak.api.p2p.PushServlet:pool-2-thread-1:
java.io.IOException: client connection to http://api.loklak.org/api/push.json fail: 0: out of server capacity
at org.loklak.http.ClientConnection.init(ClientConnection.java:240) ~[loklak_server-all.jar:?]
at org.loklak.http.ClientConnection.<init>(ClientConnection.java:155) ~[loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:110) [loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:123) [loklak_server-all.jar:?]
at org.loklak.harvester.PushThread.run(PushThread.java:20) [loklak_server-all.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_91]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
@vibhcool
vibhcool / loklak
Created August 26, 2017 12:43
out of server capacity error
2017-08-26 17:54:53.530:WARN :org.loklak.api.p2p.PushServlet:pool-2-thread-1:
java.io.IOException: client connection to http://api.loklak.org/api/push.json fail: 0: out of server capacity
at org.loklak.http.ClientConnection.init(ClientConnection.java:240) ~[loklak_server-all.jar:?]
at org.loklak.http.ClientConnection.<init>(ClientConnection.java:155) ~[loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:110) [loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:123) [loklak_server-all.jar:?]
at org.loklak.harvester.PushThread.run(PushThread.java:20) [loklak_server-all.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_91]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
@vibhcool
vibhcool / loklak.log
Created August 22, 2017 14:02
Push to Backend error
java.io.IOException: client connection to http://api.loklak.org/api/push.json fail: 0: Request Entity Too Large
at org.loklak.http.ClientConnection.init(ClientConnection.java:240) ~[loklak_server-all.jar:?]
at org.loklak.http.ClientConnection.<init>(ClientConnection.java:155) ~[loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:110) [loklak_server-all.jar:?]
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:123) [loklak_server-all.jar:?]
at org.loklak.Caretaker.run(Caretaker.java:129) [loklak_server-all.jar:?]
2017-08-22 13:45:17.867:INFO :DAO:CARETAKER: failed pushing 1405 messages to backend [http://api.loklak.org]
2017-08-22 13:45:17.891:INFO :DAO:CARETAKER: Deleted 525 outdated(hour) messages
2017-08-22 13:45:18.001:INFO :DAO:CARETAKER: Deleted 635 outdated(day) messages
2017-08-22 13:45:18.045:INFO :DAO:CARETAKER: Deleted 13 outdated(week) messages
vibhcool2910@loklak-server-176723:~/loklak_server$ kubectl logs nginx-970708327-7s0j2 --namespace=nginx-ingress
I0814 23:55:53.466738 1 main.go:94] Using build: https://github.com/bprashanth/contrib.git - git-92b2bac
I0814 23:55:53.509755 1 main.go:123] Validated nginx-ingress/default-http-backend as the default backend
W0814 23:55:53.510085 1 ssl.go:132] no file dhparam.pem found in secrets
I0814 23:55:53.514241 1 controller.go:1126] starting NGINX loadbalancer controller
I0814 23:55:53.514785 1 command.go:35] Starting NGINX process...
I0814 23:55:53.527989 1 event.go:216] Event(api.ObjectReference{Kind:"Ingress", Namespace:"web", Name:"web-notls", UID:"e52e77dd-814b-11e7-a578-42010a92000a", APIVersion:"extensions", ResourceVersion:"135233", FieldPath:""}): type: 'Normal' reason: 'CREATE' web/web-notls
I0814 23:55:53.528170 1 event.go:216] Event(api.ObjectReference{Kind:"Ingress", Namespace:"web", Name:"web", UID:"e538f722-814b-11e7-a578-42010a92000a", APIVersion:"ex
vibhorverma291995@loklak-server-175311:~$ gcloud container clusters create loklak-main --num-nodes 2 --machine-type n1-standard-4 --zone europe-west2-a
Creating cluster loklak-main...done.
Created [https://container.googleapis.com/v1/projects/loklak-server-175311/zones/europe-west2-a/clusters/loklak-main].
kubeconfig entry generated for loklak-main.
NAME ZONE MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
loklak-main europe-west2-a 1.6.7 35.197.219.59 n1-standard-4 1.6.7 2 RUNNING
vibhorverma291995@loklak-server-175311:~$ gcloud container clusters get-credentials loklak-main --zone europe-west2-a --project loklak-server-175311
Fetching cluster endpoint and auth data.
kubeconfig entry generated for loklak-main.
vibhorverma291995@loklak-server-175311:~$ cd loklak_server/
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290) ~[loklak_server-all.jar:?]
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:207) ~[loklak_server-all.jar:?]
at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) ~[loklak_server-all.jar:?]
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:288) ~[loklak_server-all.jar:?]
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359) ~[loklak_server-all.jar:?]
at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1226) ~[loklak_server-all.jar:?]
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.ja