Latest Server related questions

Score: 0
dorinand avatar
Ansible 'command' task missing 'stdout' for 'nginx' config verification
ng flag

After deploy new configuration of Nginx, I would like to verify configuration before Nginx handler for reload is applied. This is output of command line:

nginx -t && echo $?
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
0

Based on output above, I configured Ansible command task like this:

- name: Verify N ...
Score: 0
Arrow Root avatar
"ps -aux" or "top" equivalent for Windows Server
sm flag

I need to check which processes are running on a Windows Server instance, I'm looking for something similar to top or ps -aux, but I'm only finding references to use Task Manager with GUI.

What is the best way to check the running processes via command line in a Windows Server machine?

Score: 1
Cimbali avatar
Whitelist cgroup from wireguard VPN
ru flag

I have a wireguard VPN, setup and enabled through NetworkManager, called wg0. I want to allow a program to access the internet directly without going through the tunnel. For this I’m trying to match by cgroupv2

Here’s what the routing looks like:

> ip -4 addr show dev wlan0
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 10.126.232. ...
Score: 0
Ror avatar
Mariadb creates a subprocess after crash
om flag
Ror

We recently had a crash on our Mariadb server (10.6.5) on a Debian 9 VM. The process was restarted without error but now there's a second mariadb process like so :

mysql    26718  5.1 42.4 15062644 12788308 ?   Ssl  Apr13  61:53 /usr/sbin/mariadbd
mysql    26777  1.9 11.5 15152500 3488712 ?    S    Apr13  22:38 /usr/sbin/mariadbd

which seems to be a subprocess of the first one.

We can't stop those two pr ...

Score: 0
eiro avatar
High CPU usage by systemd on Ubuntu Desktop v 22.10
sb flag

I'm running Ubuntu Desktop and I've noticed that systemd periodically consumes a lot of CPU. This seems to happen periodically and without any obvious triggers. In the past, when I've restarted the machine, the problem disappeared, but I want to understand why this is happening. I used strace to investigate and found that when the CPU usage became high (I know this because of the sound of the CPU fan ...

Score: -2
ouya olivier avatar
How to fix MySQL installation in Ubuntu:20.04 Docker container
bj flag

invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. ... Cannot stat file /proc/3352/fd/0: Permission denied Cannot stat file /proc/3352/fd/1: Permission denied Cannot stat file /proc/3352/fd/2: Permission denied Cannot stat file /proc/3352/fd/3: Permission denied Cannot stat file /proc/3352/fd/4: Permission denied Cannot stat file /proc/3352/fd/5: Permis ...

Score: 1
THEMike avatar
FROM address for system emails on Linux (Postfix)
cn flag

I have an unbuntu server using sendmail and postfix to send apticron, cron etc emails.

postfix is configured to use a smart relay, the smart relay is rejecting emails as they come from the subdomain of the server rather than the domain.

So, I have a server called backup on mydomain.com emails were set with a From: header of backup.mydomain.com and our relay is only configured to allow emails from

Score: 1
mmxland avatar
OpenDayLight SDN: Can't get openflow table info via OpenDayLight RESTCONF
nf flag

I'm trying to connect several openflow OVS instances to OpenDayLight SDN.

My switches succesfully attached and I can get the nodes informations via the following RESTCONF request:

/rests/data/opendaylight-inventory:nodes

But I can't get openflow table information via a TABLE url. Official documentation says I can use a RESTCONF request similar to:

/rests/data/opendaylight-inventory:nodes/node=ope ...

Score: 2
Liquid avatar
Debugging Prometheus OOMkilled despite 6Gi limits
zm flag

I'm at the end of my patience with a prometheus setup leveraging kube-prometheus-stack 44.3.0 (latest being 45).

I have two environments, staging and prod. In staging, my prometheus runs smoothly. In prod it has started crashing with OOMKilled errors roughly every 4 minutes.

Things I already tried:

  • Increased the scrape interval from 30s to 300s
  • Identified heavy metrics and dropped them before ingestion ...
Score: 1
Bob5421 avatar
Linux GID and groups
hm flag

On Linux systems, /etc/passwd file contains an UID and a GID per user. GID represents the ID of the primary group of the user.

But we can also set additional groups to a user with /etc/group file.

Is there a difference between primary and additional groups for a user ?

Let's take 2 examples:

  • Example 1:

/etc/passwd:

test:x:1000:151:test,,,:/home/test:/bin/bash

/etc/group

group1:x:151:
group2:x:152:t ...
Score: 0
AguThadeus avatar
What does lower case "g" mean in top output?
cg flag

Can someone please help explain this, I have always used to interprete the "g" in top output to be size in Gigabytes even though the convention is to use uppercase "G" but now I am having second thoughts.

I was monitoring my system memory usage when I found chrome using up to 1132.9g under VIRT column - an imposible amount of memory for the resources I have in my computer.

How can this be possible?

 ...
Score: 0
user8472 avatar
OpenVPN TLS handshake fails, no log messages
cn flag

I have set up an OpenVPN server (version 2.5.9) on CentOS (Stream 9) and several clients. Unfortunately, clients always log this error message:

2023-04-14 09:24:21 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2023-04-14 09:24:21 TLS Error: TLS handshake failed

On the server I have set the logging verbosity to 9 and verified with tcpdump that UDP ...

Score: 0
sebastianwth avatar
Running Tests in a Kubernetes cluster
pf flag

We have code that deploys new kubernetes clusters with core infrastructure services like cert-manager, external-dns, load balancer controllers etc in a cloud environment. We provision these with the intent that others in the organization can quickly spin up new cluster while conforming to standards set by security, IT, and so on.

After deploying our cluster and services using helm charts, we don' ...

Score: 0
CDuv avatar
Standalone Samba 4.13 server with LDAP backend: Windows 10 clients fails (Windows 7 is OK)
ph flag

I have a running Samba v4.13 standalone server (no Active Directory nor Samba Domain) on Debian using an LDAP passdb backend (ldapsam) which was working just fine with Windows 7 SMB client but does not work with Windows 10 client.

At first Windows 10 client could not even display the list of shares, so I had to allow SMBv3 protocol by changing configuration from:

min protocol = SMB2

to:

server min p ...
Score: 0
JakeUT avatar
IIS with alternate name in SAN Cert prompts for Credentials
ky flag

I have a server (server01) running IIS with a Web certificate installed. The certificate has the following SANs -

  • server01.companyname.com
  • server02.companyname.com

The binding on Default Web Site for HTTPS for 443 has no HostName specified (intentionally left blank). The site configured has Windows Authentication enabled.

When accessing the website with server01.companyname.com, all works well.

Score: 1
c44761 avatar
nftables: Possible to block SYN packets with payload?
fm flag

Is it possible to drop all TCP SYN packets with a payload using nftables?

The man pages mention various length options, but none that I could get to work for TCP packets without syntax errors.

I am using kernel v6.2.10, and nftables v1.0.7.

Score: 0
Cat Mucius avatar
Limiting outbound traffic to AWS Management Console or other Amazon consoles
ng flag

I've a network whose outbound traffic is strictly limited to a whitelist of sites or domains. I searched and couldn't find any documentation about how could I allow stations on this network to use AWS Management Console without allowing any arbitrary outgoing connections.

Is there any minimal list of hostnames, domains or IP ranges - similar to https://learn.microsoft.com/en-us/azure/azure-portal/azure-p ...

Score: 0
Kevan Lanister avatar
OpenVPN route-up script after trusted
br flag

I am trying to execute a client connection script from my OpenVPN server that will work AFTER the peer is trusted. I.E. I want to be able to ping the client address after the tunnel is fully established. Currently, it seems with client-connect or route-up, the peer has an IP address but it is unpingable. what is the best way to allow my server to automatically interact with clients upon initial co ...

Score: 0
zar avatar
How to send mail using exim4 via gmail smtp: how to enable SPF or DKIM without a domain?
ge flag
zar

I would like to send mail from my debian box to my personal gmail account.

When I try to send emails, I receive an error from Google. This is what I can read in /var/log/exim4/mainlog:

2023-04-13 21:31:41 1pn2fV-0032Fu-IA <= [email protected] U=roberto P=local S=409
2023-04-13 21:31:41 1pn2fV-0032Fu-IA H=gmail-smtp-in.l.google.com [2a00:1450:4013:c03::1a] Network is unreachable
2023-04-13 2 ...
Score: 1
delete avatar
How to re-organize partition sizes on a Software RAID on Ubuntu?
tj flag

I have an existing Software RAID consisting of 4 partitions on a Server running Ubuntu 22. I want to decrease the size of the md2 partition and increase the size of the md3 partition.

How do achieve that without data loss? The partition to be decreased in size has sufficient space to do so.

root@Ubuntu-2204-jammy-arm64-base ~ # cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4] [linear] ...
Score: 0
MAMProgr avatar
How to delete Software RAID1 partition?
in flag

