Forge deploy fails with unknown error

Hey guys,

since this morning after I updated forge cli to version 1.3.3 I can’t deploy my app. It fails with an unknown error.

{
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-05-25T07:41:19.542Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Release CaaS manifest",
            "createdAt": "2021-05-25T07:41:19.543Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Release CaaS manifest",
            "createdAt": "2021-05-25T07:41:20.112Z",
            "message": "Deployment failed with unknown error",
            "level": "ERROR"
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Release CaaS manifest",
            "createdAt": "2021-05-25T07:41:20.113Z",
            "newStatus": "FAILED"
          }

I found an old post (How to debug failed Forge deploy?) and tried the fixes mentioned there, but none seem to work.
Since it was an internal error last time, I thought maybe it is one this time too?

Any help is greatly appreciated.

Thank you!

1 Like

Digging into this, I’m hitting an error trying to install forge/cli@1.3.3

And it looks like others might be having trouble after upgrading to 1.3.3 as well: Error: Cannot read property 'type' of undefined - forge/cli v1.3.3. Maybe related?

Just to confirm, you were able to successfully install 1.3.3 yourself first?

yes I was able to install it. Though on the first try i got an error, I then uninstalled forge/cli completely and installed it again. This time without errors

Can you please paste your full error log and app id? That information will help us trace the specific failed deployment much faster than trying to look it up from your user account.

1 Like

I’ve sent you the App ID and the full error log via DM.

I have not been available for the past few days. In general, App ID is safe data that you can post to this thread and you can sanitise deployment logs. I have asked somebody from the team to have a look into this further.

App ID is : ari:cloud:ecosystem::app/e6aacd53-fd29-4278-bbb8-fc334fbbaab3
And the error log. (I removed all Tokens and Signatures)
error_log.docx (49.5 KB)

Hi @FilippoMatraxia,

Could you DM me your app manifest file? And can you also check if the app gets updated despite the deployment failure error message? I’d like to verify whether the deployment logs are misreporting errors.

We believe this was being caused by an internal issue and have tried a patch. Can you try again and let us know if the deployment continues to fail?

Sorry for the late reply, I wasn’t in office the last two days.
Unfortunately it doesn’t seem to work. I even tried to update to @forge/cli 1.4.0 but no success.
I saw that some people had problems with the Google Maps API, which I’m also using, so I tried to remove it, but this doesn’t seem to fix the problem either.

Just dropping the link here to the google apis question @FilippoMatraxia since there has been an update from our devs today: Failed to integrate with googleapis - #3 by kchan

Thanks! I had the project working with the API (I used forge/api and not the npm package and that worked). A colleague of mine is still using it in one of his projects, and as far as I know and that seems to work.

As of now even without using the API I can’t deploy.

Hi @FilippoMatraxia, if your deploys are failing without the API, this is likely a different issue.

Could you please create a new CDAC post with the output of forge deploy --verbose when it fails?

This will help us to diagnose the issue.

You may also want to try disabling snapshots via the manifest file. See documentation for how to do this: https://developer.atlassian.com/platform/forge/manifest-reference/#runtime

What do you mean by CDAC? :sweat_smile:

1 Like

Community.Developer.Atlassian.Com :slight_smile:

2 Likes

Opened a new post: Forge deploy unknown error

2 Likes

Hello Kchan,

I have the same problem when deploying to production, I leave the result that comes out with forge deploy -verbose when the unknown error occurs.

When I deploy to the development environment I have no problem.

Running forge lint...
No issues found.

▶️  GraphQL https://api.atlassian.com/graphql
Query: 
          query forge_cli_getMigrationKeys($id: ID!, $key: String!) {
            app(id: $id) {
              environmentByKey(key: $key) {
                id
                versions(first: 1) {
                  edges {
                    node {
                      isLatest
                      migrationKeys {
                        jira
                        confluence
                      }
                    }
                  }
                }
              }
              marketplaceApp {
                appKey
              }
            }
          }
     
