{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/opengrok/issues/2354","repository_url":"https://api.github.com/repos/oracle/opengrok","labels_url":"https://api.github.com/repos/oracle/opengrok/issues/2354/labels{/name}","comments_url":"https://api.github.com/repos/oracle/opengrok/issues/2354/comments","events_url":"https://api.github.com/repos/oracle/opengrok/issues/2354/events","html_url":"https://github.com/oracle/opengrok/issues/2354","id":360138118,"node_id":"MDU6SXNzdWUzNjAxMzgxMTg=","number":2354,"title":"Using separate configuration files and sources to index and update a single application","user":{"login":"adarsh200496","id":42631985,"node_id":"MDQ6VXNlcjQyNjMxOTg1","avatar_url":"https://avatars0.githubusercontent.com/u/42631985?v=4","gravatar_id":"","url":"https://api.github.com/users/adarsh200496","html_url":"https://github.com/adarsh200496","followers_url":"https://api.github.com/users/adarsh200496/followers","following_url":"https://api.github.com/users/adarsh200496/following{/other_user}","gists_url":"https://api.github.com/users/adarsh200496/gists{/gist_id}","starred_url":"https://api.github.com/users/adarsh200496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adarsh200496/subscriptions","organizations_url":"https://api.github.com/users/adarsh200496/orgs","repos_url":"https://api.github.com/users/adarsh200496/repos","events_url":"https://api.github.com/users/adarsh200496/events{/privacy}","received_events_url":"https://api.github.com/users/adarsh200496/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T02:53:03Z","updated_at":"2018-09-19T03:48:58Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nBefore submitting an issue, please check off these boxes:\r\n\r\n- [ ] I have done a search of the existing issues to make sure I'm not sending in a duplicate\r\n\r\nPlease include information about the expected behavior, actual behavior, and ideally reproducible test case. Pointers into offending code regions are also very welcome.\r\n\r\nIf you provide the exact version of OpenGrok, JDK used, OS(and its version) used and Tomcat(or your webapp server) used it can help figuring out an environment issue.\r\nFor performance problem OS and JDK tunables might be needed. For SCM problems also version of SCM is helpfull (e.g. some mercurial versions have issues, some not).\r\n-->\r\n\r\nHello experts!\r\n\r\nI'm using OpenGrok 1.0, JDK 1.8.0_181, OS - CentOS 5.7\r\n\r\nI have an index named custom6. This is what the directory structure looks like - \r\n\r\n\r\n![image](https://user-images.githubusercontent.com/42631985/45413966-fb770b80-b697-11e8-87e0-fb415cf9486e.png)\r\n\r\n\r\nContents of OpenGrok.sh1:\r\n\r\nOPENGROK_INSTANCE_BASE=var/custom6/base1\r\nOPENGROK_WEBAPP_CONTEXT=custom6\r\nOPENGROK_WEBAPP_CFGADDR=localhost:2437\r\nREMOTE_PORT_NUM=2437\r\n\r\nContents of OpenGrok.sh2:\r\n\r\nOPENGROK_INSTANCE_BASE=var/custom6/base2\r\nOPENGROK_WEBAPP_CONTEXT=custom6\r\nOPENGROK_WEBAPP_CFGADDR=bg-nvgrok-dev:2437\r\nREMOTE_PORT_NUM=2437\r\n\r\n\r\nThere is only 1 application deployed on tomcat, namely custom6.war and both OpenGrok.sh1 and OpenGrok.sh2 are trying to work with this application. Base1 and Base2 have almost similar src directory (The only difference being base1 has \" code/1.0 \" and base 2 has \" code/2.0 \". Please refer to the image above.)\r\n\r\n\r\nCommand used to index (using OpenGrok.sh1 and base1): \r\nenv OPENGROK_CONFIGURATION=var/custom6/OpenGrok.sh1 var/OpenGrok-1.0/OpenGrok index\r\n\r\nIndexing goes well, and everything works perfectly fine. I am able to query anything without facing any errors.\r\n\r\nThen, when I try to index using OpenGrok.sh2 and base 2, \r\nCommand used to index (using OpenGrok.sh2 and base2): \r\nenv OPENGROK_CONFIGURATION=var/custom6/OpenGrok.sh2 var/OpenGrok-1.0/OpenGrok index\r\n\r\nI get the below stated error:\r\n\r\n<Start of error>\r\nThere was an error!\r\nvar/custom6/base2/src/code/1.0/A (No such file or directory)\r\n\r\njava.io.FileNotFoundException: /var/custom6/base2/src/code/1.0/A (No such file or directory)\r\n\tat java.io.FileInputStream.open0(Native Method)\r\n\tat java.io.FileInputStream.open(FileInputStream.java:195)\r\n\tat java.io.FileInputStream.<init>(FileInputStream.java:138)\r\n\tat java.io.FileReader.<init>(FileReader.java:72)\r\n\tat org.opensolaris.opengrok.search.Results.prettyPrint(Results.java:236)\r\n\tat org.apache.jsp.search_jsp._jspService(search_jsp.java:799)\r\n\tat org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:729)\r\n\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)\r\n\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)\r\n\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:729)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)\r\n\tat org.opensolaris.opengrok.web.StatisticsFilter.doFilter(StatisticsFilter.java:55)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)\r\n\tat org.opensolaris.opengrok.web.AuthorizationFilter.doFilter(AuthorizationFilter.java:66)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat com.nvidia.realm.SecurityValve.invoke(SecurityValve.java:139)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n<End of error>\r\n\r\nWhat I notice is - when I index using OpenGrok.sh2, the SRC_ROOT ( var/custom6/base2/src ) gets updated perfectly fine, however, the - \r\n\" code/1.0/A \" does not get updated to \" code/2.0/A \", which means the file path is being cached somewhere. Which is causing issue for me and I would like this to not happen. Redeploying or restarting the server solves this issue, but I can not do that.\r\n\r\nWhat I would like to do:\r\nWhen I index using OpenGrok.sh1, I want to index and search ONLY the contents of base1. When I index using OpenGrok.sh2, I want to index and search ONLY the contents of base2, and want nothing to do whatsoever with the contents of base1 ( basically, I mean I dont want \" code/1.0/A \"  to be cached anywhere) \r\n\r\nWhat I would like to know:\r\nWhy is this happening? How can I avoid this? If this cannot work as I want it to, is there a work around that can reproduce what I am trying to do?\r\n\r\nLooking forward to hearing from you and resolving this problem. :)\r\n\r\nThanks, and have a great day!"},"comment":{"url":"https://api.github.com/repos/oracle/opengrok/issues/comments/422641233","html_url":"https://github.com/oracle/opengrok/issues/2354#issuecomment-422641233","issue_url":"https://api.github.com/repos/oracle/opengrok/issues/2354","id":422641233,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjY0MTIzMw==","user":{"login":"adarsh200496","id":42631985,"node_id":"MDQ6VXNlcjQyNjMxOTg1","avatar_url":"https://avatars0.githubusercontent.com/u/42631985?v=4","gravatar_id":"","url":"https://api.github.com/users/adarsh200496","html_url":"https://github.com/adarsh200496","followers_url":"https://api.github.com/users/adarsh200496/followers","following_url":"https://api.github.com/users/adarsh200496/following{/other_user}","gists_url":"https://api.github.com/users/adarsh200496/gists{/gist_id}","starred_url":"https://api.github.com/users/adarsh200496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adarsh200496/subscriptions","organizations_url":"https://api.github.com/users/adarsh200496/orgs","repos_url":"https://api.github.com/users/adarsh200496/repos","events_url":"https://api.github.com/users/adarsh200496/events{/privacy}","received_events_url":"https://api.github.com/users/adarsh200496/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T03:48:58Z","updated_at":"2018-09-19T03:48:58Z","author_association":"NONE","body":"Hi guys! Any kind of help, or any direction to look into would be great.\r\n\r\nPlease do help me out. :)"}}
{"actor":{"display_login":"adarsh200496"}}