17

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?

Jackson
  • 181
  • 1
  • 1
  • 5
  • 2
    Is the bucket you're copying from outside of your project? If you're copying a file from another project, they're charged the usage fee unless the bucket is marked as 'requester pays' – FridayPush Dec 18 '18 at 17:54

3 Answers3

33

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.

MrTech
  • 430
  • 4
  • 8
-1

Please try below steps for resolving the issue:

  1. Select appropriate project
  2. Search 'Cloud Storage'
  3. Click 'Create Bucket' and create new bucket under cloud storage

Make sure your experiment is referring the newly created storage. I was referring the storage location through config file, here how it goes:

--> Config.py

gs_bucket_name="kubeflow_demo_storage"
Bucket_uri="gs://data-labeling-demo"
version=1
store_artifacts=Bucket_uri + "/" + str(version)
data_path=Bucket_uri + "/" + "data/data_raw.csv"
processed_data=Bucket_uri + "/" + "processed/data_processed.csv"
-1
UserProjectAccountProblem The project to be billed is associated with a closed billing account. The billing account for the owning project is disabled in state closed