Content
You are here:
Restore OpenProject // Attachment not available
Added by Marcel K almost 8 years ago
Hello Community,
I have some problems with restoring a backup. I have an vServer an did the “openproject run backup”. I copied the 4 files and installed on a local VirtualBox Debian image openproject. I tried to backup all the stuff, I restored the mysql-table, configured the config. I’m able to reach the page, my project and everything works.
The only problem is, I cannot reach the attachments. I copied the attachments to /var/db/openprojects/files/attachment/file…
The Log-file gives me the following text:
F, [2016-12-17T00:40:32.733253 #2054] FATAL -- : F, [2016-12-17T00:40:32.733391 #2054] FATAL -- : TypeError (no implicit conversion of nil into String): F, [2016-12-17T00:40:32.733423 #2054] FATAL -- : F, [2016-12-17T00:40:32.733441 #2054] FATAL -- : app/uploaders/file_uploader.rb:47:in `readable?' F, [2016-12-17T00:40:32.733456 #2054] FATAL -- : app/uploaders/file_uploader.rb:47:in `readable?' F, [2016-12-17T00:40:32.733470 #2054] FATAL -- : app/models/attachment.rb:120:in `readable?' F, [2016-12-17T00:40:32.733483 #2054] FATAL -- : app/controllers/attachments_controller.rb:68:in `file_readable' F, [2016-12-17T00:40:32.733496 #2054] FATAL -- : app/middleware/reset_current_user.rb:47:in `call'
What can I do to fix this issue?
Where should I copy the files of the conf-#### directory from the backup? I only edit the config manually?
Hope you can help me. Thanks.
Marcel