---
name: codeengine-ts-subscription-cos-createfails
title: Why is my `subscription cos create` command failing?
description: 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.
last-updated: 2022-11-21
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why is my `subscription cos create` command failing?
{: #ts-cossub-create}
{: troubleshoot}

You cannot create an IBM Cloud Object Storage subscription through the CLI by using the 
[**`ibmcloud ce subscription cos create`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-subscription-cos-create) command and you receive an error that mentions `failed` in the message.
{: tsSymptoms}

If you cannot create an Object Storage subscription, determine whether one of the following cases is true,
{: tsCauses}

1. The name of your subscription is not unique within the project. 

2. 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`.

3. A timeout occurs. Error message mentions `Getting COS event subscription status timed out`

Try one of these solutions.
{: tsResolve}

1. Run the [`ibmcloud ce sub cos list`](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-subscription-cos-list) command 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 the [`ibmcloud ce sub cos delete --name SUB_NAME`](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-subscription-cos-delete) to delete the old subscription. The name of the subscription must be unique within your project.

2. Run [**`ibmcloud ce app list`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-list) or [**`ibmcloud ce job list`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-list) to make sure that your destination app or job exists. If the app or job doesn't exist, create the application with the [**`ibmcloud ce app create`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-create) command or create the job with the [**`ibmcloud ce job create`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-create) command.

3. Try the solutions in [Why does my Object Storage subscription never become ready?](https://cloud.ibm.com/docs/codeengine?topic=codeengine-ts-cossub-notready&format=markdown)