Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Storage bucket throws error "The project to be billed is associated with a closed billing account."

I already checked my project and it has an active billing account

I am using node js

var gcloud    = require('gcloud');
var gcs = gcloud.storage({
  projectId: config.gcloud.projectid,
  keyFilename: config.gcloud.keyfilename
});
var bucket = gcs.bucket(bucketName);   
bucket.upload(filePath, fileOptions, function(err, file) {
        if (err) {        
          console.log(err);
        } else {
          console.log("success")
        }
      });

This was working before. I'm not sure why it is returning an error. Anyone have an idea?

like image 532
Jackson Avatar asked Dec 18 '18 08:12

Jackson


People also ask

How can you make sure a Google Cloud project stops incurring charges?

One option to automatically control spending is to use budget notifications to programmatically disable Cloud Billing on a project. If you prefer to set a cap on API usage to prevent incurring costs, see Capping API Usage.

Who can change the billing account linked to a project in GCP?

To move your project to a different billing account, you must be a billing administrator and the project owner. To see the current administrators, go to the Google Cloud Platform Console, open the left side menu and select Billing.


1 Answers

Based on my research please find below the possible scenarios of the error message you provided:

  1. If you are using Cloud Platform Free Tier you may have run out of Cloud Storage Always Free usage limits. In that case, you may consider upgrading your account to a paid one to potentially resolve the issue.

  2. This error may also occur because of the Cloud Storage bucket you are trying to use does not exist. You may verify this by clicking the blue button titled “Open the Cloud Storage Browser”.

  3. If you have a paid account and the Cloud Storage bucket does exist, please open a Billing Support Request using the Billing Support Requests form provided here.

like image 65
MrTech Avatar answered Sep 25 '22 03:09

MrTech