FAQ about Serverless Application Center

更新时间:
复制 MD 格式

Find solutions to common issues when you deploy applications with Serverless Application Center.

Environment shows an exception or fails to initialize

Problem: An environment shows an exception or fails to initialize.

Cause: This is usually caused by insufficient permissions or quotas.

Diagnosis: View the running status of the environment to identify the cause.

environment-failurefailure-log

Solution:

  1. Check the running status and error logs shown in the preceding screenshots.

  2. Verify that your account has the required permissions for the resources being deployed.

  3. Confirm that your resource quotas have not been exceeded.

Pipeline build times out during deployment

Problem: The pipeline build fails with the following error:

Error: Function timed out after 600 seconds

Cause: The default timeout for a pipeline build is 10 minutes. This error occurs when dependency downloads take longer than this limit.

Pipelines support both Chinese mainland and global build environments. The build environment region depends on the code repository platform you use:

Code repository platform Build environment region
Gitee, Codeup, GitLab China (Hangzhou)
GitHub Singapore

If a pipeline builds in a Chinese mainland region but installs dependencies from an overseas registry, the slow download speed can cause the build to exceed the 10-minute timeout.

deploy-pipeline-failure

Solution: Resolve this issue by using one of the following methods.

Method 1: Use a Chinese mainland mirror for dependency installation

Configure a Chinese mainland source or proxy to speed up dependency downloads. Examples:

  • Python -- Use the Tsinghua source:

      pip install some-package -i https://pypi.tuna.tsinghua.edu.cn/simple
  • Node.js -- Use the Taobao source:

      npm install some-package --registry https://registry.npmmirror.com
  • Golang -- Use Goproxy:

      GOPROXY=https://goproxy.cn

Method 2: Use a custom pipeline with a different region or timeout

Use a custom pipeline to deploy the build environment in the China (Hong Kong) region, or set the build timeout period to a custom value.

If you use a custom pipeline, you are charged for function invocations. For more information, see Billing overview.

Pipeline is not triggered after code is submitted

Problem: A pipeline is not triggered after you submit code to the repository.

Diagnosis: Check the webhook execution history in your code repository.

webhook-history
  1. Open the webhook settings in your code repository.

  2. Check the recent webhook delivery or event history for failed requests.

  3. View the response details of failed requests to find HTTP status codes or error messages.

Solution: If a 500 error is reported in the webhook execution history, join the DingTalk group 64970014484 for technical support.

Only one environment pipeline is triggered when multiple environments share a code branch

Problem: When multiple environments are associated with the same code branch, only one environment pipeline is triggered.

Cause: Deploying all environments simultaneously with the same code version could cause functions in different environments to overwrite each other. To prevent this, Serverless Application Center runs the pipeline of only one environment at a time.

Solution: If you need to trigger pipelines in multiple environments simultaneously, join the DingTalk group 64970014484 for technical support.

Function configurations are overwritten after each deployment

Problem: Function configurations that you modified in the Function Compute console are overwritten after each deployment.

Cause: Serverless Application Center updates functions based on the configurations in the s.yaml file in the code repository during deployment. Any configurations modified directly in the Function Compute console are overwritten.

Solution: Modify the configurations in the s.yaml file of your code repository instead of in the console. For more information about s.yaml, see service field.

Note

If you have already modified function configurations in the Function Compute console and want to sync those changes to your s.yaml file, perform the following steps:

  1. Open the function details page in the Function Compute console.

  2. Click Export Function in the upper-right corner.

  3. Select Export Function Configurations to download the s.yaml file for the function.

  4. Use the exported file as a reference to update the s.yaml file in your code repository.

Application is inaccessible via domain name

Problem: Your application is inaccessible via the ***.devsapp.net domain name.

Note that the ***.devsapp.net domain name is provided by Serverless Devs for learning and testing purposes only. It cannot be used in production environments. Serverless Devs periodically sends URL test requests to the domain and revokes the domain one day after issuance. To ensure a better experience, we recommend that you promptly configure a custom domain name for your application. For more information about custom domain configuration, see Custom domain configuration.

Applications without a custom domain for more than one day will become inaccessible once the ***.devsapp.net domain is revoked. In such cases, you will need to redeploy your application to have Serverless Devs issue the domain again.

Solution: Configure a custom domain name for your application as soon as possible. For more information, see Configure a custom domain name.