Why is my subscription cos create command failing?
You cannot create an IBM Cloud Object Storage subscription through the CLI by using the
ibmcloud ce subscription cos create command and you receive an error that mentions failed in the message.
If you cannot create an Object Storage subscription, determine whether one of the following cases is true,
-
The name of your subscription is not unique within the project.
-
The application or job reference doesn't exist. An error with text similar to the following message appears:
Failed to retrieve the application. View available applications by running ibmcloud ce app list. -
A timeout occurs. Error message mentions
Getting COS event subscription status timed out
Try one of these solutions.
-
Run the
ibmcloud ce sub cos listcommand to list all defined Object Storage subscriptions and check whether a subscription with the same name exists. If a subscription with the same name exists, run theibmcloud ce sub cos delete --name SUB_NAMEto delete the old subscription. The name of the subscription must be unique within your project. -
Run
ibmcloud ce app listoribmcloud ce job listto make sure that your destination app or job exists. If the app or job doesn't exist, create the application with theibmcloud ce app createcommand or create the job with theibmcloud ce job createcommand. -
Try the solutions in Why does my Object Storage subscription never become ready?