Questions tagged [go]
The go tag has no usage guidance.
23
questions
-1
votes
1
answer
196
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 ...
0
votes
0
answers
44
views
Packet capturing using arp poisoning and IP forwarding
I made a script in Golang that allows me to perform ARP poisoning attack and with that I enabled IP forwarding to forward the packets to my router. When I use pcap.OpenLive I can only see the packets ...
0
votes
1
answer
557
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 ...
0
votes
0
answers
17
views
Benchmarking applications
I'm looking to benchmark server platforms (bare metal vs virtual machines) and calculate difference in performance + cost that comes while migrating certain workloads from bare metal to virtualised ...
0
votes
1
answer
699
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 ...
0
votes
0
answers
274
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 ...
1
vote
0
answers
47
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. ...
0
votes
1
answer
89
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(...
0
votes
2
answers
785
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
1
answer
67
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
1
answer
805
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
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 ...
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
[...
1
vote
0
answers
325
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
2
answers
604
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...:
...
5
votes
2
answers
47k
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
1
answer
194
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 ...
1
vote
1
answer
1k
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
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 ...
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 ...
4
votes
2
answers
909
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
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....
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. ...