Latest Server related questions

Score: 0
JimmyBanks avatar
Prevent Azure from swapping VMSS release while VM is still booting up
za flag

I use Azure DevOps to release a new VM into a VMSS.

When I release the update, Azure swaps the images while the PHP-FPM process is still booting up. This results in 502 Bad Gateway errors for approximately 30 seconds. The PHP-FPM boot process takes roughly a minute to complete.

What I think is happening is that Azure identifies that Nginx is responding and assumes that the VM is fully booted; howeve ...

Score: 0
Jolie. M avatar
Linux terminal server
th flag

I am getting an error when I sudo dnf repolist:

unable to detect release versions (use ‘—- releasever’ to specify release version) No repository Available 
Score: 1
How do I run sudo commands with a system user?
br flag

I want to run a minecraft server in Docker, so I started following this guide. In the guide, it is advised to create a system user with a home directory (/opt/minecraft), but without a password (you should not be able to "login" with this user) to run the server on. It uses the following command: sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft.

I switched to the newly created minecraft "sys ...

Score: 0
Questi avatar
"hdparm -s 1" on USB disk -> bricked? - USB drive is on power on in standby mode which cannot be reverted with hdparm
in flag

I have a disk which was apparently put into PUIS mode with hdparm. As the disk does not spin up on power on automatically, I think I need to send it directly to the USB device (which is not even recognized as the device doesnt turn on)

I think this means the device is bricked but maybe someone has a solution? The disk is a Western Digital My Passport 4TB with a WD Blue inside, model number WD40NM ...

Score: 0
Disk doesn't show any partition table or partition changes
cn flag

I wanted to clone an encrypted drive to a new drive, so I set up CloneZilla to do a disk-to-disk clone. At the beginning, it said 9 hours to run, so I let it run overnight. The next day, it had 145 hours remaining. I figured I could just wipe the disk, so I forcibly stopped the operation.

Now, the disk shows the partition table (GPT) and the partitions from the original disk, but I can't wipe it. ...

Score: 0
seamux avatar
Unable to stream data from Google Cloud to local machine
kr flag

I'm trying to stream stdout from a VM on Google Cloud Compute Engine to a local machine using nc:

$ mycommand | nc mydomain.net 12345

And listening on the local machine

$ nc -l 12345 | analysis-script

Port 12345 is open on both cloud VM and local machine using ufw:

ufw allow 12345

ISP is Xfinity and port 12345 is forwarded to the local machine. Just for good measure, port 12345 is also open on the  ...

Score: 0
Bogdan avatar
Curl and etc. HTTP requests not working when I connected to vpn
mx flag

Please tell me how to solve next problem: Curl and etc. HTTP requests not working when I connected to vpn. I get a simple error - "could not resolve host". But when i disconnect from vpn everything works fine

I'm using Ubuntu 20.04 on Hetzner and Surfshark VPN.

Score: 0
Nginx subdomain is rerouting to main domain
pr flag
Tom

I have an nginx webserver hosting an old site. This site has been migrated to a new site but I want to keep the old site live on a subdomain, legacy2.example.com. I've gone through and modified the sites-enabled and sites-available config files and linked them, as well as created an A record to legacy2.example.com pointing to this IP, however it is still redirecting to domain.com, not legacy2.example.co ...

Score: 0
firewalld: logging of blocked outgoing connections
in flag

I have configured firewalld so that the firewall will blockes also outgoing connections. The outgoing traffic I need I have white listed by adding specific rules. This works fine.

But now I want to know, if there are outgoing connections which are currently still blocked by firewalld. To check this I have set LogDenied to all and restart/reload firewalld. Now I can see many firewalld message in

Score: 1
Ted Lyngmo avatar
body_checks: How to filter base64 encoded content?
cn flag

The idiomatic answer is probably "don't - use a filter that decodes the message first", but as can be seen in the second answer to that question, it should also be possible with body_checks which is also what the BUILTIN_FILTER_README @ postfix.org says - and that's what I'd like to do.

Here's one that's been bugging me for quite some time:

--===============6489786132958404869==
Content-Type: text/pl ...
Score: 0
How to convert Nginx config to Apache2 for Modoboa
se flag

I am trying to setup Modoboa and can't get the new admin page working because it needs this config which is in Nginx but I am using Apache2 can anyone help me with this config

https://modoboa.readthedocs.io/en/latest/upgrade.html?highlight=new-admin#new-admin-interface

location ^~ /new-admin {
    alias  /srv/modoboa/instance/frontend/;
    index  index.html;

    expires -1;
    add_header Pragma "no ...
Score: -3
Configuring IP and network address for Windows Mobile Hotspot
es flag

I'm using Windows Mobile Hotspot on my laptop to share its Internet connection with other devices.

It sets up a DHCP service, using 192.168.137.1 as the gateway address, and leasing out addresses on 192.168.137.xxx network.

How can I change these settings? Suppose I want my gateway address to be 192.168.13.37, and the users of the Mobile Hotspot to be assigned 192.168.13.xxx addresses.

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.