Comments for Mostly Forgotten https://smajnr.net Just another WordPress site Fri, 29 Nov 2019 05:10:14 +0000 hourly 1 https://wordpress.org/?v=5.3.1 Comment on Host Tracks v2.2.2 for free with OpenShift by Matt Haley https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-45 Tue, 19 Nov 2013 18:27:38 +0000 http://smajnr.net/?p=348#comment-45 Good to know it’s working for you now.

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-44 Tue, 19 Nov 2013 09:44:41 +0000 http://smajnr.net/?p=348#comment-44 Wow! I went there again this morning and there it was – http://tracks-irvken.rhcloud.com/login magic!

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-43 Mon, 18 Nov 2013 23:50:35 +0000 http://smajnr.net/?p=348#comment-43 The first commit actually does get the tables created, but it’s still not working. I’m not sure where to run the bundle exec command within the directory structure (or if I need to if I’ve got the tables), when it does run I just get errors – http://pastebin.com/fv1fcU08
I’m not sure I’ll get any further, but thanks for your help

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by Matt Haley https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-42 Mon, 18 Nov 2013 18:15:15 +0000 http://smajnr.net/?p=348#comment-42 Okay, this is useful.
ActiveRecord::StatementInvalid (Mysql2::Error: Table 'tracks.sessions' doesn't exist: SHOW FULL FIELDS FROM `sessions`):
lib/login_system.rb:173:in `store_location'
lib/login_system.rb:113:in `login_required'
lib/login_system.rb:80:in `login_or_feed_token_required'

It looks like the database creation is failing… and I see now above that you had already mentioned the tables weren’t being created. My apologies for not recognizing that earlier.
Verify the deploy scripts are executable by running:
$ git update-index --chmod=+x .openshift/action_hooks/build
$ git update-index --chmod=+x .openshift/action_hooks/deploy
$ git update-index --chmod=+x .openshift/action_hooks/post_deploy
$ git update-index --chmod=+x .openshift/action_hooks/post_start_ruby-1.9
$ git update-index --chmod=+x .openshift/action_hooks/post_stop_ruby-1.9
$ git update-index --chmod=+x .openshift/action_hooks/pre_build
$ git update-index --chmod=+x .openshift/action_hooks/pre_start_ruby-1.9
$ git update-index --chmod=+x .openshift/action_hooks/pre_stop_ruby-1.9
$ git commit

The do another commit and push. If that still doesn’t create the database, you could try running a bundle exec rake db:migrate RAILS_ENV=”production” by hand after logging into the server via SSH.
If that still doesn’t work, then perhaps they have changed something at openshift. I haven’t deployed a rails app since I wrote this original post, so I’m kind of at a loss at this point otherwise.

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-41 Sat, 16 Nov 2013 20:54:00 +0000 http://smajnr.net/?p=348#comment-41 http://pastebin.com/4NJ4e7KB
That’s the site.yml followed by the production.log file
Thanks for taking a look.
Btw why would you use your bitbucket repo rather than tracks on github

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by Matt Haley https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-40 Fri, 15 Nov 2013 17:52:43 +0000 http://smajnr.net/?p=348#comment-40 Can you post your site.yml too?

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-39 Wed, 13 Nov 2013 16:40:08 +0000 http://smajnr.net/?p=348#comment-39 Thanks for replying, getting tracks running again is my holy grail, I never seem to be able to set the server stack up properly, so this looked like a great method.
You’re right there are no errors reported at any point in the process – I’m using Ubuntu 13.04
The pastebin for the push is at http://pastebin.com/j0sFp0uP

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by Matt Haley https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-38 Mon, 11 Nov 2013 19:59:58 +0000 http://smajnr.net/?p=348#comment-38 I haven’t attempted to deploy tracks to OpenShift since May when I wrote this post. Without any spare gears, I can’t verify whether or not these instructions still work without modification.
You haven’t, however, listed anything about what (if any) steps aren’t working properly.
No mention of what operating system you’re deploying from (it matters, see the remarks about Windows above).
At the least you could post the output of the git push command (NOT HERE, but to a site like pastebin.com).

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-37 Mon, 11 Nov 2013 16:45:09 +0000 http://smajnr.net/?p=348#comment-37 I’m still installing this about 5 times a day, buthave no idea where I’m going wrong
There doesn’t appaer to be any tables in the database though
mysql> show DATABASES;
+——————–+
| Database |
+——————–+
| information_schema |
| mysql |
| tracks |
+——————–+
3 rows in set (0.03 sec)
mysql> use tracks;
Database changed
mysql> show TABLES;
Empty set (0.01 sec)
mysql>
At what point are these filled in

]]>
Comment on Host Tracks v2.2.2 for free with OpenShift by sean https://smajnr.net/2013/05/host-tracks-v2-2-2-for-free-with-openshift.html#comment-36 Mon, 04 Nov 2013 10:53:57 +0000 http://smajnr.net/?p=348#comment-36 I have problems with ruby, any idea what I may have done wrong and/or not done

]]>