jhovad / redmine4_amazon_s3 Goto Github PK
View Code? Open in Web Editor NEWThis Redmine 4.x plugin stores file attachments on Amazon S3 instead of the local filesystem.
License: MIT License
This Redmine 4.x plugin stores file attachments on Amazon S3 instead of the local filesystem.
License: MIT License
When i try to upload i get this error.
NoMethodError (undefined method `disk_filename' for Attachment:Class):
When clicking on a Redmine attachment link the user is taken to the Amazon S3 Object URL.
Redmine Link
Amazon S3 Object URL
http://<redmine_site_address>/attachments/8
https://<bucket_name>.amazonaws.com/2020/04/
If you install the plugin and restart the apache service, a Remine error occurs.
Please tell me how to solve this problem.
==========================================================================================
The Phusion Passenger application server tried to start the web application. But the application itself (and not Passenger) encountered an internal error.
Error details:
undefined method before_filter' for AttachmentsController:Class Did you mean? before_action (NoMethodError) /var/www/html/redmine/plugins/redmine_s3/lib/redmine_s3/attachments_controller_patch.rb:10:in block in included'
/var/www/html/redmine/plugins/redmine_s3/lib/redmine_s3/attachments_controller_patch.rb:8:in class_eval' /var/www/html/redmine/plugins/redmine_s3/lib/redmine_s3/attachments_controller_patch.rb:8:in included'
/var/www/html/redmine/plugins/redmine_s3/lib/redmine_s3.rb:7:in include' /var/www/html/redmine/plugins/redmine_s3/lib/redmine_s3.rb:7:in <top (required)>'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in require' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in block in require'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in load_dependency' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in require'
/var/www/html/redmine/plugins/redmine_s3/init.rb:1:in <top (required)>' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in require'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in block in require' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in load_dependency'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in require' /var/www/html/redmine/lib/redmine/plugin.rb:181:in block in load'
/var/www/html/redmine/lib/redmine/plugin.rb:172:in each' /var/www/html/redmine/lib/redmine/plugin.rb:172:in load'
/var/www/html/redmine/config/initializers/30-redmine.rb:20:in <top (required)>' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:285:in load'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:285:in block in load' /usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in load_dependency'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:285:in load' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/engine.rb:663:in block in load_config_initializer'
/usr/lib64/ruby/gems/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/notifications.rb:170:in instrument' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/engine.rb:662:in load_config_initializer'
/usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/engine.rb:620:in block (2 levels) in class:Engine' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in each'
/usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in block in class:Engine' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in instance_exec'
/usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in run' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:61:in block in run_initializers'
/usr/lib64/ruby/2.6.0/tsort.rb:228:in block in tsort_each' /usr/lib64/ruby/2.6.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component'
/usr/lib64/ruby/2.6.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' /usr/lib64/ruby/2.6.0/tsort.rb:431:in each_strongly_connected_component_from'
/usr/lib64/ruby/2.6.0/tsort.rb:421:in block in each_strongly_connected_component_from' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in each'
/usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in tsort_each_child' /usr/lib64/ruby/2.6.0/tsort.rb:415:in call'
/usr/lib64/ruby/2.6.0/tsort.rb:415:in each_strongly_connected_component_from' /usr/lib64/ruby/2.6.0/tsort.rb:349:in block in each_strongly_connected_component'
/usr/lib64/ruby/2.6.0/tsort.rb:347:in each' /usr/lib64/ruby/2.6.0/tsort.rb:347:in call'
/usr/lib64/ruby/2.6.0/tsort.rb:347:in each_strongly_connected_component' /usr/lib64/ruby/2.6.0/tsort.rb:226:in tsort_each'
/usr/lib64/ruby/2.6.0/tsort.rb:205:in tsort_each' /usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:60:in run_initializers'
/usr/lib64/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/application.rb:361:in initialize!' /var/www/html/redmine/config/environment.rb:16:in <top (required)>'
config.ru:3:in require' config.ru:3:in block in
'
/usr/lib64/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in instance_eval' /usr/lib64/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in initialize'
config.ru:1:in new' config.ru:1:in '
/usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:101:in eval' /usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:101:in preload_app'
/usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:189:in block in module:App' /usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:378:in run_block_and_record_step_progress'
/usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:188:in module:App' /usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:30:in module:PhusionPassenger'
/usr/lib64/ruby/gems/2.6.0/gems/passenger-6.0.6/src/helper-scripts/rack-preloader.rb:29:in `'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.