Golang : Glibc Not Found
I’ve written some Go code and in development it worked fine but now I need it to run on an old server and I get this error
Read more ..../my-code: /lib64/libc.so.6: version `GLIBC_2.32’ not found (required by ./my-code)
A Web Developer’s Blog
Posts from 2023
I’ve written some Go code and in development it worked fine but now I need it to run on an old server and I get this error
Read more ..../my-code: /lib64/libc.so.6: version `GLIBC_2.32’ not found (required by ./my-code)
I am working on a NextJS project that has 9 websites with different content and themes but the exact same structure.
We want one codebase and one server to reduce costs (and the carbon footprint of our cloud) and also to streamline the process of releasing new features.
So we’re using middleware to detect which host the incoming request is for and add that as a parameter - which worked fine in development but I had some problems moving to our production system which is in Kubernetes.
Read more ...I really like the way Go imports json into its own data structures.
You just define a struct, annotate it to map the JSON field names to the struct field names (taking care to follow the Go convention of using Capitalised initials where the field is public).
There are also some great tools to automatically generate the struct from JSON
But where I got stuck was with JSON that is flexible and doesn’t match something I can directly make in Go.
Read more ...kubectl is the kubernetes swiss army knife - as well as being able to manipulate kubernetes it gives access to loads of data
But to make use of that data we need to format it - and one of the more powerful ways of doing this is using gotemplates
the help page just says
–template=’':
Template string or path to template file to use when -o=go-template, -o=go-template-file.
The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
which isn’t on it’s own terribly helpful
Read more ...Connecting Strapi to a Digital Ocean Managed Mysql database required jumping through a couple of hoops
The managed database is available over SSL using a custom CA certificate
Read more ...In Kubernetes my pod was failing with
env: can’t execute ‘node’: Text file busy
It worked fine locally using docker
Read more ...JWT uses secrets which are stored securely
This secret is used to sign (opr encrypt) the token - and then the token can be validated using this secret. If the secret is shared between multiple servers - the token can ba validated on any of them.
The secret can change over time (at which point any previous tokens expire) and should be different in each environment eg there is no need to have the same secret in staging and production as token should not be valid across these.
It hasn’t been especially clear to me how a new token is best generated.
Read more ...The JavaScript ecosystem is a sea of choices and it seems to be all too easy to make an incompatible selection.
In my case I am using the Yarn package manager, the VSCode editor and TypeScript flavoured JS (I don’t think it really counts as a different language)
Every import statement was triggering an error in VScode
Read more ...Cannot find module ’’ or its corresponding type declarations
Some quick notes on how to debug containers in Kubernetes
If you are running services via docker, how do you make sure they start up after a reboot, after restarting the docker daemon, or just after they crash?
Read this page Start containers automatically