Variables: {
  "id": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
  "key": "production"
}
◀️  GraphQL
Request ID: 177f038410711909
Result: {
  "app": {
    "environmentByKey": {
      "id": "c5e55c8c-3f5b-4279-8376-9c32d743727e",
      "versions": {
        "edges": [
          {
            "node": {
              "isLatest": true,
              "migrationKeys": null
            }
          }
        ]
      }
    },
    "marketplaceApp": null
  }
}
▶️  GraphQL https://api.atlassian.com/graphql
Query: 
      query forge_cli_getApplicationInstallations($id: ID!) {
        app(id: $id) {
          environments {
            key
            installations {
              id
              installationContext,
              version {
                isLatest
              }
            }
          }
        }
      }
    
Variables: {
  "id": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba"
}
◀️  GraphQL
Request ID: 6d1d9a34ac5ab1b7
Result: {
  "app": {
    "environments": [
      {
        "key": "production",
        "installations": []
      },
      {
        "key": "staging",
        "installations": []
      },
      {
        "key": "default",
        "installations": [
          {
            "id": "1a2b0311-e361-4602-a830-606334c5b04a",
            "installationContext": "ari:cloud:jira::site/2f93db24-ed49-4061-b032-14c62d80de2d",
            "version": {
              "isLatest": true
            }
          },
          {
            "id": "f5a16881-1014-498a-a478-a692ec8a30a1",
            "installationContext": "ari:cloud:identity::site/2f93db24-ed49-4061-b032-14c62d80de2d",
            "version": {
              "isLatest": true
            }
          }
        ]
      }
    ]
  }
}
▶️  GraphQL https://api.atlassian.com/graphql
Query: 
      query forge_cli_getHostnameForTenantContexts($cloudIds: [ID!]!) {
        tenantContexts(cloudIds: $cloudIds) {
          hostName
        }
      }
    
Variables: {
  "cloudIds": [
    "2f93db24-ed49-4061-b032-14c62d80de2d"
  ]
}
◀️  GraphQL
Request ID: e4a22cc0c6274a76
Result: {
  "tenantContexts": [
    {
      "hostName": "jira-develop.atlassian.net"
    }
  ]
}
Deploying your app to production...

ℹ Packaging app files
  Packaging bundled files
  Packaging the manifest.yml file from /Users/josefranciscomateocarrasco/Documents/Proyectos/Jira Cloud Apps/Jira Complement/jmc-fields-info/manifest.yml
  File added to archive: index.js
  File added to archive: index.js.map
  File added to archive: manifest.yml
  Archive created: /var/folders/d3/vsky7g555sj63xghc8k4x6s00000gn/T/tmp-42085r5Tf5Du4kBh.zip
ℹ Uploading app
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
      mutation forge_cli_getDeploymentUrl($input: CreateAppDeploymentUrlInput!) {
        createAppDeploymentUrl(input: $input) {
          success
          errors {
            message
            extensions {
              errorType
            }
          }
          deploymentUrl
        }
      }
    
Variables: {
  "input": {
    "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba"
  }
}
  ◀️  GraphQL
Request ID: fb63ade54c935ebd
Result: {
  "createAppDeploymentUrl": {
    "success": true,
    "errors": null,
    "deploymentUrl": "https://deployment-artifacts-372253104996-us-west-2.s3.us-west-2.amazonaws.com/b339893b-a3df-4bd5-8978-08dcee22f4ba_a8d83fd3-abf8-4120-bfcf-3dd2676eb23a?Content-Type=application%2Fzip&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAVNLADTNSFZSDVUCB%2F20211027%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211027T190010Z&X-Amz-Expires=300&X-Amz-Security-Token=FwoGZXIvYXdzEAwaDCPju5QW%2BGrK0ZzCfiLIAcmWaS9Susa96JQ45xmkwEGCw3j0btYp4rMEuot0xWMictMsAzxlhXNYRIgNKUvzgLCdmboa4XkEBWy9TW1Rb%2FtQC44rGX4WRSJD1ayQu0Wu89cwJFpv7IwZHuPYZtsx%2F1h1lMUAjAU8J7GGb9v4hMnUj9t1nWKy8UoGnYzy3YeMLNBjzKQ4G2JEfgG1OHQKxUonCPWPq5wU9n60z2J%2FJUmd6kdrvbOzIRW3dGMBhG8vnLnGhAQa5YP4iYHuTrmto0C%2FuDqXXnjyKJW85osGMi2QvdFnabv5rZFg9JOxdwoHmc5kF%2B2QIrLnGHViERSLjeUcOPHZWY2VyBVwyYI%3D&X-Amz-Signature=b3b995a1a7e1dd384f0789449138a359ddcfaab46e8e66c89df53c84d91403f0&X-Amz-SignedHeaders=host"
  }
}
  Uploading archive to https://deployment-artifacts-372253104996-us-west-2.s3.us-west-2.amazonaws.com/b339893b-a3df-4bd5-8978-08dcee22f4ba_a8d83fd3-abf8-4120-bfcf-3dd2676eb23a?Content-Type=application%2Fzip&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAVNLADTNSFZSDVUCB%2F20211027%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211027T190010Z&X-Amz-Expires=300&X-Amz-Security-Token=FwoGZXIvYXdzEAwaDCPju5QW%2BGrK0ZzCfiLIAcmWaS9Susa96JQ45xmkwEGCw3j0btYp4rMEuot0xWMictMsAzxlhXNYRIgNKUvzgLCdmboa4XkEBWy9TW1Rb%2FtQC44rGX4WRSJD1ayQu0Wu89cwJFpv7IwZHuPYZtsx%2F1h1lMUAjAU8J7GGb9v4hMnUj9t1nWKy8UoGnYzy3YeMLNBjzKQ4G2JEfgG1OHQKxUonCPWPq5wU9n60z2J%2FJUmd6kdrvbOzIRW3dGMBhG8vnLnGhAQa5YP4iYHuTrmto0C%2FuDqXXnjyKJW85osGMi2QvdFnabv5rZFg9JOxdwoHmc5kF%2B2QIrLnGHViERSLjeUcOPHZWY2VyBVwyYI%3D&X-Amz-Signature=b3b995a1a7e1dd384f0789449138a359ddcfaab46e8e66c89df53c84d91403f0&X-Amz-SignedHeaders=host...
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
      mutation forge_cli_getHostedResourcesUploadUrls($input: CreateHostedResourceUploadUrlInput!) {
        createHostedResourceUploadUrl(input: $input) {
          success
          errors {
            message
            extensions {
              errorType
            }
          }
          preSignedUrls {
            uploadUrl
            uploadFormData
          }
          uploadId
        }
      }
  
Variables: {
  "input": {
    "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
    "environmentKey": "production",
    "resourceKeys": [
      "main"
    ]
  }
}
  ◀️  GraphQL
