2

我正在尝试在 bitnami-redmine-2.3.1-3-ubuntu-12.04 上安装 support_helpdesk 插件( https://github.com/pvdvreede/support_helpdesk )。我做了什么:

cd /opt/bitnami/apps/redmine/htdocs
git clone git://github.com/pvdvreede/support_helpdesk.git plugins/support_helpdesk
bundle install
rake db:migrate_plugins RAILS_ENV=production (there was an error about redis)
wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
tar xzf redis-2.6.14.tar.gz
cd redis-2.6.14
make  
sudo apt-get update
sudo apt-get install tcl8.5 (redis doesn't work without this module)
make test (no errors after that)
/src/redis-server

在另一个 ssh windows 类型中
cd /opt/bitnami/apps/redmine/htdocs rake redmine:plugins:migrate
/opt/bitnami/ctlscript.sh restart apache

之后我无法打开我的http://my.host/redmine/错误:

我们很抱歉,但有些不对劲。我们已收到有关此问题的通知,我们将尽快进行查看。

我应该怎么解决这个问题?感谢任何帮助,在此先感谢您。

回答:

通过使用 bundle install --deployment 并使用 redmine 2.2.4 修复,在 2.3.1 上可以正常启动,但加载后,无法创建新问题 witt error access to db。

另一个问题是在获取的电子邮件正文中使用非英语语言会导致问题正文中出现不可读的符号,例如。������������,在下面的模块中获取电子邮件,有什么想法可以解决吗?

    require "#{File.dirname(__FILE__)}/../spec_helper"
    describe Support::Participants::CreateIssueBody do
      let(:participant) { Support::Participants::CreateIssueBody.new }
      let(:plain_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "plain_basic.eml")))
      end
      let(:multi_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "multi_basic.eml")))
      end
      let(:html_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "html_basic.eml")))
      end
      before do
        participant.extend Support::Spec::Reply
        $reply = nil
        participant.workitem = workitem
      end
      context 'when there is plain text only' do
        let(:workitem) do
          create_workitem({
            'email' => plain_basic_email.to_yaml
          })
        end
        it 'will set the body as plain text' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "Plain email.\n\nHope it works well!\n\nMikel"
        end
      end
      context 'when there is html only' do
        let(:workitem) do
          create_workitem({
            'email' => html_basic_email.to_yaml
          })
        end
        it 'will set the body to say it cannot render the body' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "Cannot add body, please open attached email file."
        end
      end
      context 'when there is multipart' do
        let(:workitem) do
          create_workitem({
            'email' => multi_basic_email.to_yaml
          })
        end
        it 'will set the body as the plain text body' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "This is a test *multi part* email.\n\nRegards,\n\nPaul."
        end
      end
      context 'when the email has Chinese characters' do
      end
    end
4

1 回答 1

2

通过使用 'bundle install --deployment' 并使用 Redmine 2.2.4 修复。现在正常启动,但加载后,我无法创建新问题,访问数据库时出错。

于 2013-07-27T03:15:02.857 回答