Open vladak opened 2 years ago
@vladak how it's fixed in the latest version 1.8.2 also i am facing error
any command need to improve ??
I have followed below command java -jar dist/lib/opengrok.jar -c /usr/local/bin/ctags -s src/hellogitworld -d data -H -P -S -G -W etc/configuration.xml -U http://localhost:8080/source
The issue is still open, so it's not fixed yet. What sort of problem do you see exactly ?
Stumbled across this issue today, least it appears to be the same issue I'm having.
What info do you need to aid in a fix?
Stumbled across this issue today, least it appears to be the same issue I'm having.
What info do you need to aid in a fix?
This is a merely a warning. Even if the project was added in the initial phase of the indexing when it is discovered, it would not be visible in the UI/API until it is indexed. Why do you think it is a problem for your use case ?
Thinking of this issue again, I don't think the indexer should be using API call to the webapp to add the project and repositories as it would be basically duplication of the work the indexer has already done (and sending partial configuration is not possible). If anything, the indexer might use a API call to check whether the project is known in the webapp and do not attempt to mark it as indexed if it is not known. This would make the warning disappear but that's it.
For me at least, it appears if I omit History -H the configuration.xml
gets uploaded to the webserver just fine.
The indexing appears to be fine.
For me at least, it appears if I omit History -H the
configuration.xml
gets uploaded to the webserver just fine. The indexing appears to be fine.
Yep, the warning message is innocuous, unless you care a lot about how fast the indexed project appears in the UI.
When running indexer with
-P -S -H -W ... -U ...
, freshly cloned project cannot be marked as indexed because the new configuration has not arrived to the web app yet:This is fixed at the end of the indexing by sending the new configuration to the web app however it can do better than that.
prepareIndexer()
/addProjects()
should do API call to add the project/repositories to the web app so that the mark-as-indexed API call does not fail.