{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6426","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6426/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6426/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6426/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6426","id":165978397,"number":6426,"title":"isAuthorized() Exception: Can not close file with id 0 because it is still in use","user":{"login":"kwoxer","id":1167229,"avatar_url":"https://avatars.githubusercontent.com/u/1167229?v=3","gravatar_id":"","url":"https://api.github.com/users/kwoxer","html_url":"https://github.com/kwoxer","followers_url":"https://api.github.com/users/kwoxer/followers","following_url":"https://api.github.com/users/kwoxer/following{/other_user}","gists_url":"https://api.github.com/users/kwoxer/gists{/gist_id}","starred_url":"https://api.github.com/users/kwoxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwoxer/subscriptions","organizations_url":"https://api.github.com/users/kwoxer/orgs","repos_url":"https://api.github.com/users/kwoxer/repos","events_url":"https://api.github.com/users/kwoxer/events{/privacy}","received_events_url":"https://api.github.com/users/kwoxer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/storage%20team","name":"storage team","color":"c5def5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.2.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88/labels","id":1768027,"number":88,"title":"2.2.x (next hotfix)","description":"","creator":{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"open_issues":154,"closed_issues":6,"state":"open","created_at":"2016-05-16T08:28:14Z","updated_at":"2016-09-02T06:49:38Z","due_on":null,"closed_at":null},"comments":79,"created_at":"2016-07-17T14:11:54Z","updated_at":"2016-09-02T07:22:34Z","closed_at":null,"body":"More Info: http://stackoverflow.com/questions/38295528/isauthorized-exception-can-not-close-file-with-id-0-because-it-is-still-in-us\r\n\r\n## Expected behavior and actual behavior\r\nIs: server starts but throws errors\r\nShould: server starts and all fine\r\n\r\n\r\n## Steps to reproduce the problem\r\nJDK8 or 9 installed.\r\n\r\n\r\n## Error message\r\n\r\n> 2016-07-10 20:59:41:942 WARNI {db=OSystem} MBean with name com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations:id=1899654914,name=\"OSystem\",type=OAtomicOperationsMangerMXBean has already registered. Probably your system was not shutdown correctly or you have several running applications which use OrientDB engine inside [OAtomicOperationsManager] 2016-07-10 20:59:41:944 SEVER isAuthorized() Exception: Can not close file with id 0 because it is still in use DB name=\"OSystem\" [OSystemUserAuthenticator]\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- [ ] 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- [X] 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/244302260","html_url":"https://github.com/orientechnologies/orientdb/issues/6426#issuecomment-244302260","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6426","id":244302260,"user":{"login":"kwoxer","id":1167229,"avatar_url":"https://avatars.githubusercontent.com/u/1167229?v=3","gravatar_id":"","url":"https://api.github.com/users/kwoxer","html_url":"https://github.com/kwoxer","followers_url":"https://api.github.com/users/kwoxer/followers","following_url":"https://api.github.com/users/kwoxer/following{/other_user}","gists_url":"https://api.github.com/users/kwoxer/gists{/gist_id}","starred_url":"https://api.github.com/users/kwoxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwoxer/subscriptions","organizations_url":"https://api.github.com/users/kwoxer/orgs","repos_url":"https://api.github.com/users/kwoxer/repos","events_url":"https://api.github.com/users/kwoxer/events{/privacy}","received_events_url":"https://api.github.com/users/kwoxer/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T07:22:34Z","updated_at":"2016-09-02T07:22:34Z","body":"Alright databases folder was completely empty. Started server.sh. And the same:\r\n\r\n\r\n```\r\n          .`        `\r\n          ,      `:.\r\n         `,`    ,:`\r\n         .,.   :,,\r\n         .,,  ,,,\r\n    .    .,.:::::  ````                                 :::::::::     :::::::::\r\n    ,`   .::,,,,::.,,,,,,`;;                      .:    ::::::::::    :::    :::\r\n    `,.  ::,,,,,,,:.,,.`  `                       .:    :::      :::  :::     :::\r\n     ,,:,:,,,,,,,,::.   `        `         ``     .:    :::      :::  :::     :::\r\n      ,,:.,,,,,,,,,: `::, ,,   ::,::`   : :,::`  ::::   :::      :::  :::    :::\r\n       ,:,,,,,,,,,,::,:   ,,  :.    :   ::    :   .:    :::      :::  :::::::\r\n        :,,,,,,,,,,:,::   ,,  :      :  :     :   .:    :::      :::  :::::::::\r\n  `     :,,,,,,,,,,:,::,  ,, .::::::::  :     :   .:    :::      :::  :::     :::\r\n  `,...,,:,,,,,,,,,: .:,. ,, ,,         :     :   .:    :::      :::  :::     :::\r\n    .,,,,::,,,,,,,:  `: , ,,  :     `   :     :   .:    :::      :::  :::     :::\r\n      ...,::,,,,::.. `:  .,,  :,    :   :     :   .:    :::::::::::   :::     :::\r\n           ,::::,,,. `:   ,,   :::::    :     :   .:    :::::::::     ::::::::::\r\n           ,,:` `,,.\r\n          ,,,    .,`\r\n         ,,.     `,                                          GRAPH DATABASE\r\n       ``        `.\r\n                 ``                                          orientdb.com\r\n                 `\r\nremoving old pid file /home/ubuntu/orientdb-community-2.2.9-SNAPSHOT/bin/orient.pid\r\n\r\n2016-09-02 09:20:40:920 INFO  Loading configuration from: /home/ubuntu/orientdb-community-2.2.9-SNAPSHOT/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]\r\n2016-09-02 09:20:41:429 INFO  OrientDB Server v2.2.9-SNAPSHOT (build file_close_detection@rb5e81d839d4e853c25379e53cd1eabe57badc6b3; 2016-08-29 11:10:28+0000) is starting up... [OServer]\r\n2016-09-02 09:20:41:442 INFO  Databases directory: /home/ubuntu/orientdb-community-2.2.9-SNAPSHOT/databases [OServer]\r\n2016-09-02 09:20:41:554 WARNI Not enough physical memory available for DISKCACHE: 489MB (heap=123MB direct=524,288MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies]\r\n2016-09-02 09:20:41:555 INFO  OrientDB config DISKCACHE=256MB (heap=123MB direct=524,288MB os=489MB) [orientechnologies]\r\n2016-09-02 09:20:41:763 INFO  {db=OSystem} Creating the system database 'OSystem' for current server [OSystemDatabase]Exception in thread \"main\" java.lang.OutOfMemoryError\r\n        at sun.misc.Unsafe.allocateMemory(Native Method)\r\n        at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:127)\r\n        at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)\r\n        at com.orientechnologies.common.directmemory.OByteBufferPool.allocateBuffer(OByteBufferPool.java:340)\r\n        at com.orientechnologies.common.directmemory.OByteBufferPool.acquireDirect(OByteBufferPool.java:259)\r\n        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.cacheFileContent(OWOWCache.java:1295)\r\n        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.load(OWOWCache.java:633)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.updateCache(O2QCache.java:1111)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.doLoad(O2QCache.java:353)\r\n        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.allocateNewPage(O2QCache.java:403)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation.commitChanges(OAtomicOperation.java:419)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationsManager.endAtomicOperation(OAtomicOperationsManager.java:418)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.endAtomicOperation(ODurableComponent.java:116)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.create(OPaginatedCluster.java:197)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.addClusterInternal(OAbstractPaginatedStorage.java:3519)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doAddCluster(OAbstractPaginatedStorage.java:3500)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:479)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:125)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:429)\r\n        at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:160)\r\n        at com.orientechnologies.orient.server.OSystemDatabase.<init>(OSystemDatabase.java:44)\r\n        at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1248)\r\n        at com.orientechnologies.orient.server.OServer.activate(OServer.java:343)\r\n        at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)\r\n```\r\n\r\nNo I try to delete all JDKs and reset JAVA_HOME. Then reinstall OpenJDK. If not working the OracleJDK after this."}}
{"actor":{"display_login":"kwoxer"}}