Description
Hello,
when I use cache in your plugin, I am getting "Page not found" errors when accessing repository page in Redmine. After clearing cache, only first loaded repository works, others do not. Without cache everything works without problem.
Btw - I am not sure if it may be related, but I was using Redmine Git Hosting 0.7.0 and Redmine 2 and upgraded to Redmine Git Hosting 1.2.2 and Redmine 3.3.3 by following your manual.
In config check, everything is green except Gitolite binaries directory, Gitolite librairies directory and Gitolite non-core hooks directory - this is probably related to the fact that I am using gitolite 2.
The error log contains this:
ActiveRecord::RecordNotFound (Couldn't find all GitCaches with 'id': (last, {:order=>"created_at DESC"}) (found 0 results, but was looking for 2)):
plugins/redmine_git_hosting/lib/redmine_git_hosting/cache/database.rb:53:in `apply_cache_limit'
And log related to the three warnings in config check is this one:
[ERROR] Can't retrieve Gitolite param : Non-zero exit code pid 23989 exit 127 for `sudo -n -u gitolite -i gitolite query-rc GL_BINDIR`
[ERROR] Can't retrieve Gitolite param : Non-zero exit code pid 23996 exit 127 for `sudo -n -u gitolite -i gitolite query-rc GL_LIBDIR`
[ERROR] Can't retrieve Gitolite param : Non-zero exit code pid 24003 exit 127 for `sudo -n -u gitolite -i gitolite query-rc LOCAL_CODE`
And here is info about my environment:
Environment:
Redmine version 3.3.3.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Mercurial 4.0
Git 2.11.0
Filesystem
Xitolite 2.11.0
Redmine plugins:
clipboard_image_paste 1.12
progressive_projects_list 3.0.1
redmine_auto_watch 1.0.0
redmine_bootstrap_kit 0.2.5
redmine_checklists 3.1.5
redmine_code_review 0.8.0
redmine_git_hosting 1.2.2
redmine_improved_searchbox 0.0.3
redmine_issue_completion 0.0.2
redmine_monitoring_controlling 0.1.1
redmine_notice 1.0.0
redmine_pipeline_plugin 2.0.0
redmine_wktime 2.8
Does anyone have an idea, how to fix this issue?
Thank you very much.