Request ID: 3511f02fc405c05f
Result: {
  "createHostedResourceUploadUrl": {
    "success": true,
    "errors": null,
    "preSignedUrls": [
      {
        "uploadUrl": "https://s3.us-west-2.amazonaws.com/forge-cdn-tmp-prod",
        "uploadFormData": {
          "key": "b339893b-a3df-4bd5-8978-08dcee22f4ba/c5e55c8c-3f5b-4279-8376-9c32d743727e/ed3f09a0-77a5-4ac2-aedb-b1fa20ec5322/main.zip",
          "bucket": "forge-cdn-tmp-prod",
          "X-Amz-Algorithm": "AWS4-HMAC-SHA256",
          "X-Amz-Credential": "ASIAVNLADTNSFYLY2EXX/20211027/us-west-2/s3/aws4_request",
          "X-Amz-Date": "20211027T190018Z",
          "X-Amz-Security-Token": "FwoGZXIvYXdzEAwaDCEHsS1LQu3P/YRzliLIATS0SE8YU+t/Cre9+K3YydQZw8PHVyBMyT2cuIHfGoLOLEK9kS9evin6dFKVI2b167MCAhxZzQSmwibBUqj8zWK3DoXjlJwZ/oVEOey7EIs8KcANeD5U+Uv85EvcmZX+nejk/hvFk5inzptgJb5gU40XTcnw3OxdiKB5jqMSnUMsE3ANuph/1xrRG8JJLzZUzvH3wCuHVL1EPY8PPm4TDDNq4UYkZCbFLmWR+wmcqPk6SA12iTx8r5sa2f1BNHPbYnivt+t1pq3oKIe65osGMi0EPPc9k0X2fosTqk7oB2+RZickwTpuQRUo05+jjTJSAP0xDCbtRlBBG4roVr8=",
          "Policy": "eyJleHBpcmF0aW9uIjoiMjAyMS0xMC0yN1QxOTowNToxOFoiLCJjb25kaXRpb25zIjpbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMCw1MDAwMDAwMF0sWyJlcSIsIiRDb250ZW50LVR5cGUiLCJhcHBsaWNhdGlvbi96aXAiXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsImIzMzk4OTNiLWEzZGYtNGJkNS04OTc4LTA4ZGNlZTIyZjRiYS9jNWU1NWM4Yy0zZjViLTQyNzktODM3Ni05YzMyZDc0MzcyN2UvZWQzZjA5YTAtNzdhNS00YWMyLWFlZGItYjFmYTIwZWM1MzIyL21haW4iXSxbImVxIiwiJGFjbCIsImJ1Y2tldC1vd25lci1mdWxsLWNvbnRyb2wiXSx7ImtleSI6ImIzMzk4OTNiLWEzZGYtNGJkNS04OTc4LTA4ZGNlZTIyZjRiYS9jNWU1NWM4Yy0zZjViLTQyNzktODM3Ni05YzMyZDc0MzcyN2UvZWQzZjA5YTAtNzdhNS00YWMyLWFlZGItYjFmYTIwZWM1MzIyL21haW4uemlwIn0seyJidWNrZXQiOiJmb3JnZS1jZG4tdG1wLXByb2QifSx7IlgtQW16LUFsZ29yaXRobSI6IkFXUzQtSE1BQy1TSEEyNTYifSx7IlgtQW16LUNyZWRlbnRpYWwiOiJBU0lBVk5MQURUTlNGWUxZMkVYWC8yMDIxMTAyNy91cy13ZXN0LTIvczMvYXdzNF9yZXF1ZXN0In0seyJYLUFtei1EYXRlIjoiMjAyMTEwMjdUMTkwMDE4WiJ9LHsiWC1BbXotU2VjdXJpdHktVG9rZW4iOiJGd29HWlhJdllYZHpFQXdhRENFSHNTMUxRdTNQL1lSemxpTElBVFMwU0U4WVUrdC9DcmU5K0szWXlkUVp3OFBIVnlCTXlUMmN1SUhmR29MT0xFSzlrUzlldmluNmRGS1ZJMmIxNjdNQ0FoeFp6UVNtd2liQlVxajh6V0szRG9YamxKd1ovb1ZFT2V5N0VJczhLY0FOZUQ1VStVdjg1RXZjbVpYK25lamsvaHZGazVpbnpwdGdKYjVnVTQwWFRjbnczT3hkaUtCNWpxTVNuVU1zRTNBTnVwaC8xeHJSRzhKSkx6WlV6dkgzd0N1SFZMMUVQWThQUG00VERETnE0VVlrWkNiRkxtV1Ird21jcVBrNlNBMTJpVHg4cjVzYTJmMUJOSFBiWW5pdnQrdDFwcTNvS0llNjVvc0dNaTBFUFBjOWswWDJmb3NUcWs3b0IyK1JaaWNrd1RwdVFSVW8wNStqalRKU0FQMHhEQ2J0UmxCQkc0cm9Wcjg9In1dfQ==",
          "X-Amz-Signature": "972f7204082121f6315a69d35abd155f2c878942c63f8df36ea124832dadce87"
        }
      }
    ],
    "uploadId": "ed3f09a0-77a5-4ac2-aedb-b1fa20ec5322"
  }
}
  Uploading resources
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
      mutation forge_cli_deployApplication($input: CreateAppDeploymentInput!) {
        createAppDeployment(input: $input) {
          success
          errors {
            message
            extensions {
              errorType
            }
          }
          deployment {
            id
          }
        }
      }
    
