This topic provides answers to some commonly asked questions about using 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 insufficient permissions or quotas.
What do I do if a pipeline build times out?
If a pipeline fails to be deployed, you can view logs to resolve the issue. In most cases, Error: Function timed out after 600 seconds
is reported due to prolonged dependency downloads.
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. 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 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.
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 64970014484 for technical support.
What do I do if pipelines of only one of multiple environments associated with a code branch is triggered after code is submitted?
If multiple environments are associated with the same code branch, functions 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 a time, join the DingTalk group 64970014484 for technical support.
Why are configurations of the corresponding functions changed each time an application is deployed in Serverless Application Center?
When you deploy an application, 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 function 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 function in the Function Compute console, you can click Export Function in the upper-right corner of the function details page and select Export Function Configurations to export the s.yaml file of the 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 in a production environment. This domain name is provided by the Serverless Devs community and is only for learning and testing purposes. 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.