Skip to content

Page not found when accessing repository page in Redmine with git cache #681

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

Closed
hubiktomas opened this issue Jul 1, 2017 · 1 comment
Closed

Comments

@hubiktomas
Copy link

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.

@hubiktomas
Copy link
Author

I have upgraded gitolite v2 to v3 and resynced all repositories and settings and everything works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant