Monday, June 1, 2015

IBM MobileFirst Platform Foundation (Worklight) - nodename nor servname provided or not known (some ip)

Hey there,

Due to Mac@IBM initiative, I've moved my primary workstation to 2014 MacBook Pro (15') with an OSX Yosemite 10.10.3.

Being a Mobile Architect in IBM Mobile Center of Competency, I also do a lot of work with IBM MobileFirst Platform Foundation (aka Worklight).
In one of my current projects (developed with IBM MFPF) I got the error in the title when building an iPad environment.
Looking in /etc/hosts and /private/etc/hosts the mappings were correct. The solution was to change the host name using the scutil command:
scutil --set HostName "localhost" 

Happy IMF coding! :)