Questions tagged [google-cloud]

For questions relating to the Google Cloud Platform.

Filter by
Sorted by
Tagged with
0
votes
0answers
42 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 ...
1
vote
3answers
33 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. ...
0
votes
0answers
10 views

How to connect to pgadmin (deployed in cloud) using psycopg2

Can anyone please help me on how to connect to pgadmin which is deployed in cloud from cloud functions? I tried to connect using psycopg2 as below (a connection file in our cloud function): import ...
0
votes
0answers
25 views

GCP Startup Script Linux RHEL-7 automatic domain join

I'm trying to write a Google Cloud Platform Startup-Script which automatically joins a VM to my domain. This is the code i came up with: echo "password" | sudo realm join domain.com --user=...
0
votes
1answer
85 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 ...
1
vote
0answers
39 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 ...
0
votes
1answer
144 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 ...
0
votes
0answers
63 views

rclone to Google Drive: sync to the top level of Drive?

I've discovered rclone as a way to emulate (mostly) what Google Backup & Sync does on a W10 OS, combined with a cron job setup. So at the moment I'm experimenting with the Drive of a Google email ...
1
vote
2answers
434 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 ...
0
votes
0answers
56 views

Cannot login to Google Cloud VM from SSH. Other alternatives?

I wrongly modified the /etc/network/interfaces file in my Google Cloud Ubuntu VM, now its networks are broken. As a result, I cannot SSH into the VM to fix it. I tried to use serial-port method, I ...
0
votes
0answers
20 views

Permission error while configure Chrome Remote Desktop to use Xfce by default

I'm trying to setting up Chrome Remote Desktop on my VM instance (Debian GNU/Linux, 9 (stretch), amd64) on Google cloud. I tried to install Xfce as desktop environment. I installed Xfce component ...
0
votes
1answer
48 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. ...
0
votes
0answers
23 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 ...
2
votes
0answers
48 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% / ...
0
votes
0answers
205 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 ...
1
vote
1answer
53 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 ...
0
votes
0answers
430 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 ...
2
votes
1answer
6k 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/...
1
vote
1answer
335 views

Automating postfix installation

I have been trying to automatically install postfix in a non-interactive way via startup-script on machine boot up. After a bit of research I found out some suggestion that I could try to install it ...
2
votes
1answer
3k views

Connect to VM through SSH (Google Colab and PuTTY)

I want to connect to a Google Colab computer via SSH because it has really shit text editing abilities, and it likes to hide the characters I type in the interactive shell. This is code I have on a ...
3
votes
2answers
790 views

Is it important to fix warnings about martian packets in the kernel ring buffer?

These are the outputs I see when I run dmesg [1373335.656608] device eth0 entered promiscuous mode [1373364.891962] device eth1 entered promiscuous mode [1374537.599978] IPv4: martian source 10.5.0.2 ...
0
votes
1answer
72 views

vsftp user upload files into moved folder outside of allowed folder

Google VM, centos 7, vsftpd server. I have ftpuser, homedir /var/www/html cat /etc/passwd | grep ftpuser ftpuser:x:1001:48::/var/www/html:/bin/bash from root user I have moved folder /var/www/html ...
0
votes
1answer
68 views

Cloud Shell idle cpu usage seems relatively high (3-6%) - where is this usage coming from?

top - 12:10:09 up 2:18, 6 users, load average: 0.03, 0.03, 0.00 Tasks: 35 total, 1 running, 34 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.1 us, 1.4 sy, 0.0 ni, 96.5 id, 0.0 wa, 0.0 hi, ...
2
votes
0answers
442 views

Headless OpenGL rendering on Google Compute

I created a GPU instance on Google Compute engine with NVIDIA Tesla K80 attached. I have installed GPU drivers and CUDA based on this guide. nvidia-smi check - ok. nvcc -V check - ok Now I am ...
3
votes
2answers
3k views

GCP: Debian stuck at setting up dbus

I have been trying to install GUI, i.e. gnome and lxde, into Debian 9 stretch in google cloud computing instance. I have even increased the cpu, ram, harddisk size. However, the installation is always ...
0
votes
0answers
216 views

SELinux setsebool command fails on Google compute engine

I am trying to setup my website (LAMP stack, CentOS 6.9) on Google compute engine. I use PHPMailer to send mails (Registration, Singup, Login, etc.) I have setup smtp & all that good stuff in G-...
0
votes
1answer
776 views

Openvpn issues with routing and config pushing

I have recently installed an openvpn server on GCP, in a docker container, from https://github.com/kylemanna/docker-openvpn. The docker-host has packet forwarding enabled. Now I am struggling with ...
1
vote
1answer
804 views

scp not able to write to a mounted volume, complains it's read-only [closed]

(Note: though I'm asking a different question here, this is essentially to diagnose the same problem I reported in this question on StackOverflow). I have a Google Cloud Compute Engine virtual ...
0
votes
2answers
9k views

apache2: Could not reliably determine the server's fully qualified domain name

root@cloudshell:~$ service apache2 start Starting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set ...
0
votes
1answer
204 views

Google vm firewall, I have open all port, FTP 425 Can't open data connection

I have a problem with uploading or viewing FTP server. I am able to Connect to FTP server but I can't upload my file to it it says error. 230 User S2ubp92XXh logged in from ::ffff:xx.xx6.xx3.xx8. ...
2
votes
0answers
66 views

“I am alive” for Google Computing Server

What would the best recommendations be to create some sort of "I am alive mechanism" for a google cloud computing instance running linux. I am certain there are many victims who forget to turn off ...
0
votes
1answer
70 views

How to categorize linux servers

This is not the technical problem or issue but just a programming scenario which I am facing and need to work around this and try to solve this so need some hints on this scenario. Our team has to ...
1
vote
0answers
286 views

Can't SSH into Debian (Jessie) on Google Compute After Changes

I am relatively new to Linux/Debian, and I have encountered an issue which I can't find any relevant solutions for despite days of troubleshooting and a variety of Google, StackOverflow, and AskUbuntu ...
1
vote
1answer
486 views

Can't start MySQL after updating folder permission

I accidentally set the permission of my folder to 755. After I restarted the server, I'm getting this error: /opt/bitnami/apache2/scripts/ctl.sh : httpd (pid 2969) already running file '/etc/gonit/...
1
vote
0answers
666 views

Google cloud compute VM cannot change SSH port

I have some experience about linux admin, this issue never happened when I use AWS EC2 or other VPS. After I create centos7 vm on google cloud compute engine, I changed only one line of sshd_config ...
1
vote
0answers
246 views

Open a port on a google cloud instance without ssh access

After enabling ufw on my google cloud instance running ubuntu, I can't ssh into the instance anymore. I didn't open nor close any port, I only ran: ufw enable and restarted the machine (ufw requires ...
1
vote
1answer
831 views

GCE VM not connecting from Terminal but working in Web SSH

Until before couple of days in Mac Terminal I was able to connect to GCE VM without trouble. Now when I tried any VM it is not connecting. Same VMs are connecting from WEB SSH ok. Does it need to be ...
2
votes
0answers
268 views

Postfix stop continuously

I just successfully configured Sendgrid into a Google Cloud Instance which is CPanel installed on CentOS. Here I have done it. When install Postfix I have to remove currently installed exim4. ...
0
votes
1answer
947 views

Setup GCDS (Google Cloud Directory Sync) via terminal

I have a linux (Centos 7) instance without desktop installed and I need to install and setup Google Cloud Directory Sync services. I tried to installed it via ssh and it installed successfully but ...
1
vote
0answers
125 views

Google Compute Engine - wait until systemd service exits with 0 on shutdown

I have couple of instances on Google Compute Engine. There I have systemd service with ExecStop option. Script execution may take a significant time (5-10 minutes). When shutting down GCE instance, ...
0
votes
1answer
2k views

Strongswan VPN not working unless pinging out manually

We have successfully set up a strongswan vpn on our network to communicate with Google Cloud VPN. Sometimes we leave it idle for a while, let's say a night, that's when the issue appear. If I try to ...
4
votes
0answers
644 views

Mount Google storage bucket with autofs

I'm trying to mount GCS buckets on demand with autofs. Closest they have instructions for is SSHFS like this: mntpoint -fstype=fuse,allow_other :sshfs\#user@example.com\: Following that example I do:...
1
vote
1answer
4k views

Unable to ssh from one Google Cloud RedHat/CentOS server to another [closed]

I have created 2 Google Compute servers using Google Cloud. Both are RedHat. (I tried using CentOS as well.) Google by default creates a default user on both the servers. The default user name is ...
1
vote
0answers
160 views

Google Cloud, Gnome via SSH

I'm running CentOS7 via Google Compute and installed Gnome successfully via yum and trying to start the console, but returns this error: xauth: file /home/sublyime/.serverauth.7851 does not exist (...
1
vote
0answers
657 views

Google Cloud Platform: Remove the firewall rule that allowed traffic to all of the instances

What does this mean in practical terms? Firewall rules are only "allow" rules. You cannot create "deny" rules. If you need to restrict traffic from reaching certain instances, create rules that ...
2
votes
1answer
217 views

how does a google cloud compute generated SSH key lookup the VPS instance?

If I manually create a key, rather than using the gcloud CLI console, can I also configure the public key so that it will look-up the connection as this config seemingly does: thufir@mordor:~$ cat ....
0
votes
0answers
875 views

How do I append a SSH key with JSON for Google cloud compute VPS?

For the following dummy key, in relation to adding ssh keys to a google compute cloud project: thufir@mordor:~$ ssh-keygen -t rsa -b 768 -f ~/.ssh/gcloud -C thufir Generating public/private rsa key ...
2
votes
1answer
6k views

SSH publickey permission denied (Google Cloud Platform)

We run a small handful of Debian servers on Google Cloud Platform. New servers we setup, we're able to add SSH keys at the point of creation and access the machines via SSH without a problem. Older ...
4
votes
4answers
4k views

Unable to SSH into Google Cloud Server after Reboot

I was learning to configure a Debian server and familiarising myself with the common command lines. However, after executing the reboot command in SSH, my subsequent SSH connections were refused and ...
4
votes
0answers
1k views

Page gets cut in the half if I print from Chrome or Google Cloud but with Firefox doesn't

I'm setting up print server for custom thermal printer on RaspberryPi running Linux Debian and I have a strange problem. If I print a test page it prints OK, same with web page from Firefox, but when ...