I have Debian 11 server with software RAID 1 without lvm:

root@debian-base ~ # lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
nvme1n1     259:0    0  3.5T  0 disk
├─nvme1n1p1 259:1    0    4G  0 part
│ └─md0       9:0    0    4G  0 raid1 [SWAP]
├─nvme1n1p2 259:2    0    1G  0 part
│ └─md1       9:1    0 1022M  0 raid1 /boot
├─nvme1n1p3 259:3    0    2T  0 part
│ ┠...
Score: 5
machinarium avatar
pgrep returns extra processes when piped by other commands
cn flag

Here is a very strange question about using pgrep to search which shell processes are running the same script as the current one.

Here is the test script named test.sh

#!/bin/bash

full_res=`pgrep -a -l -f 'test\.sh'`

res=$(pgrep -a -l -f 'test\.sh' | cat)

echo "short result is $full_res"

echo "weird result is $res"

With output being

sh test.sh &
[1] 19992
➜  logs short result is 19992 sh test. ...
Score: 21
Birth time of files are missing if file is created in a logical volume with size less than 512 MB
us flag

I have a volume group in my system, created with single physical volume.

I'm creating two logical volumes - one with size 100M and one with size 512M.

Any file created on LV with 100M size does not display birth-time attribute. LV with size 512M does not have this issue.

Any clue on why is this so?

Physical volume and volume group:

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sd ...
Score: 0
PouJa avatar
Why AnyIP feature does'nt seem to be working on my ubuntu machine?
in flag

I have an ubuntu VPS with a /64 ipv6 subnet assigned to it from the provider. When I connect to the fresh server the networking daemon configuration is: /etc/network/interfaces:

# Generated by SolusVM

 auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet static
   address 1xx.yy5.2zz.15
   gateway 1xx.1yy.2zz.1
   netmask 255.255.255.0
   dns-nameservers 1.1.1.1 8.8.8.8
   up ip addr add 2a0c: ...
Score: 0
Arman avatar
when does Nginx have unexpected write on disk?
in flag

I use Nginx to cache static files. the main problem is sudden changes on write on the disk.

nginx.conf:

http {
    proxy_cache_path /cache-data levels=2:2:2 keys_zone=images_cache:60000m inactive=2d use_temp_path=off;


    server {
        access_log off;
        listen 8080 reuseport;

        location ~ ^/storage(\d+)?\.my-domain\.com/ {
            # Configure the proxy cache
            proxy_ ...
Score: 0
rbaleksandar avatar
Process with very high RAM usage takes very long to stop using force stop in Task Manager
br flag

We have a Windows Server 2016 with around physical 700GB RAM. A colleague of mine ran a machine learning script in Matlab, that loaded 25GB of data in RAM and during the training the RAM usage increased up to 350GB (usual behavior for many AI algorithms during training). This led to a big drop in performance for many other people (including the colleague who did this). He tried stopping it by force stop ...

Score: 0
Stücke avatar
Capitalize home directories and append string
my flag

In the [homes] section of my smba.conf file, %S is a variable holding the name of the current service. If %S is username, the folder /mnt/data/%S is displayed to user username as "username". Is it possible to display the folder /mnt/data/%S to the user with a capitalized username and another string e.g. "Username - Personal storage"?

Score: 0
Samson avatar
This site can’t be reached in kubernetes minikube
in flag

I applied my react kubernetes manifest file on minikube with the service

I am trying to access it on the browser but I am getting error

This site can’t be reached

deployment.yml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend
  labels:
    app: frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: fronte ...
Score: 0
Abel K.Bil avatar
Reserve IP based on DHCP Option 61 insted of MAC Address
tg flag

a DHCP client is sending a discovery packet with option 61. Now the Windows server 2019 /2022 needs to respond with the offer based on the DHCP reservation, reservation is registered based on option 61 value. However Serve is not generating offers based on my reservation.

  • I won't have mac address, in this scenario.

This is due to the reservation is not configured correctly. I use win server 2022. ...

Score: 0
Andrea Pasianot avatar
Issue with tasks on Windows Server Task Scheduler set to fire every minute
fm flag

Windows Server 2019 Standard.

I set some tasks on Task Scheduler to run every minute. They apparently worked fine, but I found out that sometimes there are "holes" in the executions, even of 15 minutes.

For some of the tasks this is not a big deal, but I have a task in particular for which it is critical that is ran with a certain frequency.

The settings of this task are:

  • general: run whether user i ...

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.