New for Bluemix, receiving a host taken error for a new application

I am new to Bluemix as part of building an application by following these steps:

  • Log in to Bluemix with a Bluemix account.
  • Open the Catalog menu.
  • In the Runtimes section, select Liberty for Java.
  • In the "Application" field, enter the name of your application [name entered]
  • Click "Create"

I get the error message below:

BXNUI2032E: An error occurred while accessing Cloud Foundry to create the resource. Resource: routes. Cloud Foundry message: "Host taken: vTest". See the Troubleshooting sections in the IBM Bluemix documentation to check the status of the service, view troubleshooting information, or get help getting help.

Thanks at Advance

+7
websphere-liberty ibm-cloud
source share
4 answers

Bluemix will automatically create the host name for your application based on what you type in the name of the application. The above error means that someone else has this hostname for their application.

The error message is likely to look like this.

cf push watson-um-demo Creating app watson-um-demo in org jbsloyer@us.ibm.com / space demos as jbsloyer@us.ibm.com... OK Creating route watson-um-demo.mybluemix.net... FAILED Server error, status code: 400, error code: 210003, message: The host is taken: watson-um-demo 

To solve this problem, you can change the host name.

Bluemix assigns your application with the domain mybluemix.net if you are in the US-South region. If you work in the EU-GB region, Bluemix will designate your application with the domain eu-gb.mybluemix.net . You can also display your own domains in your application. See https://www.ng.bluemix.net/docs/#manageapps/index-gentopic3.html#domain .

+16
source share

The guys in front of me have already given you the answer you were looking for, I just want to share some good practices, if you don't mind. Although this may not work for you, it has worked like a charm to me in recent months.

What is best for me is to run each application name with my initials and application name. My colleagues do the same, just adding their name at the end.

Therefore, whenever I create a new application, I follow my little scheme in my head:

  • Initials Ahead
  • spaces just underline
  • Descriptive and easy to remember, so I can quickly type it on the command line
+4
source share

The host you enter will be part of your URL until mybluemix.net (yours will be vTest.mybluemix.net), so it should be globally unique for all Bluemix. Try adding some random characters to the end of your host.

+3
source share

Do not underline :) In reality, you most likely will not want to use mybluemix.net for the client facing the URL / Route. Just replace the name that you originally used that is already in use by someone else with a compatible one, see Valid Hostnames Limitations . It really doesn't matter which one.

Then make yourself a DNS provider, for example Domainmaster.com register your own domain. For example: www.mygreatsite.com

Then modify Bluemix to use your own custom domain that you created. Read the documentation on Creating and Using a Custom Domain Using Bluemix.

You can configure other settings in your DNS, such as Cname , AAAA records, and A. Records. Work with your DNS provider to find out which ones you want to change.

+1
source share

All Articles