Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [google-cloud]

For questions relating to the Google Cloud Platform.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
98 views

How can I find the human readable name for a CPU? [duplicate]

I need to know the name of the CPU used in a GKE cluster I have launched. The gcloud command has a --min-cpu-platform option, but my understanding is that is the minimum and I may get a later CPU ...
Haywood Slap's user avatar
0 votes
0 answers
165 views

Mounting Google Drive files in TermUX on Android

I need to mount some Google Drive files in the TermUX client on my Realme 8 5G Android 12 device. This is so that I may then copy and backup some of the files to Github (or, alternatively, it, in ...
Joselin Jocklingson's user avatar
0 votes
1 answer
169 views

For Google Cloud's debian repository, which distribution corresponds to Debian Testing (currently, Trixie)?

On Debian Testing (currently called Trixie), I would like to install the google-cloud-cli and google-cloud-sdk-gke-gcloud-auth-plugin packages that Google Cloud offers through its debian (package ...
yheilanop's user avatar
0 votes
1 answer
945 views

GCP /dev/sda1/ Disk Space Full, Shows 90% In Use, but Mounting SDA1 only showing 6GB. What is using all my space?

I'm running Wordpress instance on top of a Linux GCP VM instance. In SSH, running cmd 'df -h' I see /dev/sda1 is 91% used up. I mounted sda1 to see what could be taking up all the space, but ...
PlezHelp's user avatar
0 votes
1 answer
25 views

I try to copy a file from a GCP instance to my local machine, but powershell gives me a "Permission denied: (publickey)"

I created a GCP instance, and I created a private and public key on kali linux, I saved this key in the metadata of GCP, so I can access the instance through my kali machine. Then, I need to copy a ...
Christian Ramírez's user avatar
0 votes
0 answers
9 views

TLS conneciton is droped on google compute when call is intiated from docker container

I am using Google cloud compute with docker installed on it and I am trying to connect between 2 nodes with secured connection from the container. When call is performed directly form HOST VM, both ...
swist's user avatar
  • 101
0 votes
0 answers
56 views

Google Cloud does not like my Customer-supplied encryption key (CSEK)

I'm trying to encrypt a VM image with my own provided key. So I go to my Terminal emulator and do: $ openssl enc -aes256 -A -P enter aes-256-cbc encryption password: Verifying - ...
mariano-daniel's user avatar
1 vote
1 answer
33 views

Why would Linux Docker fail downloading files from private gcr.io?

Issue So... I have tested many different commands and it all works great except docker pull gcr.io/... which always says I don't have enough permissions: ERROR: unauthorized: You don't have the ...
Alexis Wilke's user avatar
  • 2,909
0 votes
1 answer
35 views

Link home directory to filestore

I have two GCE instance (RHEL8) and a common file store mounted as /filestore on both instance. How can we link the existing /home to /filestore/home as shared storage for users home directory. Note: ...
Siva's user avatar
  • 9,077
4 votes
0 answers
128 views

How to fully copy linux instance to another machine

I have a remote google cloud instance which runs Debian GNU/Linux 11 (bullseye), and I would like to create not nessesarily a copy of it, but rather I would like to copy everything that is installed ...
user9102437's user avatar
1 vote
1 answer
487 views

Cannot write to file in linux environment

I am using GCP Linux virtual machine and trying to execute a file and write the results into a new file. The code looks like this: ./segment.sh inputfile.txt > outputfile.txt However when I do ...
halo09876's user avatar
  • 111
0 votes
1 answer
384 views

Can't modprobe einj in VM / cloud services

I tried to modprobe einj on VM or Google cloud VM both got the same result as below: [test@instance-1 ~]$ sudo su [root@instance-1 test]# modprobe einj modprobe: ERROR: could not insert 'einj': No ...
Mark K's user avatar
  • 895
3 votes
1 answer
9k views

How can I download and sync my google photos to Linux?

I have alot of photos on my google account, it's painless too upload pictures there but what do I do if I want to download and sync them to my Linux system?
somethingSomething's user avatar
1 vote
0 answers
374 views

Proper config settings for OpenVPN server to route through GCP Cloud VPN Gateway?

Scenario I want to connect my team to a remote server via a VPN. This VPN has to go through some rules the remote server has which are described below. I have setup OpenVPN but am open to trying any ...
coderintherye's user avatar
0 votes
1 answer
202 views

gdrive not working on Fedora 35

I would like to access my cloud data on Google Drive from terminal, so I have downloaded gdrive from this source; I have selected gdrive_2.1.1_linux_amd64.tar.gz since I am on Fedora 35 with a 64 bit ...
Noumeno's user avatar
  • 183
0 votes
0 answers
190 views

How can I launch apps or execute terminal commands in an Ubuntu 20.04.3 Docker container running on Google Cloud Run?

I am running an Ubuntu 20.04.3 desktop in the cloud on Google Cloud Run. When I run the container image locally, I can run any process, including a bash terminal. However, on Google Cloud Run, ...
jmort253's user avatar
  • 295
0 votes
1 answer
785 views

"EOF in backquote substitution" when trying to run a binary file

I get the following error when trying to run a binary file with the command: tmp/123.bin tmp/123.bin: 1: tmp/123.bin: Syntax error: EOF in backquote substitution I have no idea what could be causing ...
kess's user avatar
  • 123
0 votes
1 answer
942 views

Using SCP in a Bastion VM setup with an established SSH tunnel

I am looking at ways to mitigate the potential for using scp commands within GCE VMs that are running CentOS 8. Current setup is a bastion VM being able to SSH into a secondary VM (instance-1). I have ...
rk92's user avatar
  • 103
0 votes
0 answers
922 views

Unable to create a new directory in a mounted path on GCP VM

I have a GCP VM instance. A GCP storage has been mounted in that instance. I am unable to create a new directory in that mounted directory. I created the directory using: mkdir gcs I then mounted ...
Dawood Abbas 's user avatar
0 votes
1 answer
84 views

Install Sohpos VPN/Open VPN on GCE ubuntu

I am new to using Linux, and am trying to install the Sophos SSL VPN Client/Open VPN on a Google Compute Engine (GCE) running ubuntu-1604-xenial-v20210224. The instructions I have seen all refer to ...
LinuxNewbie2021's user avatar
0 votes
0 answers
41 views

Replacing Google Cloud Print in Raspbian based order printer

For the past couple of years, I have been running an automated order printer for packing orders from my webshop. Until now, I have made the webserver create a PDF of the order contents, and sent that ...
user2806026's user avatar
0 votes
1 answer
160 views

write a carriage return to a file in cloud shell

I have a file which is havig '\n' at the end of each record of a given file. I would like to have '\r\n' at the end of each record. I tried below but upon checking on notepad++.. see same line ...
vikrant rana's user avatar
1 vote
0 answers
52 views

How to personalize dotfiles on gcp instances

On gcp (google cloud), the first time a user connects (via ssh) to a vm a new home directory is created and dotfiles are populated from /etc/skel. How can I configure things to get user specific ...
William Pursell's user avatar
0 votes
0 answers
49 views

What's wrong with this background command?

In a Google Cloud Debian VM, I'm running the following command on the Bash shell: python programname.py > output.txt & I want it to pass its stdout to output.txt and run the program in the ...
magmacollaris's user avatar
2 votes
1 answer
325 views

bcache fails to attach local ssd as caching device in google cloud

I'm trying to setup bcache in an instance in google cloud using a raid of local SSDs as caching device but everything fails in the attach phase of the process. For testing purposes I created a new ...
Demian's user avatar
  • 21
2 votes
0 answers
1k views

GCP wget (and curl) fails to download file Error 403

I started using GCP (Google Cloud Platform) recently. I created an Ubuntu VM in Google Cloud Engine, and wanted to download some files from a website via wget. I am able to download it using a normal ...
Lucas Thimoteo's user avatar
1 vote
0 answers
374 views

Can't change netmask to other than /32 for a Debian virtual machine created on google cloud platform

I have created two virtual machines in google cloud platform both are on the same VPC 10.164.0.0/20. One machine is configure with static IP 10.164.0.2, and the other machine is configure with static ...
Alejandro Lichtenfeld's user avatar
1 vote
1 answer
964 views

Fastest way to download data from GCS bucket

We have millions of files in some GCS bucket and I normally use GSUTIL to download some files based on some pattern to my local. gsutil -m cp -R "gs://test-bucket-data-ingest/cm_data/AAA_AN/CM/*/...
vikrant rana's user avatar
1 vote
1 answer
1k views

coverting timestamp to epoch seconds and vice versa in PostgresSQL

I can run below queries to get the epoch seconds from date and can covert back them to given date in Google bigquery. For example: select unix_seconds(timestamp('2020-12-04 00:00:00')), unix_seconds(...
vikrant rana's user avatar
1 vote
1 answer
420 views

gcloud setting up zsh alias

I was trying to set up some alias command and function for gcloud. I have written below function and running it in zsh in mac. It runs fine when I pass c and i as individual arguments but not when I ...
Learner's user avatar
  • 267
0 votes
1 answer
435 views

Shell causing error in referencing variable in query

I am executing a query in shell to access Google Bigquery table. Cannot figure out what is causing the error. #!/bin/bash file_path='/home/vikrant_singh_rana/test_bq_file.csv' { read while ...
vikrant rana's user avatar
1 vote
1 answer
4k views

Using multiple alias in a single command

I'm facing problem in using multiple alias in a single line on Mac bash Terminal. I have setup below alias in my .bash_profile file alias gc=gcloud alias cmp=compute alias ins=instances alias pdev=&...
Learner's user avatar
  • 267
1 vote
1 answer
1k views

Why can I get man pages for section 1, but not for section 2 and section 3 on a google cloud VM?

I'm running Centos7 on a google cloud VM. I've installed man but can get man pages only for section 1 of the manual. Even as root, I can only get man pages for section 1. For example with the section ...
Richard Gostanian's user avatar
1 vote
0 answers
37 views

How to use eCryptfs under Google Cloud Shell?

I am trying to use ecryptfs under Google Cloud Shell. Google Cloud Shell is a virtual machine running Debian GNU/Linux 9. I installed ecryptfs-utils package using command: sudo apt install ecryptfs-...
FedKad's user avatar
  • 610
2 votes
1 answer
542 views

ssh config to start session with google cloud compute instance using gcloud cli command

I would like to use my ssh config to use a google cloud cli (gcloud) to connect to google compute instances. (This is a follow-on to another question I asked, that had a working solution, but didn't ...
shortcipher3's user avatar
2 votes
2 answers
2k views

ssh config to start session with google cloud compute instance

I would like to use my ssh config to use a google cloud compute instance as a jumpbox to connect to another box. However, I am having problems getting a config that will allow me to even connect to ...
shortcipher3's user avatar
1 vote
1 answer
2k views

How to force a custom disk encryption on a google cloud compute instance (gcloud)?

Google cloud services (computing instance) offer encryption by default for disk storage, the customer can provide its own key with the feature customer supplied encryption (detailed here also). How ...
intika's user avatar
  • 14.5k
0 votes
0 answers
181 views

Can't install helm on Debian (Pop_OS) because of a 404. How can I get around that?

I am running this script from the cloud.google.com doc: # Create environment variable for correct distribution export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" # Add the Cloud SDK distribution ...
xetra11's user avatar
  • 546
1 vote
3 answers
786 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
Amit Yadav's user avatar
0 votes
1 answer
945 views

Unable to open VS Code on Ubuntu VM instance on Google Cloud

I am facing a problem when trying to open VS Code on my Virtual machine in Google cloud using VNC viewer.  It's Real VNC, and I checked that vscode is not running in multiple VNC sessions. The VM is ...
spock's user avatar
  • 1
1 vote
0 answers
496 views

Problem when piping stdin to tar

I need to write data (multiple files and directories) from a Google cloud storage bucket onto a Tar archive on my local disk. The directories are multiple TB, so I do not want to create the Tar ...
Benjamin Antin's user avatar
1 vote
1 answer
979 views

How to install Google Cloud completion in NixOS with Oh-My-Zsh?

Oh-my-zsh has a plugin option (plugins = (gcloud, ...)) which allows installing gcloud completions. When I add "gcloud" to plugins, I expect that the completion will be sourced during shell ...
Justin Shenk's user avatar
9 votes
3 answers
6k views

With Ansible, is it possible to connect connect to hosts that are behind Cloud IAP (Identity-Aware Proxy) in GCP?

Cloud IAP is a sort of proxy for Google Cloud Platform that lets you connect to compute instances that don't have public IP addresses, without a VPN. You stand up an instance and then you can use the ...
mat's user avatar
  • 153
0 votes
1 answer
64 views

write mistake bash_profile

I am using GCE, I want to install Scala on Google Cloud Shell, so I first install the brew, however when I added the brew path to bash_profile, I did a mistake. First of All, I downloaded the brew. ...
arron's user avatar
  • 1
0 votes
0 answers
238 views

How to verify my google cloud storage downloads of csv files are successful?

I have created some shell script to put the data into google cloud storage from some source and download that into my local. I am able to do it and the job is also running fine, but my question is, is ...
sam's user avatar
  • 171
2 votes
0 answers
62 views

Strange difference of disk size

I have a Google Cloud Instance: When i check the disk space with two different command it show: df -H Filesystem Size Used Avail Use% Mounted on /dev/sda2 11G 3.1G 7.5G 30% / ...
Alessandro_Russo's user avatar
1 vote
0 answers
991 views

Access permissions for google-compute-engine script

I would like to run a python script on compute engine, which uses a Linux-based operating system ("debian-9-stretch-v20180307"). I am using a bash boot script with code as follows: #! /bin/bash ...
Paul's user avatar
  • 111
1 vote
1 answer
110 views

Process ownership automatically changes to init process on GCP Ubuntu 18.04LTS

We recently moved our development infrastructure from our own old machines running Ubuntu 12.04 to Google Cloud instances running Ubuntu 18.04. Developers usually start some screens and run django ...
Simon Ninon's user avatar
0 votes
0 answers
557 views

Google Compute Engine: ssh with publickey stops working after logout

From google compute engine instance, connected via ssh with web terminal [gcp-instance] $ ssh-copy-id user@server /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to ...
jsp's user avatar
  • 113
4 votes
1 answer
24k views

Debian 9 stretch-backports signature couldn't be verified [duplicate]

I'm trying to install certbot on my Debian 9 server on Google compute engine VM. Here's what I have done so far: To add backports repository, I have edit the sources.list as: sudo nano /etc/apt/...
Abdul Rehman's user avatar