Questions tagged [go]

The tag has no usage guidance.

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

Health Check Failures and 502 Errors with HAProxy and Golang Fiber Instances

I have a setup where Server A acts as the client, communicating with Server B through HAProxy. Server B runs four similar Golang Fiber instances, each with Prefork enabled on an EC2 t3xlarge instance. ...
realnsleo's user avatar
  • 117
0 votes
1 answer
28 views

Idflags is not working for setting Version for go build

I am fairly new to using Go and I have noticed when I build the Go project I have cloned from GitHub via: $ go build The executable is built, but when I run: $ mediamtx --version I get v0.0.0 I ...
Jeremy Leys's user avatar
0 votes
1 answer
424 views

Listening on all interfaces, multiple servers

I have a server listening on all interfaces for a port (using go net.Listen("tcp", ":{port}")). I also have backup server with the same code, to start if first server fails. Both ...
Lovish Puri's user avatar
-1 votes
1 answer
2k views

Redhat ubi8-micro container without trusted root ca certificates

I want to run a simple GO application on the registry.access.redhat.com/ubi8/ubi-micro image. But unfortunately I get x509: certificate signed by unknown authority errors in my app because there it ...
Michel's user avatar
  • 183
0 votes
1 answer
818 views

Error running an Docker container or docker compose with postgres, golang and Debian 11, Agora appbuilder backend

I spun up a Debian 11 EC2 on AWS, and installed postgres 14.5 on it and docker and docker compose on it.I added a superuser to postgres of "admin' with a password. I created my docker-compose.yml ...
gwhiz's user avatar
  • 57
0 votes
1 answer
1k views

Best way to update a binary?

So I'm making a load balancer that compiles to a binary. This will be scaled across multiple servers. To update, the program itself will check a GitHub repo for a new release every 5 minutes, if there ...
KIVOX's user avatar
  • 3
0 votes
0 answers
333 views

netcat no reaction to syn packet crafted with gopacket

I want to do some experiments with TCP packets. Therefore I am using the gopacket (v1.1.19) to craft packets and send them onto an interface. I have this code for creating a SYN packet and putting it ...
jonathan-dev's user avatar
1 vote
0 answers
53 views

Relate session and NAT logs in near real-time [closed]

I have a user activity logger and querying system for an ISP with very high log events rate (5k-10K /second). It needs to relate both Radius/Session and NAT Syslogs based on a common InternalIP field. ...
iamadnan's user avatar
0 votes
1 answer
102 views

Nginx server keeps serving Debian main page

I am trying to set up a simple custom website. I have built a simple server using Golang and the Gin-gonic framework. My Go server is as follows: func main() { r := gin.Default() r.GET(...
AChenet's user avatar
0 votes
2 answers
1k 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 ...
P.Larich's user avatar
0 votes
1 answer
92 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 ...
sheepbrew's user avatar
  • 237
0 votes
1 answer
1k 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 ...
ArunKolhapur's user avatar
1 vote
0 answers
2k 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 ...
jozols's user avatar
  • 111
0 votes
1 answer
2k 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 [...
Daniele B's user avatar
  • 367
1 vote
0 answers
359 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 ...
user2054002's user avatar
1 vote
2 answers
657 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...: ...
GoA Oz's user avatar
  • 113
5 votes
2 answers
55k 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 ...
rinini's user avatar
  • 61
0 votes
1 answer
242 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 ...
cosenmarco's user avatar
1 vote
1 answer
2k 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 ...
Anonymous's user avatar
0 votes
1 answer
3k 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 ...
Vidhi Thakrar's user avatar
2 votes
2 answers
5k 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 ...
Ben Guild's user avatar
  • 299
4 votes
2 answers
952 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 ...
Chris's user avatar
  • 347
0 votes
1 answer
2k 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....
Bertrand Chardon's user avatar
2 votes
1 answer
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. ...
learningtech's user avatar
  • 7,445