-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
history not working when indexing subdirs #3101
Comments
How exactly do you run the indexer ? |
For inspiration how to run per-project reindex see https://github.com/oracle/opengrok/wiki/Repository-synchronization#opengrok-sync |
For all projects: Only for project1: |
It is definitely undesirable to use |
I revamped https://github.com/oracle/opengrok/wiki/Per-project-management-and-workflow so that hopefully it reads better and makes it clearer what needs to be done when indexing projects separately. |
Are there any |
I think the result of
to prevent the exception from bubbling in full to the UI like demonstrated above. |
Of course, the question is how the |
localhost_access_log.2020-04-02.txt:
Do you mean this log file? |
The history is also not working if I don't use option |
No, I mean the Tomcat log that is normally written to the |
I think that's just a fall out from indexes being fubar. The history JSP page needs to look into the index for certain settings. |
There is no new entry written in file catalina.out when I try to open the history page. |
I am mostly after the |
This is the last
All other
|
These does not seem to be related to this problem. Anyhow, index all projects and then change the per project indexer options according to the above mentioned wiki. |
I started over again and removed the old generated data. I am now using newest OpenGrok 1.3.13 with Tomcat 9.0.31 but the history is still not working. But this time I have another error message: The historycache generation definitely worked. For each source file I have a matching .gz file in the historycache directory. But it looks like the webapp is not able to find the historycache file. When I use strace for the tomcat process, I do not see any attempt to open a .gz file.
|
It could be that the repository is marked as invalid and that somehow makes its history inaccessible. see #2641 for the possible solution of the git failure. It might be you are running into the same problem as mentioned in #2292 (comment) , i.e. the indexer uses newer git that supports the https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok#requirements actually states the minimum Git version requirement. |
Uff, that seems to be the problem. By default git points to an old git installation (version 1.8). I will try indexing again with java option Does the tomcat need git too? Do I have to modify $PATH for the tomcat process or something like this so that tomcat is using the new git version? |
Yes it needs it, it checks the latest commits in the repository so you can see them on the main page. |
History is now working with java option |
Good to know it helped. |
Hello,
I am using OpenGrok 1.3.11 with Tomcat 9.0.31.

I have several directories in the source root which are working as individual projects using the indexer -P option.
If I call the indexer the normal way it indexes all projects and the history is also working for all projects. But if I execute the indexer for a single project like
java -jar opengrok.jar [options] project1
then the history is not working anymore for all other projects, except "project1". For the other projects I get the following error when I try to open the history page:The history data is still available for all projects under [dataRoot]/historycache.
To get the history working for all projects, I currently have to index all projects, although sometimes there was only one change in a single project.
The text was updated successfully, but these errors were encountered: