I am getting error while creating Organizations
!!!! Error !!!! HTTP STATUS CODE: 500 { "code" : "organizations.ApplicationDatastoreServerIssue", "message" : "application-datastore(cassandra) servers are down or not registered for central pod.", "contexts" : [ ] }
ERROR: Creating organization myorg failed. Continue anyhow? y/n (y): y Associate the pod for the organization !!!! Error !!!! HTTP STATUS CODE: 404 { "code" : "organizations.OrganizationDoesNotExist", "message" : "Organization : myorg does not exist", "contexts" : [ ] } ERROR: Specifying pod gateway for organization myorg failed. ERROR: Adding Sysadmin User as Org admin failed.
@aaricia veeta, Similar issue has been discussed here. Lets know the outcome.
I have gone through this discussion before. The podinstallation looks good. It does not make sense to reinstall when all components are up in running.
[root@instance-4 edge]# /opt/apigee/apigee-service/bin/apigee-all status
+ apigee-service apigee-cassandra status apigee-service: apigee-cassandra: OK
+ apigee-service apigee-openldap status apigee-service: apigee-openldap: OK
+ apigee-service apigee-zookeeper status apigee-service: apigee-zookeeper: OK
+ apigee-service edge-management-server status apigee-service: edge-management-server: OK
+ apigee-service edge-message-processor status apigee-service: edge-message-processor: OK
+ apigee-service edge-router status apigee-service: edge-router: OK
+ apigee-service edge-ui status apigee-service: edge-ui: OK
As discussed in the link; missing of "application-datastore" seem to be the root cause. are you able to see specified data store in the verify pod installation step?
The datastore components are cassandra and zookeeper.Which are runnining OK
The Pods results have no error:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'}
[root@instance-4 edge]# curl http://localhost:8080/v1/o/organization/pods
{
"code" : "organizations.OrganizationDoesNotExist",
"message" : "Organization : organization does not exist",
"contexts" : [ ]
}[root@instance-4 edge]# curl -u /localhost:8080/v1/servers?pod=central
[ {
"externalHostName" : "instance-4",
"externalIP" : "",
"internalHostName" : "instance-4",
"internalIP" : "",
"isUp" : true,
"pod" : "central",
"reachable" : true,
"region" : "dc-1",
"tags" : {
"property" : [ {
"name" : "dp.color",
"value" : "green"
}, {
"name" : "release.id",
"value" : "170213_02"
}, {
"name" : "http.management.port",
"value" : "8080"
}, {
"name" : "rpm.name",
"value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02"
}, {
"name" : "started.at",
"value" : "1505702333896"
}, {
"name" : "startup.interval",
"value" : "11806"
}, {
"name" : "rpc.port",
"value" : "4526"
}, {
"name" : "Profile",
"value" : "ManagementServer"
}, {
"name" : "startup.time",
"value" : "11 seconds "
}, {
"name" : "up.time",
"value" : "3 hours 28 minutes 1 second"
} ]
},
"type" : [ "management-server" ],
"uUID" : "57d2db52-41d3-469b-8d57-cad6d1f4692a"
-----------------------------------
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'} p.p2 {margin: 0.0px 0.0px 8.0px 0.0px; font: 10.0px 'Courier New'}
http://localhost:8080/v1/servers?pod=gateway
[ {
"externalHostName" : "instance-4",
"externalIP" : "",
"internalHostName" : "instance-4",
"internalIP" : "",
"isUp" : true,
"pod" : "gateway",
"reachable" : true,
"region" : "dc-1",
"tags" : {
"property" : [ {
"name" : "dp.color",
"value" : "green"
}, {
"name" : "release.id",
"value" : "170213_02"
}, {
"name" : "loadBalancer",
"value" : "nginx"
}, {
"name" : "http.management.port",
"value" : "8081"
}, {
"name" : "rpm.name",
"value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02"
}, {
"name" : "started.at",
"value" : "1505704030042"
}, {
"name" : "startup.interval",
"value" : "7121"
}, {
"name" : "rpc.port",
"value" : "4527"
}, {
"name" : "Profile",
"value" : "Router"
}, {
"name" : "startup.time",
"value" : "7 seconds "
}, {
"name" : "up.time",
"value" : "3 hours 1 minute 36 seconds"
} ]
},
"type" : [ "router" ],
"uUID" : "99c04d60-2005-4608-aa7b-9ab92349ad49"
}, {
"externalHostName" : "instance-4.c.singular-silo-178104.internal",
"externalIP" : "",
"internalHostName" : "instance-4.c.singular-silo-178104.internal",
"internalIP" : "",
"isUp" : true,
"pod" : "gateway",
"reachable" : true,
"region" : "dc-1",
"tags" : {
"property" : [ {
"name" : "dp.color",
"value" : "green"
}, {
"name" : "release.id",
"value" : "170213_02"
}, {
"name" : "http.port",
"value" : "8998"
}, {
"name" : "http.management.port",
"value" : "8082"
}, {
"name" : "rpm.name",
"value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02"
}, {
"name" : "started.at",
"value" : "1505704047684"
}, {
"name" : "http.ssl.flag",
"value" : "false"
}, {
"name" : "startup.interval",
"value" : "10226"
}, {
"name" : "rpc.port",
"value" : "4528"
}, {
"name" : "Profile",
"value" : "MessageProcessor"
}, {
"name" : "startup.time",
"value" : "10 seconds "
}, {
"name" : "websocket.port",
"value" : "8999"
}, {
"name" : "up.time",
"value" : "3 hours 1 minute 15 seconds"
} ]
},
"type" : [ "message-processor" ],
"uUID" : "d0a74f4f-1676-4ee8-bbe2-409f5b5d590e"
First...please edit your post to remove your ID/pw and ip addresses. Second change you pw as soon as possible. Third, the datastores are in the central pod. Can you post output for running http://localhost:8080/v1/servers?pod=central
Bummer! Troubleshooting side affects, Thanks though
When you get a chance...please post the output from your central pod. It looks from the error that Cassandra didn't register properly and running that curl will help. Thanks.
[ { "externalHostName" : "instance-4", "externalIP" : "1XX.XX.XX.XX", "internalHostName" : "instance-4", "internalIP" : "10.138.0.4", "isUp" : true, "pod" : "gateway", "reachable" : true, "region" : "dc-1", "tags" : { "property" : [ { "name" : "dp.color", "value" : "green" }, { "name" : "release.id", "value" : "170213_02" }, { "name" : "loadBalancer", "value" : "nginx" }, { "name" : "http.management.port", "value" : "8081" }, { "name" : "rpm.name", "value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02" }, { "name" : "started.at", "value" : "1505704030042" }, { "name" : "startup.interval", "value" : "7121" }, { "name" : "rpc.port", "value" : "4527" }, { "name" : "Profile", "value" : "Router" }, { "name" : "startup.time", "value" : "7 seconds " }, { "name" : "up.time", "value" : "2 days 21 hours 52 minutes 47 seconds" } ] }, "type" : [ "router" ], "uUID" : "99c04d60-2005-4608-aa7b-9ab92349ad49" }, { "externalHostName" : "instance-4.c.singular-silo-178104.internal", "externalIP" : "", "internalHostName" : "instance-4.c.singular-silo-178104.internal", "internalIP" : "", "isUp" : true, "pod" : "gateway", "reachable" : true, "region" : "dc-1", "tags" : { "property" : [ { "name" : "dp.color", "value" : "green" }, { "name" : "release.id", "value" : "170213_02" }, { "name" : "http.port", "value" : "8998" }, { "name" : "http.management.port", "value" : "8082" }, { "name" : "rpm.name", "value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02" }, { "name" : "started.at", "value" : "1505704047684" }, { "name" : "http.ssl.flag", "value" : "false" }, { "name" : "startup.interval", "value" : "10226" }, { "name" : "rpc.port", "value" : "4528" }, { "name" : "Profile", "value" : "MessageProcessor" }, { "name" : "startup.time", "value" : "10 seconds " }, { "name" : "websocket.port", "value" : "8999" }, { "name" : "up.time", "value" : "2 days 21 hours 52 minutes 26 seconds" } ] }, "type" : [ "message-processor" ], "uUID" : "d0a74f4f-1676-4ee8-bbe2-409f5b5d590e" } ][
This output is from gateway pod...not central. This is the curl
curl -u sysAdminEmail:passwordhttp://localhost:8080/v1/servers?pod=central
curl -u http://localhost:8080/v1/servers?pod=central
[ { "externalHostName" : "instance-4", "externalIP" : "10.138.0.4", "internalHostName" : "instance-4", "internalIP" : "10.138.0.4", "isUp" : true, "pod" : "central", "reachable" : true, "region" : "dc-1", "tags" : { "property" : [ { "name" : "dp.color", "value" : "green" }, { "name" : "release.id", "value" : "170213_02" }, { "name" : "http.management.port", "value" : "8080" }, { "name" : "rpm.name", "value" : "apigee-rpm-1.0.0.1231.a3c2a51.1708010539-170213_02" }, { "name" : "started.at", "value" : "1505702333896" }, { "name" : "startup.interval", "value" : "11806" }, { "name" : "rpc.port", "value" : "4526" }, { "name" : "Profile", "value" : "ManagementServer" }, { "name" : "startup.time", "value" : "11 seconds " }, { "name" : "up.time", "value" : "3 days 14 hours 45 minutes 23 seconds" } ] }, "type" : [ "management-server" ], "uUID" : "57d2db52-41d3-469b-8d57-cad6d1f4692a" } ][
You have no datastores registered...have you run the apigee-validate script post install?
Yes, I ran those post scripts. The datastore(Cassandra, Zookeeper) are up running:
root@instance-4 edge]# /opt/apigee/apigee-service/bin/apigee-all status
+ apigee-service apigee-cassandra status apigee-service: apigee-cassandra: OK
+ apigee-service apigee-openldap status apigee-service: apigee-openldap: OK
+ apigee-service apigee-zookeeper status apigee-service: apigee-zookeeper: OK
+ apigee-service edge-management-server status apigee-service: edge-management-server: OK
+ apigee-service edge-message-processor status apigee-service: edge-message-processor: OK
+ apigee-service edge-router status apigee-service: edge-router: OK
+ apigee-service edge-ui status apigee-service: edge-ui: OK