Ilogeek / redmine_issue_dynamic_edit

Allows users to dynamically update (AJAX) issue's attributes from issue details page without any refresh (JIRA like)
http://www.redmine.org/plugins/redmine_issue_dynamic_edit
MIT License
134 stars 56 forks source link

404 for /plugin_assets/redmine_issue_dynamic_edit/javascripts/issue_dynamic_edit.js #25

Closed mfp20 closed 6 years ago

mfp20 commented 6 years ago

And the issue is same of no plugin installed.

Started GET "/plugin_assets/redmine_issue_dynamic_edit/javascripts/issue_dynamic_edit.js" for 192.168.1.34 at 2018-08-10 13:40:38 +0200

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_issue_dynamic_edit/javascripts/issue_dynamic_edit.js"):
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:38:in `call_app'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:20:in `block in call'
  /usr/lib/ruby/vendor_ruby/active_support/tagged_logging.rb:68:in `block in tagged'
  /usr/lib/ruby/vendor_ruby/active_support/tagged_logging.rb:26:in `tagged'
  /usr/lib/ruby/vendor_ruby/active_support/tagged_logging.rb:68:in `tagged'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:20:in `call'
  /usr/lib/ruby/vendor_ruby/request_store/middleware.rb:9:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/request_id.rb:21:in `call'
  /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:22:in `call'
  /usr/lib/ruby/vendor_ruby/rack/runtime.rb:18:in `call'
  /usr/lib/ruby/vendor_ruby/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/static.rb:120:in `call'
  /usr/lib/ruby/vendor_ruby/rack/content_length.rb:15:in `call'
  /usr/lib/ruby/vendor_ruby/rack/sendfile.rb:113:in `call'
  /usr/lib/ruby/vendor_ruby/rails/engine.rb:518:in `call'
  /usr/lib/ruby/vendor_ruby/rails/application.rb:165:in `call'
  /usr/lib/ruby/vendor_ruby/rails/railtie.rb:194:in `public_send'
  /usr/lib/ruby/vendor_ruby/rails/railtie.rb:194:in `method_missing'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
Ilogeek commented 6 years ago

Be sure that the parent folder is called redmine_issue_dynamic_edit

Plugin path must be /plugins/redmine_issue_dynamic_edit then inside you should find assets/javascripts/issue_dynamic_edit.js (eg: /plugins/redmine_issue_dynamic_edit/assets/javascripts/issue_dynamic_edit.js)

Do you have this structure in your plugin's folder ?

