6,781 questions
1
vote
0
answers
22
views
I am facing error while creating google-dataproc-cluster erro [closed]
Can you some one help me resolve following error while creating dataproc cluster:
Required 'compute.projects.get' permission for 'projects/resounding-rune-442220-d5'
I have corrected all the roles for ...
0
votes
2
answers
59
views
How to enable logs from GCP instances to Google logs exporter?
Sometimes our GCP VM instances reboot without any apparent reason, and I want to view the logs of the VMs using the Google Logs Exporter service. In my GCP project, I have more than 200 instances, but ...
0
votes
1
answer
38
views
Self Hosted AzureDevOps agent disconnection after few mins of inactivity with error "Socket Error: ConnectionReset"
I'm running AzureDevOps Pipeline on GCP VM.
I have successfully attached one of the GCP VMs as a Self-Hosted agent to AzureDevOps to provision resources in GCP.
I can run all the pipelines ...
1
vote
2
answers
47
views
schedule autoscaler in terraform for GCP?
I am trying to schedule an autoscaler in GCP using terraform. I want to schedule it using cronjob and according to google documentation but it's not working.
This is part of my main.tf as per the ...
0
votes
0
answers
173
views
Make gemini-1.5-flash-002 accesible for my GCloud Run project
I am trying a basic script to summarize text:
def generate(self, text_to_summarize):
vertexai.init(project="<PROJECT_ID", location="MY_REGION")
model = GenerativeModel(
...
-1
votes
1
answer
13
views
How can I deploy a Google Compute Engine (GCE) with consitional externalIP
as an org policy, we can't have external IPs on VMs in lower environments.
how can I conditionally have external IPs in a terraform resource block for google compute engine?
0
votes
1
answer
68
views
default application credentials giving error in Google Cloud VM - ODBC Drivers for Bigquery
So I am testing a SSIS package connecting to a Bigquery dataset. I have downled and installed the odbc driver from - https://cloud.google.com/bigquery/docs/reference/odbc-jdbc-drivers
Now I am getting ...
0
votes
1
answer
103
views
Terraform deployment GCE default service account error
When trying to deploy a project via terraform I’m getting the bellow issue:
Error: Error when reading or editing GCE default service account: googleapi: Error 401: Request had invalid authentication ...
0
votes
0
answers
41
views
GCP vm instances - external IP won't open
I'm new to GCP and am actually taking a Udemy course on it - but I'm stuck at the first hurdle.
In the course video, the guy sets up a default vm instance, opens SSH-in-browser and installs updates ...
0
votes
0
answers
44
views
Cant create VM instance from artifact image via node sdk
I am trying to create a VM instance based on a artifact image which works fine in the console and creating VM instances works as well via the sdk even attaching the image works even tho this is no ...
0
votes
0
answers
57
views
Null cluster workload name when querying for compute engine cost
When querying for Compute Engine costs I get one record with a null workload name.
What services besides k8s consume Compute Engine or maybe there is an unnamed workload in k8s?
How do I further ...
1
vote
2
answers
61
views
Is there float32 precision on Google TPU?
I plan to use Google TPUs for scientific numerical simulation (finite element analysis).
That said, do TPUs support float32 for computation? If the precision is too small its unsuitable for me.
There ...
0
votes
2
answers
364
views
Using custom N2D machine type for GKE node auto provisioning
I am using GKE 1.29 cluster with cluster autoscaler and node autoprovisioning. As of now I am using the N2D machine type for my GKE workloads, and there I am using the n2d-standard-4 machine type ...
0
votes
0
answers
45
views
Google Cloud SUSE Linux VM ignoring startup script to regain root access
I tried to increase the size of my VM's sda disk but it is now stuck in boot loop as the root sda partition did not resize.
Unfortunately, the VM has a root password that has not been documented so I ...
0
votes
1
answer
127
views
Google GCE Container OS docker.io URL format
I am trying to create a GCE instance using Container OS. It fails every time with two errors:
Aug 28 16:41:35 instance-20240828-163551 systemctl[995]: Failed to start docker-events-collector.service: ...
0
votes
0
answers
17
views
Google Cloud Engine wont find google module at start up [duplicate]
I am using Google Cloud Engine VM with Ubuntu 20.04.4 and I am trying to run a start up script that runs a python file. The root user dosent recognise the google module.
Aug 26 16:57:00 instance-...
0
votes
1
answer
85
views
Google Earth Engine GEE - Add Landsat 8 images to existing code (working on S2) to retrieve lake surface area
I am completely new to GEE. Just need to retrieve lake surface area since 2012 at some locations.
I managed to 'mix and match' codes that i found online, and I came up with this: https://code....
0
votes
0
answers
140
views
Constantly receiving the Kernal : XFS file system (Or) Disk I/O write back errors after executing the few application testcases
**Prod Error Logs Received:
**
XFS (dm-3): metadata I/O error in "xfs_buf_ioend+0x2af/0x620
XFS (dm-3): metadata I/O error in "xfs_buf_ioend+0x2af/0x620 [xfs]" at daddr 0x6c8c50 len 8 ...
0
votes
0
answers
26
views
gcp set "Control VM access through IAM permissions" on existing vm for oslogin
In order to enable oslogin to an existing vm of gcp,I have set up enable-oslogin in project setup and user is granted as osadminlogin.
However this vm is an existing vm, no way to choose "Control ...
0
votes
1
answer
207
views
GCP Committed Usage Discount(CUD) Utilization REST API
I have a commitment created in GCP cloud for a reservation. The commitment includes a VM e2-micro and a single virtual CPU with 1024MB memory. I am trying to get a utilization of this resource till ...
0
votes
1
answer
365
views
GKE Ingress Error: "Missing one or more resources. If resource creation takes longer than expected, you might have an invalid configuration."
I am using helm to deploy an GCE external ingress on a GKE cluster but i kept getting this error Missing one or more resources. If resource creation takes longer than expected, you might have an ...
0
votes
0
answers
20
views
Google Compute Not Saving /etc/init.d/script
I created a my own init.d script: using bash on command shell:
sudo nano /etc/init.d/myscript
Here is my script:
#!/bin/sh
case "$1" in
start)
echo "Starting my script"
/...
0
votes
0
answers
30
views
Attempting multiprocessing with GCP TPUs but the shell dies unexpectedly
I have access to 32 preemptible Cloud TPU v4 chips in a US zone and am attempting to run my PyTorch model using the following Python code:
import os
import sys
import pickle
import torch_xla....
0
votes
1
answer
89
views
Keycloak NextAuth Timeout Error with Cloud Run and GCE
I'm deploying a website using authentication via Keycloak. The frontend of the website is deployed on Google Cloud Run, and the Keycloak server is running in a container on a Google Compute Engine ...
0
votes
1
answer
125
views
What is the fee for GCP Custom Image sharing between regions
I'm new to GCP and have some experience with both Azure and AWS.
In my work, need to have a custom image in one project and share it publicly across multiple regions.
In both AWS and Azure I have to ...
0
votes
0
answers
33
views
How do I create a GCE VM with an external IP using Deployment Manager?
I'm trying to use Google Cloud Deployment Manager to create a GCE VM instance with an external ephemeral IP address when network is set to something other than "default".
What I mean by the ...
1
vote
1
answer
326
views
TPU V4-64 Runtime Error: TPU initialization failed: Failed to establish SliceBuilder grpc channel
During the TPU Research Program, I tried to use TPU V4-64 as I have 32 free on-demand TPU V4 chips.
However, unlike TPU V4-8, the test codes provided in the tutorial didn't work whenever I used TPU V4-...
0
votes
0
answers
58
views
ModuleNotFoundError: No module named 'photo_app.wsgi'
I'm trying to deploy my Django application using Gunicorn and systemd on an Ubuntu server. However, the Gunicorn service fails to start with the following error.
**ModuleNotFoundError: No module named ...
0
votes
0
answers
182
views
How to increase resource limits for ephemeral storage on GKE
We've got a few batch processing jobs running on GKE/Kubernetes that need anywhere between 30-250Gi of temporary disk space to execute. In order to make them work without (slow) PVCs, we've now added ...
0
votes
0
answers
67
views
OCFS2 on Google Cloud Platform GCP/GCE - FATAL: Module ocfs2_dlmfs not found linux-modules-extra
I installed OCFS2 on my google cloud server, when I try bringing o2cb online, I get this error:
Loading filesystem "ocfs2_dlmfs": Unable to load filesystem "ocfs2_dlmfs" Failed
The ...
0
votes
1
answer
187
views
How to pull GCR images from a GCE instance through GitHub Actions
I am implementing my GitHub Action workflow file which is supposed to update my docker images hosted on GCR, and then log into my GCE instance to pull the newly updated images with docker compose.
The ...
0
votes
0
answers
82
views
Cannot transfer files from Cloud Build to Compute Engine with SCP via internal IP
I'm currently using Cloud Build to build HTML and JavaScript codes when they're pushed to a specific repository on GitHub.
After build process is completed, files and folders are transferred to a ...
0
votes
1
answer
134
views
GCP Services (GCE, GKE, SQL) shown as "Networking" in Billing reports
This is how my billing report looks, grouped by Service:
In above period of time, I was using 4 services in my GCP project:
a GKE standard cluster
a GCE VM
an SQL postgresql instance
a temporary GKE ...
0
votes
0
answers
32
views
Intermittent Process Stoppage with Requests Library in Django App on Google Compute Engine When Using Gemini API
I am developing a web application with Django.
The environment is n2-standard-2(debian) on Google Compute Engine.
I am using the requests library to make a request to use gemini-1.5-flash using the ...
0
votes
1
answer
63
views
After Start Compute VM Instance in GCP my VM external IP and SSH doesn't accessible
In Google Cloud Platform ( gcp ) I have some Compute VM where host my website. I need to stop some VM temporary. After passed some hour, I need to start VM again. My Compute VM has been started but My ...
0
votes
0
answers
115
views
How to use Google Cloud TPU VM in Colab?
I have create a TPU VM in Google cloud. I am able to ssh into it and run computations.
Colab allows backing the runtime with a custom GCE VM. I tried connecting with the TPU VM project, zone and ...
0
votes
1
answer
161
views
deleting disks also removed the instant snapshots in GCP
I deleted few disks but then their instant snapshots are also gone, there is not trace of the snapshots in GCP console.
the documentation clearly mentions that disk delete wont delete the snapshots. ...
0
votes
0
answers
114
views
Can I map port(s) from a container to its host on GCE using `gcloud create-with-container`?
I am trying to spin up a dockerized web app on my GCE instance. I want to be able to access my app from the external ip provided by GCE without SSH-ing into my instance to map the ports. gcloud ...
0
votes
0
answers
110
views
Is there yaml container definition specification for GCE COS image somewhere?
I'm using GCE VM with COS image running a container. To make it work with Terraform I'm using a terraform-google-modules/container-vm/google and then pass it as matadata key gce-container-declaration ...
0
votes
2
answers
173
views
Error: Error waiting for instance to create: required iam.serviceAccountUser role on the service account
Hi When i try to create a instance in GCP i am getting issue with the user role where the error message is given below. I am getting same error for another instance creation process. Even i mapped the ...
0
votes
2
answers
52
views
Docker connection issues on Compute Engine
I am currently working on a web-app which uses postgres and Node.js Express. I have dockerized this application and pushed it to the Artifact registry. I have pulled both the images to the VM.
My ...
0
votes
1
answer
305
views
What is the best way to set up self-hosted runners with ARC and GCP?
I'm in the midst of configuring self-hosted runners on GCP. Right now, I have 3 options that I'm considering:
GCE managed instance groups with SpotVMs
Standard GKE with SpotVMs
GKE Autopilot with ...
0
votes
1
answer
212
views
powershell@2 task download is failing on self hosted gcp windows 2022 agents
We're facing an error for powershell@2 task on GCP VM. Our VM running windows 2022 with TLS 1.2 support are failing to download PowerShell with below error:
Downloading task: PowerShell (2.237.5) ##[...
0
votes
1
answer
76
views
Create gc bucket with bash script
I want to automate the process of creating a Google Cloud bucket. For this, I have written a script that should do it. It should make a bucket to store media in from a dotnet appliation. Without the ...
0
votes
0
answers
261
views
Labels fingerprint either invalid or resource labels have changed in Google cloud platform
I am trying to set label and labels fingerprint for a VM instance programmatically, on Java.
Here is how I implemented it.
public void addLabelsToInstance(String projectId, String zone,String ...
0
votes
0
answers
306
views
By default , port 80 is open on google cloud compute engine VM. How to close it?
I am new to google cloud. I created a VM on google cloud. And installed apache2 web server. And added some dummy code in '''echo "Hello World" > /var/www/html/index.html'''. And started ...
0
votes
0
answers
111
views
Create compute engine from instance-template using gcloud CLI
I want to create a compute engine from a instance-template using the gcloud CLI.
I have created a instance template named it-collector-server. When I try to create a server with the instance template ...
0
votes
0
answers
117
views
pg_rewind: servers diverged at WAL location
We have a primary and one standby as our HA setup for postgres 15.6. we are using repmgr 5.4.1.1 for our HA setup. We were testing a scenario, if a primary goes down, it is able to do automatic ...
0
votes
0
answers
35
views
How to update custom tag Key in GCP compute engine
I have created a cutom tag key and associated value for a particular instance in GCP compute engine. How i can update/delete the tag key by programatically by using google compute engine sdk in java?
...
0
votes
0
answers
39
views
Cannot call the backend API in my react code hosted in a frontend VM but can curl the backend API
I have 2 VPCs, one VPC has a frontend VM amd has the react app hosted in it. It has an application load balancer attached to it and I am able to access it properly in my browser. However, the app is ...