{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6188","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6188/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6188/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6188/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6188","id":156231963,"number":6188,"title":"Storage-related NPEs","user":{"login":"mriehl","id":1955590,"avatar_url":"https://avatars.githubusercontent.com/u/1955590?v=3","gravatar_id":"","url":"https://api.github.com/users/mriehl","html_url":"https://github.com/mriehl","followers_url":"https://api.github.com/users/mriehl/followers","following_url":"https://api.github.com/users/mriehl/following{/other_user}","gists_url":"https://api.github.com/users/mriehl/gists{/gist_id}","starred_url":"https://api.github.com/users/mriehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mriehl/subscriptions","organizations_url":"https://api.github.com/users/mriehl/orgs","repos_url":"https://api.github.com/users/mriehl/repos","events_url":"https://api.github.com/users/mriehl/events{/privacy}","received_events_url":"https://api.github.com/users/mriehl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/storage%20team","name":"storage team","color":"c5def5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-23T09:03:06Z","updated_at":"2016-05-23T11:20:09Z","closed_at":null,"body":"## Expected behavior and actual behavior\r\nI'm upgrading a database from 2.1.17 to 2.2.0.\r\n\r\nLogging in to studio doesn't seem to work. There are many exceptions in the log:\r\n\r\n\r\n```\r\n2016-05-23 10:58:45:335 SEVER {db=mydb} Cannot store state of cache for storage placed under /san/orientdb-community/databases/mydb [O2QCache]$ANSI{green {db=mydb}} Error during storage close\r\njava.lang.NullPointerException\r\n        at com.orientechnologies.common.directmemory.OByteBufferPool.acquireDirect(OByteBufferPool.java:269)\r\n        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.cacheFileContent(OWOWCache.java:1206)\r\n        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.load(OWOWCache.java:617)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.updateCache(O2QCache.java:1200)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.doLoad(O2QCache.java:439)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.load(O2QCache.java:384)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.loadPage(ODurableComponent.java:150)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.loadPage(ODurableComponent.java:144)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.open(OPaginatedCluster.java:219)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.openClusters(OAbstractPaginatedStorage.java:285)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:208)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:231)\r\n        at com.orientechnologies.orient.server.OServer.openDatabaseBypassingSecurity(OServer.java:934)\r\n        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:913)\r\n        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:886)\r\n        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:873)\r\n        at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.authenticate(OServerCommandAuthenticatedDbAbstract.java:163)\r\n        at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.beforeExecute(OServerCommandAuthenticatedDbAbstract.java:123)\r\n        at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetConnect.beforeExecute(OServerCommandGetConnect.java:50)\r\n        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:163)\r\n        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:617)\r\n        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)\r\n\r\n2016-05-23 10:58:45:371 SEVER {db=mydb} Internal server error:\r\ncom.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/san/orientdb-community/databases/mydb' with mode=rw\r\n        Storage URL=\"plocal:/san/orientdb-community/databases/mydb\"\r\n--> java.lang.NullPointerException [ONetworkProtocolHttpDb]\r\n2016-05-23 10:58:46:246 SEVER isAuthorized() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw\r\n        Storage URL=\"plocal:/san/orientdb-community/databases/OSystem\" [OSystemUserAuthenticator]\r\n2016-05-23 10:58:46:718 SEVER isAuthorized() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw\r\n        Storage URL=\"plocal:/san/orientdb-community/databases/OSystem\" [OSystemUserAuthenticator]\r\n2016-05-23 10:58:48:467 SEVER {db=mydb} authenticate() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw\r\n        Storage URL=\"plocal:/san/orientdb-community/databases/OSystem\" [OSystemUserAuthenticator]\r\n```\r\n\r\n## Important Questions\r\n\r\n### Runninng Mode\r\n- [x] Embedded, using PLOCAL access mode\r\n- [ ] Embedded, using MEMORY access mode\r\n- [ ] Remote\r\n\r\n### Misc\r\n- [x] I have a distributed setup with multiple servers. How many? \r\n- [ ] I'm using the Enterprise Edition\r\n\r\n### OrientDB Version\r\n- [ ] v2.0.x - Please specify last number: \r\n- [ ] v2.1.x - Please specify last number: \r\n- [x] v2.2.x - Please specify last number: \r\n\r\n### Operating System\r\n- [x] Linux\r\n- [ ] MacOSX\r\n- [ ] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\n### Java Version\r\n- [ ] 6\r\n- [ ] 7\r\n- [x] 8\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/220953405","html_url":"https://github.com/orientechnologies/orientdb/issues/6188#issuecomment-220953405","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6188","id":220953405,"user":{"login":"laa","id":105066,"avatar_url":"https://avatars.githubusercontent.com/u/105066?v=3","gravatar_id":"","url":"https://api.github.com/users/laa","html_url":"https://github.com/laa","followers_url":"https://api.github.com/users/laa/followers","following_url":"https://api.github.com/users/laa/following{/other_user}","gists_url":"https://api.github.com/users/laa/gists{/gist_id}","starred_url":"https://api.github.com/users/laa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laa/subscriptions","organizations_url":"https://api.github.com/users/laa/orgs","repos_url":"https://api.github.com/users/laa/repos","events_url":"https://api.github.com/users/laa/events{/privacy}","received_events_url":"https://api.github.com/users/laa/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T11:20:08Z","updated_at":"2016-05-23T11:20:08Z","body":"@mriehl I think we can improve validation of settings before start to avoid given issues in future."}}
{"actor":{"display_login":"laa"}}