Latest Server related questions

Score: 1
HA kubernetes cluster: Accidental kubeadm reset on 1 master node, connection refused when rejoining the cluster
cn flag

I have setup a kubernetes cluster with 2 master nodes (cp01 192.168.1.42, cp02 192.168.1.46) and 4 worker nodes, implemented with haproxy and keepalived running as static pods in the cluster, internal etcd cluster. For some silly reasons, I accidentally kubeadm reset -f on cp01. Now I am trying rejoin the cluster using kubeadm join command but I keep getting the dial tcp 192.168.1.49:8443: connect: conn ...

Score: 0
John Doe avatar
Batch - Extract string before the specified character
cz flag

How to get the string before the character hyphen? The following code gets the string after the hyphen. How can I reverse this?

set string=1.0.10-SNAPSHOT

echo %string:*-=%

SNAPSHOT

But I want the 1.0.10 instead of SNAPSHOT of if the string is RELEASE

Score: 0
John Doe avatar
Jenkins - Get POM_VERSION without the string SNAPSHOT or RELEASE
cz flag

I need to extract the version 1.1.0-SNAPSHOT from POM_VERSION to just "1.1.0". Is there a way to extract just the version when using Windows batch command?

url -u %tcuser%:%tcpass% '-T .\target\%POM_VERSION%.war "http://localhost:8080/manager/text/deploy?
Score: 0
John Doe avatar
Jenkins maven curl - Can't open target/**.war
cz flag

I'm trying to deploy war file using Tomcat manager remote deploy script but I get the error 'Can't open 'target/**war' file. I'm following a tutorial and it works for the author.

https://community.spiceworks.com/topic/479900-how-do-i-use-wildcards-for-curl-upload article says

The curl command line utility is mainly intended for one-shot file transfers, it doesn't support wildcards per se.

So ho ...

Score: 2
Ruster avatar
Kubernates CoreDNS direct a public url to a internal server
cn flag

I have an app running in Kubernetes clusters which is accessing to a public API URL for e.g. api.server123.com. The app is accessing it within its code itself

I want to resolve that public UZRL to an internal IP like how we can do it in /etc/host i.e. an entry like 1.2.3.4 api.server123.com where that IP belongs to one of our internal servers. This is for me to see the payload sent out and some ...

Score: 0
Don R avatar
Why can't my DB back up to my S3 bucket?
cn flag

I'm trying to test a differential backup and restore on an RDS SQL Server 2019 instance in preparation for migrating some web resources into AWS. Both the EC2 instance (Windows Server 2019) on which I'm running SSMS and the RDS instance have roles with S3 full access using the AmazonS3FullAccess policy (it seems to me like only the RDS instance should need that, but I've been surprised too many t ...

Score: 0
myNewAccount avatar
Does NGINX handle some error events / codes without them being set up in the config by default?
nl flag

Question: Are there some error events / codes that NGINX handles by default?

Background: The following portion of my config stops hotlinking and returns a 403 error.

    location ~* \.(jpg|png|svg|webp|ico)$ {
        valid_referers none blocked server_names ~\.bing\. ~\.duckduckgo\. ~\.facebook\. ~\.google\. ~\.instagram\. ~\.twitter\. ~\.yahoo\.;
        if ($invalid_referer) {
            retur ...
Score: 0
Joe avatar
samba-tool ldp_wrap open of secrets.ldb
cn flag
Joe

The title is the message I receive every time I use samba-tool:

root@DC01:~# samba-tool group list
ldb_wrap open of secrets.ldb
Print Operators
Denied RODC Password Replication Group
Server Operators
...

I don't know where that line (ldb_wrap open of secrets.ldb) is coming from as I didn't explicitly set a non-standard log level. Is there any way to get rid of that from my output?

This is on an Ub ...

Score: 0
ERR_CONNECTION_RESET When Using HTTPS Hosted by IIS 10 and Windows Server 2019
vn flag

I have a site hosted in IIS 10 on a server running Windows Server 2019. I've set up an HTTPS certificate with Let's Encrypt. Attempts to view the site with http:// work normally, but when I enter https://, I get an ERR_CONNECTION_RESET error in Brave (which is based on Chromium). The problem is the same from any client computer I've tried.

On the server, Wireshark shows the request being recei ...

Score: 0
Dave avatar
Layer 2 Network vs Layer 3 Network
in flag

I am very new to networking world and forgive me if its a lame question - My question is even though network operate using all 7 layers present in OSI model, often I hear people asking is it layer 2 network or layer 3 IP based network. Why is that? I understand the difference between layer 2 and layer 3 (packet vs frames)

Score: 0
h.safe avatar
Nginx reverse proxy the Minio
ru flag

I am trying to put an Nginx in front of my Minio to serve the static files from the buckets. There are recipes both from Minio and Nginx sites but they never mention a very important concept: credentials. How can I set the simplest way that my nginx can log in to minio and fetch the items? I know there are native codes like python or PHP clients but would like to do it with nginx as it is talking  ...

Score: 1
tar -xvf error "Can't restore time" when trying to extract in certain directories on mac osx but works in others
cn flag

Strangest thing.

I downloaded the openjdk release here: https://jdk.java.net/16/

When running tar -xvf on the file in the ~/Downloads directory it works fine.

But when running in /tmp or another directory I have in my home folder I get the error: "Can't restore time"

Anybody seen this before?

Score: 3
sendmail (or postfix) is always failing with Helo command rejected
cn flag

On digitalOcean this tutorial points to installing postfix. I've attempted this and also uninstalling postfix then installing sendmail

When a test mail is sent, invariably there is an error in identifying the sender

 451 4.7.1 <m-dev>:  Helo command rejected: HELO string 'm-dev' does not match last HELO string 'theactual.ws' from this IP *(when testing with sendmail)*

[with postfix it complai ...

Score: 1
Ahmed Hamad avatar
Apache setting "SetEnv PHP_ADMIN_VALUE open_basedir=path" is not restricted to its virtual host config
us flag

I have an Apache web server installed on my Ubuntu server 18.04 with many virtual hosts configured, I use different open_basedir for each vhost, recently I had to change normal php7.2 to php-fpm to be able to enable http2 since mpm_prefork is not compatible with http2 so I disabled it and used mpm_event and php fast cgi. The point here : I had to switch open_basedir syntax from :

php_admin_value ...
Score: -1
wujt avatar
Global Load Balancer, but not exposed to Internet
eg flag

Goal:

  • several VM's acting as a db cluster in multiple regions
  • single internal IP on LB
  • no public exposure
  • traffic forwarded to the closest available backend

Closest solution was TCP Proxy Load Balancing, but it has external IP, which I want to avoid. On the other hand, there is Internal TCP Load Balancer, but it works only within single region. Is it possible to gather multiple backend services (fro ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.