All Products
Search
Document Center

Alibaba Cloud DevOps:FAQ

Last Updated:Nov 13, 2025

A 413 error occurs when uploading artifacts to the repository during a Java build

The maximum size for a single artifact is 2 GB. If your code directory or package exceeds this limit before packaging, split it into multiple packages. You can then build and upload them in stages. Alternatively, you can use different directories to build different packages.

Error when pushing a package to the artifact repository: The total artifact storage capacity of the organization is exhausted

Error message: 400 Bad Request. The total artifact storage capacity for your organization is full. You cannot upload new artifacts. To obtain more capacity, enable pay-as-you-go billing.

A 400 error occurs when pushing an artifact package to the artifact repository

First, check your artifact storage resource usage to determine if you have sufficient space. If not, enable pay-as-you-go billing or clean up artifacts to free up space.

image

Can I migrate data from artifact repository A to artifact repository B?

  1. Migration between Apsara Devops artifact repositories is not supported. In addition, proxying to other Apsara Devops artifact repositories is not supported because this can cause circular proxy issues.

  2. For Maven artifact repositories, you can configure multiple sources in the same settings.xml file.

How to pull artifacts from an Apsara Devops artifact repository using npm

In the Apsara Devops Artifact Repository console, follow the instructions in the Repository Guide > NPM Configuration section of your npm repository.

.npmrc example configuration:

registry=https://packages.aliyun.com/64c1************17/npm/repo-***/ 
//packages.aliyun.com/64c1************17/npm/repo-***/:_authToken=*************

Notes:

  • If you still cannot pull after configuration, check whether a .npmrc file exists in the following paths:

    • User-level configuration: ~/.npmrc

    • Project-level configuration: .npmrc in the project's root directory

  • The project-level configuration overrides the user-level configuration.

  • Ensure that the _authToken value is correct and has not expired.

How to pull artifacts from an Apsara Devops artifact repository using the Yarn command

The configuration method for Yarn varies by version. First, confirm your current Yarn version.

yarn -v

Yarn 1.x versions

Yarn 1.x is compatible with the npm .npmrc configuration file.

Configuration steps:

  1. In the Apsara Devops Artifact Repository console, follow the instructions in the Repository Guide > YARN Configuration section of your npm repository.

  2. If you run the npm config set always-auth true command and receive an always-auth is not a valid npm option error, manually edit the .npmrc file and add always-auth=true.

The content of the .npmrc file is as follows:

registry=https://packages.aliyun.com/64c1************17/npm/repo-***/
//packages.aliyun.com/64c1************17/npm/repo-***/:_authToken=*************
always-auth=true

Yarn 2+ versions

Yarn 2+ versions use a .yarnrc.yml file instead of a .npmrc file. The .yarnrc.yml file must contain the following content:

npmRegistries: 
  "https://packages.aliyun.com/64c1************17/npm/repo-***/": 
    npmAuthToken: *************