alphanodes / additionals

Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
https://www.redmine.org/plugins/additionals
GNU General Public License v2.0
131 stars 43 forks source link

async cache with redmine subdirectory installation. #113

Closed skalimer0 closed 3 years ago

skalimer0 commented 3 years ago

Hello,

We have REDMINE with a subdirectory in URL like http://myserver.mydomain.com/myredmine/

We make change in files config.ru and config/environment.rb on redmine for what works with REDMINE 4.x All works except async cache files.

The tmp cache file is writing without the subdirectory (in filename) but it's reading with the subdirectory... So... it can't work. We have this error : Invalid dashboard block for mywidget (ActionView::Template::Error): No such file or directory @ rb_sysopen

Thanks a lot.

skalimer0 commented 3 years ago

Method used to have subdirectory : https://www.redmine.org/issues/32318

alexandermeindl commented 3 years ago

Hi @skalimer0 Additionals uses cache from Rails: https://api.rubyonrails.org/v5.2.6/classes/ActionView/Helpers/CacheHelper.html#method-i-cache We do not configure any directory for cache files in additionals plugin. Maybe you have to adjust your configuration to fix the storage problem for cache. With the usage of cache there is no configuration option for a path.

skalimer0 commented 3 years ago

Ok thanks... It's what i think too.... i'll post some infos if i resolve it.

skalimer0 commented 3 years ago

Hi, So... the cache files are not in the same place for read and write.... but the file have the good name. For exemple... /tmp/cache/F9D/933/.views%2Frender_async..... And when redmine want to read... /tmp/cache/.views%2Frender_async....

I suppose it's just configuration....

More in next episode ;)

skalimer0 commented 3 years ago

Next...

In fact, no cache file is generated... if i have cache file : the widget works on the dashboard.

and I don't have any cache error with widgets without settings and when i skip the user ID (no_settings: true and skip_user_id: true).

skalimer0 commented 3 years ago

Crap.... It's my bad I debugging on Windows and Windows 10 accept by default 255 characteres for file path... And with settings or user_id.... with my subdirectory... i'm over this 255 characters....

Solution : https://www.itprotoday.com/windows-10/enable-long-file-name-support-windows-10