I finally got time to play and install OpenShift Origin as my Personal PaaS. The installation went very smoothly except for a couple of hiccups. I’m using two CentOS VMs – one for broker and one for node. Apart from default cartridges for PHP, Python and NodeJS, I have also installed support for Clojure and Haskell apps. So I can have the nice workflow of git-push-to-deploy for my apps!
Now for the hiccups during installation:
After installing every app I created got into a redirect loop to getting_started.html. This was fixed by adding these lines:
# Set headers for the forward
RequestHeader set X-Forwarded-Proto "http"
RequestHeader set X-Forwarded-Port "80"
# Access the OpenShift mod_rewrite router
to *:80 vhost in /etc/httpd/conf.d/000001_openshift_origin_frontend_vhost.conf
I wasn’t able to create a new app using (e.g. clojure cartridge) manifest. This was fixed by installing unzip – which was apparently missing on the node server.
The Clojure/Java app won’t start and keeps throwing class not found exceptions Apparently Node CentOS VM was using gcj (WTF!!??). Installing OpenJDK fixed this.
I couldn’t delete any apps either using rhc or using oo-admin-* scripts. This fails with message : “Can only supply discovery data if direct_addressing is enabled”
This was fixed by adding the line
direct_addressing = 1
Hope this helps if someone is facing similar issues during installation.