프로젝트

일반

사용자정보

Redmine 파일업로드 시 시 "Insternal error"가 발생합니다.

정 영훈이(가) 2019-03-30에 추가

일감에서 파일 첨부를 하면 Internal Error가 발생합니다.

redmine - 3.3.0

rake 버젼 문제라 하시는 분도 있어서..

힘들게.

> bundle update rake

> gem install rake



출처: https://huiyuni.tistory.com/entry/Bitnami-redmine-upgrade [내가 만들어가는 세상..^^]

> bundle update rake

> gem install rake



출처: https://huiyuni.tistory.com/entry/Bitnami-redmine-upgrade [내가 만들어가는 세상..^^]

bundle update rake

gem install rake 

이렇게 도 했고요..

 

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

>> production.log 파일을 보면

ActionView::Template::Error (Mysql2::Error: Table 'bitnami_redmine.attachment_previews' doesn't exist: SHOW FULL FIELDS FROM `attachment_previews`):
     7: <% if issue.attachments.any? %>
     8:   <fieldset class="attachments"><legend><%= l(:label_attachment_plural) %></legend>
     9:   <% issue.attachments.each do |attachment| %>
    10:     <%= link_to_attachment attachment, :download => true, :only_path => false %>
    11:     (<%= number_to_human_size(attachment.filesize) %>)<br />
    12:   <% end %>
    13:   </fieldset>
  plugins/redmine_lightbox/lib/redmine_lightbox/patches/attachment_patch.rb:35:in `transformed_preview'
  plugins/redmine_lightbox/app/helpers/redmine_lightbox_helper.rb:41:in `preview_available?'
  plugins/redmine_lightbox/app/helpers/redmine_lightbox_helper.rb:9:in `link_to_attachment_with_preview'
  app/views/mailer/_issue.html.erb:10:in `block in _app_views_mailer__issue_html_erb__1989340128007952879_69892221709980'
  app/views/mailer/_issue.html.erb:9:in `_app_views_mailer__issue_html_erb__1989340128007952879_69892221709980'
  app/views/mailer/issue_add.html.erb:3:in `_app_views_mailer_issue_add_html_erb__470439617696278258_69892221660220'
  app/models/mailer.rb:483:in `block in mail'
  app/models/mailer.rb:481:in `mail'
  app/models/mailer.rb:54:in `issue_add'
  app/models/mailer.rb:494:in `initialize'
  config/initializers/10-patches.rb:163:in `deliver'
  app/models/mailer.rb:64:in `block in deliver_issue_add'
  app/models/issue.rb:985:in `each_notification'
  app/models/mailer.rb:63:in `deliver_issue_add'
  app/models/issue.rb:1684:in `send_notification'
  app/models/issue.rb:210:in `create_or_update'
  app/controllers/issues_controller.rb:140:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'


Started GET "/redmine/issues/new" for 175.198.27.129 at 2019-03-30 12:27:56 +0900
Processing by IssuesController#new as HTML
  Current user: admin (id=1)
  Rendered issues/_form_custom_fields.html.erb (2.3ms)
  Rendered issues/_attributes.html.erb (11.8ms)
  Rendered issues/_form.html.erb (19.5ms)
  Rendered attachments/_form.html.erb (1.7ms)
  Rendered issues/new.html.erb within layouts/base (26.4ms)
Completed 200 OK in 100ms (Views: 29.9ms | ActiveRecord: 54.0ms)


이와 같이 발생합니다.

도움 부탁드립니다.


답글 (1)

RE: Redmine 파일업로드 시 시 "Insternal error"가 발생합니다. - 커뮤니티 관리자이(가) 2019-04-01에 추가

에러 로그를 보면 ActionView::Template::Error (Mysql2::Error: Table 'bitnami_redmine.attachment_previews' doesn't exist: SHOW FULL FIELDS FROM `attachment_previews`):

위의 에러는 attachment_previews 테이블이 존재하지 않기 때문입니다.

기본 레드마인이 아닌 테이블로 보여 집니다.

플러그인을 설치하셨다면 bundle exec rake redmine:plugins:migrate RAILS_ENV=production 이라는 명령어를 통해 테이블을 생성해 주시기 바랍니다.

 

    (1-1/1)
    클립보드 이미지 추가 (최대 크기: 500 MB)