HugoHasenbein / redmine_more_previews

Redmine plugin to preview various file types in redmine's preview pane
https://www.redmine.org/plugins/redmine_more_previews
GNU General Public License v2.0
48 stars 17 forks source link

Problems install on redmine 5.0.1 (debian 11.3) #54

Closed rengerb closed 2 years ago

rengerb commented 2 years ago

Hallo,

I habe Problems to run the plugin on redmine 5.

Found an Error in the apache error.log:

[ 2022-05-20 15:30:46.2200 116298/7f70355b1700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: ce539fb2 Error details saved to: /tmp/passenger-error-j0zUm7.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' ...

Looks like a reference to a nonexisting File (redmine_more_previews/modules/shell). Do you have any suggestions?

Best Regards

Bernhard

HugoHasenbein commented 2 years ago

Dear Bernhard,

what happens on

bin/rails zeitwerk:check

Am 20.05.2022 um 16:16 schrieb rengerb @.***>:

Hallo,

I habe Problems to run the plugin on redmine 5.

Found an Error in the apache error.log:

[ 2022-05-20 15:30:46.2200 116298/7f70355b1700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: ce539fb2 Error details saved to: /tmp/passenger-error-j0zUm7.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' ...

Looks like a reference to a nonexisting File (redmine_more_previews/modules/shell). Do you have any suggestions?

Best Regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRFX3DDMPXQEQEGBRA3VK6NEXANCNFSM5WPTQ3YQ. You are receiving this because you are subscribed to this thread.

rengerb commented 2 years ago

Dear Dr. Wenzel,

root@RAD-REDMINE:/opt/redmine-5.0.1/bin# rails zeitwerk:check /usr/bin/ruby2.7: warning: shebang line ending with \r may cause problems rails aborted! LoadError: cannot load such file -- listen /opt/redmine-5.0.1/config/environments/development.rb:58:in block in <top (required)>' /opt/redmine-5.0.1/config/environments/development.rb:5:in<top (required)>' /opt/redmine-5.0.1/config/environment.rb:16:in `<top (required)>' Tasks: TOP => zeitwerk:check => environment (See full trace by running task with --trace)

Hope that helps.

Best

Bernhard

HugoHasenbein commented 2 years ago

Dear Bernhard,

it seems,

ActiveSupport::EventedFileUpdateChecker

which is dependent on the listen gem, is complaining about the missing gem 'listen'.

Did you do a bundle install at all? Did you try to run redmine in production mode?

Am 20.05.2022 um 17:57 schrieb rengerb @.***>:

Dear Dr. Wenzel,

@.:/opt/redmine-5.0.1/bin# @.:/opt/redmine-5.0.1/bin#> rails zeitwerk:check /usr/bin/ruby2.7: warning: shebang line ending with \r may cause problems rails aborted! LoadError: cannot load such file -- listen /opt/redmine-5.0.1/config/environments/development.rb:58:in block in <top (required)>' /opt/redmine-5.0.1/config/environments/development.rb:5:in <top (required)>' /opt/redmine-5.0.1/config/environment.rb:16:in `<top (required)>' Tasks: TOP => zeitwerk:check => environment (See full trace by running task with --trace)

Hope that helps.

Best

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133067027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRGRH52Z2BS3Y3YDC6TVK6Y7ZANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Hallo Dr. Wenzel,

i do a bundle install. But you are right. The gem listen is missing:

root@RAD-REDMINE:/opt/redmine-5.0.1# bundle info listen Could not find gem 'listen', because it's in the group 'development', configured to be ignored.

Should i add it to your plugin gemfile?

Best

Bernhard

HugoHasenbein commented 2 years ago

no, don't tamper with the plugin, if the problem is elsewhere, because that would create a mess

you should have /.bundle/config file with a contents like this


BUNDLE_WITHOUT: "development:test"

is so, then delete 'development:' or completely delete / uncomment the line. then do a

bundle install

again

Am 21.05.2022 um 12:23 schrieb rengerb @.***>:

Hallo Dr. Wenzel,

i do a bundle install. But you are right. The gem listen is missing:

@.***:/opt/redmine-5.0.1# bundle info listen Could not find gem 'listen', because it's in the group 'development', configured to be ignored.

Should i add it to your plugin gemfile?

Best

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133595849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBMGLUW7GQSQCWX4WDVLC2T5ANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

The "listen" gem installs now. Now the error has changed:

[ 2022-05-21 13:09:27.0801 149700/7fe1302ed700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine- 5.0.1: An error occurred while starting up the preloader. Error ID: f2c2bc74 Error details saved to: /tmp/passenger-error-NfKelP.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/modules.rb:23:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:inrequire' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/conversion.rb:35:in' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/conversion.rb:28:in <module:RedmineMorePreviews>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/conversion.rb:26:in<top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:inrequire' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in const_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:incget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:in block (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:inblock in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in each_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:inls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in block in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:insynchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:ineach' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in eager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:inblock in ' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:inrun' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:inblock in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:ineach_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:ineach' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:ineach_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:intsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:ininitialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:inrequire' config.ru:3:in block in <main>' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininstance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:innew' config.ru:1:in <main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:ineval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in <module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

'

HugoHasenbein commented 2 years ago

this error corresponds to the first error. since you work in development - have you tried to run in production? does it make a difference? if so, then I would have a clue

Am 21.05.2022 um 13:14 schrieb rengerb @.***>:

/var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/conversion.rb:35:in class:Conversion'

rengerb commented 2 years ago

As far as i can see, Redmine runs in production mode (your plugin is removed for the check):

Environment: Redmine version 5.0.1.stable Ruby version 2.7.4-p191 (2021-07-07) [x86_64-linux-gnu] Rails version 6.1.6 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme A1 (includes JavaScript) SCM: Git 2.30.2 Filesystem
Redmine plugins: redmine_agile 1.6.4 redmine_checklists 3.1.21 redmine_dmsf 3.0.0 redmine_favorite_projects 2.1.2 redmine_people 1.6.2 redmine_wysiwyg_editor 0.26.0 redmineup_tags 2.0.12

HugoHasenbein commented 2 years ago

you may want to try version 4.1.3, which is attached. Changes: added files requiring libs, which are eagerly loaded in production, but which need to be explicitly loaded in dev mode I hope, files can be attached to emails through github

Am 21.05.2022 um 13:28 schrieb rengerb @.***>:

As far as i can see, Redmine runs in production mode (your plugin is removed for the check):

Environment: Redmine version 5.0.1.stable Ruby version 2.7.4-p191 (2021-07-07) [x86_64-linux-gnu] Rails version 6.1.6 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme A1 (includes JavaScript) SCM: Git 2.30.2 Filesystem Redmine plugins: redmine_agile 1.6.4 redmine_checklists 3.1.21 redmine_dmsf 3.0.0 redmine_favorite_projects 2.1.2 redmine_people 1.6.2 redmine_wysiwyg_editor 0.26.0 redmineup_tags 2.0.12

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133603653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRDA6CPRCMX4T7WUJDDVLDCGDANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

sorry, there are no files attached.

HugoHasenbein commented 2 years ago

try

https://redmine2.humboldt-patent.com/redmine_more_previews-4.1.3.tgz

for third parties reading this thread: file will be deleted

Am 21.05.2022 um 14:12 schrieb rengerb @.***>:

sorry, there are no files attached.

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133609457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDREHZNZTN5Z7K54SGJLVLDHJDANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Sorry, problem still occures. I extracted the tar to the plugin-folder, and performed a bundle install from redmine root.

5.0.1: An error occurred while starting up the preloader. Error ID: 2a6a27aa Error details saved to: /tmp/passenger-error-nqwySL.html Message from application: cannot load such file -- redmine_more_previews/exceptions (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:23:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:inrequire' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:inconst_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in cget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:inblock (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in block in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:ineach_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:inblock in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in synchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:ineager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in each' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:ineager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in block in <module:Finisher>' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:ininstance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:inblock in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:inblock in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:incall' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:intsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:inrun_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in<top (required)>' config.ru:3:in require' config.ru:3:inblock in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininitialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in <module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `
'

HugoHasenbein commented 2 years ago

your issue is discussed here:

https://www.redmine.org/boards/2/topics/67113 https://www.redmine.org/boards/2/topics/67113

I apply the fix mentioned there and give notice, when you can download redmine 5 port

Am 21.05.2022 um 14:56 schrieb rengerb @.***>:

/var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require'

HugoHasenbein commented 2 years ago

you may try the same link. I anticipate, that the error message changes.

Am 21.05.2022 um 14:56 schrieb rengerb @.***>:

Sorry, problem still occures. I extracted the tar to the plugin-folder, and performed a bundle install from redmine root.

5.0.1: An error occurred while starting up the preloader. Error ID: 2a6a27aa Error details saved to: /tmp/passenger-error-nqwySL.html Message from application: cannot load such file -- redmine_more_previews/exceptions (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:23:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in const_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in cget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:in block (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in block in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in each_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in block in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in synchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in each' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in eager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in block in ' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in module:PhusionPassenger' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `'

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133629850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRCSKRDMEAOBQVDRYI3VLDMQVANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Hallo,[ 2022-05-21 15:25:03.2270 154525/7f915051c700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: c1d8d083 Error details saved to: /tmp/passenger-error-JQ30ED.html Message from application: cannot load such file -- mimemagic (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches/repository_patch.rb:23:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:inrequire_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:inrequire_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:inrequire' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:inconst_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in cget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:inblock (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in block in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:ineach_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:inblock in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in synchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:ineager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in each' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:ineager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in block in <module:Finisher>' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:ininstance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:inblock in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:inblock in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:incall' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:intsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:inrun_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in<top (required)>' config.ru:3:in require' config.ru:3:inblock in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininitialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in <module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `
'

the error changed:

HugoHasenbein commented 2 years ago

can you

require 'mimemagic'

in the rails console?

Am 21.05.2022 um 15:27 schrieb rengerb @.***>:

mimemagic

rengerb commented 2 years ago

No, I get an Error:

root@RAD-REDMINE:/opt/redmine-5.0.1# RAILS_ENV=production bundle exec rails c /usr/bin/ruby2.7: warning: shebang line ending with \r may cause problems Loading production environment (Rails 6.1.6) irb(main):001:0> require 'mimemagic' Traceback (most recent call last): LoadError (cannot load such file -- mimemagic) irb(main):002:0>

HugoHasenbein commented 2 years ago

the error shouldn't be!

can you do

bundle list

from the cmd line. It should list mimemagic

Am 21.05.2022 um 15:55 schrieb rengerb @.***>:

No, I get an Error:

@.***:/opt/redmine-5.0.1# RAILS_ENV=production bundle exec rails c /usr/bin/ruby2.7: warning: shebang line ending with \r may cause problems Loading production environment (Rails 6.1.6) irb(main):001:0> require 'mimemagic' Traceback (most recent call last): LoadError (cannot load such file -- mimemagic) irb(main):002:0>

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133638598, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRCN4CNDE77UJSOGZE3VLDTN5ANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

There is no mimemagic:

Gems included by the bundle:

HugoHasenbein commented 2 years ago

interesting...

in rails console do

puts Gem::Specification.all_names.sort

is mimemagic listed?

Am 21.05.2022 um 16:04 schrieb rengerb @.***>:

There is no mimemagic:

Gems included by the bundle:

actioncable (6.1.6) actionmailbox (6.1.6) actionmailer (6.1.6) actionpack (6.1.6) actionpack-xml_parser (2.0.1) actiontext (6.1.6) actionview (6.1.6) active_record_union (1.3.0) activejob (6.1.6) activemodel (6.1.6) activerecord (6.1.6) activestorage (6.1.6) activesupport (6.1.6) addressable (2.8.0) builder (3.2.4) chunky_png (1.4.0) commonmarker (0.23.1) concurrent-ruby (1.1.10) crass (1.0.6) css_parser (1.11.0) csv (3.2.3) deckar01-task_list (2.3.2) digest (3.1.0) erubi (1.10.0) ffi (1.15.5) globalid (1.0.0) html-pipeline (2.13.2) htmlentities (4.3.4) i18n (1.10.0) liquid (2.6.3) listen (3.7.1) loofah (2.18.0) mail (2.7.1) marcel (1.0.2) method_source (1.0.0) mini_magick (4.11.0) mini_mime (1.1.2) minitest (5.15.0) mysql2 (0.5.4) net-imap (0.2.3) net-ldap (0.17.0) net-pop (0.1.1) net-protocol (0.1.3) net-smtp (0.3.1) nio4r (2.5.8) nokogiri (1.13.6) ox (2.14.11) public_suffix (4.0.7) racc (1.6.0) rack (2.2.3) rack-test (1.1.0) rails (6.1.6) rails-dom-testing (2.0.3) rails-html-sanitizer (1.4.2) railties (6.1.6) rake (13.0.6) rb-fsevent (0.11.1) rb-inotify (0.10.1) rbpdf (1.20.1) rbpdf-font (1.19.1) redcarpet (3.5.1) redmine_crm (0.0.56) request_store (1.5.1) roadie (5.0.1) roadie-rails (3.0.0) rotp (6.2.0) rouge (3.28.0) rqrcode (2.1.1) rqrcode_core (1.2.0) rubyzip (2.3.2) sanitize (6.0.0) simple_enum (2.3.2) sprockets (4.0.3) sprockets-rails (3.4.2) strscan (3.0.3) thor (1.2.1) timeout (0.2.0) tzinfo (2.0.4) uuidtools (2.2.0) vcard (0.3.0) webrick (1.7.0) websocket-driver (0.7.5) websocket-extensions (0.1.5) yard (0.9.27) zeitwerk (2.5.4) zip-zip (0.3) Use bundle info to print more detailed information about a gem — Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133640111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRFHPHZPZ2JG3PAT5Z3VLDUQNANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

No, can't find it:

irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil irb(main):002:0>

HugoHasenbein commented 2 years ago

extremely weird, shouldn't be

you did bundle install after you deleted 'development:' from .bundler/config?

Am 21.05.2022 um 16:11 schrieb rengerb @.***>:

No, can't find it:

irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil irb(main):002:0>

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133641048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBI7BZ722X4K6OB7FLVLDVIJANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Yes, otherwise the listen gem would not have installed. Just to be shure, i repeated the bundle install. But it makes no difference.

I found somethink, that mimemagic should be replaced:

https://www.redmine.org/issues/34969

HugoHasenbein commented 2 years ago

there has been much ado about mimemagic in the past, but that is not the issue here

try

rails c -e production irb(main):001:0> puts Gem::Specification.all_names.sort

and

rails c -e development irb(main):001:0> puts Gem::Specification.all_names.sort

Am 21.05.2022 um 16:23 schrieb rengerb @.***>:

Yes, otherwise the listen gem would not have installed. Just to be shure, i repeated the bundle install. But it makes no difference.

I found somethink, that mimemagic should be replaced:

https://www.redmine.org/issues/34969 https://www.redmine.org/issues/34969 — Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133642798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBNHMYXMSLATAXPENLVLDWUVANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Production:

Loading production environment (Rails 6.1.6) irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil

Development: Loading development environment (Rails 6.1.6) irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil

HugoHasenbein commented 2 years ago

mimemagic is not available, still redmine tries to load the plugin...

one last try, if that fails, then I have to study the new plugin loading process and also, why mimagic is not available

in init.rb (right in the redmine_more_previews directory) add

Rails.logger.info "----------------" + Gem::Specification.all_names.select{|gem| gem =~ /mimemagic/ }

right above the line

if Gem::Specification.all_names.any?{|gem| gem =~ /mimemagic/}

and watch the log file output while redmine starts up (after restarting phusion)

does it just reveal the line


or

---------------- mimemagic

Am 21.05.2022 um 16:33 schrieb rengerb @.***>:

Production:

Loading production environment (Rails 6.1.6) irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil

Development: Loading development environment (Rails 6.1.6) irb(main):001:0> puts Gem::Specification.all_names.sort actioncable-6.1.6 actionmailbox-6.1.6 actionmailer-6.1.6 actionpack-6.1.6 actionpack-xml_parser-2.0.1 actiontext-6.1.6 actionview-6.1.6 active_record_union-1.3.0 activejob-6.1.6 activemodel-6.1.6 activerecord-6.1.6 activestorage-6.1.6 activesupport-6.1.6 addressable-2.8.0 builder-3.2.4 bundler-2.3.13 chunky_png-1.4.0 commonmarker-0.23.1 concurrent-ruby-1.1.10 crass-1.0.6 css_parser-1.11.0 csv-3.2.3 deckar01-task_list-2.3.2 digest-3.1.0 erubi-1.10.0 ffi-1.15.5 globalid-1.0.0 html-pipeline-2.13.2 htmlentities-4.3.4 i18n-1.10.0 liquid-2.6.3 listen-3.7.1 loofah-2.18.0 mail-2.7.1 marcel-1.0.2 method_source-1.0.0 mini_magick-4.11.0 mini_mime-1.1.2 minitest-5.15.0 mysql2-0.5.4 net-imap-0.2.3 net-ldap-0.17.0 net-pop-0.1.1 net-protocol-0.1.3 net-smtp-0.3.1 nio4r-2.5.8 nokogiri-1.13.6-x86_64-linux ox-2.14.11 public_suffix-4.0.7 racc-1.6.0 rack-2.2.3 rack-test-1.1.0 rails-6.1.6 rails-dom-testing-2.0.3 rails-html-sanitizer-1.4.2 railties-6.1.6 rake-13.0.6 rb-fsevent-0.11.1 rb-inotify-0.10.1 rbpdf-1.20.1 rbpdf-font-1.19.1 redcarpet-3.5.1 redmine_crm-0.0.56 request_store-1.5.1 roadie-5.0.1 roadie-rails-3.0.0 rotp-6.2.0 rouge-3.28.0 rqrcode-2.1.1 rqrcode_core-1.2.0 rubyzip-2.3.2 sanitize-6.0.0 simple_enum-2.3.2 sprockets-4.0.3 sprockets-rails-3.4.2 strscan-3.0.3 thor-1.2.1 timeout-0.2.0 tzinfo-2.0.4 uuidtools-2.2.0 vcard-0.3.0 webrick-1.7.0 websocket-driver-0.7.5 websocket-extensions-0.1.5 yard-0.9.27 zeitwerk-2.5.4 zip-zip-0.3 => nil

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133644224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRCATWBBNXMBY2WBJB3VLDX2XANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Hallo, i added the line, performed a bundle install and restarted apache. I could not find such a line in the Logfile:

[Sat May 21 17:03:51.204583 2022] [mpm_event:notice] [pid 157763:tid 140364205251904] AH00489: Apache/2.4.53 (Debian) Phusion_Passenger/5.0.30 OpenSSL/1.1.1n co nfigured -- resuming normal operations [Sat May 21 17:03:51.204630 2022] [core:notice] [pid 157763:tid 140364205251904] AH00094: Command line: '/usr/sbin/apache2' [ 2022-05-21 17:03:51.2115 157739/7fce600ab980 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished App 157851 stdout: App 157851 stdout: [ 2022-05-21 17:04:08.2589 157767/7fe3c8227700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: 808a25f1 Error details saved to: /tmp/passenger-error-ELfNXO.html Message from application: no implicit conversion of Array into String (TypeError) /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:100:in +' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:100:in<top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in load' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:inrun_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in each' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:inblock in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in instance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:inblock in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:inblock (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in catch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:inblock in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in block in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:inblock in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in each' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:ininvoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in run_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:inprepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:ininstance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:inblock in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:inblock in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:incall' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:intsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:inrun_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in<top (required)>' config.ru:3:in require' config.ru:3:inblock in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininitialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in <module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `
'

[ 2022-05-21 17:04:08.2622 157767/7fe3c9bad700 age/Cor/Con/CheckoutSession.cpp:283 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. Th e identifier of the error is 808a25f1. Please see earlier logs for details about the error.

HugoHasenbein commented 2 years ago

sorry, that was my fault. the added line should read

Rails.logger.info http://rails.logger.info/ "----------------" + Gem::Specification.all_names.select{|gem| gem =~ /mimemagic/ }.to_s

('to_s') was missing...

Am 21.05.2022 um 17:07 schrieb rengerb @.***>:

Hallo, i added the line, performed a bundle install and restarted apache. I could not find such a line in the Logfile:

[Sat May 21 17:03:51.204583 2022] [mpm_event:notice] [pid 157763:tid 140364205251904] AH00489: Apache/2.4.53 (Debian) Phusion_Passenger/5.0.30 OpenSSL/1.1.1n co nfigured -- resuming normal operations [Sat May 21 17:03:51.204630 2022] [core:notice] [pid 157763:tid 140364205251904] AH00094: Command line: '/usr/sbin/apache2' [ 2022-05-21 17:03:51.2115 157739/7fce600ab980 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished App 157851 stdout: App 157851 stdout: [ 2022-05-21 17:04:08.2589 157767/7fe3c8227700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: 808a25f1 Error details saved to: /tmp/passenger-error-ELfNXO.html Message from application: no implicit conversion of Array into String (TypeError) /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb💯in +' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:100:in <top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in load' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in each' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in block in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in instance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in block in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in catch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in block in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in block in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in block in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in each' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in run_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in prepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in block in ' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in module:PhusionPassenger' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `'

[ 2022-05-21 17:04:08.2622 157767/7fe3c9bad700 age/Cor/Con/CheckoutSession.cpp:283 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. Th e identifier of the error is 808a25f1. Please see earlier logs for details about the error.

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133649492, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRGMERRV3QEWOSKTDXDVLD325ANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

I added the to_s (Conversion to string?) and got following:

[ 2022-05-21 17:15:31.4230 157999/7ff9485ef700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: aebdd32f Error details saved to: /tmp/passenger-error-EnLgmn.html Message from application: cannot load such file -- mimemagic (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches/repository_patch.rb:23:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:inrequire_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:inrequire_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:inrequire' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:inconst_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in cget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:inblock (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in block in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:ineach_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:inblock in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in synchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:ineager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in each' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:ineager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in block in <module:Finisher>' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:ininstance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:inblock in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:inblock in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:incall' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:intsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:inrun_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in<top (required)>' config.ru:3:in require' config.ru:3:inblock in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininitialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in <module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `
'

HugoHasenbein commented 2 years ago

I'm not very familiar with the start up process of rails. It looks as if 'zeitwerk', which is a rails framework to dynamically load classes and it's corresponding files, fails prior to the execution of the scripts, like a pre compiler.

my last guess would be to uncomment the conditional in the plugins gemfile

from

#

Load mimemagic - there has been much ado about mimemagic in the past

# unless Gem::Specification.all_names.any?{|gem| gem =~ /mimemagic/} gem 'mimemagic', '~> 0.3.8' end

to

#

Load mimemagic - there has been much ado about mimemagic in the past

#

unless Gem::Specification.all_names.any?{|gem| gem =~ /mimemagic/}

gem 'mimemagic', '~> 0.3.8'

end

and run bundle install again

Am 21.05.2022 um 17:22 schrieb rengerb @.***>:

I added the to_s (Conversion to string?) and got following:

[ 2022-05-21 17:15:31.4230 157999/7ff9485ef700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: aebdd32f Error details saved to: /tmp/passenger-error-EnLgmn.html Message from application: cannot load such file -- mimemagic (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches/repository_patch.rb:23:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:in require_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews/patches.rb:25:in <top (required)>' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:in require_relative' /opt/redmine-5.0.1/plugins/redmine_more_previews/lib/redmine_more_previews.rb:24:in <top (required)>' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in const_get' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in cget' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:244:in block (2 levels) in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in block in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in each_child' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in ls' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in block in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in synchronize' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in eager_load' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in each' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in eager_load_all' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in block in ' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in module:PhusionPassenger' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `'

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133651817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRAJWA4AOYYNJM6YASLVLD5T5ANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

That changes the error:

[ 2022-05-21 17:37:13.1935 158788/7fd12c392700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: f4fb6fa2 Error details saved to: /tmp/passenger-error-PkmUhY.html Message from application: cannot load such file -- redmine_more_previews (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:inrequire' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:155:in <top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:inload' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:ineach' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in block in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:ininstance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in block in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:inblock (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:incatch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in block in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:inblock in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in block in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:ineach' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:inrun_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in prepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:inblock in ' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:inrun' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:inblock in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:ineach_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:ineach' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:ineach_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:intsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:ininitialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:inrequire' config.ru:3:in block in <main>' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininstance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:innew' config.ru:1:in <main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:ineval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in <module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

'

HugoHasenbein commented 2 years ago

version 5 goes a bit on my nerves...

try to amend init.rb

from

require "redmine_more_previews"

to

require_relative "lib/redmine_more_previews"

Am 21.05.2022 um 17:39 schrieb rengerb @.***>:

That changes the error:

[ 2022-05-21 17:37:13.1935 158788/7fd12c392700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: f4fb6fa2 Error details saved to: /tmp/passenger-error-PkmUhY.html Message from application: cannot load such file -- redmine_more_previews (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:155:in <top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in load' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in each' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in block in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in instance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in block in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in catch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in block in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in block in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in block in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in each' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in run_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in prepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in block in module:Finisher' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in module:App' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

'

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133656222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRDDNA2O7IPGURL2SCDVLD7UVANCNFSM5WPTQ3YQ. You are receiving this because you commented.

HugoHasenbein commented 2 years ago

you may want to try version 5.0.0, which is a heavy rewrite, due to massive changes in redmine 5

https://redmine2.humboldt-patent.com/redmine_more_previews-5.0.0.tgz https://redmine2.humboldt-patent.com/redmine_more_previews-5.0.0.tgz

Am 21.05.2022 um 17:39 schrieb rengerb @.***>:

That changes the error:

[ 2022-05-21 17:37:13.1935 158788/7fd12c392700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: f4fb6fa2 Error details saved to: /tmp/passenger-error-PkmUhY.html Message from application: cannot load such file -- redmine_more_previews (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:155:in <top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in load' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in each' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in block in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in instance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in block in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in catch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in block in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in block in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in block in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in each' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in run_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in prepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in block in module:Finisher' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in module:App' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

'

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133656222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRDDNA2O7IPGURL2SCDVLD7UVANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Hallo,

the new Version installs and is visible in Redmine. Thank you for the Adaption to Version 5. I will check out the functionality. So far, i found only one Error in the log, not knowing if it belongs to your plugin:

unable to create directory '/opt/redmine/.cache/dconf'

The Path of my redmine installation is '/opt/redmine-5.0.1'. So it's clear that the directory could not be created.

Again, thank you for the support.

Best regards

Bernhard

HugoHasenbein commented 2 years ago

Dear Bernhard,

this is good news. The error message should not stem form this plugin, as the files are not cached in a .conf/dconf directory. This must come from elsewhere. It file caching is enabled, then the plugin files arte stored in the /tmp/more_previews directory.

best regards

Stephan

Am 23.05.2022 um 09:59 schrieb rengerb @.***>:

Hallo,

the new Version installs and is visible in Redmine. Thank you for the Adaption to Version 5. I will check out the functionality. So far, i found only one Error in the log, not knowing if it belongs to your plugin:

unable to create directory '/opt/redmine/.cache/dconf'

The Path of my redmine installation is '/opt/redmine-5.0.1'. So it's clear that the directory could not be created.

Again, thank you for the support.

Best regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1134316879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDREOKG6WAE6GIBOWVXTVLM3EJANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

Hallo Stephan,

i tested the plugin and run into a problem with previews in html and pdf format.

If i configure the plugin to generate previews in pdf or html there is now visible content in Redmine. I can only see an empty page. If i generate images (i.e. png) everythink looks fine. I looked into the cache directory and found all previews generatet correctly in all formats (html,pdf, png). But in Redmine only the png's are visible. There are no errors in the log-file. It looks like a rendering problem. I tested with firefox and edge. That makes no differences.

best regards

Bernhard

HugoHasenbein commented 2 years ago

How long did you wait? LibreOffice may cause excessive latencies, therefore, the caching mechanism

Am 23.05.2022 um 13:14 schrieb rengerb @.***>:

Hallo Stephan,

i tested the plugin and run into a problem with previews in html and pdf format.

If i configure the plugin to generate previews in pdf or html there is now visible content in Redmine. I can only see an empty page. If i generate images (i.e. png) everythink looks fine. I looked into the cache directory and found all previews generatet correctly in all formats (html,pdf, png). But in Redmine only the png's are visible. There are no errors in the log-file. It looks like a rendering problem. I tested with firefox and edge. That makes no differences.

best regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1134540608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDREFHC4AGSP3WK4P2JTVLNSDBANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

I wait for several minutes. The html files and the pdf-files in the cache-Directory are properly generated. I downloaded the files and view them offline. In production.log i found also nothing special:

I, [2022-05-23T13:54:15.608293 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Started GET "/attachments/27?reload=1" for 10.32.16.24 at 2022-05-23 13:54:15 +0200 I, [2022-05-23T13:54:15.608988 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Processing by AttachmentsController#show as HTML I, [2022-05-23T13:54:15.609031 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Parameters: {"reload"=>"1", "id"=>"27"} I, [2022-05-23T13:54:15.611733 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Current user: Bernhard (id=5) I, [2022-05-23T13:54:15.623479 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Rendered plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base (Duration: 7.1ms | Allocations: 7778) I, [2022-05-23T13:54:15.642399 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Rendered layout layouts/base.html.erb (Duration: 26.1ms | Allocations: 22428) I, [2022-05-23T13:54:15.642676 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Completed 200 OK in 34ms (Views: 24.6ms | ActiveRecord: 3.4ms | Allocations: 26309) I, [2022-05-23T13:54:15.733635 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Started GET "/attachments/more_preview/27/index.html?reload=1" for 10.32.16.24 at 2022-05-23 13:54:15 +0200 I, [2022-05-23T13:54:15.734237 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Processing by AttachmentsController#more_preview as HTML I, [2022-05-23T13:54:15.734276 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Parameters: {"reload"=>"1", "id"=>"27"} I, [2022-05-23T13:54:15.736720 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Current user: Bernhard (id=5) I, [2022-05-23T13:54:16.247637 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Rendered text template (Duration: 0.0ms | Allocations: 1) I, [2022-05-23T13:54:16.247752 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Sent data index.html (0.5ms) I, [2022-05-23T13:54:16.249454 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Completed 200 OK in 515ms (Views: 0.3ms | ActiveRecord: 1.3ms | Allocations: 7937)

But Redmine shows no content: image

Hope that helps.

Best regards

Bernhard

HugoHasenbein commented 2 years ago

it works perfectly on my machine, a virgin installation of redmine 5.0.1 - so I need to guess what may be the issue on your machine. Did you try to choose either embed / iframe (configurable in plugin settings) - I added this feature, because different browsers do behave with peculiar differences here.

Am 23.05.2022 um 13:57 schrieb rengerb @.***>:

I wait for several minutes. The html files and the pdf-files in the cache-Directory are properly generated. I downloaded the files and view them offline. In production.log i found also nothing special:

I, [2022-05-23T13:54:15.608293 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Started GET "/attachments/27?reload=1" for 10.32.16.24 at 2022-05-23 13:54:15 +0200 I, [2022-05-23T13:54:15.608988 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Processing by AttachmentsController#show as HTML I, [2022-05-23T13:54:15.609031 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Parameters: {"reload"=>"1", "id"=>"27"} I, [2022-05-23T13:54:15.611733 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Current user: Bernhard (id=5) I, [2022-05-23T13:54:15.623479 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Rendered plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base (Duration: 7.1ms | Allocations: 7778) I, [2022-05-23T13:54:15.642399 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Rendered layout layouts/base.html.erb (Duration: 26.1ms | Allocations: 22428) I, [2022-05-23T13:54:15.642676 #214155] INFO -- : [eda48b39-e080-4fb9-be19-a0d91c9190d2] Completed 200 OK in 34ms (Views: 24.6ms | ActiveRecord: 3.4ms | Allocations: 26309) I, [2022-05-23T13:54:15.733635 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Started GET "/attachments/more_preview/27/index.html?reload=1" for 10.32.16.24 at 2022-05-23 13:54:15 +0200 I, [2022-05-23T13:54:15.734237 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Processing by AttachmentsController#more_preview as HTML I, [2022-05-23T13:54:15.734276 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Parameters: {"reload"=>"1", "id"=>"27"} I, [2022-05-23T13:54:15.736720 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Current user: Bernhard (id=5) I, [2022-05-23T13:54:16.247637 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Rendered text template (Duration: 0.0ms | Allocations: 1) I, [2022-05-23T13:54:16.247752 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Sent data index.html (0.5ms) I, [2022-05-23T13:54:16.249454 #214155] INFO -- : [51d0e562-367f-44fc-9a91-9ea930c00962] Completed 200 OK in 515ms (Views: 0.3ms | ActiveRecord: 1.3ms | Allocations: 7937)

But Redmine shows no content: https://user-images.githubusercontent.com/21999181/169814110-d75f9532-c9e2-4eb1-9781-830997307538.png Hope that helps.

Best regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1134580071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBH4IDL7KA652VMD33VLNXDTANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

I checked both settings. If i use the iframe setting, i got an error (Firefox is not allowed to open page). It's a security feature (https://developer.mozilla.org/de/docs/Web/HTTP/Headers/X-Frame-Options). I changed the apache-config, but without success. The redmine-Server is configured to use https. Can that be the problem?

Best

Bernhard

HugoHasenbein commented 2 years ago

is the server address correctly set in Administration->Configuration->General -> there hostname and protocol? redmine_more_previews uses this information to correctly address the server to not cause the security issue.

Am 23.05.2022 um 14:37 schrieb rengerb @.***>:

I checked both settings. If i use the iframe setting, i got an error (Firefox is not allowed to open page). It's a security feature (https://developer.mozilla.org/de/docs/Web/HTTP/Headers/X-Frame-Options https://developer.mozilla.org/de/docs/Web/HTTP/Headers/X-Frame-Options). I changed the apache-config, but without success. The redmine-Server is configured to use https. Can that be the problem?

Best

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1134623192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRH6HJNSSGUFROAXUWTVLN32LANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

No, was still default. I changed hostname to the FQDN (like the browser url) and protocol to https but no change. Firefox offers to open the frame in a new tab. That works. can i verify the send iframe-optione anywhere?

HugoHasenbein commented 2 years ago

Then, embed should work. You can check by showing Information about the html object by right clicking in the browser (Needs Development Menu activated) and see if the frame was loaded. Further, the log should show, the browser loads iframe

Am 23.05.2022 um 15:09 schrieb rengerb @.***>:

No, was still default. I changed hostname to the FQDN (like the browser url) and protocol to https but no change. Firefox offers to open the frame in a new tab. That works. can i verify the send iframe-optione anywhere?

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1134658325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRG2E4WNLVKKRHDFSF3VLN7Q3ANCNFSM5WPTQ3YQ. You are receiving this because you commented.

rengerb commented 2 years ago

I just checked it in the Firefox development tools. The frame is loaded :

GET https://rad-redmine.rad.mri.tu-muenchen.de/attachments/more_preview/27/index.html and X-Frame-Options is set to deny.

X-Content-Type-Options nosniff X-Download-Options noopen X-Frame-Options DENY X-Permitted-Cross-Domain-Policies none X-Powered-By Phusion Passenger 5.0.30 X-Request-Id 12227c63-f3d0-4d9c-92fb-6cab0f74406c X-Runtime 0.010652 X-XSS-Protection 1; mode=block

However, looks like a global setting I must change in Apache or Ruby.

Best

Bernhard

rengerb commented 2 years ago

Hallo Stephan,

i localized the Problem. It was a setting in the default-ssl config of the apache webserver. The X-Frame-Option was fixed to deny. After removing the Option everything runs as expected. Thank you again.

Best

Bernhard

rengerb commented 2 years ago

I can follow you. I try tomorrow and gave you feedback…

Best

Bernhard

Am 21.05.2022 um 17:45 schrieb Dr. Stephan Wenzel @.***>:



version 5 goes a bit on my nerves...

try to amend init.rb

from

require "redmine_more_previews"

to

require_relative "lib/redmine_more_previews"

Am 21.05.2022 um 17:39 schrieb rengerb @.***>:

That changes the error:

[ 2022-05-21 17:37:13.1935 158788/7fd12c392700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurr ed while starting up the preloader. Error ID: f4fb6fa2 Error details saved to: /tmp/passenger-error-PkmUhY.html Message from application: cannot load such file -- redmine_more_previews (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /opt/redmine-5.0.1/plugins/redmine_more_previews/init.rb:155:in <top (required)>' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in load' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in each' /opt/redmine-5.0.1/lib/redmine/plugin_loader.rb:108:in block in load' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in instance_exec' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in block in make_lambda' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in catch' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in block in default_terminator' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in block in halting' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in block in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in each' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in invoke_before' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in run_callbacks' /var/lib/gems/2.7.0/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in prepare!' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in block in module:Finisher' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' /usr/lib/ruby/2.7.0/tsort.rb:228:in block in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:431:in each_strongly_connected_component_from' /usr/lib/ruby/2.7.0/tsort.rb:349:in block in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:347:in each' /usr/lib/ruby/2.7.0/tsort.rb:347:in call' /usr/lib/ruby/2.7.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib/ruby/2.7.0/tsort.rb:226:in tsort_each' /usr/lib/ruby/2.7.0/tsort.rb:205:in tsort_each' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' /var/lib/gems/2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!' /opt/redmine-5.0.1/config/environment.rb:16:in <top (required)>' config.ru:3:in require' config.ru:3:in block in

' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /var/lib/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in module:App' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in ' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

'

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133656222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRDDNA2O7IPGURL2SCDVLD7UVANCNFSM5WPTQ3YQ. You are receiving this because you commented.

— Reply to this email directly, view it on GitHubhttps://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133658298, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFH24TOXGLF4BFZJYMT2ZUTVLEAI5ANCNFSM5WPTQ3YQ. You are receiving this because you authored the thread.Message ID: @.***>

rengerb commented 2 years ago

Dear Dr. Wenzel,

@.***:/opt/redmine-5.0.1/bin# rails zeitwerk:check /usr/bin/ruby2.7: warning: shebang line ending with \r may cause problems rails aborted! LoadError: cannot load such file -- listen /opt/redmine-5.0.1/config/environments/development.rb:58:in block in <top (required)>' /opt/redmine-5.0.1/config/environments/development.rb:5:in<top (required)>' /opt/redmine-5.0.1/config/environment.rb:16:in `<top (required)>' Tasks: TOP => zeitwerk:check => environment (See full trace by running task with --trace)

Hope that helps.

Best

Bernhard

Von: Dr. Stephan Wenzel @.> Gesendet: Freitag, 20. Mai 2022 17:24 An: HugoHasenbein/redmine_more_previews @.> Cc: Bernhard Renger @.>; Author @.> Betreff: Re: [HugoHasenbein/redmine_more_previews] Problems install on redmine 5.0.1 (debian 11.3) (Issue #54)

Dear Bernhard,

what happens on

bin/rails zeitwerk:check

Am 20.05.2022 um 16:16 schrieb rengerb @.***>:

Hallo,

I habe Problems to run the plugin on redmine 5.

Found an Error in the apache error.log:

[ 2022-05-20 15:30:46.2200 116298/7f70355b1700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: ce539fb2 Error details saved to: /tmp/passenger-error-j0zUm7.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' ...

Looks like a reference to a nonexisting File (redmine_more_previews/modules/shell). Do you have any suggestions?

Best Regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRFX3DDMPXQEQEGBRA3VK6NEXANCNFSM5WPTQ3YQ. You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHubhttps://github.com/HugoHasenbein/redmine_more_previews/issues/54#issuecomment-1133034327, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFH24TNFHSG76MHVK5JXHV3VK6VCPANCNFSM5WPTQ3YQ. You are receiving this because you authored the thread.Message ID: @.***>

HugoHasenbein commented 2 years ago

Dear Bernhard,

the plugin has never been tested on redmine 5. There are a bunch of issues. Are you running in development mode? That could cause this behavior

Am 20.05.2022 um 16:16 schrieb rengerb @.***>:

Hallo,

I habe Problems to run the plugin on redmine 5.

Found an Error in the apache error.log:

[ 2022-05-20 15:30:46.2200 116298/7f70355b1700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: ce539fb2 Error details saved to: /tmp/passenger-error-j0zUm7.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' ...

Looks like a reference to a nonexisting File (redmine_more_previews/modules/shell). Do you have any suggestions?

Best Regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRFX3DDMPXQEQEGBRA3VK6NEXANCNFSM5WPTQ3YQ. You are receiving this because you are subscribed to this thread.

rengerb commented 2 years ago

Dear Stephan,

this was really an old Threat. You send me an adapted Version in May (with several iteration). This Works perfekt with Redline 5. Thanks again.

Best

Bernhard

Dipl.-Phys. Bernhard Renger Inst. für diagnostische und interventionelle Radiologie Ismaninger Str. 22 81675 München Klinikum rechts der Isar TU-München Tel: 089-4140-5637 Fax: 089-4140-4843 E-mail: @.***

Am 11.10.2022 um 11:21 schrieb Dr. Stephan Wenzel @.***>:

Dear Bernhard,

the plugin has never been tested on redmine 5. There are a bunch of issues. Are you running in development mode? That could cause this behavior

Am 20.05.2022 um 16:16 schrieb rengerb @.***>:

Hallo,

I habe Problems to run the plugin on redmine 5.

Found an Error in the apache error.log:

[ 2022-05-20 15:30:46.2200 116298/7f70355b1700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-5.0.1: An error occurred while starting up the preloader. Error ID: ce539fb2 Error details saved to: /tmp/passenger-error-j0zUm7.html Message from application: cannot load such file -- redmine_more_previews/modules/shell (LoadError) /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' /var/lib/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in require' ...

Looks like a reference to a nonexisting File (redmine_more_previews/modules/shell). Do you have any suggestions?

Best Regards

Bernhard

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRFX3DDMPXQEQEGBRA3VK6NEXANCNFSM5WPTQ3YQ. You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.