Wondering if there is an update on when a Ruby update is expected at WebFaction. I am developing a couple of sites using 1.9.2 at my office, and constantly have syntax errors going backwards to 1.8.7 at WebFaction. So, any time estimates, or is there a recommended way of using rvm etc. to update our own apps? thanks, Peter asked 03 Jan '12, 13:19 peterbailey |
Okay, this should do it:
Hope that helps! answered 06 Jan '12, 02:27 ryans ♦♦ ryans, I am following your directions for this and got most of the way through. Ran into trouble on the nginx installation with the rvm wrappers - here is the console log... Any Suggestions? [mbradnam@web215 src]$ $HOME/webapps/paper_caddy/gems/gems/passenger-*/bin/passenger-install-nginx-module --prefix=$HOME/webapps/paper_caddy/nginx --nginx-source-dir=$HOME/src/nginx-1.0.11 --extra-configure-flags='none' --auto Welcome to the Phusion Passenger Nginx module installer, v3.0.9. This installer will guide you through the entire installation process. It shouldn't take more than 5 minutes in total. Here's what you can expect from the installation process: 1. This installer will compile and install Nginx with Passenger support. 2. You'll learn how to configure Passenger in Nginx. 3. You'll learn how to deploy a Ruby on Rails application. Don't worry if anything goes wrong. This installer will advise you on how to solve any problems. Press Enter to continue, or Ctrl-C to abort. -------------------------------------------- Checking for required software... * GNU C++ compiler... found at /usr/bin/g++ * The 'make' tool... found at /usr/bin/make * A download tool like 'wget' or 'curl'... found at /usr/bin/wget * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found Your RVM wrapper scripts are too old. Please update them first by running 'rvm update --head && rvm reload && rvm repair all'. [mbradnam@web215 src]$ rvm update --head && rvm reload && rvm repair all ERROR: rvm update has been removed. See 'rvm get' and rvm 'rubygems' CLI API instead RVM reloaded! Repairing symlinks... Symlinks repaired Repairing archives... Archives repaired Regenerating environments... Regenerating environment file for 'ruby-1.9.2-p290@~' Regenerating environment file for 'ruby-1.8.7-p352' Regenerating environment file for 'ruby-1.9.2-p290' Regenerating environment file for 'ruby-1.9.2-p290@bradapp' Environments regenerated Regenerating all wrappers... Regenerating wrappers for ruby-1.8.7-p352 Regenerating wrappers for ruby-1.8.7-p352@global Regenerating wrappers for ruby-1.9.2-p290 Regenerating wrappers for ruby-1.9.2-p290@~ Regenerating wrappers for ruby-1.9.2-p290@bradapp Regenerating wrappers for ruby-1.9.2-p290@global Wrappers regenerated [mbradnam@web215 src]$ $HOME/webapps/paper_caddy/gems/gems/passenger-*/bin/passenger-install-nginx-module --prefix=$HOME/webapps/paper_caddy/nginx --nginx-source-dir=$HOME/src/nginx-1.0.11 --extra-configure-flags='none' --auto Welcome to the Phusion Passenger Nginx module installer, v3.0.9. This installer will guide you through the entire installation process. It shouldn't take more than 5 minutes in total. Here's what you can expect from the installation process: 1. This installer will compile and install Nginx with Passenger support. 2. You'll learn how to configure Passenger in Nginx. 3. You'll learn how to deploy a Ruby on Rails application. Don't worry if anything goes wrong. This installer will advise you on how to solve any problems. Press Enter to continue, or Ctrl-C to abort. -------------------------------------------- Checking for required software... * GNU C++ compiler... found at /usr/bin/g++ * The 'make' tool... found at /usr/bin/make * A download tool like 'wget' or 'curl'... found at /usr/bin/wget * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found Your RVM wrapper scripts are too old. Please update them first by running 'rvm update --head && rvm reload && rvm repair all'. [mbradnam@web215 src]$ rvm update --head && rvm reload && rvm repair allERROR: rvm update has been removed. See 'rvm get' and rvm 'rubygems' CLI API insteadRVM reloaded! Repairing symlinks... Symlinks repaired Repairing archives... Archives repaired Regenerating environments... Regenerating environment file for 'ruby-1.9.2-p290@~' Regenerating environment file for 'ruby-1.9.2-p290@global' Regenerating environment file for 'ruby-1.8.7-p352@global' Regenerating environment file for 'ruby-1.8.7-p352' Regenerating environment file for 'ruby-1.9.2-p290' Regenerating environment file for 'ruby-1.9.2-p290@bradapp' Environments regenerated Regenerating all wrappers... Regenerating wrappers for ruby-1.8.7-p352 Regenerating wrappers for ruby-1.8.7-p352@global Regenerating wrappers for ruby-1.9.2-p290 Regenerating wrappers for ruby-1.9.2-p290@~ Regenerating wrappers for ruby-1.9.2-p290@bradapp Regenerating wrappers for ruby-1.9.2-p290@global Wrappers regenerated [mbradnam@web215 src]$ $HOME/webapps/paper_caddy/gems/gems/passenger-*/bin/passenger-install-nginx-module --prefix=$HOME/webapps/paper_caddy/nginx --nginx-source-dir=$HOME/src/nginx-1.0.11 --extra-configure-flags='none' --auto Welcome to the Phusion Passenger Nginx module installer, v3.0.9. This installer will guide you through the entire installation process. It shouldn't take more than 5 minutes in total. Here's what you can expect from the installation process: 1. This installer will compile and install Nginx with Passenger support. 2. You'll learn how to configure Passenger in Nginx. 3. You'll learn how to deploy a Ruby on Rails application. Don't worry if anything goes wrong. This installer will advise you on how to solve any problems. Press Enter to continue, or Ctrl-C to abort. -------------------------------------------- Checking for required software... * GNU C++ compiler... found at /usr/bin/g++ * The 'make' tool... found at /usr/bin/make * A download tool like 'wget' or 'curl'... found at /usr/bin/wget * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found Your RVM wrapper scripts are too old. Please update them first by running 'rvm update --head && rvm reload && rvm repair all'.
(20 Jan '12, 09:00)
Peter_Bailey
Please try running
(20 Jan '12, 13:37)
seanf
In my case $LOAD_PATH.unshift rvm_lib_path was interpreted as an empty shell variable and led to ".unshift". If this happens, you need to manually insert it later.
(01 Feb '12, 15:10)
Jan Limpens
Thanks for the script. I ran it successfully and am now getting a "502 – Bad Gateway" error. Any ideas why?
(20 Feb '12, 22:09)
closedbracket
It sounds like either (A) you used an incorrect port and not the one assigned by the Control Panel for your original Passenger application, or (B) your application is not running even though it is installed, and you just need to start it.
(20 Feb '12, 22:31)
ryans ♦♦
|
Helpful webfaction engineers - rvm get head worked correctly. That let me finish going thru the above script line by line, and I got to the end without error. However, I think I configured something incorrectly - when I run bin/restart I get an error on my port saying the address is already in use e.g. nginx: [emerg] bind() Looked in the nginx conf file - it had the wrong root (was pointing to old $PROJ_NAME in new $APP_NAME). e.g. should be: .../webapps/paper_caddy/paper-caddy/public. I modified this file and tried to restart again - same problem. Could you take a look please... answered 24 Jan '12, 08:06 Peter_Bailey You can search for and manually kill old PIDs by the open port number. Replace the 12345 at the end with your app's port number,
In this case the PID is 8070, you would kill the pid like this,
This should force the application on that port to close and the new app to restart without a problem.
(24 Jan '12, 17:23)
johns
|
Running How to avoid it? answered 22 Sep '15, 00:31 totumfacky Please submit a ticket detailing your issue here: https://my.webfaction.com/open-support-ticket And we can try to figure out why that may be happening for you.
(22 Sep '15, 05:02)
NickR ♦♦
Done, ticket is HGQ-790182
(22 Sep '15, 15:19)
totumfacky
|