solved
Added by Pedro Vioto almost 10 years ago
Hello everyone, my problem is :
The new redmine version 3.2.0 create a folder (year) -> folder (month) to every file uploaded at the time that it's actually upload, i migrate my database from redmine 1.4.4 and i have files uploaded like 2013/02
and the problem is : when i migrate to redmine 3.2.0 all the date files are attached to a path related to the date that it has created.
And i'm having this kind of problem :
Cannot send attachment, /var/www/redmine/files/2013/07/130729100717_guia.de.testes.v4.pdf does not exist or is unreadable.
Rendered common/error.html.erb within layouts/base (2.2ms)
Filter chain halted as :file_readable rendered or redirected
Completed 404 Not Found in 128ms (Views: 53.6ms | ActiveRecord: 53.7ms)
I already know what i need to create these path, but i have like 200 files from the old database and what i want is disable this feature that create a folder from every file that has been created along the way .
Someone knows how to do this ?
Thanks !!!!!!!!
As they requested following these recommandations :
- Operating system
CentOS 6.7 Kernel 2.6.32-573.12.1.el6.686 an i686
Environment:
Redmine version 3.2.0.stable
Ruby version 2.2.4-p230 (2015-12-16) [i686-linux]
Rails version 4.2.5
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
no plugin installed
I'm using in a Virtual Machine ... with SSH PUTTY and WinSCP files manager
- Database used
MySql 5.1.73-5.el6_6
-Apache server
-Phusion passenger
-phpMyAdmin
The old database use redmine 1.4.4 , ruby 1.9.3 and the same MySQL version, but the files don't even have connection with mysql I guess, because is pdf, doc and jpeg files ...
The old way for the files is : /var/lib/redmine/default/files obviously on the redmine 1.4.4
The 3.2.0 has changed by the long time and I searched and put as I said before : /var/www/redmine
Replies (3)
RE: Upgrade from 1.4.4 to latest 3.2.0
-
Added by Ben Blanco almost 10 years ago
Hi Pedro,
Yes you can upgrade from 1.4 to 3.2.0
Just follow the steps detailed in https://redmine.org/projects/redmine/wiki/RedmineUpgrade
In Step 4, the db:migrate will bring your database up-to-date.
In Step 3.6, bundler will take care of installing the appropriate gems for you.
Regarding which version of Ruby - you decide, based on the Min Requirements specified. For redmine 3.2.0, it requires either ruby 1.9.3, 2.0.0, 2.1, 2.2. (cf. https://redmine.org/projects/redmine/wiki/RedmineInstall#Requirements)
thanks ben blanco but I have another problem :S
-
Added by Pedro Vioto almost 10 years ago
I changed the old question to the new one to not create another topic ...
RE: solved
-
Added by Ben Blanco almost 10 years ago
Hi Pedro,
Hadn't seen your reply, sorry.
Did you sort this problem out, or you still facing it?
If unresolved, please check the rights on the /files folder, ls -al /var/www/redmine/files/
I'm saying this as possibly when copying over the files from your old server to new one, they were copied under a different user than the one redmine is running as, and hence redmine app can't read/access them...
Thx