(Don't forget to restart your Redmine instance if you change the folder name)

Oh by the way : Hello ...

mfp20 commented 6 years ago

@llogeek thanks for allocating some of your time for me. Unfortunately is not your plugin's problem. I just figured out a few minutes ago that all plugins' assets aren't copied in the {ROOT}/plugin_assets/ folder, and I've no idea why. I firstly solved an issue with fileutils 1.1.0, pinning and downgrading to 1.0.2. But it didn't change this one.

I'm pretty new to Redmine and RoR, I have no idea how to troubleshoot things. Do you have any tip for me?

Edit: what are the RoR/Redmine right tools to file issues? This issue looks pretty big. I tried to

rake redmine:plugins:assets RAILS_ENV=production

And I got a big dump ending with:

`` b6c76000-b6c86000 ---p 00011000 b3:02 31775 /lib/arm-linux-gnueabihf/libpthread-2.27.so b6c86000-b6c87000 r--p 00011000 b3:02 31775 /lib/arm-linux-gnueabihf/libpthread-2.27.so b6c87000-b6c88000 rw-p 00012000 b3:02 31775 /lib/arm-linux-gnueabihf/libpthread-2.27.so b6c88000-b6c8a000 rw-p 00000000 00:00 0 b6c8a000-b6d6c000 r-xp 00000000 b3:02 31742 /lib/arm-linux-gnueabihf/libc-2.27.so b6d6c000-b6d7c000 ---p 000e2000 b3:02 31742 /lib/arm-linux-gnueabihf/libc-2.27.so b6d7c000-b6d7e000 r--p 000e2000 b3:02 31742 /lib/arm-linux-gnueabihf/libc-2.27.so b6d7e000-b6d7f000 rw-p 000e4000 b3:02 31742 /lib/arm-linux-gnueabihf/libc-2.27.so b6d7f000-b6d82000 rw-p 00000000 00:00 0 b6d82000-b6f30000 r-xp 00000000 b3:02 21913 /usr/lib/arm-linux-gnueabihf/libruby-2.5.so.2.5.1 b6f30000-b6f3f000 ---p 001ae000 b3:02 21913 /usr/lib/arm-linux-gnueabihf/libruby-2.5.so.2.5.1 b6f3f000-b6f42000 r--p 001ad000 b3:02 21913 /usr/lib/arm-linux-gnueabihf/libruby-2.5.so.2.5.1 b6f42000-b6f43000 rw-p 001b0000 b3:02 21913 /usr/lib/arm-linux-gnueabihf/libruby-2.5.so.2.5.1 b6f43000-b6f49000 rw-p 00000000 00:00 0 b6f49000-b6f61000 r-xp 00000000 b3:02 5259 /lib/arm-linux-gnueabihf/ld-2.27.so b6f63000-b6f6a000 r--s 00000000 b3:02 32288 /usr/lib/arm-linux-gnueabihf/gconv/gconv-modules.cache b6f6a000-b6f6b000 ---p 00000000 00:00 0 b6f6b000-b6f71000 rw-p 00000000 00:00 0 b6f71000-b6f72000 r--p 00018000 b3:02 5259 /lib/arm-linux-gnueabihf/ld-2.27.so b6f72000-b6f73000 rw-p 00019000 b3:02 5259 /lib/arm-linux-gnueabihf/ld-2.27.so be3c2000-bebc1000 rw-p 00000000 00:00 0 [stack] bec69000-bec6a000 r-xp 00000000 00:00 0 [sigpage] bec6a000-bec6b000 r--p 00000000 00:00 0 [vvar] bec6b000-bec6c000 r-xp 00000000 00:00 0 [vdso] ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

Aborted ``

Ilogeek commented 6 years ago

Hi @mfp20

It looks like that your folder don't have writable permission or your environment configuration isn't set up properly :

Did you follow the installation tutorial from Redmine website : http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Step-8-File-system-permissions ?

Don't hesitate to post your issue on the Redmine forum to get help : https://www.redmine.org/projects/redmine/boards/2

mfp20 commented 6 years ago

Yep, thanks for the links dude. Please, close this issue because isn't ... an issue (of your plugin).

Note for completeness sake: my RoR environment was a mess. The one installed with the OS package manager was obsolete so I had to find another install procedure, and I accidentally installed one using the sudoed root user ... it looks like it was picking some of both environments, or I was updating root's one but www-data's apache runtime was picking the system-wide one. Or alike. I hate this tiny self-contained VMs backends ... developers have been too liberal in adopting those techs; it ended up having 4-5 full application stacks (RoR, python, nodejs, jvm, perl, php) clogging the memory and increasing complexity without a real need (as they all do the same thing, using a proprietary syntax).

I purged redmine/ruby/nodejs and started again, but the SD card got corrupted in the process and it is a remote system... just came back from the place were the SD needed an fsck, and moved the system to an usb HD to avoid flash corruption in the future.

Currently I have an rvm system-wide ruby install but I can't get www-data user pick it because apache doesn't run the /etc/profile.d/rvm.sh script. Anyway, I've already built libapache-passenger module using apxs, because using the OS package manager was pushing in the obsolete ruby version as a dependency of the libapache-passenger packaged binary module. Next step is try to add rvm.sh to /etc/apache/envvars in order to give the proper RoR envvars to the runtime env.

I wonder how the entire world is coping with RoR ... searching with google there are some questions about system-wide RoR instances but no answers; it seems like all the RoR apps running are poorly configured form a system administration perspective (ie: running as root, duplicate installs, long issue troubleshooting times). The most appreciated RoR installer (rbenv) doesn't even manage system-wide installs!