Search code examples
sqlpostgresqlgcloudgoogle-cloud-sql

Fail exporting from Google Cloud SQL to GCS


I'm trying make an export from a Postgresql at Google Cloud SQL to Google Cloud Storage, but I'm getting the following error:

failed to upload data to GCS URL gs://my-bucket/my-export-202101281350.csv: data.Seek(0, 0) error: seek to before memory to: 0 base: 3349304054

Solution

  • According to this issue tracker, this was an on going issue and it is supposed that is fixed. However, it seems like some customers are still facing it.

    I recommend you to run pg_dump on your own against your instance (without using Cloud SQL export) so that you be able to export your Cloud SQL database.