redmine安装问题

zwwjs 2012-11-22 04:59:03
登录redmine后,点击“文件/新增”或者点击“活动”都会报下面的错误
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.

网上看到有人说在redmine/config/environment.fb中添加以下代码

module ActionView
module Helpers
module TextHelper
def truncate(text, length = 30, truncate_string = "...")
if text.nil? then return end
l = length - truncate_string.chars.to_a.size
(text.chars.to_a.size > length ? text.chars.to_a[0...l].join + truncate_string : text).to_s
end
end
end
end

可是我的config下面没有environment.fb文件,只有environment.rb.
请高手指教啊!
...全文
2181 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jixueyou 2012-12-06
  • 打赏
  • 举报
回复
你好。我装的bitnami-redmine-2.1.4-0-windows-installer.exe 当访问redmine时也会报 Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error. Back 请问您知道原因吗?
zwwjs 2012-11-23
  • 打赏
  • 举报
回复
转自:http://blog.mulgor.com/index.php/category/redmine/ Redmine插件plugin_assets路径404错误 热度: 如果redmine本身能够正常访问,插件的文件如js等却报出404无法找到,很有可能是目录权限造成的。 检查Redmine/管理/信息,如果看到”插件的附件路径可写”这一项后面是红色感叹号,说明plugin_assets目录权限未设置。 该目录在redmine安装目录下的public下,因为rails会将所有插件目录中的assets复制到该目录下,所以需要赋予此目录写权限。
zwwjs 2012-11-23
  • 打赏
  • 举报
回复
如果使用了apache,则需要把其所有文件全改成apache2的属主www-data: sudo chown -R www-data:www-data /usr/local/redmine/ sudo chown -R www-data:www-data /var/www/redmine/ (这个属主可以用ps aux查:ps aux | grep -i redmine) 保存,重启redmine服务 sudo /etc/init.d/apache2 restart/reload OK,然后登录一下redmine看下information那一节Attachments directory writable 是不是打了个勾
zwwjs 2012-11-22
  • 打赏
  • 举报
回复
:-),自己解决了。是权限的问题: chown -R nobody:nobody files log tmp public/plugin_assets vendor

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