IBM i setup/config

RAILSSVR Won't Start​

If you've issued the RAILSSVR command and the application isn't responding from the browser then look into the following for debugging purposes.

First, see whether the RAILSSVR (aka Thin) is running in WRKACTJOB as shown below.  If it is running then you should check the <app name>/logs/*.log files for more information.


If the RAILSSVR isn't in WRKACTJOB then do a WRKSPLF <user> where user is the profile that originally issued the RAILSSVR command and review job logs.


The following are scenarios we've come across that might aid in determining issues with starting a Rails server.


If you don't have OpenSSL installed, or have the wrong version, then you may get this error in the RAILSSVR job log:

/PowerRuby/prV2R0M0/lib/ruby/2.0.0/powerpc-aix5.3.0.0/ Not enough space[loadquery failed] (LoadError)

OpenSSL comes with the no cost IBM licensed program 5733SC1 *BASE and option 1.  PowerRuby is currently only supported on V7R1 and V7R1 has the correct version of OpenSSL.    If you are getting this error on V7R1 then it is possible an old version of OpenSSL was migrated during an upgrade from a previous version of the OS (i.e. V6R1).  See below to learn the version of OpenSSL that is installed on your machine.

OpenSSH version 4.7p1
OpenSSL version 0.9.7d

OpenSSH version 4.7p1
OpenSSL version 0.9.7d

OpenSSH version 4.7p1
OpenSSL version 0.9.8m
You can determine your OpenSSL version using CALL QP2TERM and then issuing openssl version in the QP2TERM shell.  It would look similar to the following:
$ openssl version
OpenSSL 0.9.8m 25 Feb 2010

If the above command errors out with "openssl: command not found" then you don't have OpenSSL installed or it is installed incorrectly or it isn't in the PATH.  Look in folder /QIBM/ProdData/SC1 to see if OpenSSL exists and if it doesn't you will need to install it.