Open fstefanov opened 3 years ago
Sometimes is not able to discover gits inside project dir
opengrok-projadm --base /home/ubuntu/bin/opengrok --add test
Adding project test
Refreshing configuration
It is missing Added project test with repositories: ['/test/opengrok']
curl gets empty list
curl http://localhost:8080/source/api/v1/projects/test/repositories
[]
In catalina.out i see many NoSuchFileException
Caused by: java.nio.file.NoSuchFileException: /opt/tomcat/webapps/source/WEB-INF/lib/chronicle-core-2.20.80.jar
Caused by: java.nio.file.NoSuchFileException: /opt/tomcat/webapps/source/WEB-INF/lib/annotations-19.0.0.jar
Caused by: java.nio.file.NoSuchFileException: /opt/tomcat/webapps/source/WEB-INF/lib/javax.el-3.0.0.jar
find /opt/tomcat/webapps/source/ -name 'chronicle-core*.jar' -type f
/opt/tomcat/webapps/source/WEB-INF/lib/chronicle-core-2.20.122.jar
find /opt/tomcat/webapps/source/ -name 'javax*.jar' -type f
/opt/tomcat/webapps/source/WEB-INF/lib/javax.activation-api-1.2.0.jar
find /opt/tomcat/webapps/source/ -name 'annotations*.jar' -type f
Just updated to - 1.7.12
In catalina.out i see many NoSuchFileException
These are not related. It's Tomcat's way of checking dependencies. We are using newer versions of some transitive dependencies and Tomcat complains. https://github.com/oracle/opengrok/issues/3390
It is misbehaving in a strange way. I was adding, indexing and removing single project for testing multiple times. And now all my other projects( 4 AOSP branches 100GB+ each ) lost the History button on the UI. It is running on ARM64.
Deleted historycache dir and ran indexer over again with version 1.7.12. This time history seems correct.
Git clone in project dir
Add project
Indexing
History is missing for all files
But is available under /home/ubuntu/bin/opengrok/data/historycache/test/opengrok If i checkout opengrok.git directly under src/ dir then history is present. This is problematic for projects like AOSP tree I have similar issue some of the projects (not all) are missing history.