Error while accessing datastore;please retry later

Not applicable

New install of 15.04 as an All-in-One. Everything seemed to complete successfully, however the Virtual Hosts were not set up when running setup-org. Now receiving these errors trying to query the virtualhosts:

[17:35:35: vmach@edge4:~]

> curl -nv http://edge4:8080/v1/o/objix/e/test/virtualhosts

* About to connect() to edge4 port 8080 (#0)

* Trying 192.168.21.198... connected

* Connected to edge4 (192.168.21.198) port 8080 (#0)

* Server auth using Basic with user 'tdavid@apigee.com'

> GET /v1/o/objix/e/test/virtualhosts HTTP/1.1

> Authorization: Basic dG[...]

> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2

> Host: edge4:8080

> Accept: */*

>

< HTTP/1.1 500 Server Error

< Content-Type: application/json

< Date: Mon, 03 Aug 2015 22:35:49 GMT

< Content-Length: 143

<

{

"code" : "datastore.ErrorWhileAccessingDataStore",

"message" : "Error while accessing datastore;Please retry later",

"contexts" : [ ]

* Connection #0 to host edge4 left intact

* Closing connection #0

}

[17:35:49: vmach@edge4:~]

>

API call to the next higher DB level works fine:

[17:35:28: vmach@edge4:~]

> curl -nv http://edge4:8080/v1/o/objix/e/test

* About to connect() to edge4 port 8080 (#0)

* Trying 192.168.21.198... connected

* Connected to edge4 (192.168.21.198) port 8080 (#0)

* Server auth using Basic with user 'tdavid@apigee.com'

> GET /v1/o/objix/e/test HTTP/1.1

> Authorization: Basic dG[...]

> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2

> Host: edge4:8080

> Accept: */*

>

< HTTP/1.1 200 OK

< Content-Type: application/json

< Date: Mon, 03 Aug 2015 22:35:35 GMT

< Content-Length: 631

<

{

"createdAt" : 1438625428805,

"createdBy" : "tdavid@objix.com",

"lastModifiedAt" : 1438625428805,

"lastModifiedBy" : "tdavid@objix.com",

"name" : "test",

"properties" : {

"property" : [ {

"name" : "useSampling",

"value" : "100"

}, {

"name" : "samplingThreshold",

"value" : "100000"

}, {

"name" : "samplingTables",

"value" : "10=ten;1=one;"

}, {

"name" : "samplingAlgo",

"value" : "reservoir_sampler"

}, {

"name" : "samplingInterval",

"value" : "300000"

}, {

"name" : "aggregationinterval",

"value" : "300000"

} ]

}

* Connection #0 to host edge4 left intact

* Closing connection #0

}

Solved Solved
0 4 2,042
1 ACCEPTED SOLUTION

Not applicable

Issue resolved with a complete re-install all the way down to the OS. Something Somewhere was hosed. 😉

View solution in original post

4 REPLIES 4

Not applicable

Hi @Terry David , virtual hosts are created as part of the env creation that is when add-env.sh is called from setup-org.

May be there were issues when you tried to create environment . You can create a new env by just calling the add-env.sh directly .

Not applicable

Issue resolved with a complete re-install all the way down to the OS. Something Somewhere was hosed. 😉

Not applicable
@Terry David

I am facing the same issue while adding virtual hosts and alias in the add-env.sh script. My orgs get created fine. Can you explain in detail about your resolution please. I am sort of out of ideas about debugging this issue. Note : I did a complete re install of management server and the analytics stand alone installation. The issue still persists.

Error Trace :

{ "code" : "datastore.ErrorWhileAccessingDataStore", "message" : "Error while accessing datastore;Please retry later", "contexts" : [ ] * Connection #0 to host vmaas-00000174.clouduser.bicadmin.com left intact * Closing connection #0 }