Repository Page not found
Added by decibel 83 almost 8 years ago
Hi,
since some weeks I am randomly getting "404 Page not found" error on accessing the Repository page in all projects.
I have the Redmine Git Hosting Plugin installed (version 1.2.2).
This is the log/production.log
entries when I try to access to the repository page:
Started GET "/projects/test/repository" for 192.168.1.80 at 2017-01-03 10:19:29 +0100 Processing by RepositoriesController#show as HTML Parameters: {"id"=>"test"} SQL (1.3ms) UPDATE `tokens` SET `tokens`.`updated_on` = '2017-01-03 10:19:29' WHERE `tokens`.`user_id` = 9 AND `tokens`.`value` = 'd90eda13552e476122318920dfdcc90bc1c7880c' AND `tokens`.`action` = 'session' (1.1ms) SELECT MAX(`settings`.`updated_on`) FROM `settings` User Load (0.9ms) SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`status` = 1 AND `users`.`id` = 9 LIMIT 1 Current user: user (id=9) Project Load (0.6ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`identifier` = 'test' LIMIT 1 Repository Load (0.6ms) SELECT `repositories`.* FROM `repositories` WHERE `repositories`.`project_id` = 131 AND (is_default = 1) LIMIT 1 CACHE (0.0ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`identifier` = 'test' LIMIT 1 [["identifier", "test"]] CACHE (0.0ms) SELECT `repositories`.* FROM `repositories` WHERE `repositories`.`project_id` = 131 AND (is_default = 1) LIMIT 1 [["project_id", 131]] Project Load (0.8ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 131 LIMIT 1 GitCache Load (3.0ms) SELECT `git_caches`.* FROM `git_caches` WHERE `git_caches`.`repo_identifier` = 'test' AND `git_caches`.`command` = '\'sudo\' \'-n\' \'-u\' \'git\' \'-i\' \'git\' \'--git-dir\' \'repositories/test.git\' \'-c\' \'core.quotepath=false\' \'-c\' \'log.decorate=no\' \'branch\' \'--no-color\' \'--verbose\' \'--no-abbrev\'' LIMIT 1 (0.5ms) BEGIN SQL (0.6ms) UPDATE `git_caches` SET `git_caches`.`updated_at` = '2017-01-03 10:19:29' WHERE `git_caches`.`id` = 136901 (1.2ms) COMMIT (1.0ms) SELECT `enabled_modules`.`name` FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 131 GitCache Load (3.2ms) SELECT `git_caches`.* FROM `git_caches` WHERE `git_caches`.`repo_identifier` = 'test' AND `git_caches`.`command` = '\'sudo\' \'-n\' \'-u\' \'git\' \'-i\' \'git\' \'--git-dir\' \'repositories/test.git\' \'-c\' \'core.quotepath=false\' \'-c\' \'log.decorate=no\' \'ls-tree\' \'-l\' \'master:\'' LIMIT 1 Shelling out: 'sudo' '-n' '-u' 'git' '-i' 'git' '--git-dir' 'repositories/test.git' '-c' 'core.quotepath=false' '-c' 'log.decorate=no' 'ls-tree' '-l' 'master:' GitCache Load (3.9ms) SELECT `git_caches`.* FROM `git_caches` WHERE `git_caches`.`repo_identifier` = 'test' AND `git_caches`.`command` = '\'sudo\' \'-n\' \'-u\' \'git\' \'-i\' \'git\' \'--git-dir\' \'repositories/test.git\' \'-c\' \'core.quotepath=false\' \'-c\' \'log.decorate=no\' \'log\' \'--no-color\' \'--encoding=UTF-8\' \'--date=iso\' \'--pretty=fuller\' \'--no-merges\' \'-n\' \'1\' \'master\' \'--\' \'README.md\'' LIMIT 1 (0.6ms) BEGIN SQL (0.7ms) UPDATE `git_caches` SET `git_caches`.`updated_at` = '2017-01-03 10:19:29' WHERE `git_caches`.`id` = 136907 (1.1ms) COMMIT (0.5ms) BEGIN SQL (0.6ms) INSERT INTO `git_caches` (`command`, `command_output`, `repo_identifier`, `created_at`, `updated_at`) VALUES ('\'sudo\' \'-n\' \'-u\' \'git\' \'-i\' \'git\' \'--git-dir\' \'repositories/test.git\' \'-c\' \'core.quotepath=false\' \'-c\' \'log.decorate=no\' \'ls-tree\' \'-l\' \'master:\'', x'31303036343420626c6f622035653762366532396533313063336466396336633533393762613137633837313530656466333832202020202020203709524541444d452e6d640a', 'test', '2017-01-03 10:19:29', '2017-01-03 10:19:29') (1.3ms) COMMIT (1.7ms) SELECT COUNT(*) FROM `git_caches` GitCache Load (0.5ms) SELECT `git_caches`.* FROM `git_caches` WHERE `git_caches`.`id` IN (NULL, NULL) Completed 404 Not Found in 103ms (ActiveRecord: 25.8ms) 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' plugins/redmine_git_hosting/lib/redmine_git_hosting/cache.rb:15:in `set_cache' plugins/redmine_git_hosting/lib/redmine_git_hosting/shell_redirector.rb:124:in `exit_shell' plugins/redmine_git_hosting/lib/redmine_git_hosting/shell_redirector.rb:47:in `execute' plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:510:in `git_cmd' plugins/redmine_git_hosting/lib/redmine/scm/adapters/xitolite_adapter.rb:148:in `entries' app/models/repository/git.rb:97:in `scm_entries' app/models/repository.rb:205:in `entries' app/controllers/repositories_controller.rb:116:in `show' plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/repositories_controller_patch.rb:40:in `show_with_git_hosting' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
I cannot understand if this problem is related to some plugins (maybe the GIT Hosting one?).
Could you help me please?