You execute
*127.0.0.1:8529@_system> *require("@arangodb/aql/queries").current();
on the coordinator to check for running queries.
Am Sonntag, 17. Juli 2016 19:19:59 UTC+2 schrieb [email protected]:
>
> I don't believe so, but is there any way of checking is some process/query
> has been stalled on the database?
> And it runs for 10 seconds before the lock timeout error.
>
> On Saturday, July 16, 2016 at 6:59:29 PM UTC-7, [email protected] wrote:
>>
>> I am able to connect to the coordinator of my ArangoDB cluster using the
>> following:
>>
>> sudo arangosh --server.endpoint tcp://10.32.0.15:1027
>>
>> Everything works (CRUD, querying, etc.), except when I try to create an
>> index I get a "Lock Timeout" error:
>> 10.32.0.15:1027@_system> db.imdb_vertices.ensureIndex({ type: "skiplist",
>> fields: ["name"] })
>> JavaScript exception in file
>> '/usr/share/arangodb3/js/client/modules/@arangodb/arangosh.js' at 100,7:
>> ArangoError 18: : lock timeout
>> ! throw error;
>> ! ^
>> stacktrace: ArangoError: : lock timeout
>> at Object.exports.checkRequestResult (/usr/share/arangodb3/js/client/
>> modules/@arangodb/arangosh.js:98:21)
>> at ArangoCollection.ensureIndex (/usr/share/arangodb3/js/client/
>> modules/@arangodb/arango-collection.js:738:12)
>> at <shell command>:1:18
>>
>> 10.32.0.15:1027@_system>
>>
>>
>> I get the same error when I try to create the index over HTTP:
>> $ curl -X POST --data-binary @- --dump - http://
>> 10.32.0.15:1027/_api/index?collection=imdb_vertices << EOF
>> {
>> "type" : "skiplist",
>> "fields" : [
>> "name",
>> "genre"
>> ]
>> }
>> EOF
>>
>> HTTP/1.1 400 Bad Request
>> Content-Type: application/json; charset=utf-8
>> Server: ArangoDB
>> Connection: Keep-Alive
>> Content-Length: 71
>>
>> {"error":true,"code":400,"errorNum":18,"errorMessage":": lock timeout"}
>>
>>
>> From the docs, I see "Will be raised when there's a timeout waiting for a
>> lock." is listed as the cause of the error. However, I am unable to find a
>> solution. Any hints?
>>
>> Thanks!
>>
>>
>> (Cross posted from stack overflow here
>> <http://stackoverflow.com/questions/38405759/lock-timeout-when-creating-index-in-arangodb>
>> ).
>>
>
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.