203151 - GCP Resource Not Found
Agent error code #203151 indicates that the GCP API returned HTTP 404 (Not Found) when the agent attempted to access a firewall rule or security policy rule. The specified resource does not exist in the configured GCP project.
This error is typically surfaced within a resource-specific error (#203050, #203051, #203100, or #203101) that provides additional context about which operation failed.
Common causes include:
- The firewall rule name or security policy name configured in Knocknoc is incorrect or has a typo
- The resource was deleted from GCP after the Knocknoc backend was configured
- The GCP Project ID is wrong — the resource exists in a different project
- For Cloud Armor, the security policy exists but no rule exists at the configured priority number
- The resource name is case-sensitive and does not match exactly
Steps to Resolve
Verify the Resource Exists in GCP
For VPC Firewall mode:
- In the GCP Console, navigate to VPC Network > Firewall
- Confirm a firewall rule exists with the exact name configured in the Knocknoc ACL
- Rule names are lowercase and may contain hyphens (e.g.,
knocknoc-allow-ssh)
For Cloud Armor mode:
- In the GCP Console, navigate to Network Security > Cloud Armor
- Confirm the security policy exists with the exact name configured in the Knocknoc ACL
- Open the policy and confirm a rule exists at the exact priority number configured in Knocknoc
Verify the GCP Project ID
- In the Knocknoc admin interface, check the backend configuration
- Confirm the GCP Project ID matches the project where the resource exists
- Find your project ID in the GCP Console dashboard or project selector — note that the project ID is not the same as the project name or number
Recreate the Resource
If the resource was deleted, recreate it following the setup guide:
- VPC Firewall: See the GCP setup guide — VPC Firewall mode
- Cloud Armor: See the GCP setup guide — Cloud Armor mode