{"action":"closed","issue":{"url":"https://api.github.com/repos/mogui/pyorient/issues/54","labels_url":"https://api.github.com/repos/mogui/pyorient/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/mogui/pyorient/issues/54/comments","events_url":"https://api.github.com/repos/mogui/pyorient/issues/54/events","html_url":"https://github.com/mogui/pyorient/issues/54","id":63551837,"number":54,"title":"Pyorient won't unlock database","user":{"login":"ysimonson","id":127386,"avatar_url":"https://avatars.githubusercontent.com/u/127386?v=3","gravatar_id":"","url":"https://api.github.com/users/ysimonson","html_url":"https://github.com/ysimonson","followers_url":"https://api.github.com/users/ysimonson/followers","following_url":"https://api.github.com/users/ysimonson/following{/other_user}","gists_url":"https://api.github.com/users/ysimonson/gists{/gist_id}","starred_url":"https://api.github.com/users/ysimonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysimonson/subscriptions","organizations_url":"https://api.github.com/users/ysimonson/orgs","repos_url":"https://api.github.com/users/ysimonson/repos","events_url":"https://api.github.com/users/ysimonson/events{/privacy}","received_events_url":"https://api.github.com/users/ysimonson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mogui/pyorient/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":{"login":"Ostico","id":8008416,"avatar_url":"https://avatars.githubusercontent.com/u/8008416?v=3","gravatar_id":"","url":"https://api.github.com/users/Ostico","html_url":"https://github.com/Ostico","followers_url":"https://api.github.com/users/Ostico/followers","following_url":"https://api.github.com/users/Ostico/following{/other_user}","gists_url":"https://api.github.com/users/Ostico/gists{/gist_id}","starred_url":"https://api.github.com/users/Ostico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ostico/subscriptions","organizations_url":"https://api.github.com/users/Ostico/orgs","repos_url":"https://api.github.com/users/Ostico/repos","events_url":"https://api.github.com/users/Ostico/events{/privacy}","received_events_url":"https://api.github.com/users/Ostico/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-22T16:43:23Z","updated_at":"2015-03-23T00:29:32Z","closed_at":"2015-03-23T00:29:32Z","body":"Hi, I'm trying to use pyorient to create a database, but it doesn't seem to unlock the database afterwards.\r\n\r\nWith the environment variable `ODB_URL=orientdb://root:foo@localhost:2424/test`, I'll run this script:\r\n\r\n    #!/usr/bin/env python\r\n\r\n    import os\r\n    import pyorient\r\n    import urllib.parse\r\n\r\n    def main():\r\n        print(os.environ[\"ODB_URL\"])\r\n        parsed = urllib.parse.urlparse(os.environ[\"ODB_URL\"])\r\n        conn = pyorient.OrientDB(parsed.hostname, parsed.port)\r\n        conn.connect(parsed.username, parsed.password)\r\n        conn.db_create(parsed.path[1:], pyorient.DB_TYPE_GRAPH, pyorient.STORAGE_TYPE_PLOCAL)\r\n        conn.db_close()\r\n\r\n    if __name__ == \"__main__\":\r\n        main()\r\n\r\nThe process exits normally. Everything appears fine until using OrientDB's `console.sh` afterwards, which gives this error:\r\n\r\n\torientdb>  connect plocal:/home/vagrant/orientdb/databases/test root foo;\r\n\r\n\tConnecting to database [plocal:/home/vagrant/orientdb/databases/test] with user 'root'...\r\n\tError: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/home/vagrant/orientdb/databases/test' with mode=rw\r\n\r\n\tError: com.orientechnologies.orient.core.exception.OSerializationException: Cannot load database's configuration. The database seems to be corrupted.\r\n\r\n\tError: com.orientechnologies.common.concur.lock.OLockException: File '/home/vagrant/orientdb/databases/test/database.ocf' is locked by another process, maybe the database is in use by another process. Use the remote mode with a OrientDB server to allow multiple access to the same database.\r\n"}}