error 404 when i try to open setting page
Hello, i have error 404 when i try to open plugin settin. My log is:
Started GET "/admin/plugins" for 78.* at 2015-08-17 22:17:58 +0300 Processing by AdminController#plugins as HTML Current user: admin (id=1) Rendered admin/plugins.html.erb within layouts/admin (2.6ms) Rendered admin/_menu.html.erb (98.1ms) Rendered layouts/base.html.erb (7.9ms) Completed 200 OK in 118ms (Views: 112.5ms | ActiveRecord: 1.3ms) Started GET "/settings/plugin/redmine_slack" for 78.1** at 2015-08-17 22:18:01 +0300 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_slack"} Current user: admin (id=1) Rendered settings/plugin.html.erb within layouts/admin (2.4ms) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.1ms) Completed 404 Not Found in 14ms (Views: 6.8ms | ActiveRecord: 1.2ms)
Same issue under Debian 8 Jessie.
Environment:
Redmine version 2.5.2.devel
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.1.13
Environment production
Database adapter PostgreSQL
SCM:
Mercurial 3.1.2
Git 2.1.4
Filesystem
Redmine plugins:
redmine_http_basic_authentication 0.0.1
redmine_slack 0.1
Log: App 60949 stderr: Started GET "/redmine/settings/plugin/redmine_slack" for 95.163.79.117 at 2015-08-28 11:12:52 +0300 App 60949 stderr: Processing by SettingsController#plugin as HTML App 60949 stderr: Parameters: {"id"=>"redmine_slack"} App 60949 stderr: Current user: kb (id=3) App 60949 stderr: Rendered settings/plugin.html.erb within layouts/admin (3.7ms) App 60949 stderr: Missing template, responding with 404 App 60949 stderr: Rendered common/error.html.erb within layouts/base (0.3ms) App 60949 stderr: Completed 404 Not Found in 52ms (Views: 35.1ms | ActiveRecord: 4.7ms)
Redmine from debian packages, redmine's root /usr/share/redmine, plugin installed under lib/plugins/redmine_slack
I don't know anything about Ruby or plugin installation in Redmine but the following works for me:
For some reason, the view template is installed in the wrong location. It is in lib/plugins/redmine_slack/app/views/settings but the app directory needs to be at the top level. So I just did
cd /usr/share/redmine
cp -r lib/plugins/redmine_slack/app/ .
restarted and it works.
make a symlink from the git repo to not miss any updates that might come in the future.
This sounds like it might be a configuration difference with Redmine as installed through APT. A symlink as @brother suggested sounds like the right approach, but maybe there's a better way to package these for Debian-based OSes. I'll leave this open if someone has a consistent set of repro steps and wants to take a shot at updating the documentation!
@musiKk 's solution worked for me. Thanks :+1:
I had same problem: settings template not found. In my case it was because the plugin directory name was "redmine-slack" and not "redmine_slack". It's documented in README.md.
Renommer le dossier du plugin pour ne pas avoir l'erreur suivante : Depuis la liste des plugins de Redmine, le lien de configuration affiche une erreur 404. http://redmine.fictif.fr/settings/plugin/redmine_hangouts_chat 404 La page à laquelle vous souhaitez accéder n'existe pas ou a été supprimée. Renommer le dossier du plugin pour le nommer redmine_hangouts_chat
You are right ! This steep work for me ! (Debian Stretch 9 Stable with RVM for Redmine.) cd plugins/ mv redmine-hangouts-chat-master/ redmine_hangouts_chat/
@musiKk's way worked for me.
I got the same error with OpenId plugin