203 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Interesting - java.lang.NoClassDefFoundError: com.ibm.xylem.utils.ErrorHandlerProvider
Wed, Nov 22nd 2017 5
IBM Cloud Private and Kubernetes - Coping files
Wed, Nov 22nd 2017 18
IBM Java and Health Centrer - There's More
Tue, Nov 21st 2017 33
IBM DB2, Red Hat Enterprise Linux and the IBM Mainframe
Thu, Nov 16th 2017 69
Telnet, my Telnet - Or macOS High Sierra, what have you done ?
Tue, Nov 14th 2017 40
Vagrant and VMware - all the Vs together - or not
Tue, Nov 14th 2017 34
IBM Cloud Private - Tinkering with Vagrant
Mon, Nov 13th 2017 32
Top 10
IBM DB2, Red Hat Enterprise Linux and the IBM Mainframe
Thu, Nov 16th 2017 69
Hmmm, macOS Sierra and XQuartz and X11
Thu, Oct 27th 2016 45
Telnet, my Telnet - Or macOS High Sierra, what have you done ?
Tue, Nov 14th 2017 40
Executing external Python/Jython scripts from within WebSphere Application Server's wsadmin tool
Thu, Feb 27th 2014 38
Transport Layer Security (TLS) 1.2 and SoapUI
Fri, Jun 12th 2015 37
Vagrant and VMware - all the Vs together - or not
Tue, Nov 14th 2017 34
IBM Java and Health Centrer - There's More
Tue, Nov 21st 2017 33
IBM Cloud Private - Tinkering with Vagrant
Mon, Nov 13th 2017 32
Securing the Database - IBM DB2 10.5 and Transport Layer Security 1.2
Wed, Jun 3rd 2015 31
Hmmmm, HTTP404 and SRVE0190E seen with IBM HTTP Server and WebSphere Application Server
Fri, Nov 14th 2014 28


Cloud Foundry and Ruby on IBM Bluemix - Learning, learning, learning - keep those lessons learning
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

Following a previous post: -


I'm running through this: -


and was hitting an issue with the version of Ruby specified within some of the lesson material.

This is what I saw: -

cf push

Using manifest file /Users/davidhay/Downloads/LFS132x/Scaling/web_app/manifest.yml

Creating app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
OK

Creating route web-app-pseudopoetic-para.eu-gb.mybluemix.net...
OK

Binding web-app-pseudopoetic-para.eu-gb.mybluemix.net to web-app...
OK

Uploading web-app...
Uploading app files from: /Users/davidhay/Downloads/LFS132x/Scaling/web_app
Uploading 1.4K, 5 files
Done uploading               
OK

