Skip to content

Error: Invalid value specified for cpu #291

Description

@Bakuutin

I encountered an error while following the tutorial template.containers.resources.limits.cpu: Invalid value specified for cpu. For the specified value, maxScale may not exceed 10.

Full Error

{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 3,
      "message": "template.containers.resources.limits.cpu: Invalid value specified for cpu. For the specified value, maxScale may not exceed 10.\nConsider running your workload in a region with greater capacity, decreasing your requested cpu-per-instance, or requesting an increase in quota for this region if you are seeing sustained usage near this limit, see https://cloud.google.com/run/quotas. Your project may gain access to further scaling by adding billing information to your account."
    },
    "authenticationInfo": {
      "principalEmail": "service-541173950903@gcp-sa-firebaseapphosting.iam.gserviceaccount.com"
    },
    "requestMetadata": {
      "callerIp": "private",
      "callerSuppliedUserAgent": "stubby_client",
      "requestAttributes": {
        "time": "2024-05-17T12:19:55.166848Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "run.googleapis.com",
    "methodName": "google.cloud.run.v2.Services.CreateService",
    "authorizationInfo": [
      {
        "resource": "projects/541173950903/locations/us-central1/services/nxt",
        "permission": "run.services.create",
        "granted": true,
        "resourceAttributes": {},
        "permissionType": "ADMIN_WRITE"
      }
    ],
    "resourceName": "projects/541173950903/locations/us-central1/services/nxt",
    "request": {
      "parent": "projects/541173950903/locations/us-central1",
      "@type": "type.googleapis.com/google.cloud.run.v2.CreateServiceRequest",
      "service": {
        "labels": {
          "goog-managed-by": "firebase-app-hosting"
        },
        "launchStage": "BETA",
        "template": {
          "revision": "nxt-build-2024-05-17-001",
          "scaling": {
            "maxInstanceCount": 100
          },
          "serviceAccount": "firebase-app-hosting-compute@generic-project.iam.gserviceaccount.com",
          "executionEnvironment": "EXECUTION_ENVIRONMENT_GEN1",
          "maxInstanceRequestConcurrency": 80
        },
        "traffic": [
          {
            "type": "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION",
            "revision": "nxt-build-2024-05-17-001",
            "percent": 100,
            "tag": "t-4092871739"
          }
        ],
        "scaling": {}
      }
    },
    "resourceLocation": {
      "currentLocations": [
        "us-central1"
      ]
    }
  },
  "insertId": "9pqb3kd386s",
  "resource": {
    "type": "cloud_run_revision",
    "labels": {
      "configuration_name": "",
      "revision_name": "",
      "project_id": "generic-project",
      "location": "us-central1",
      "service_name": "nxt"
    }
  },
  "timestamp": "2024-05-17T12:19:55.048546Z",
  "severity": "ERROR",
  "logName": "projects/generic-project/logs/cloudaudit.googleapis.com%2Factivity",
  "receiveTimestamp": "2024-05-17T12:19:55.853013958Z"
}

Steps to Reproduce

  1. Follow the tutorial
  2. In the Create an App Hosting backend section, click "Finish and deploy".

Expected Behavior

The service should be deployed without any errors related to CPU values.

Actual Behavior

The deployment fails with the error: template.containers.resources.limits.cpu: Invalid value specified for cpu. For the specified value, maxScale may not exceed 10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions