Latest Server related questions

Score: 0
Kani avatar
Is that possible to monitor mysql in cloudwatch?
in flag

I have some server in EC2, In that i have configured memory/disk usage metric in cloudwatch it is showing overall usage but i want to check memory of particular path How to check that? Is that possible?

Score: 0
Jean avatar
ModSecurity : PCRE limit settings do not have any effects
jp flag

I'm facing Rule execution error - PCRE limits exceeded (-8): (null). errors when I ask ModSecurity to analyse body data (using the SecRequestBodyAccess On directive).

I've read about the problem, and I tried to increase the limit, both on Apache2 and php-fpm :

/etc/apache2/apache2.conf

SecPcreMatchLimit 5000000
SecPcreMatchLimitRecursion 5000000

/etc/php/8.0/fpm/php.ini

[Pcre]
pcre.backtrack_limit = 10 ...
Score: 0
Wojtek_B avatar
How to install rsync 3.2.7 on Ubuntu 20.04.2
jp flag

I want to isntall rsync 3.2.7 on Ubuntu 20.04 - however I'm not sure if that's possible; currently I have 3.1.3 installed on the system (which is installed by default).

I found this question but it only mentions 3.2.3 which doesn't interest me.

Trying to install 3.2.7 from deb package intended for 22.04 obviously failed

After ~1h or researching I couldn't find any way nor information that would poi ...

Score: 0
JonBrave avatar
How to force tar to include certain directories when using --exclude option
ma flag

I need to backup a hierarchy. I need to keep the image as small and fast as possible. I use

tar -c --exclude="..."

with several --exclude=".." patterns to omit quite a few directory/file patterns, and that works fine.

However, the hierarchy has several .git sub-directories dotted around inside it and I do want to include anything below such directories encountered in the backup. There is a chance ...

Score: 0
Codemonkey avatar
"Timed out waiting for device" & dev-disk-by\x2duuid.swap/service failed with result dependency/timeout?
ml flag

My server (running Centos Stream release 8) stopped responding to http yesterday evening. I tried to SSH in to it this morning, with no luck, just an empty hung PuTTy screen. I did a automatic reset through my webhost's control panel (Hetzner), and after a few minutes it was back and everything seems to work fine.

I assumed it had ran out of space, and indeed df showed that /dev/md2 was 100% full (eve ...

Score: 0
TaLeDa avatar
Nexus Repository Manager does not release storage after asset deletion
ru flag

I have a Nexus (version 3.30.0) for a docker registry:

Since a lot of TB data has accumulated here over time, I have built a script that analyses in a relatively complex way which images are no longer needed and then also deletes them via the API with [DELETE] /v1/assets/{id}.

The images are also deleted wonderfully, but the storage space remains the same. I have also run the Admin Task Compact B ...

Score: 0
Radek Hladík avatar
Kube-vip on k3s cluster networking - VIPs from different network
br flag

I am trying to setup simple kubernetes cluster on our own infrastructure. We've decided to use k3s and it seems that kube-vip could fit our needs as control plane and services balancer. I am starting with 5 VMs: 3 for control plane and 2 workers.

The issue I am encountering with kube-vip is that all the VMs have only private IPs (172.16.30.x/24 with gateway 172.16.30.1) while I need kube-vip to a ...

Score: 0
Cool guy avatar
PuTTY ssh tunnel (proxy) not supporting http(s) connections
mx flag

I've setup PuTTY for using it as a proxy. here's a screenshot of my Tunnel panel for specifying a port to connect to

enter image description here

and then in Windows settings, typing in the address for proxy

enter image description here

and it only works for SOCKS connections. not HTTP ones. that's what I don't understand and am asking this question for: how to get PuTTY to setup HTTP proxy besides SOCKS? is it even possible?

  • when I paste an image, it says th ...
Score: 0
Dafik avatar
Application started from start.sh and monit .jar file (systemd)
kr flag

How to correctly write a service that will allow start aplication with start.sh where is a bash command and monitor the (.jar) application?

[Unit]
Description=Some service 
After=syslog.target
[Service]
User=userXService
Restart=always
RestartSec=300s
WorkingDirectory=/opt/test/target
ExecStart=/opt/test/start.sh 
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target

start.sh contains bash scr ...

Score: 1
Medito Di Terra avatar
PHP-FPM static max_children amount doesn't seem to matter much during stress tests
gr flag

I've been stress testing PHP-FPM set up as static using wrk, with NGINX running on Ubuntu Server 22.04 for the past few days, writing down results for every scenario. When I look at them, it seems to me, the amount of max_children doesn't seem to matter much. And this got me puzzled, since all the articles on the web suggest various methods of calculating the right amount to max out the performance ...

Score: 0
achhainsan avatar
dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning
qa flag

Executing this Command :

dd if=/dev/sda1 of=/disk1/boot1.img

I got this Error :

dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning

I tried that Command on my centos machine and got that Error. How do I fix that Error? It's xfs file system. Should I do xfs_repair on disk1 by unmounting it?

Score: -1
temporary_user_name avatar
Why is my naked domain working when I only configured the www?
vn flag

I set up my domain on heroku/cloudflare. In my heroku settings, my domain is listed as www.my-domain.example. While testing and iterating on configuration, I removed the other entry I had previously added for my-domain.example with its own DNS target from heroku.

On cloudflare, I have two DNS records. One is _domainconnect since my domain is on Godaddy but is pointed at Cloudflare's DNS. The other ...

Score: 0
Febryandana avatar
Openstack - Failed to Create Instance using Availability Zone parameter
US flag

Summary

I have fairly small Openstack Cluster with 2 AZ : AZ-GOLD-6248R have 3 compute node and AZ-E5-2630 have 1 compute node (both AZ had different specs)

  1. I can create instance to AZ-E5-2630 using Horizon or openstack CLI
  2. I cannot create instance to AZ-GOLD-6248R using Horizon or openstack CLI with --availability-zone parameter, Error No Valid Host was Found
  3. But I can create instance to AZ-GOLD-624 ...
Score: 0
doom4 avatar
DNS over OpenVPN from PFsense only working when in Full DNS (Use VPN DNS for all traffic)
ir flag

I configured a DNS Resolver in our PFsense which I also provide as part of the DNS Server list to clients via OpenVPN. Clients can connect via OpenVPN and also resolve local names via the DNS Resolver but only if the VPN Client DNS Setting is set to Full DNS (Use VPN DNS for all traffic). The client is Viscosity on macOS and the default setting is Automatic which doesn't work.

That said, all wind ...

Score: 0
Paul LeBeau avatar
Dropbear dropping SSH connection immediately after a couple of seconds
bo flag

tl;dr

We have an embedded linux (PTXdist) device connected to a 4G router. If we try to SSH to that device over the 4G link, the connection drops immediately after showing a shell prompt.

More detail:

We are using an embedded linux device (running PTXdist) that sits behing a 4G router. PTXdist uses dropbear for SSH support. There is a port forwarding rule on the router that forwards incoming SSH  ...

Score: 1
greterpiffin avatar
Cache HTTPS-Responses in nginx
ca flag

I want to cache responses from https://example.com (SSL/TLS !) with nginx, so basically a forward-proxy that caches a response for 10m.

I'm using docker with this image, as it has the ngx_http_proxy_connect_module implemented.

Currently I have set it up like this:

user www-data;
worker_processes auto;
events { }

http {
    server_names_hash_bucket_size 128;


    log_format cache_log '$remote_addr  ...
Score: -1
Michael Griffith avatar
Trouble Formatting Nginx Server Block
tw flag

So I'm trying to set it up where my subdomain: "forum.project-freedom.net" visits the directory of /var/www/forum/ on my server. I'd like the main URL, "project-freedom.net" to be sat on the /var/www/html/ directory of my server. I'm utilizing nginx and here's my current conf file:

server {
    listen 80;
    listen [::]:80;
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    server_name  ...
Score: 0
Malvo avatar
How do I route ALL VM (qemu-kvm, libvirt) traffic through proxy running in Host?
ro flag

Host: Ubuntu 20.04
Proxy Client and Server: V2ray
Proxy Client connecting to Server and is available in the host on 127.0.0.110808 for Socks and 127.0.0.1:10809 for http.
VMs: Multiple vms running in the Host via qemu-kvm and libvirt

My Goal: route ALL VMs traffic through the proxy running in host.

I used to be able to use OpenConnect in the host and as that would effect all the machines traffic (I ...

Score: 0
puncher avatar
Can't connect to local website on a specific device
gm flag

I've created a website which I host on a home server in my local network. When I'm not in my local network I can access the website with the external IP address and the domain. When I'm in my local network this also works for every device except of one device. There I can't access the website. I also can't connect via ssh, which works for other devices.

The only difference is, that this device is co ...

Score: 2
Jakob Odersky avatar
Why is the Kubernetes scheduler a separate process from the controller manager?
br flag

This is a question about the design of Kubernetes, I don't have a specific technical problem to solve, but I'm trying to understand the thoughts behind some of its architecture.

All explanations about Kubernetes' control plane that I've seen mention that it consists of:

  • a controller manager
  • a scheduler

(among other components, but they're not important for the question)

From what I understand, the contr ...

Score: 0
nitro64 avatar
Systemd service supposed to run on shutdown does not execute bash script
us flag

bash script is in /opt/CleanUp.sh

find /home/*/Downloads/* -type f -exec shred -uz {} \;
rm -r /home/*/Downloads/*
find /home/*/Documents/* -type f -exec shred -uz {} \;
rm -r /home/*/Documents/*
find /home/*/Pictures/* -type f -exec shred -uz {} \;
rm -r /home/*/Pictures/*
find /home/*/Videos/* -type f -exec shred -uz {} \;
rm -r /home/*/Videos/*
find /home/*/Music/* -type f -exec shred -uz {} \;
 ...
Score: 0
Seva Alekseyev avatar
Windows AD cert renewal implementation vs cert copying
hu flag

Windows PKI policy has a setting for what I think is automated renewal of AD template issued certificates when they expire.

enter image description here

It must be also enabled on the certificate authority (CA) side. Question - if I copy an AD template based cert from the machine where it was originally generated to another box, will the automatic renewal work on the new box?

This could depend on whether the renewal is initia ...

Score: 0
iPreston avatar
How do I change which interface gateway pfsense resolves to?
sx flag

I've recently extended my network from one flat LAN to a couple interfaces using additional physical ports on my router and VLANs. I've kept the old interface up while I'm migrating and for testing and renamed it Legacy. The legacy interface uses a 192.168.85.0/24 network. My new network for infrastructure like the router, APs and switch uses 192.168.10.0/24 and is the default interface for untagg ...

Score: 0
eof avatar
Setting up HA NAT instances on AWS
us flag
eof

Question: Anyone have experience running HA NAT instances and how to set them up? Basically, I would need to have my own NAT instances with automatic failover in case something breaks. I've ran years ago similar setups on-prem, but never on EC2. (See context below for why I want this)

Context: I have a cloud hosted DB cluster that is operated by a 3rd party and need to access the cluster through VPC pe ...

Score: 0
EvaldasL avatar
Linux / NodeJS get exitcode of process runned by "exec"
pm flag

I need to run g++ compiled program and get exit status. My code in nodejs:

import pty from "node-pty";
...

ptyProcess.write("exec /var/www/a.out\r\n'");

What I found:

$! is the PID of the last process sent to the background

$? is the exit code of the last process

It means. I can do in terminal: /var/www/a.out && echo $? - result, running program and in the end 0 (Success exit code). Hovewer, ex ...

Score: 2
Herbert avatar
Filezilla Server does not accept UNC paths as virtual directory
uz flag

I have installed Filezilla Server Pro Enterprise 1.6.7 on a Windows 2016 Server to be able to offer sftp connections. Everything works fine but I am not able to set a virtual path for a user or group which is an UNC path (\\servername\share\directory). I am using standard ports 21 and 22 and there is no firewall between the client and the server. Filezilla server runs with local system account b ...

Score: 0
Mahdi avatar
Cloudflare's warp is using same private ip(172.16.0.2) for all of it clients
uz flag

I know cloudflare is using boringtun for warp service.

But how it use same address for all of clients, is it boringtun feature?

Score: 0
Michael Griffith avatar
Nginx Server Block Not Redirecting Properly
tw flag

I've just recently swapped over to nginx from apache2, and it seems to be handling load times much better. However, I've now lost access to my forum subdomain. Whenever I goto my forum's subdomain, it just redirects me to my site's root directory. I've enabled the site and made the link to the sites-available directory. Here's my current server block:

  server {
    listen 80;
    server_name forum ...
Score: 0
superpear avatar
May I ask during runtime how to check the some kernel command line parameters which not set in the grub but have a default value?
ax flag

I notice there are some kernel command line parameters like below, which from Manual:

        audit=          [KNL] Enable the audit sub-system
                        Format: { "0" | "1" | "off" | "on" }
                        0 | off - kernel audit is disabled and can not be
                            enabled until the next reboot
                        unset - kernel audit is initialized but disab ...
Score: 0
Minmin avatar
Send An E-mail To A GMAIL Address From Linux Mail Command Using Postfix As The MTA
cx flag

I am a beginner in configuring mail delivery systems. Recently, orders came from the management that we need to send confirmation emails to our clients whenever they complete their applications (I work at a local college).

Upon scrambling good ol' Google for answers, I found this article at DigitalOcean on how to configure a 'send-only' Postfix (https://www.digitalocean.com/community/tutorials/how-to-inst ...

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.