redmine-slack icon indicating copy to clipboard operation
redmine-slack copied to clipboard

error 404 when i try to open setting page

Open 3webbg opened this issue 10 years ago • 8 comments

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)

3webbg avatar Aug 17 '15 19:08 3webbg

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

lemonacid avatar Aug 28 '15 09:08 lemonacid

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.

musiKk avatar Sep 21 '15 12:09 musiKk

make a symlink from the git repo to not miss any updates that might come in the future.

brother avatar Oct 16 '15 16:10 brother

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!

sciyoshi avatar Dec 07 '15 17:12 sciyoshi

@musiKk 's solution worked for me. Thanks :+1:

sappho192 avatar Dec 10 '15 05:12 sappho192

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.

jomag avatar Apr 14 '16 08:04 jomag

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/

ZerooCool avatar Apr 08 '19 18:04 ZerooCool

@musiKk's way worked for me.

I got the same error with OpenId plugin

vergelli avatar Mar 09 '21 19:03 vergelli