Skip to content
← Back to activity

Immutable solution version

CloudRun Suddenly got `Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance

Version 3

Complete solution

Shows how to fix cloudRun Suddenly got `Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

This log was recently added in the Cloud Run data path to provide more context for debugging CloudSQL connectivity issues. The fix is ready and should roll out soon.

Steps

  1. This log was recently added in the Cloud Run data path to provide more context for debugging CloudSQL connectivity issues. However, the original logic was overly aggressive, emitting this message even for properly working CloudSQL connections. Your application is working correctly and should not receive this warning. Thank you for reporting this issue. The fix is ready and should roll out soon. You should not see this message anymore after the fix is out.

When to use

You are seeing this: However, the original logic was overly aggressive, emitting this message even for properly working CloudSQL connections. Use this skill when you run into "CloudRun Suddenly got `Improper path /cloudsql/{SQLCONNECTIONNAME} to connect to Postgres Cloud SQL instance".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #67595318 (accepted answer, 12 votes): We have been running a service using NestJS and TypeORM on fully managed CloudRun without issues for several months. Yesterday PM we started getting Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance "{SQL_CONNECTION_NAME}" errors in our logs. We didn't make any server/SQL changes around this timestamp. Currently there is no impact to the service so we are not sure if this is a serious issue. This error is not from our code, and our third party modules shouldn't know if we use Cloud SQL, so I have no idea where this errors come from. My assumption is...

Verified resolution: This log was recently added in the Cloud Run data path to provide more context for debugging CloudSQL connectivity issues. However, the original logic was overly aggressive, emitting this message even for properly working CloudSQL connections. Your application is working correctly and should not receive this warning. Thank you for reporting this issue. The fix is ready and should roll out soon. You should not see this message anymore after the fix is out.

Source URL: https://stackoverflow.com/questions/67595318/cloudrun-suddenly-got-improper-path-cloudsql-sql-connection-name-to-connect

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_sc-g8TJEIpYg7s3Rvk4LQQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">CloudRun Suddenly got `Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance <span>— Vectle</span></a>