• 12

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have two Google Compute Engine instances: instance-1 and instance-2, and I want to copy files from instance-1 to instance-2. Both instances are in the same project and zone.

In instance-1, I ran:

gcloud compute copy-files *.tar.bz2 instance-2:/mnt/pd1/home/ --zone  us-central1-b

and got this error message:

ERROR: (gcloud.compute.copy-files) Could not fetch instance: - Insufficient Permission

Running gcloud config list on both instances shows that they use the same service account:

Your active configuration is: [NONE]
account =
disable_usage_reporting = True
project = abc-123

Is there a simple way to copy files between two VM instances without switching accounts (i.e., gcloud auth login)?

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags