Questions tagged [go]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Finding all IP (4 & 6) addresses for a host with SNMP

I'm replacing some code that used to run directly on various servers with some code that runs on one server in a cluster and interrogates each one via SNMP. This is going well, except when I try to ...
0
votes
2answers
61 views

How to properly forward the request remote address to a proxied Go service?

I have a simple go service that checks the request IP address by using Request.RemoteAddr from the standard net/http package. This go service is deployed behind nginx with the following simple ...
0
votes
1answer
34 views

How does EOL work for a specific package that is part of the main repo in a Linux distribution?

I'm running Ubuntu 18.04 LTS, which has an EOL date of April 2023. go1.10 is included as part of Ubuntu 18.04's main repository. This is already considered EOL. (https://endoflife.date/go) According ...
0
votes
1answer
63 views

Golang - Nginx proxy pass issue

I have a golang application running on port 3001. curl http://127.0.0.1:3001 gives the correct HTML response. But I am facing issues when I am trying to do a proxy_pass via NginX. Below is my NginX ...
1
vote
0answers
325 views

Increase TCP server listen backlog size on Windows

I'm developing TCP server in Go which should be able to accept up to 500 simultaneous client connections. I'm using net.Listen("tcp4", listenerAddress) to create my TCP listener. I had a problem on ...
0
votes
0answers
11 views

Simple Go http test

Have a basic Go http server: package main import ( "log" "net/http" ) type Server struct{} func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http....
0
votes
1answer
686 views

Issue running Golang server binary as a service with Systemd

I am trying to run a Golang server binary as a service with Systemd on Centos 8, but I get an error. This is my script /etc/systemd/system/myserverapp.service [Unit] Description=MyServerApp [...
1
vote
0answers
141 views

Go running on App Engine terminated by container exit (1)

I have a Go app running on Google App Engine. From the logs, I find this error container exit (1). Occasionally, you will see the upstream prematurely closed connection while reading response header ...
1
vote
1answer
456 views

K3S arm64 distributed files systems

I deployed a K3S Cluster on arm64 and I need to have a DFS directly on-premise, It will be better to have it running on the kubernetes stack. Regarding DFS choices there are some options, but...: ...
0
votes
1answer
12k views

In a helm template how can i use items in 1 list to iterate over another list

i want to pre-populate a kubernetes cluster with namespaces and their respective secrets for our apps and services. For that i would like to be able to specify 2 lists, 1 list with secrets, and 1 list ...
0
votes
1answer
46 views

Weird issue with linux network namespace switching

I'm writing a small prometheus exporter in Go to publish network metrics for docker containers. There is a goroutine which gathers the values in the following way: 1. Get all docker containers using ...
0
votes
1answer
404 views

Golang PUT using form data and file

I'm fairly new to learning golang, but I hope someone can help... I'm trying to replicate a process I can do using curl. Essentially I need to create a PUT request, using form data and the contents ...
0
votes
1answer
1k views

Google App Engine Instance is abruptly shutting down on Standard Environment

We are using Google App Engine in Standard environment to ingest large amount of data to Google Cloud Firestore with below configuration: instance_class: B4 basic_scaling: instances: 1 The ...
2
votes
2answers
3k views

Using “Let's Encrypt” TLS with a Google Load Balancer? (Kubernetes/GKE)

I've been trying to test out Kubernetes on Google Cloud, but would need HTTPS/TLS (only) exposed on the deployed application. To start, I just followed this tutorial, which worked fine for plain HTTP ...
4
votes
2answers
575 views

Creating a CloudWatch Scheduled Event with arbitrary data in the `detail` field

I'd like to run a Lambda task on a fixed schedule, with some configuration passed into it by the CloudWatch Scheduled Event that triggers the task. Looking at the documentation here, I can see that ...
0
votes
1answer
1k views

Getting a serving URL for an object in Google Cloud Storage

We have a Golang application running on AppEngine, that uses the following packages: "cloud.google.com/go/storage" apiStorage "google.golang.org/api/storage/v1" "google.golang.org/appengine" "google....
2
votes
1answer
2k views

program 'go' is currently not installed on ubuntu 16.04 [closed]

I ran a sudo apt-get install golang-1.9 from my regular user account on my ubuntu 16.04 and it said everything installed correctly. So then I typed go version and verified I had the right version. ...