{"action":"closed","issue":{"url":"https://api.github.com/repos/Netflix/Priam/issues/466","repository_url":"https://api.github.com/repos/Netflix/Priam","labels_url":"https://api.github.com/repos/Netflix/Priam/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/Priam/issues/466/comments","events_url":"https://api.github.com/repos/Netflix/Priam/issues/466/events","html_url":"https://github.com/Netflix/Priam/issues/466","id":153816575,"number":466,"title":"Nullpointer exception in Priam.Cassandra not starting up.","user":{"login":"calicartel","id":19268851,"avatar_url":"https://avatars.githubusercontent.com/u/19268851?v=3","gravatar_id":"","url":"https://api.github.com/users/calicartel","html_url":"https://github.com/calicartel","followers_url":"https://api.github.com/users/calicartel/followers","following_url":"https://api.github.com/users/calicartel/following{/other_user}","gists_url":"https://api.github.com/users/calicartel/gists{/gist_id}","starred_url":"https://api.github.com/users/calicartel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calicartel/subscriptions","organizations_url":"https://api.github.com/users/calicartel/orgs","repos_url":"https://api.github.com/users/calicartel/repos","events_url":"https://api.github.com/users/calicartel/events{/privacy}","received_events_url":"https://api.github.com/users/calicartel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-09T16:30:14Z","updated_at":"2016-06-06T20:04:16Z","closed_at":"2016-06-06T20:04:16Z","body":"Good morning,\r\n\r\nI am struggling to get Priam working with Cassandra and after hacking at it for two past two weeks, am finally reaching out to you all with hopes that you might be able to help.\r\n\r\nI have the following installed:\r\n- Java 7 (openJDK)\r\n- Cassandra 2.0.17\r\n- Priam 2.x (says 2.8.0-SNAPSHOT)\r\n\r\nI followed the Wiki to a tee but keep seeing the following with no other relevant information in any log files:\r\n\r\ncassand+ 18663 18621  0 03:26 ?        00:00:00 grep -q Error: Exception thrown by the agent : java.lang.NullPointerException\r\n\r\nWe then attached a java debugger (jdb) to get to the source of the error and this what we see:\r\n\r\nCassandra running in the debugger, and discovered it's stuck in\r\n    com.netflix.priam.cassandra.extensions.PriamStartupAgent.setPriamProperties (PriamStartupAgent.java:75)\r\n\r\nIt tries to load configuration with the following code, and then if it fails, it sleeps for 5 seconds and tries again.\r\n\r\n                token = DataFetcher.fetchData(\"http://127.0.0.1:8080/Priam/REST/v1/cassconfig/get_token\");\r\n                seeds = DataFetcher.fetchData(\"http://127.0.0.1:8080/Priam/REST/v1/cassconfig/get_seeds\");\r\n                isReplace = Boolean.parseBoolean(DataFetcher.fetchData(\"http://127.0.0.1:8080/Priam/REST/v1/cassconfig/is_replace_token\"));\r\n                replacedIp = DataFetcher.fetchData(\"http://127.0.0.1:8080/Priam/REST/v1/cassconfig/get_replaced_ip\");\r\n                extraEnvParams = DataFetcher.fetchData(\"http://127.0.0.1:8080/Priam/REST/v1/cassconfig/get_extra_env_params\");\r\n\r\nObviously, it wasn't able to load the config via the REST API running in Tomcat. Tomcat had been shutdown, so I restarted it. The curl command (using the first \"get_token\" URL above) then got stuck waiting. Checked catalina.out log file from tomcat, and discovered this line repeated over and over again:\r\n\r\n INFO 04:44:10,453 Fail wrting cassandra.yml file. Retry again!\r\n INFO 04:44:10,453 Fail wrting cassandra.yml file. Retry again!\r\n INFO 04:44:10,453 Fail wrting cassandra.yml file. Retry again!\r\n\r\nWe've been running tomcat as root, and also set up a link from \"cassnadra.yml\" to \"cassandra.yaml\":\r\n$ ip-xx-xx-xx-xx:~$ ls -l /etc/cassandra/\r\ntotal 92\r\n-rw-r--r-- 1 root root 10837 May  8 03:09 cassandra-env.sh\r\n-rw-r--r-- 1 root root  1199 Sep 18  2015 cassandra-rackdc.properties\r\n-rw-r--r-- 1 root root  1358 Sep 18  2015 cassandra-topology.properties\r\n-rw-r--r-- 1 root root   916 Sep 18  2015 cassandra-topology.yaml\r\n-rw-r--r-- 1 root root 33360 Sep 18  2015 cassandra.yaml\r\nlrwxrwxrwx 1 root root    14 May  9 14:41 cassandra.yml -> cassandra.yaml\r\n-rw-r--r-- 1 root root  2374 Sep 18  2015 commitlog_archiving.properties\r\n-rw-r--r-- 1 root root  1850 Sep 18  2015 log4j-server.properties\r\n-rw-r--r-- 1 root root  1228 Sep 18  2015 log4j-tools.properties\r\ndrwxr-xr-x 2 root root  4096 May  8 02:28 triggers"}}
{"actor":{"display_login":"tulumvinh"}}