2008
10.12

I recently underwent the painful process of installing IBM Websphere 6.1 on Ubuntu Hardy Heron (8.0.4). there was one issue in particular that I wanted to share involving the process of creating a Websphere profile in order to start a server. This involves running the manageprofiles.sh file with something similar to the following:


sudo bash -x manageprofiles.sh -create -profileName
-profilePath /opt/IBM/WebSphere/AppServer/profiles/
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default/

This fails on Ubuntu with the following error message:


INSTCONFFAILED: The profile could not be created. For more information, consult the
/opt/IBM/WebSphere/AppServer/logs/manageprofiles/AppSrv01_create.log file

Tracing through this logfile yields the following warning:


/opt/IBM/WebSphere/AppServer/profileTemplates/default/action/generateKeysForSingleProfile.ant:25:
wsadmin task failed with return code :-1

which involves running a shell script called wsadmin.sh which in turn calls this Ant script. It’s not immediately obvious, but the reason this fails is because under Ubuntu the default shell is dash rather than bash. There are two solutions to this

1. Unlink /bin/sh


sudo unlink /bin/sh
sudo ln -s /bin/bash /bin/sh

2. Reconfigure via dpkg


sudo dpkg-reconfigure dash

14 comments so far

Add Your Comment
  1. I ran into the same issue, googled for the problem and found your page. Thanks for sharing!

  2. Excellent work. Many thanks for this info !

  3. Thank’s a lot man, you saved my day! I wouldn’t ever figure that out. I wish IBM provided good problem detection and reporting in their tools. /Jakub

  4. Thank you! This helped!!!

  5. Thanks a lot! You must be genius :-). That helped perfectly well.

  6. Thanks, that worked.

  7. Thank you so much for this helpful tip.

  8. Thanks! That saved me a lot of effort.

  9. Thanks a lot - very helpful and time saving!

  10. Thanks! You’re a lifesaver. Don’t forget to tell people to link back to dash (if that’s what they want):

    sudo unlink /bin/sh
    sudo ln -s /bin/dash /bin/sh

  11. That was really helpful. Thanks a lot. Not just WAS, seems this is an issue in all similar IBM products that require a profile creation script, e.g Process Server.

  12. You have just saved my day! Thanks.

  13. Thanks you, this helped alot!

  14. Amazing. It worked.
    Thank you very much! You are a real EXPERT!