Latest Server related questions

Score: 1
Ethan Solomon avatar
docker postgres backup creates an empty file when run as a cron job
in flag

I'm trying to create a cronjob that creates db backups every night.

My crontab has the job: * * * * * /home/user/scripts/backup.sh (have it set to go off every min for testing)

In backup.sh, I have:

docker exec -it dbContainer pg_dump -U username -d dbName > /home/user/backups/testingBackup.sql

The file is always empty:

-rw-rw-r--  1 user user    0 Jul 14 08:39 testingBackup.sql

However, if I run th ...

Score: 1
Cat Mucius avatar
Data consistency in SQL AlwaysOn Availability Group
ng flag

I have an AlwaysOn cluster of SQL Server 2019, containing an Availability Group of 3 replicas in Synchronous mode. According to Microsoft documentation:

  1. The secondary replica hardens the log and returns an acknowledgement to the primary replica.
  2. On receiving the confirmation from the secondary replica, the primary replica finishes the commit processing and sends a confirmation message to the client.
Score: 0
Are there hooks for Windows Updates?
cn flag

It would be really neat to be able to attach a "blocking hook" to when a Windows Update gets installed so that I could take a snapshot on an ESXi of the machine in question before the update is installed.

In Windows I would imagine that you'd attach it to some kind of event ID in task scheduler, but I don't think it would "block" so that the snapshot happens before the update.

Score: 0
Jethro avatar
ECS Fargate Network Interface with src/dest Check disabled
it flag

When creating an AWS ECS Fargate Service is there a way to set the generated Network Interface's Source/dest check field to false?

The service is set-up following the ECS Fargate getting started guide. The service is running a squid Proxy, which I believe needs to be able to accept traffic destined for other IPs, similar to a NAT.

Altering the src/dest check field after creation gives permissions  ...

Score: 0
Dr.Kameleon avatar
Extra trailing slash when re-directing www to non-www
ru flag

This is my current configuration:

server {
    if ($host = www.mywebsite.com) {
        return 301 https://mywebsite.com$request_uri;
    } # managed by Certbot


    if ($host = mywebsite.com) {
        return 301 https://mywebsite.com$request_uri;
    } # managed by Certbot

    listen 80;
    server_name mywebsite.com www.mywebsite.com;
    return 404; # managed by Certbot
}

server {
    server ...
Score: 1
GTeley avatar
FreeBSD 13 PF blocking jail traffic
id flag

After upgrading my FreeBSD system from 12.2 to 13.0-p3 PF is blocking all traffic to my jails. When disabling PF everything works fine (except from being unprotected ;))

I tried to figure out what rule is blocking this traffic by setting 'block in log all', but apart from some obvious multicast stuff nothing comes up that could explain why this traffic is blocked.

Again, before everything worked per ...

Score: 1
How can I optimize the memory usage of mysql server on ubuntu?
br flag

I have an ubuntu server version 20.04.2 LTS. On it I have installed just mysql version 8.0.25-0ubuntu0.20.04.1

It's a dedicated server so I have my.cnf set up as this:

innodb_dedicated_server = 1
skip_name_resolve       = 1
key_buffer_size         = 16M
myisam-recover-options  = BACKUP
max_binlog_size         = 100M

The server is a vmware VM configured with 10GB RAM, 8 CPU (2 core, 4 sockets).

The ...

Score: 0
iptables NETMAP not reliably adjusting source address of multicast UDP packets
us flag

In an embedded/IoT use case, I have a management host running Linux that needs to be able to talk to multiple networks that each use a common set of static IP addresses.

This mostly works fine, including for UDP multicast traffic, given:

  • network links for each embedded network (call them eth1, eth2, etc)
  • a separate Linux network namespace for each different embedded network (call them ns1, ns2, etc)
Score: 0
King David avatar
mkfs + any solution for “could not read block” or disk replacing
gb flag

we doing mkfs on the disk sda as the following

mkfs.ext4  -j -m 0 /dev/sda -F



mke2fs 1.42.9 (28-Dec-2013)
Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
122101760 inodes, 488378646 blocks
0 blocks (0.00%) reserved for the super us ...
Score: 1
user776206 avatar
GPU server freezes during GPU idling
ar flag

We have a new Supermicro Server AS-4124GS-TNR equipped with eight NVIDIA RTX A6000. The OS is Ubuntu 20.04.2, the NVIDIA driver version is 460.73.01 (no Nouveau driver used), the CUDA Version is 11.2.

We ran a few long-lasting tests on the GPUs and the system was stable. However, after some GPU idling the system crashed repeatedly.

We assume that GpuPowerMizerMode has to be set to 1 to prevent cr ...

Score: 0
n00dle avatar
Our Docker HAProxy keeps getting slow after some time
th flag

We have 2 HAProxies running on two different Docker hosts. These become slow after some time. I monitor the whole thing with an image download every minute.

When I do a speed test on one of the Docker hosts, I get only 26 Mbits/s. If I restart the HAProxy with a docker restart, everything is normal again.

This is our Config:

global
    maxconn 500000

defaults
    maxconn 500000

frontend https-in
    bi ...
Score: 1
Media One DevOps avatar
No permission to create project in organization, when create new project Firebase
cz flag

When I create new project in Firebase with email business I have an error.

The operation has failed (Reason: No permission to create project in organization).

Score: 0
R2Bleep2 avatar
Linux: Mounting a partition on a new physical drive to a directory - where does the data reside (physically)?
us flag

If I have a machine with a single physical disk and I partition and add a new disk to a directory (e.g. /usr/data) long after the OS has been installed and running, where do those files exist physically, and is there a way to ensure they all physically reside on the new disk I added?

Similarly, I have a utility that automatically backs up a my virtual drive in a virtual machine and I'd like to be ...

Score: 1
Nolan O avatar
NGINX + PHP, $_POST data comes empty after passing through nginx
gb flag

Here is the issue, when i try to use NGINX (1.18) and PHP (7.4.3) with FPM (lastest from APT) i run into an issue where all of the POST data from my script returns as null

$_POST['name'];
// console after post: name is undefined

The URL i tried posting too:

/posts/new/post

(the user goes on /posts/new to make a new post, the $_POST request goes to /posts/new/posts)

here is my nginx config:

serve ...
Score: 0
Permission denied with reverse tunnel rsync
us flag

I want Host B to set up a ssh tunnel to Host A so it can rsync with Host C. Only Host B has keys. All three machines use the same key.

I've tried this:

ssh -i ~/.ssh/key -A -R localhost:50000:Host_A:22 Host_C 'sudo -E -s rsync -a -e "ssh -v -l admin -p 50000 -o StrictHostKeyChecking=no" --rsync-path="sudo rsync" /path/ localhost:/path'

However, I'm getting an ssh permission denied error when runni ...

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.