Roy Hernandez's picture

Can anyone provide assistance with upgrading the version of Tracks from 2.2 to 2.2.2?

I have attempted this upgrade multiple times without success.

Per the official website the steps are below:

    1.  Back up your existing database and installation of Tracks
    2.  Install Tracks 2.2.2 in a new directory
    3.  Copy over the configuration from your previous Tracks installation. If using SQLite3, copy the old database into      the new Tracks 2.2.2 directory.
    4.  Update site.yml in the /config directory and set the secret_token to a large random string. See also the comment      in site.yml.tmpl.
    5.  Check that you have all dependencies installed:

bundle install --without development test


    6.  Precompile your static assets (css, javascript, etc.) by running

bundle exec rake assets:precompile


    7.  Run bundle exec rails server -e production inside your Tracks 2.2.2 directory to start up Tracks 2.2.2
    8.  Once you are happy that everything is working well, delete your old Tracks directory.

source: https://github.com/TracksApp/tracks/blob/v2.2.2/doc/upgrading.textile

I downloaded the zip files from:
https://github.com/TracksApp/tracks/archive/v2.2.2.zip
https://github.com/TracksApp/tracks/archive/v2.2.1.zip

There are no errors during the precompiling.  The issues occur when I visit the site and immediately receive error 500 pages.

I am I missing a configuration step which isn't mentioned?

Any recommendations are greatly appreciated.

Forum: 
Roy Hernandez's picture

Hopefully this helps somebody out there.

1.  cd to /home directory

2.  type:  

wget https://github.com/TracksApp/tracks/archive/v2.2.2.zip

3.  type:

unzip v2.2.2.zip

4.  type:

cp -Rv tracks-2.2.2 /var/www/

5.  type:

cp /var/www/tracks/config/site.yml /var/www/tracks-2.2.2/config/

6.  type:

cp /var/www/tracks/config/database.yml /var/www/tracks-2.2.2/config/

7.  type:

cd /var/www/tracks-2.2.2/

8.  type:

bundle install --without development test

9.  type:

bundle exec rake assets:precompile

10.  type:

chown -R www-data:www-data /var/www/tracks-2.2.2/log

11.  type:

chown -R www-data:www-data /var/www/tracks-2.2.2/tmp

12.  type:

mv /var/www/tracks /var/www/tracks_old

13.  type:

mv /var/www/tracks-2.2.2 /var/www/tracks

Access Tracks Site from a web browser, below the login box there will be a footer depicting the 2.2.2 version

After verification, don't forget to delete your old tracks directory by typing:

rm -Rfv /var/www/tracks_old
Jeremy Davis's picture

Thanks so much for posting this. No doubt this will be useful for others! :)

Roy Hernandez's picture

1.  cd to /home directory

2. type:

wget https://github.com/TracksApp/tracks/archive/v2.2.3.zip

3.  type:

unzip v2.2.3.zip

4.  type:

cp -Rv tracks-2.2.3 /var/www/

5.  type:

cp /var/www/tracks/config/site.yml /var/www/tracks-2.2.3/config/

6.  type:

cp /var/www/tracks/config/database.yml /var/www/tracks-2.2.3/config/

7.  type:

cd /var/www/tracks-2.2.3/

8.  type:

bundle install --without development test

9.  type:

bundle exec rake assets:precompile

10. type:

chown -R www-data:www-data /var/www/tracks-2.2.3/log

11. type:

chown -R www-data:www-data /var/www/tracks-2.2.3/tmp

12. type:

mv /var/www/tracks /var/www/tracks_old

13.  type:

mv /var/www/tracks-2.2.3 /var/www/tracks

14.  Access Tracks Site from a web browser, below the login box there will be a footer depicting the 2.2.3 version

Enjoy version 2.2.3

After verification of new upgrade, don't forget to delete your old tracks directory by typing:

rm -Rfv /var/www/tracks_old

Add new comment