Questions tagged [go]

The tag has no usage guidance.

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

Connection timed out issue with Postfix

I wrote a Golang program that sends reports based on a ticker. Those reports are sent by mail using Postfix on a CentOS 7 machine. My problem is that the mail is sent successfully to users inside the ...
user avatar
  • 1
0 votes
0 answers
7 views

Is there -k or --insecure equivalent of curl for azure sdk for go?

curl contains options like '-k' /'--insecure' to allow insecure SSL connections/transfers, is there anything in azure-sdk-for-go or azure go-autorest
user avatar
  • 1
0 votes
1 answer
37 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 ...
user avatar
  • 3
0 votes
0 answers
103 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 ...
user avatar
1 vote
0 answers
40 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. ...
user avatar
0 votes
1 answer
41 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(...
user avatar
0 votes
0 answers
66 views

GOGS reverse proxy on IIS

I'm trying to reverse proxy the sub.domain.com/gogs to localhost:3001 - GOGS port. I tried creating a new application on the default web site The folder that it points to is the main gogs folder. I ...
user avatar
  • 9
0 votes
2 answers
332 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 227
0 votes
1 answer
339 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 ...
user avatar
1 vote
0 answers
910 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 ...
user avatar
  • 111
0 votes
1 answer
1k 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 [...
user avatar
  • 337
1 vote
0 answers
219 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 ...
user avatar
1 vote
2 answers
572 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...: ...
user avatar
  • 113
4 votes
2 answers
31k 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 ...
user avatar
  • 51
0 votes
1 answer
88 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 ...
user avatar
1 vote
1 answer
830 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
2 votes
2 answers
4k 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 ...
user avatar
  • 289
4 votes
2 answers
795 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 ...
user avatar
  • 347
0 votes
1 answer
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....
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. ...
user avatar
  • 7,033