Article ID: 112478, created on Oct 10, 2011, last review on Aug 12, 2014

  • Applies to:
  • H-Sphere


Latest Ruby on Rails was installed and configured according to H-Sphere documentation, but when trying to enable this resource in H-Sphere the following error appears in logs:

Could not initialize /hsphere/local/home/user/


This is caused by the changed syntax of rails in recent releases of Ruby on Rails while H-Sphere still uses the syntax of rails < 3.0.3 when creating an application.


If you are installing the latest ruby, gems and rails packages it is needed to edit /hsphere/shared/scripts/

if ! /hsphere/shared/bin/sudo -H -u $USER rails -q $OPT "$USERHOME/ruby/$DOMAIN" > /dev/null 2>&1; then


if ! /hsphere/shared/bin/sudo -H -u $USER rails new "$USERHOME/ruby/$DOMAIN" -q $OPT > /dev/null 2>&1; then

Make sure to delete /hsphere/local/home/user/ruby/ before trying to enable Ruby on Rails on this domain again, see this KB article for details

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF