Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

IBM Cloud platform×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Cannot deploy an EAR file to BlueMix... cf push "incorrect usage"

010000328P gravatar image
Question by msmiths  (157) | May 13, 2014 at 10:29 AM devops-serviceserrordeployjazzhubibmcloudear

I am attempting to build an EAR file and then automatically deploy it into BlueMix... but I am getting an "incorrect usage" error. I have tried various flavors of command when defining the "BlueMix script" attribute on the deployer, as follows:

  • cf push ${CF_APP}
  • cf push ${CF_APP} -p TestJazzApplication.ear
  • cf push ${CF_APP} -p build
  • cf push ${CF_APP} -p build/TestJazzApplication.ear

The logs for the deployment phase simply state:

FAILED Incorrect Usage.

This does not provide enough information to let me know what is wrong with the cf push command.

Chris Jenkins

People who like this

  0   Show 3
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700075FV8 gravatar image ChrisRees (1124) ♦   May 13, 2014 at 10:34 AM 0
Share

The logs come to us from running the cf commands, so that's really all the output we can give to the user. Can you run the commands locally?

010000328P gravatar image msmiths (157)   May 13, 2014 at 10:44 AM 0
Share

Hmmm... so it appears that the problem is that the ${CF_APP} variable is not being expanded. When I modify the command to:

cf push TestJazzApplication

the deployment works fine. Does anyone know why this variable is not being expanded?

2700079XX8 gravatar image Skondab (1)   Jul 15, 2014 at 12:27 PM 0
Share

CF_APP value is taken from the manifest.yml file. Can you check if you defined a value in the manifest file for all variables.

2 answers

  • Sort: 
270006SSFM gravatar image
Accepted answer

Answer by Chris Jenkins (1590) | May 13, 2014 at 10:57 AM

The reason that the ${CF_APP} does not work is that you need to make sure that you populate it.

alt text

The BlueMix app name field gets uses when there is no manifest.yml file. It is also what populates the CF_APP variable in the script. Clicking the help icon (marked in red) add the description that you can see. If your app name is BlueMixTest and you input that in the app name field, the script should run as:

cf push BlueMixTest

Comment
Chris Compton
ostlund
JohnPape

People who like this

  3   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
010000328P gravatar image msmiths (157)   May 13, 2014 at 11:18 AM 0
Share

That works... many thanks.

I can't help thinking that some additional information could be provided to the end user to help them diagnose the problem and rectify it.

060001QHD8 gravatar image

Answer by KrisKobylinski (5283) | May 13, 2014 at 10:35 AM

Check http://docs.gopivotal.com/pivotalcf/devguide/installcf/whats-new-v6.html

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

Not able to deploy to bluemix from dev ops 3 Answers

Deployment failure: "jq: error: Cannot iterate over null" 2 Answers

Promoting code between spaces 1 Answer

Not able push latest changes written in Node.js to Bluemix platform from DevOps 1 Answer

Unable to create a new Bluemix deployable project on IBM DevOps services 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges