Problem for updading Redmine 1.3.2 to last one - Ubuntu 12.04 LTS
Added by Patrice Cau over 10 years ago
Hello everybody,
I'm French (so sorry for my english if i make mistakes).
I've setup a long time ago a Redmine in a Virtual Machine (using VirtualBox) from the .deb in Ubuntu 12.04 LTS. The version of Redmine was 1.3.2. This version works fine but I want to update this version to the last one. I haven't install any plugin.
I'm a newbie in Ruby/RoR but not in Unix. Because I use Snapshots in my virtual Machine, I can go back to the version 1.3.2.
I try to update and solve problems with information found in the web but I'm not sure It's the best way.
- Firt, I do this one :
sudo add-apt-repository ppa:ondrej/redmine
sudo apt-get update
sudo apt-get install redmine redmine-mysql
- Because I have some error with fastercsv during the install :
sudo gem install fastercsv
sudo apt-get install redmine redmine-mysql
Intall work fine
- When I go to my Redmine Website, I have this error :
Error message: There was an error while trying to write to Gemfile.lock. It is likely that you need to allow write permissions for the file at path: /usr/share/redmine/Gemfile.lock (Bundler::InstallError)
So I do :
$ cd /usr/share/redmine
redmine$ sudo bundle install
redmine$ sudo service apache2 restart
- When I go again to my Redmine Website, I have this error (not the last) :
Error message: Permission denied - /etc/redmine/default/session.yml
So I add in :sudo vim /etc/apache2/mods-available/passenger.load
with :
PassengerDefaultUser www-data
- When I go again to my Redmine Website, I have this error :
Error message: no such file to load -- fastercsv
So, I do:sudo apt-get install ruby1.9.3
And I select the last version intalled :sudo update-alternatives --config ruby
sudo update-alternatives --config gem
- When I go again to my Redmine Website, I have this error :
Error message: cannot load such file -- bundler
So, I do :cd :/usr/share/redmine
sudo gem install bundler
sudo service apache2 restart
- When I go again to my Redmine Website, I have and 500 error (Internal error). When I do to the log files in /var/log/redmine/production :
Internal error ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
So, I do this modifications mysql -> mysql2 in :sudo /etc/redmine/database.yml
- When I go again to my Redmine Website, I have now :
Error message: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load -- mysql2)
So, I do :Sudo gem install activerecord-mysql2-adapter
Sudo gem install mysql2
sudo gem install bundler
sudo service apache2 restart
But this one don't fix the problem.
Can you help me ? As said, I'm sure I haven't do the best.
ruby -v
:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
rails -v
Rails 3.2.16
gem list
*** LOCAL GEMS *** activerecord-mysql2-adapter (0.0.3) bundler (1.5.3) mysql2 (0.3.15, 0.3.11, 0.2.7)
Don't hesitate to ask me if you want the aswer of a specific command
Thanks