Discussion:
Upgrading a bitnami install of Tracks - keeping data
Olaf TNSB
2012-06-25 04:03:27 UTC
Permalink
Hi All,

Can someone please help me upgrade from Tracks 2.0 on a Virtual
Machine (ubuntu) to 2.1 Native on my OSX machine AND keep my data?

I can get the new tracks install working (I'm using the Bitnami
install) - but - I can't seem to work out how to keep my current
database.

I have looked at the following pages without a whole lot of success...
http://getontracks.org/manual/upgrading.html
http://bitnami.org/forums/forums/tracks/topics/upgrading-virtual-installing-and-keeping-data


I have tried dumping the db down on my vm and then reloading on the new server

$ mysql -u root -p bitnami_tracks < tracks_backup.sql

but when I restart Tracks I can't log in - my username/password fails
(they are the same on both the VM and native install).

I have tried updating my database:

$ bundle exec rake db:migrate RAILS_ENV=production

but all I get is the following error:

rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires
rake 0.8.7. Using bundle exec may solve this.

I suspect that there is something happening with the bitnami
rails/rake install, but I'm a bit of a OSX and rails beginner (much
more happy in GNU/Linux) so I don't really know where to start.


Can anyone help? I understand that this might be more of a bitnami
issue and I've posted the same over on their help pages:
http://answers.bitnami.org/questions/5571/tracks-help-upgrade-from-tracks-20-virtual-to-21-native-osx-with-data


Thanks!
henry74
2012-06-25 05:44:54 UTC
Permalink
Based on the error you likely have rake installed at the system level so
it's causing problems when the Gemfile specifies a different rake version.
I'd recommend uninstalling rake at the system level and then re-running
bundle install --path vendor after you've switched into your tracks
directory. Then try the bundle exec rake command again.

On Mon, Jun 25, 2012 at 12:03 AM, Olaf TNSB
Post by Olaf TNSB
Hi All,
Can someone please help me upgrade from Tracks 2.0 on a Virtual
Machine (ubuntu) to 2.1 Native on my OSX machine AND keep my data?
I can get the new tracks install working (I'm using the Bitnami
install) - but - I can't seem to work out how to keep my current
database.
I have looked at the following pages without a whole lot of success...
http://getontracks.org/manual/upgrading.html
http://bitnami.org/forums/forums/tracks/topics/upgrading-virtual-installing-and-keeping-data
I have tried dumping the db down on my vm and then reloading on the new server
$ mysql -u root -p bitnami_tracks < tracks_backup.sql
but when I restart Tracks I can't log in - my username/password fails
(they are the same on both the VM and native install).
$ bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires
rake 0.8.7. Using bundle exec may solve this.
I suspect that there is something happening with the bitnami
rails/rake install, but I'm a bit of a OSX and rails beginner (much
more happy in GNU/Linux) so I don't really know where to start.
Can anyone help? I understand that this might be more of a bitnami
http://answers.bitnami.org/questions/5571/tracks-help-upgrade-from-tracks-20-virtual-to-21-native-osx-with-data
Thanks!
_______________________________________________
Tracks-discuss mailing list
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
Olaf TNSB
2012-06-25 07:42:23 UTC
Permalink
Post by henry74
Based on the error you likely have rake installed at the system level so
it's causing problems when the Gemfile specifies a different rake version.
I'd recommend uninstalling rake at the system level and then re-running
bundle install --path vendor after you've switched into your tracks
directory. Then try the bundle exec rake command again.

Thanks! It seems I *do* have another install of rake on my machine. Now to
work out how it get there and how to remove...
henry74
2012-06-25 08:27:26 UTC
Permalink
You may have installed a different rails application.

Do something like sudo gem uninstall rake or gem uninstall rake to remove
it from the system level.

On a tangential note, I suggest you look into installing rvm...
Post by henry74
Post by henry74
Based on the error you likely have rake installed at the system level so
it's causing problems when the Gemfile specifies a different rake version.
I'd recommend uninstalling rake at the system level and then re-running
bundle install --path vendor after you've switched into your tracks
directory. Then try the bundle exec rake command again.
Thanks! It seems I *do* have another install of rake on my machine. Now to
work out how it get there and how to remove...
Olaf TNSB
2012-06-27 02:36:51 UTC
Permalink
Thanks @henry74.

I still couldn't get this to work. I could run the bundle command and log
in. Then I had to change my password and that resulted in a whole lot of
Ruby errors in the browser.

