devopskube / redmine_openid_connect

Redmine OpenId Connect Plugin - based on redmine_cas
65 stars 96 forks source link

Cannot acces to plugin configuration page. #7

Open neith00 opened 6 years ago

neith00 commented 6 years ago

On redmine 3.4.4 after a successful plugin install and following your install procedure, I get this error:

Processing by SettingsController#plugin as HTML
  Parameters: {"id"=>"redmine_openid_connect"}
  Current user: admin (id=1)
  Rendered settings/plugin.html.erb within layouts/admin (4.5ms)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (1.0ms)
  Rendered plugins/scrum/app/views/scrum_hooks/_head.html.erb (0.3ms)
  Rendered plugins/scrum/app/views/scrum_hooks/_scrum_tips.html.erb (3.9ms)
Completed 404 Not Found in 52ms (Views: 22.4ms | ActiveRecord: 4.4ms)

Any idea how to fix?

triplem commented 6 years ago

Not really right now.

neith00 commented 6 years ago

Also I saw a version mismatch between the displayed version and install version. I'm not a Ruby guy, I'll try to spend some time to dig on it

marcus-davies commented 6 years ago

I had a similar issue. After successfully installing the plugin (or so I thought), I get a 404 error when clicking configure on the plugin. The following text is displayed: "The page you were trying to access doesn't exist or has been removed."

I am running a brand new version of Redmine on GCP from Bitnami

Environment: Redmine version 3.4.6.stable Ruby version 2.3.7-p456 (2018-03-28) [x86_64-linux] Rails version 4.2.8 Environment production Database adapter Mysql2 SCM: Subversion 1.10.0 Cvs 1.12.13 Git 2.17.1 Filesystem
Redmine plugins: redmine_openid_connect 0.9.3

The production.log shows the same issue as triplem: Started GET "/settings/plugin/redmine_openid_connect" for 213.58.201.82 at 2018-07-30 05:30:23 +0000 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_openid_connect"} Current user: user (id=1) Rendered settings/plugin.html.erb within layouts/admin (4.1ms)

In case its helpful to someone, there were some permissions issues when first installing the plugin. I had to run the install as the daemon user which the GCP bitnami image uses to run redmine.

I also had to modify the file permissions as below:

Download the plugin cd /opt/bitnami/apps/redmine/htdocs/lib/plugins git clone https://github.com/devopskube/redmine_openid_connect.git

Modify permissions chmod 777 /opt/bitnami/apps/redmine/htdocs/.bundle/config chmod 777 /opt/bitnami/apps/redmine/htdocs/bin/* chmod 777 /opt/bitnami/apps/redmine/htdocs/bin

Install as daemon sudo -u daemon bundle install chmod 777 /opt/bitnami/apps/redmine/htdocs/db/schema.rb sudo -u daemon bundle exec rake redmine:plugins:migrate RAILS_ENV=production

marcus-davies commented 6 years ago

Sadly, having spent several hours more installing redmine and re-installing the plugin I think I’ll have to give up and try an alternative.

Unless anyone has any better ideas?

Thanks Marcus