Project

General

Profile

How to change attached file storage location to NAS Storage

Added by Asish Paul over 3 years ago

I have installed bitnami redmine successfully in the location /opt/redmine-4.1.1-3 and all the attachments in the project are storing in the same location. But I want to store the attachment files in the different NAS storage partition. How can I change the attachment files location from default to custom NAS Storage?


Replies (7)

RE: How to change attached file storage location to NAS Storage - Added by Bernhard Rohloff over 3 years ago

You can set your storage path in the configuration.yml file as described in the wiki. Of course you have to mount your NAS somewhere in your file tree, but I think you have already passed that step, haven't you.

Kind regards,

Bernhard

RE: How to change attached file storage location to NAS Storage - Added by Asish Paul over 3 years ago

Bernhard Rohloff wrote:

You can set your storage path in the configuration.yml file as described in the wiki. Of course you have to mount your NAS somewhere in your file tree, but I think you have already passed that step, haven't you.

Kind regards,

Bernhard

Hello Bernhard,

Thanks for your reply. I have mounted the storage with the server /Storage_NAS/redmine.
But I am not able to understand what do you mean by "but I think you have already passed that step".

Thanks,
Asish Paul

RE: How to change attached file storage location to NAS Storage - Added by Bernhard Rohloff over 3 years ago

Asish Paul wrote:

Thanks for your reply. I have mounted the storage with the server /Storage_NAS/redmine.
But I am not able to understand what do you mean by "but I think you have already passed that step".

I assumed that you have already mounted your NAS storage on your system and that you don't need help with this step. ;-)

RE: How to change attached file storage location to NAS Storage - Added by Asish Paul over 3 years ago

Now after adding the path in configuration.yml file I am getting "Internal Server error" when trying to attached the file with Defect in redmine application.

/NAS1-Production/redmine/files/2020
drwxr-xr-x 2 root root 8.0K Sep 1 12:06 08
drwxr-xr-x 2 root root 152 Sep 1 12:11 09

I have copied the old files from /opt/redmine-4.1.1-3/apps/redmine/htdocs/files location to /NAS1-Production/redmine/files/2020 location and old files are downloading.

But unable to attached the new files.

Thanks,
Asish

RE: How to change attached file storage location to NAS Storage - Added by Asish Paul over 3 years ago

Asish Paul wrote:

Now after adding the path in configuration.yml file I am getting "Internal Server error" when trying to attached the file with Defect in redmine application.

/NAS1-Production/redmine/files/2020
drwxr-xr-x 2 root root 8.0K Sep 1 12:06 08
drwxr-xr-x 2 root root 152 Sep 1 12:11 09

I have copied the old files from /opt/redmine-4.1.1-3/apps/redmine/htdocs/files location to /NAS1-Production/redmine/files/2020 location and old files are downloading.

But unable to attached the new files.

Thanks,
Asish

Thanks for your quick reply.

RE: How to change attached file storage location to NAS Storage - Added by Bernhard Rohloff over 3 years ago

I think that you have insufficient write permissions on your new files folder.
The Bitnami stack that I maintain (Redmine 3.4) has the following permissions on the files folder and subdirectories.

bitnami@redmine:~$ ll /opt/bitnami/apps/redmine/htdocs/
total 96
...
drwxrwxr-x 6 bitnami daemon 4096 Jan 8 2020 files
...

bitnami@redmine:~$ ll /opt/bitnami/apps/redmine/htdocs/files/
total 16
drwxr-xr-x 6 daemon daemon 4096 Dec 6 2017 2017
drwxr-xr-x 14 daemon daemon 4096 Dec 5 2018 2018
...

RE: How to change attached file storage location to NAS Storage - Added by Asish Paul over 3 years ago

Thanks Man,

You saved my day. Now it is working fine without any issue after changing the permission of the directory.

drwxr-xr-x 4 daemon daemon 152 Sep 1 12:11 2020

Thanks,
Asish

    (1-7/7)