I've had to give up working on this for now. :( Hope to get some time in
the next few weeks to come back to it

Can I put a request into the devs to look into backup/restore
functionality???
Post by henry74
You may have installed a different rails application.
Do something like sudo gem uninstall rake or gem uninstall rake to remove
it from the system level.
On a tangential note, I suggest you look into installing rvm...
Post by henry74
Based on the error you likely have rake installed at the system level
so it's causing problems when the Gemfile specifies a different rake
version. I'd recommend uninstalling rake at the system level and then
re-running bundle install --path vendor after you've switched into your
tracks directory. Then try the bundle exec rake command again.
Thanks! It seems I *do* have another install of rake on my machine. Now
to work out how it get there and how to remove...
henry74
2012-06-27 02:51:17 UTC
Permalink
Did you update your database using the rake command?

I suggest upgrading the database on your bitnami insurance first, then
moving it over to osx
Post by Olaf TNSB
I still couldn't get this to work. I could run the bundle command and log
in. Then I had to change my password and that resulted in a whole lot of
Ruby errors in the browser.
I've had to give up working on this for now. :( Hope to get some time in
the next few weeks to come back to it
Can I put a request into the devs to look into backup/restore
functionality???
Post by henry74
You may have installed a different rails application.
Do something like sudo gem uninstall rake or gem uninstall rake to remove
it from the system level.
On a tangential note, I suggest you look into installing rvm...
Post by henry74
Based on the error you likely have rake installed at the system level
so it's causing problems when the Gemfile specifies a different rake
version. I'd recommend uninstalling rake at the system level and then
re-running bundle install --path vendor after you've switched into your
tracks directory. Then try the bundle exec rake command again.
Thanks! It seems I *do* have another install of rake on my machine. Now
to work out how it get there and how to remove...
Olaf TNSB
2012-06-27 03:25:18 UTC
Permalink
:-) that was going to be my next attempt.
Post by henry74
Did you update your database using the rake command?
I suggest upgrading the database on your bitnami insurance first, then
moving it over to osx
Post by Olaf TNSB
I still couldn't get this to work. I could run the bundle command and log
in. Then I had to change my password and that resulted in a whole lot of
Ruby errors in the browser.
I've had to give up working on this for now. :( Hope to get some time in
the next few weeks to come back to it
Can I put a request into the devs to look into backup/restore
functionality???
Post by henry74
You may have installed a different rails application.
Do something like sudo gem uninstall rake or gem uninstall rake to
remove it from the system level.
On a tangential note, I suggest you look into installing rvm...
Post by henry74
Based on the error you likely have rake installed at the system level
so it's causing problems when the Gemfile specifies a different rake
version. I'd recommend uninstalling rake at the system level and then
re-running bundle install --path vendor after you've switched into your
tracks directory. Then try the bundle exec rake command again.
Thanks! It seems I *do* have another install of rake on my machine. Now
to work out how it get there and how to remove...
Reinier Balt
2012-06-25 07:14:12 UTC
Permalink
Post by Olaf TNSB
I have tried dumping the db down on my vm and then reloading on the new server
$ mysql -u root -p bitnami_tracks < tracks_backup.sql
but when I restart Tracks I can't log in - my username/password fails
(they
Post by Olaf TNSB
are the same on both the VM and native install).
This could mean that you did not copy the salt value from
/path/to/tracks/config/site.yml to your native install
Post by Olaf TNSB
$ bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake
0.8.7.
Post by Olaf TNSB
Using bundle exec may solve this.
Try running

bundle exec rake db:migate RAILS_ENV=production

bundle will select the right gems to use

Reinier
Olaf TNSB
2012-06-25 07:38:14 UTC
Permalink
Hi Reinier,
Post by Reinier Balt
Post by Olaf TNSB
but when I restart Tracks I can't log in - my username/password fails
(they
Post by Olaf TNSB
are the same on both the VM and native install).
This could mean that you did not copy the salt value from
/path/to/tracks/config/site.yml to your native install
Ah. Thanks. Will try that.
Post by Reinier Balt
Post by Olaf TNSB
$ bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake
0.8.7.
Post by Olaf TNSB
Using bundle exec may solve this.
Try running
bundle exec rake db:migate RAILS_ENV=production
bundle will select the right gems to use
See my original comment...I did try 'bundle' but it barfed.

I'm going to try henry74's suggestion of removing the other rake install.
Loading...