gitblit icon indicating copy to clipboard operation
gitblit copied to clipboard

Internal Error in "My tickets"

Open TomaszSzt opened this issue 4 years ago • 1 comments

In some cases, in fact in both my servers, after some time "mytickets" page returns "Internal Error" for some users.

The logs do show NullPointerException at:

/src/main/java/com/gitblit/wicket/pages/MyTicketsPage.java (....) private List<RepositoryModel> correspondingRepositories(Collection<QueryResult> tickets) { final HashMap<String, RepositoryModel> result = new HashMap<>(); for (QueryResult ticket : tickets) { RepositoryModel repository = app().repositories().getRepositoryModel(ticket.repository); HERE if (!result.containsKey(repository.getRID())) { result.put(repository.getRID(), repository); } }

    return new ArrayList<>(result.values());
}

(...)

Steps to reproduce:

I couldn't figure it out. I wiped out lucene index in data/tickets/lucene what cleared the InternalError but also cleared the tickes. See next issue.

TomaszSzt avatar Sep 10 '21 12:09 TomaszSzt

Running reindexing script and properly assigning user rights to created index files solves the problem till next time. I will provide more data when this will happen again.

TomaszSzt avatar Sep 13 '21 09:09 TomaszSzt