Variables: {
  "input": {
    "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
    "environmentKey": "production",
    "artifactUrl": "https://deployment-artifacts-372253104996-us-west-2.s3.us-west-2.amazonaws.com/b339893b-a3df-4bd5-8978-08dcee22f4ba_a8d83fd3-abf8-4120-bfcf-3dd2676eb23a?Content-Type=application%2Fzip&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAVNLADTNSFZSDVUCB%2F20211027%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211027T190010Z&X-Amz-Expires=300&X-Amz-Security-Token=FwoGZXIvYXdzEAwaDCPju5QW%2BGrK0ZzCfiLIAcmWaS9Susa96JQ45xmkwEGCw3j0btYp4rMEuot0xWMictMsAzxlhXNYRIgNKUvzgLCdmboa4XkEBWy9TW1Rb%2FtQC44rGX4WRSJD1ayQu0Wu89cwJFpv7IwZHuPYZtsx%2F1h1lMUAjAU8J7GGb9v4hMnUj9t1nWKy8UoGnYzy3YeMLNBjzKQ4G2JEfgG1OHQKxUonCPWPq5wU9n60z2J%2FJUmd6kdrvbOzIRW3dGMBhG8vnLnGhAQa5YP4iYHuTrmto0C%2FuDqXXnjyKJW85osGMi2QvdFnabv5rZFg9JOxdwoHmc5kF%2B2QIrLnGHViERSLjeUcOPHZWY2VyBVwyYI%3D&X-Amz-Signature=b3b995a1a7e1dd384f0789449138a359ddcfaab46e8e66c89df53c84d91403f0&X-Amz-SignedHeaders=host",
    "hostedResourceUploadId": "ed3f09a0-77a5-4ac2-aedb-b1fa20ec5322"
  }
}
  ◀️  GraphQL
Request ID: db1590677b465819
Result: {
  "createAppDeployment": {
    "success": true,
    "errors": null,
    "deployment": {
      "id": "10"
    }
  }
}
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
        query forge_cli_getApplicationDeploymentStatus($appId: ID!, $environmentKey: String!, $id: ID!) {
          appDeployment(appId: $appId, environmentKey: $environmentKey, id: $id) {
            status
            errorDetails {
              code
              message
              fields
            }
            stages {
              description
              events {
                __typename
                stepName
                createdAt
                ...on AppDeploymentLogEvent {
                  message
                  level
                }
                ...on AppDeploymentSnapshotLogEvent {
                  message
                  level
                }
                ... on AppDeploymentTransitionEvent {
                  newStatus
                }
              }
            }
          }
        }
      
Variables: {
  "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
  "environmentKey": "production",
  "id": "10"
}
  ◀️  GraphQL
Request ID: 39af6c4b50a69f66
Result: {
  "appDeployment": {
    "status": "IN_PROGRESS",
    "errorDetails": null,
    "stages": [
      {
        "description": "Validating manifest",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.216Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.442Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.443Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.445Z",
            "message": "Upload URL is valid",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.670Z",
            "message": "Found manifest file",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.672Z",
            "message": "Manifest is a valid YAML",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.673Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.675Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.788Z",
            "message": "Manifest passed common validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.789Z",
            "message": "Manifest doesn't have forbidden modules",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.790Z",
            "message": "Manifest passed function names validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.791Z",
            "message": "Manifest passed cleanup function validation",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.792Z",
            "newStatus": "DONE"
          }
        ]
      },
      {
        "description": "Snapshotting functions",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Generate snapshot step",
            "createdAt": "2021-10-27T19:00:23.794Z",
            "newStatus": "STARTED"
          }
        ]
      },
      {
        "description": "Deploying to environment",
        "events": []
      }
    ]
  }
}
ℹ Validating manifest
  Upload URL is valid
  Found manifest file
  Manifest is a valid YAML
  Manifest passed common validations
  Manifest doesn't have forbidden modules
  Manifest passed function names validations
  Manifest passed cleanup function validation
ℹ Snapshotting functions
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
        query forge_cli_getApplicationDeploymentStatus($appId: ID!, $environmentKey: String!, $id: ID!) {
          appDeployment(appId: $appId, environmentKey: $environmentKey, id: $id) {
            status
            errorDetails {
              code
              message
              fields
            }
            stages {
              description
              events {
                __typename
                stepName
                createdAt
                ...on AppDeploymentLogEvent {
                  message
                  level
                }
                ...on AppDeploymentSnapshotLogEvent {
                  message
                  level
                }
                ... on AppDeploymentTransitionEvent {
                  newStatus
                }
              }
            }
          }
        }
      
Variables: {
  "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
  "environmentKey": "production",
  "id": "10"
}
  ◀️  GraphQL
Request ID: 10cbbadd4bfa76e8
Result: {
  "appDeployment": {
    "status": "IN_PROGRESS",
    "errorDetails": null,
    "stages": [
      {
        "description": "Validating manifest",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.216Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.442Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.443Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.445Z",
            "message": "Upload URL is valid",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.670Z",
            "message": "Found manifest file",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.672Z",
            "message": "Manifest is a valid YAML",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.673Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.675Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.788Z",
            "message": "Manifest passed common validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.789Z",
            "message": "Manifest doesn't have forbidden modules",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.790Z",
            "message": "Manifest passed function names validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.791Z",
            "message": "Manifest passed cleanup function validation",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.792Z",
            "newStatus": "DONE"
          }
        ]
      },
      {
        "description": "Snapshotting functions",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Generate snapshot step",
            "createdAt": "2021-10-27T19:00:23.794Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Generate snapshot step",
            "createdAt": "2021-10-27T19:00:24.665Z",
            "newStatus": "DONE"
          }
        ]
      },
      {
        "description": "Deploying to environment",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate hosted resource upload step",
            "createdAt": "2021-10-27T19:00:24.673Z",
            "newStatus": "STARTED"
          }
        ]
      }
    ]
  }
}
ℹ Deploying to environment
  ▶️  GraphQL https://api.atlassian.com/graphql
Query: 
        query forge_cli_getApplicationDeploymentStatus($appId: ID!, $environmentKey: String!, $id: ID!) {
          appDeployment(appId: $appId, environmentKey: $environmentKey, id: $id) {
            status
            errorDetails {
              code
              message
              fields
            }
            stages {
              description
              events {
                __typename
                stepName
                createdAt
                ...on AppDeploymentLogEvent {
                  message
                  level
                }
                ...on AppDeploymentSnapshotLogEvent {
                  message
                  level
                }
                ... on AppDeploymentTransitionEvent {
                  newStatus
                }
              }
            }
          }
        }
      
Variables: {
  "appId": "ari:cloud:ecosystem::app/b339893b-a3df-4bd5-8978-08dcee22f4ba",
  "environmentKey": "production",
  "id": "10"
}
  ◀️  GraphQL
Request ID: 134faf46710ad4cb
Result: {
  "appDeployment": {
    "status": "FAILED",
    "errorDetails": {
      "code": "INTERNAL_SERVER_ERROR",
      "message": "An unexpected error occurred",
      "fields": null
    },
    "stages": [
      {
        "description": "Validating manifest",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.216Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Init deployment",
            "createdAt": "2021-10-27T19:00:23.442Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.443Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.445Z",
            "message": "Upload URL is valid",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.670Z",
            "message": "Found manifest file",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.672Z",
            "message": "Manifest is a valid YAML",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Download manifest",
            "createdAt": "2021-10-27T19:00:23.673Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.675Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.788Z",
            "message": "Manifest passed common validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.789Z",
            "message": "Manifest doesn't have forbidden modules",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.790Z",
            "message": "Manifest passed function names validations",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.791Z",
            "message": "Manifest passed cleanup function validation",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate manifest",
            "createdAt": "2021-10-27T19:00:23.792Z",
            "newStatus": "DONE"
          }
        ]
      },
      {
        "description": "Snapshotting functions",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Generate snapshot step",
            "createdAt": "2021-10-27T19:00:23.794Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Generate snapshot step",
            "createdAt": "2021-10-27T19:00:24.665Z",
            "newStatus": "DONE"
          }
        ]
      },
      {
        "description": "Deploying to environment",
        "events": [
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate hosted resource upload step",
            "createdAt": "2021-10-27T19:00:24.673Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Validate hosted resource upload step",
            "createdAt": "2021-10-27T19:00:25.544Z",
            "newStatus": "DONE"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:25.553Z",
            "newStatus": "STARTED"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:25.554Z",
            "message": "Found 1 function definitions",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:25.555Z",
            "message": "Deploying \"resolver\" function",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:25.843Z",
            "message": "Deploying function \"resolver\" for the first time",
            "level": "INFO"
          },
          {
            "__typename": "AppDeploymentLogEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:26.057Z",
            "message": "Deployment failed with unknown error",
            "level": "ERROR"
          },
          {
            "__typename": "AppDeploymentTransitionEvent",
            "stepName": "Release Lambda functions",
            "createdAt": "2021-10-27T19:00:26.058Z",
            "newStatus": "FAILED"
          }
        ]
      }
    ]
  }
}
  Found 1 function definitions
  Deploying "resolver" function
  Deploying function "resolver" for the first time
  Deployment failed with unknown error

Error: Deployment failed

Error: Deployment failed
    at ArtifactDeployer.handleErrorEvent (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:151:15)
    at ArtifactDeployer.pollAndCheckEvents (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:61:18)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async ArtifactDeployer.monitorDeployment (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:72:28)
    at async ArtifactDeployer.deploy (/usr/local/lib/node_modules/@forge/cli/out/deploy/deployer/deployer.js:36:9)
    at async PackageUploadDeployCommand.execute (/usr/local/lib/node_modules/@forge/cli/out/deploy/package-upload-deploy.js:14:9)
    at async CommandLineUI.displayProgress (/usr/local/lib/node_modules/@forge/cli/node_modules/@forge/cli-shared/out/ui/command-line-ui.js:44:28)
    at async DeployView.reportDeploymentProgress (/usr/local/lib/node_modules/@forge/cli/out/command-line/view/deploy-view.js:50:24)
    at async DeployController.run (/usr/local/lib/node_modules/@forge/cli/out/command-line/controller/deploy-controller.js:122:27)
    at async Command.actionProcessor (/usr/local/lib/node_modules/@forge/cli/out/command-line/command.js:74:32)

Hi @JoseMateoCarrasco,

We had a look into the logs for the request you made and it looks similar to errors for an incident we were experiencing a week ago and then fixed. If you could please try deploying again, it should work now.

Hi,

I’m running into the same problem as described in this post. Is there a place where I can submit my problem so Atlassian can review the issue?

Louis-Philippe