All Products
Search
Document Center

Function Compute (2.0):FAQ about Serverless Application Center

Last Updated:Mar 15, 2024

This topic provides answers to some commonly asked questions when you use Serverless Application Center to deploy applications.

What do I do if an environment exception occurs?

You can view the running status to locate the cause of an environment exception. In most cases, an environment exception is caused by a permission issue or insufficient quota.

environment-failurefailure-log

What do I do if a pipeline build times out?

If a pipeline fails to be deployed, you can view the logs to resolve the issue. In most cases, the Error: Function timed out after 600 seconds timeout error is caused by a prolonged dependency download.

deploy-pipeline-failure

By default, pipelines support both Chinese mainland and global build environments. The build environment of Gitee, Codeup, and GitLab is in the China (Hangzhou) region, and the build environment of GitHub is in the Singapore region. The timeout period for a pipeline build is 10 minutes. If you build a pipeline in a region in the Chinese mainland and a registry outside the Chinese mainland is accessed when the system installs dependencies, the download speed is slow. In this case, a timeout error is reported. You can resolve the issue by using one of the following methods:

  • Method 1

    Use a Chinese mainland source or proxy when you install dependencies, for example:

    • Use a Tsinghua source to install Python dependencies.

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

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

      GOPROXY=https://goproxy.cn
  • Method 2

    Use a custom pipeline to deploy the build environment in the China (Hong Kong) region, or set the timeout periods of build to a custom value. If you use a custom pipeline, you are charged for function invocations. For more information, see Billing overview.

What do I do if pipeline execution is not triggered after code is submitted?

If pipeline execution is not triggered after code is submitted, you can view the execution history of webhooks of the code repository to troubleshoot the issue. If a 500 error is reported, join the DingTalk group 11721331 for technical support.

webhook-history

What do I do if pipelines of only one environment are triggered after code is submitted?

If multiple environments are associated with the same code branch, services in different environments may overwrite each other if multiple environments are deployed with the same code version. To prevent this, Serverless Application Center allows the pipelines of only one environment to be executed at a time. If you need to trigger pipelines in multiple environments at the same time, join the DingTalk group 11721331 to contact the technical support of Function Compute.

Why are the configurations of the corresponding service changed each time an application is deployed in Serverless Application Center?

When you deploy an application, services and functions are updated based on the configurations in the s.yaml file in the code library. Therefore, the configurations that you modify in the console are overwritten after the application is deployed.

To prevent your service configurations from being overwritten, we recommend that you modify the configurations in the s.yaml file of the code library. For more information, see service field.

After you modify the configurations of a service and a function in the console, you can click Export Function in the upper-right corner of the function details page and select Export Configuration to export the s.yaml file of the service and function. You can use this s.yaml file as a reference to update the s.yaml file in the code library.

Why am I unable to access my application by using a domain name?

You may have used the ****.devsapp.net domain name. This domain name is provided by the Serverless Devs community for learning and testing. Serverless Devs is the official sandbox project of the Cloud Native Computing Foundation (CNCF). The Serverless Devs community dial tests the domain name from time to time and reclaims the domain name 30 days after the domain name is issued. We recommend that you bind a custom domain name to your application for better experience.