Latest Server related questions

Score: 0
Sam avatar
How to detect traffic change and trigger GitLab pipeline?
cn flag
Sam

We have two etcd clusters running in Kubernetes one act as primary(A) and the second one act as backup(B). We also have etcdctl make-mirror in place between these two clusters, now the problem is if we switch traffic from cluster A to B then cluster B becomes primary, and cluster A becomes the backup cluster. There is an F5 load balancer in front of these two clusters.

I'm looking for a mechanism/trigg ...

Score: 0
openldap master/slave replication configuration return TLS error from slave
cn flag

I am trying to add a TLS secured replication between a master and a slave ldap server. The replication without TLS work well.

I encounter this error from the slave : slapd_client_connect: URI=ldap://master.domain.com Error, ldap_start_tls failed (-11)

Here is my configuration :

----- Master -----
/etc/ldap/ldap.conf
  URI            ldap://master.domain.com/
  TLS_CACERT     /etc/ssl/cacert.pem
  TLS_ ...
Score: 1
Nishant avatar
sudo hangs after some time
vn flag

sudo hangs in my Archlinux (running under Hyper-V) after some time (usually a day).

Since this hangs my system, I have kept a root window open to do strace whenever this happens. strace sudo ls shows a sendto syscall to a socket called /dev/log:

socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 7
connect(7, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(7, "<37>Jan 25 20:04:39 sudo:  ...
Score: 0
Dimitrios Desyllas avatar
Why EC-2 machine is unable to connect into internet if it is behind a Nat Gateway that is associated with a Subnet?
fr flag

I try to implement this network in amazon AWS:

Network

Therefore, I have the following subnets in amazon VPC:

Subnets

The subnet subnet-0ac620105fc198e33 uses a NAT Gateway with an elastic IP having the following route table:

Route table

The nat-0de30b43c561c4161 is my nat gateway.

The others subnets 2 use the default route table: Default route table

And all subnets have the following ACL

enter image description here

The same rules shown above are applied to inbound and outbo ...

Score: 0
Justin Buckley avatar
Virtual IPs on pfSense
fr flag

Setting up a new pfSense router, and I'm a bit confused on how to choose between IP Alias or Proxy ARP for my needs. I do not intend to setup HA, so I'm assuming CARP is unnecessary.

I have a public CIDR block (203.0.113.0/26) assigned from my ISP and configured as such:

Upstream Gateway: 203.0.113.1
Broadcast: 203.0.113.63
pfSense WAN: 203.0.113.2/26
Management LAN: 10.0.0.1/24
DMZ VLAN: 10.0.10 ...

Score: 0
user3574603 avatar
How do I configure Nginx proxy to pass to multiple Sinatra ports?
dk flag

I have a Sinatra app. I start two Thin servers listening on: 4567 and 4568. However, I have configured Nginx to only forward to 4567.

server {
        listen 443;
        listen [::]:443;

        root /var/www/example/public;
        index index.html index.htm index.nginx-debian.html;

        server_name example.com www.example.com;

        ssl                        on;
        ssl_certificate  ...
Score: 1
Computing stripe count for erasure coded storage
cn flag

I'm setting up a ceph cluster (first time for me) which in the end will be made of ~100 disks spread over 10 hosts. I'm going with a single erasure coded data pool to maximize disk space; my constraints are ~80% efficiency and a fault tolerance of 2 disks. This can be achieved most simply with a k=8 m=2 erasure code, but also with k=16 m=4 with the bonus of tolerating up to 4 disk faults.

I'm thu ...

Score: 0
Managing config files with Debhelper
cn flag

I have packaged an application for Debian using Debhelper. The application's config file is located under /opt/{package}/releases/default/ instead of /etc/{package}/ and cannot be moved easily. Up until recently all that was required to mark this config file as a conffile was to include it in the packaging file debian/{package}.conffiles. This had the desired effect that apt/dpkg would detect local chang ...

Score: 0
Sardar Arslan avatar
How can we remove Google cloud builder cache. I am trying to build an image but it gives an error from a previous build attempt
th flag

This is the error it gives but the thing is I corrected the "MKDIR" command to mkdir but the error didn't go away, there is no MKDIR command in my Dockerfile anymore but the error stays the same. I deleted the repositories and even the project, changed directory too. Kindly guide me.

Operation completed over 1 objects/38.7 MiB.
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
Se ...
Score: 0
mehov avatar
The `location` directive has no effect when it contains a variable
no flag

What I want

For my /admin location, whitelist several trusted IP addresses, and block everyone else.

What I have

http {
    map $remote_addr $admin_block_path {
        default "/admin";
        1.1.1.1 "/not-admin";
        8.8.8.8 "/not-admin";
    }

    # …

    server {
        add_header X-Test-Admin "$admin_block_path";
        location $admin_block_path {
            return 403;
         ...
Score: 0
Andy McRae avatar
Remote app loads endlessly on windows server 2016 (Webclient or RDWEB)
cn flag

I have a domain controller (DC) with windows server 2012 R2, from which I create remote apps via powershell on a gateway server (RD gateway - gateway.server.org (fictive name)) which has windows server 2016 and the remote desktop services installed like this.

The process of remote app creation is the following:

  1. Taking a list of users which are on a csv file and putting it in the DC.
  2. Reading the users li ...
Score: 0
Dynamic IP address whitelisting for regular data transfers back home while travelling
fr flag

I will be going on a 100 day (global) tour where we will be generating 1TB of video data per day. To mitigate risk of data loss we plan to drop one copy of hard disks with local volunteers in each country en route, who will upload the data from their home connections back to our server.

We don't want to open up the server to the whole world, and would like to restrict access to just those IPs tha ...

Score: 2
evoelise avatar
Docker Compose Port Not Exposed?
vn flag

I have a simple Python based web server running in a container set up with docker compose that exposes port 8080.

When I docker-compose up the services it reports the ports are exposed but the port is not exposed externally.

What should I look at diagnosing next?

Here's a typical run

➜  demo04 sudo docker-compose up -d
Recreating leagueweb_database ... done
Recreating leagueweb_server   ... done ...
Score: 0
MacOS-specific broken pipe error when trying to connect to OpenVPN server
ms flag

For quick confirmation: this works just fine on a Ubuntu install on the same local network.

I'm trying to connect to an AWS Client VPN endpoint from my MacOS (Monterey) OpenVPN CLI client. The output confirms the UDP local and remote links, pauses, then gives write UDP: Broken Pipe (code=32) errors. I don't believe it's network related (at either my or the AWS end) as the same server is successfully con ...

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.