Starting app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
Creating container
Successfully created container
Downloading app package...
Downloaded app package (1.4K)
Staging...
-----> Download go 1.9.1
-----> Running go build supply
-----> Ruby Buildpack version 1.7.6
-----> Supplying Ruby
-----> Installing bundler 1.15.4
       Download [https://buildpacks.cloudfoundry.org/dependencies/bundler/bundler-1.15.4-e083af6d.tgz]
       **ERROR** Unable to determine ruby: Unable to determine ruby version: Running ruby: No Matching versions, ruby = 2.4.0 not found in this buildpack
Failed to compile droplet: Failed to run all supply scripts: exit status 15
Exit status 223
Staging failed: STG: Exited with status 223
Stopping instance 2c697834-9c31-40d3-8bfc-49211038f0ab
Destroying container
Successfully destroyed container

FAILED
Error restarting application: BuildpackCompileFailed

TIP: use 'cf logs web-app --recent' for more information

Looking at the Gemfile we have this: -

source "https://rubygems.org"
ruby "2.4.0"

gem "sinatra"
gem "thin"
gem "puma"


Supposedly IBM Bluemix ( now IBM Cloud ) supports Ruby 2.4.0, as per this: -



and this: -



Thankfully this brought light to my darkness: -


I altered my Gemfile: -

source "https://rubygems.org"
ruby "~> 2.4.0"

gem "sinatra"
gem "thin"
gem "puma"


and then tried again: -

cf push

Using manifest file /Users/davidhay/Downloads/LFS132x/Scaling/web_app/manifest.yml

Updating app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
OK

Uploading web-app...
Uploading app files from: /Users/davidhay/Downloads/LFS132x/Scaling/web_app
Uploading 1.4K, 5 files
Done uploading               
OK

Starting app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
Creating container
Successfully created container
Downloading app package...
Downloaded app package (1.4K)
Staging...
-----> Download go 1.9.1
-----> Running go build supply
-----> Ruby Buildpack version 1.7.6
-----> Supplying Ruby
-----> Installing bundler 1.15.4
       Download [https://buildpacks.cloudfoundry.org/dependencies/bundler/bundler-1.15.4-e083af6d.tgz]
-----> Installing ruby 2.4.2
       Download [https://buildpacks.cloudfoundry.org/dependencies/ruby/ruby-2.4.2-linux-x64-3810a760.tgz]
-----> Installing dependencies using bundler 1.15.4
       Running: bundle install --without development:test --jobs=4 --retry=4 --path /tmp/contents845865966/deps/0/vendor_bundle --binstubs /tmp/contents845865966/deps/0/binstubs --deployment
       Fetching gem metadata from https://rubygems.org/.........
       Fetching version metadata from https://rubygems.org/.
       Using bundler 1.15.4
       Fetching daemons 1.2.4
       Fetching eventmachine 1.2.3
       Fetching puma 3.8.2
       Installing daemons 1.2.4
       Installing eventmachine 1.2.3 with native extensions
       Installing puma 3.8.2 with native extensions
       Fetching rack 1.6.5
       Fetching tilt 2.0.7
       Installing tilt 2.0.7
       Installing rack 1.6.5
       Fetching rack-protection 1.5.3
       Fetching thin 1.7.0
       Installing thin 1.7.0 with native extensions
       Installing rack-protection 1.5.3
       Fetching sinatra 1.4.8
       Installing sinatra 1.4.8
       Bundle complete! 3 Gemfile dependencies, 9 gems now installed.
       Gems in the groups development and test were not installed.
       Bundled gems are installed into /tmp/contents845865966/deps/0/vendor_bundle.
       Cleaning up the bundler cache.
-----> Creating runtime environment
-----> Saving vendor_bundle to cache
-----> Running go build finalize
-----> Finalizing Ruby
-----> Copy binaries to app/bin directory
Uploading droplet, build artifacts cache...
Exit status 0
Staging complete
Uploading build artifacts cache...
Uploading droplet...
Uploaded build artifacts cache (4.2M)
Uploaded droplet (22.4M)
Uploading complete
Stopping instance 214ab50c-5785-4260-9f19-a9c99323a7f5
Destroying container
Successfully destroyed container

1 of 1 instances running

App started


OK

App web-app was started using this command `rackup -p $PORT`

Showing health and status for app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
OK

requested state: started
instances: 1/1
usage: 32M x 1 instances
urls: web-app-pseudopoetic-para.eu-gb.mybluemix.net
last uploaded: Thu Nov 9 18:54:33 UTC 2017
stack: cflinuxfs2
buildpack: https://github.com/cloudfoundry/ruby-buildpack.git

     state     since                    cpu    memory     disk        details
#0   running   2017-11-09 06:56:11 PM   0.0%   0 of 32M   0 of 256M


cf apps

Getting apps in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...
OK

name      requested state   instances   memory   disk   urls
web-app   started           1/1         32M      256M   web-app-pseudopoetic-para.eu-gb.mybluemix.net

YAY!


---------------------
http://portal2portal.blogspot.com/2017/11/cloud-foundry-and-ruby-on-ibm-bluemix.html
Nov 09, 2017
17 hits



Recent Blog Posts
5
Interesting - java.lang.NoClassDefFoundError: com.ibm.xylem.utils.ErrorHandlerProvider
Wed, Nov 22nd 2017 9:56p   Dave Hay
During an installation of IBM BPM Advanced 8.5.5 onto Red Hat Enterprise Linux 7.4 ( which, I know, is an unsupported combination ), I had an interesting experience.This was the installation command: -/opt/ibm/InstallationManager/eclipse/tools/imcl -input /mnt/ResponseFiles/installBPM855.rsp -acceptLicenseand this was the result: -ERROR: java.lang.NoClassDefFoundError: com.ibm.xylem.utils.ErrorHandlerProviderjava.lang.NoClassDefFoundError: com.ibm.xylem.utils.ErrorHandlerProvidercom.ibm.oti.vm.V
18
IBM Cloud Private and Kubernetes - Coping files
Wed, Nov 22nd 2017 2:59p   Dave Hay
Whilst I have used docker cp numerous times to copy files from a running container to the host ( or vice versa ), I had the need to do the same with a container running in a Pod orchestrated by Kubernetes.The syntax for Docker is: -docker cp :/from-path /to-pathe.g.docker cp 97ee4c182ece:/opt/ibm/db2/V11.1/java/db2jcc4.jar .For containers running in Pods via Kubernetes, it's a little different.The first trick is to inspect the Pod: -kubectl get podNAME RE
33
IBM Java and Health Centrer - There's More
Tue, Nov 21st 2017 5:23p   Dave Hay
Following an earlier post: -IBM WebSphere Application Server - Tuning and Monitoring and Tuning - IBM Health CenterI've been guiding a colleague in the use of HC, outside of WebSphere Application Server (WAS).This time I wanted to show how HC could be used to monitor a Plain Ole Java Object (POJO), specifically a Java class.Here's one I prepared earlier: -HelloWorld.javapublic class HelloWorld{ public static void main(String[] args) { while (true) { System.out.println("Hello, World");
69
IBM DB2, Red Hat Enterprise Linux and the IBM Mainframe
Thu, Nov 16th 2017 5:54p   Dave Hay
I'm running through the process to deploy IBM Business Process Manager (BPM) 8.6 onto an IBM mainframe ….This is something that I've done a number of times before, since I first joined the (then) IBM Software Services for WebSphere team in late 2012.In essence, although the underlying hardware is the IBM z platform ( also known as LinuxOne in this guise ), I'm installing BPM etc. onto Red Hat Enterprise Linux (RHEL) and Linux is …. Linux.So the approach to install BPM, and it's dependenc
40
Telnet, my Telnet - Or macOS High Sierra, what have you done ?
Tue, Nov 14th 2017 2:04p   Dave Hay
This harks back to a VERY old post: -Testing Times with Telnetwhich was penned back in 2010.Since I've upgraded to macOS High Sierra, I've lost the FTP and Telnet clients.Ordinarily that wouldn't be a problem but ….Telnet is often useful for testing ports e.g. telnet localhost 9443.Thankfully, we have a solution …. Netcat.Q: Checking TCP/UDP ports!nc -vnzu 127.0.0.1 9080found 0 associationsfound 1 connections: 1: flags=82 outif (null) src 127.0.0.1 port 59595 dst 127.0.0.1 port 9080 r
34
Vagrant and VMware - all the Vs together - or not
Tue, Nov 14th 2017 12:49p   Dave Hay
Further to my last: -IBM Cloud Private - Tinkering with VagrantI'm now looking at the options to use VMware Workstation ( this is on Linux, rather than my default home of macOS ) instead of VirtualBox.Following this: -https://www.vagrantup.com/docs/vmware/installation.htmlI've installed the appropriate plugin: -vagrant plugin install vagrant-vmware-workstationInstalling the 'vagrant-vmware-workstation' plugin. This can take a few minutes...Fetching: vagrant-share-1.1.9.gem (100%)Fetching: va
32
IBM Cloud Private - Tinkering with Vagrant
Mon, Nov 13th 2017 3:11p   Dave Hay
So I've been on a slow boat to IBM Cloud Private, over the past few weeks, and am continuing to self-enable in my "spare" time ( my formal enablement starts next week ). Looking at this: -Source: IBM Cloud Private 2.1.0 - Architectureit was clear that I really needed a few boxes onto which to actually install ICP.Whilst it is possible to run everything on one box ( as per this IBM Cloud Private - My first foray ), I thought that I really should do things properly.So, starting with Beast, whic
17
Cloud Foundry and Ruby on IBM Bluemix - Learning, learning, learning - keep those lessons learning
Thu, Nov 9th 2017 7:06p   Dave Hay
Following a previous post: -Hmmm, Segmentation Fault 11 with Cloud FoundryI'm running through this: -LFS132x Introduction to Cloud Foundry and Cloud Native Software Architectureand was hitting an issue with the version of Ruby specified within some of the lesson material.This is what I saw: -cf pushUsing manifest file /Users/davidhay/Downloads/LFS132x/Scaling/web_app/manifest.ymlCreating app web-app in org david_hay@uk.ibm.com / space david_hay as david_hay@uk.ibm.com...OKCreating route web-app
11
Hmmm, Segmentation Fault 11 with Cloud Foundry
Thu, Nov 9th 2017 5:15p   Dave Hay
Whilst following this online course: -LFS132x Introduction to Cloud Foundry and Cloud Native Software ArchitectureI was tinkering ( man, I love that word ) with Cloud Foundry ( CF ).Now it's been a while and I've been through a macOS upgrade from Sierra to High Sierra ( wonder if there's a clue there ? ).So this time around, I'm seeing "Segmentation Fault: 11" : -cf versionSegmentation fault: 11cf loginSegmentation fault: 11which cf/usr/local/bin/cfls -al `which cf`-rwxr-xr-x 1 root whee
10
Installing IBM DB2 on Linux using IBM Installation Manager - Fun and Games
Wed, Nov 8th 2017 3:49p   Dave Hay
I've installed DB2 a million (!) times over the past 17 years, since I joined what was then IBM Software Group.However, I've almost always installed it using the DB2 installation binaries and response files.For a long time now, it's been packaged with IBM BPM, and other products, and thus suitable to be installed using IBM Installation Manager (IIM).So now I'm trying that ….One thing of which to be aware; DB2 is typically only ever installed as root, which means ( to me, at least ) that BP




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition