{"action":"created","issue":{"url":"https://api.github.com/repos/freme-project/freme-docker/issues/36","repository_url":"https://api.github.com/repos/freme-project/freme-docker","labels_url":"https://api.github.com/repos/freme-project/freme-docker/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/freme-project/freme-docker/issues/36/comments","events_url":"https://api.github.com/repos/freme-project/freme-docker/issues/36/events","html_url":"https://github.com/freme-project/freme-docker/issues/36","id":191531006,"number":36,"title":"Solr starts as user \"solr\"","user":{"login":"ghsnd","id":3070412,"avatar_url":"https://avatars.githubusercontent.com/u/3070412?v=3","gravatar_id":"","url":"https://api.github.com/users/ghsnd","html_url":"https://github.com/ghsnd","followers_url":"https://api.github.com/users/ghsnd/followers","following_url":"https://api.github.com/users/ghsnd/following{/other_user}","gists_url":"https://api.github.com/users/ghsnd/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsnd/subscriptions","organizations_url":"https://api.github.com/users/ghsnd/orgs","repos_url":"https://api.github.com/users/ghsnd/repos","events_url":"https://api.github.com/users/ghsnd/events{/privacy}","received_events_url":"https://api.github.com/users/ghsnd/received_events","type":"User","site_admin":false},"labels":[{"id":421987533,"url":"https://api.github.com/repos/freme-project/freme-docker/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"ghsnd","id":3070412,"avatar_url":"https://avatars.githubusercontent.com/u/3070412?v=3","gravatar_id":"","url":"https://api.github.com/users/ghsnd","html_url":"https://github.com/ghsnd","followers_url":"https://api.github.com/users/ghsnd/followers","following_url":"https://api.github.com/users/ghsnd/following{/other_user}","gists_url":"https://api.github.com/users/ghsnd/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsnd/subscriptions","organizations_url":"https://api.github.com/users/ghsnd/orgs","repos_url":"https://api.github.com/users/ghsnd/repos","events_url":"https://api.github.com/users/ghsnd/events{/privacy}","received_events_url":"https://api.github.com/users/ghsnd/received_events","type":"User","site_admin":false},"assignees":[{"login":"ghsnd","id":3070412,"avatar_url":"https://avatars.githubusercontent.com/u/3070412?v=3","gravatar_id":"","url":"https://api.github.com/users/ghsnd","html_url":"https://github.com/ghsnd","followers_url":"https://api.github.com/users/ghsnd/followers","following_url":"https://api.github.com/users/ghsnd/following{/other_user}","gists_url":"https://api.github.com/users/ghsnd/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsnd/subscriptions","organizations_url":"https://api.github.com/users/ghsnd/orgs","repos_url":"https://api.github.com/users/ghsnd/repos","events_url":"https://api.github.com/users/ghsnd/events{/privacy}","received_events_url":"https://api.github.com/users/ghsnd/received_events","type":"User","site_admin":false},{"login":"jnehring","id":10537540,"avatar_url":"https://avatars.githubusercontent.com/u/10537540?v=3","gravatar_id":"","url":"https://api.github.com/users/jnehring","html_url":"https://github.com/jnehring","followers_url":"https://api.github.com/users/jnehring/followers","following_url":"https://api.github.com/users/jnehring/following{/other_user}","gists_url":"https://api.github.com/users/jnehring/gists{/gist_id}","starred_url":"https://api.github.com/users/jnehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnehring/subscriptions","organizations_url":"https://api.github.com/users/jnehring/orgs","repos_url":"https://api.github.com/users/jnehring/repos","events_url":"https://api.github.com/users/jnehring/events{/privacy}","received_events_url":"https://api.github.com/users/jnehring/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-11-24T14:19:18Z","updated_at":"2016-11-29T13:52:52Z","closed_at":null,"body":"The solr container `freme-solr` runs a process as user `solr`. This gives errors like \r\n\r\n```\r\nfreme-solr_1      | 6578 ERROR (coreLoadExecutor-6-thread-1) [   x:elinker] o.a.s.c.CoreContainer Error creating core [elinker]: /opt/solr/server/solr/elinker/data/index/write.lock\r\nfreme-solr_1      | org.apache.solr.common.SolrException: /opt/solr/server/solr/elinker/data/index/write.lock\r\nfreme-solr_1      | \tat org.apache.solr.core.SolrCore.<init>(SolrCore.java:820)\r\nfreme-solr_1      | \tat org.apache.solr.core.SolrCore.<init>(SolrCore.java:658)\r\nfreme-solr_1      | \tat org.apache.solr.core.CoreContainer.create(CoreContainer.java:820)\r\nfreme-solr_1      | \tat org.apache.solr.core.CoreContainer.access$000(CoreContainer.java:90)\r\nfreme-solr_1      | \tat org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:473)\r\nfreme-solr_1      | \tat org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:464)\r\nfreme-solr_1      | \tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\nfreme-solr_1      | \tat org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:231)\r\nfreme-solr_1      | \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\nfreme-solr_1      | \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\nfreme-solr_1      | \tat java.lang.Thread.run(Thread.java:745)\r\nfreme-solr_1      | Caused by: java.nio.file.AccessDeniedException: /opt/solr/server/solr/elinker/data/index/write.lock\r\nfreme-solr_1      | \tat sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)\r\nfreme-solr_1      | \tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)\r\nfreme-solr_1      | \tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)\r\nfreme-solr_1      | \tat sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)\r\nfreme-solr_1      | \tat java.nio.channels.FileChannel.open(FileChannel.java:287)\r\nfreme-solr_1      | \tat java.nio.channels.FileChannel.open(FileChannel.java:335)\r\nfreme-solr_1      | \tat org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:113)\r\nfreme-solr_1      | \tat org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)\r\nfreme-solr_1      | \tat org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)\r\nfreme-solr_1      | \tat org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94)\r\nfreme-solr_1      | \tat org.apache.lucene.index.IndexWriter.isLocked(IndexWriter.java:4487)\r\nfreme-solr_1      | \tat org.apache.solr.core.SolrCore.initIndex(SolrCore.java:522)\r\nfreme-solr_1      | \tat org.apache.solr.core.SolrCore.<init>(SolrCore.java:761)\r\nfreme-solr_1      | \t... 10 more\r\n```\r\n\r\nThe problem is dat the directory `/opt/freme-data/solr` is not created as user `solr`. Recursively chowning the directory to `solr` is a workaround, but this should be fixed another way.\r\n\r\nI don't know how critical this is..."},"comment":{"url":"https://api.github.com/repos/freme-project/freme-docker/issues/comments/263575229","html_url":"https://github.com/freme-project/freme-docker/issues/36#issuecomment-263575229","issue_url":"https://api.github.com/repos/freme-project/freme-docker/issues/36","id":263575229,"user":{"login":"ghsnd","id":3070412,"avatar_url":"https://avatars.githubusercontent.com/u/3070412?v=3","gravatar_id":"","url":"https://api.github.com/users/ghsnd","html_url":"https://github.com/ghsnd","followers_url":"https://api.github.com/users/ghsnd/followers","following_url":"https://api.github.com/users/ghsnd/following{/other_user}","gists_url":"https://api.github.com/users/ghsnd/gists{/gist_id}","starred_url":"https://api.github.com/users/ghsnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghsnd/subscriptions","organizations_url":"https://api.github.com/users/ghsnd/orgs","repos_url":"https://api.github.com/users/ghsnd/repos","events_url":"https://api.github.com/users/ghsnd/events{/privacy}","received_events_url":"https://api.github.com/users/ghsnd/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T13:52:52Z","updated_at":"2016-11-29T13:52:52Z","body":"> What is the issue with the work around? We could add the chown command to the docker installation instructions.\r\n\r\nIt depends if the one installing FREME is willing or allowed to add a user `solr` to the system. Anyway, it is a good idea to document it in the instructions."}}
{"actor":{"display_login":"ghsnd"}}