我们目前正在将Redmine安装从3.3升级到3.4。我们已经成功导入了除DMSF plugin之外的现有插件。
以前的安装目录(仍在运行)是
/home/username/usr/redmine/
和新的
is /var/www/redmine_test/redmine-3.4.3/
尝试通过运行
安装插件时bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
结果是
Migrating redmine_dmsf (DMSF)...
== 20170422104901 MigrateDocuments: migrating = ================================
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Permission denied @ dir_s_mkdir - /home/username/usr/redmine/files/dmsf/2017
/usr/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir'
/usr/lib/ruby/2.2.0/fileutils.rb:252:in `fu_mkdir'
/usr/lib/ruby/2.2.0/fileutils.rb:226:in `block (2 levels) in mkdir_p'
/usr/lib/ruby/2.2.0/fileutils.rb:224:in `reverse_each'
/usr/lib/ruby/2.2.0/fileutils.rb:224:in `block in mkdir_p'
/usr/lib/ruby/2.2.0/fileutils.rb:210:in `each'
/usr/lib/ruby/2.2.0/fileutils.rb:210:in `mkdir_p'
/var/www/redmine_test/redmine-3.4.3/plugins/redmine_dmsf/app/models/dmsf_file_revision.rb:145:in `disk_file'
/var/www/redmine_test/redmine-3.4.3/plugins/redmine_dmsf/db/migrate/20170422104901_migrate_documents.rb:31:in `block in up'
/home/username/.bundle/ruby/2.2.0/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
...
文件夹/ home / username / usr / redmine / files不属于“username”用户,而是属于“root”(似乎现有的Redmine实例正在运行sudo或类似的东西)。但是,它让我担心这个错误指向以前的安装文件夹并尝试写入它。
所述目录的权限问题是导致此错误的唯一原因吗?我真的不期待更改权限并允许新实例在旧目录中写入。
如果在DMSF插件安装过程中有关于此步骤的进一步说明,我将非常感激。