Latest Server related questions

Score: 11
Rino Bino avatar
Linux / BSD "quickly" wipe a USB drive?
us flag

I'm clearing a drive with dd. It's a USB device and 120GB and it's taking a very long time:

dd if=/dev/zero of=/dev/da0 bs=1M status=progress

I have tried messing with the block size (smaller and larger values bs=4M, bs=8M, etc) but nothing seems to make much of a difference. It's writing at about 7000 kB/s which is painfully slow.

I do not care about "securely" wiping the data I just want it wiped so  ...

Score: 0
M.Parent avatar
Connecting to OpenVPN blocks access to local VLANs on different subnets
br flag

When I'm connecting to an OpenVPN provider, such as NordVPN, I lose connectivity to my local devices which are configured on another subnets.

Eg. the computer connecting to NordVpn is on vlan A which is at subnet 192.168.1.255, while the computer I would like to connect to is on vlan B which is at subnet 192.168.2.255. As soon as the computer on subnet A connect to VPN, I lose the connection to s ...

Score: 0
Laravel Crons on Elastic Beanstalk Linux AMI 2
br flag

I am running a Laravel app on Elastic Beanstalk Linux AMI 2.

I am using the following config file in the .ebextensions folder to set up the cron.

files:
"/etc/cron.d/schedule_run":
mode: "000644"
owner: root
group: root
content: |
  * * * * * root . /opt/elasticbeanstalk/deployment/env && /usr/bin/php /var/www/html/php artisan schedule:run 1>> /var/laralog.log 2>&1

commands:
remo ...
Score: 0
MikeJansen avatar
Amazon Linux 2023 systemd dependencies on cloud-init: Getting ordering cycle
br flag

I have a templated systemd service that depends on cloud-init to be done on Amazon Linux 2023.

[Unit]
Description=My service

After=cloud-init.target

[Service]
Type=exec
EnvironmentFile=/local/service/my.env
ExecStart=/local/service/myservice
Restart=always
User=myuser

[Install]
WantedBy=multi-user.target

A service instance has been enabled via sudo systemctl enable [email protected].

Getting this: ...

Score: 0
Is IRM preventing Office365-generated PDFs from being searchable?
ir flag

We have an intranet on which users often post information as PDFs.

Many of these PDFs are non-searchable. That is, they appear to be images (text is not selectable/searchable, SharePoint search unable to index the contents). However, some are fine.

The metadata on the non-searchable PDFs shows them being saved on Windows using Office365 on company-issued hardware. I have asked some users named in th ...

Score: 0
jordantrizz avatar
Nginx Redirecting Single Question Mark Request to Originaly URI
ua flag

I'm trying to redirect URI's ending in a single question mark to the same URI with the single question mark removed. Running nginx/1.21.6

Here's an example.

Original Request: https://domian.com/product-category/product/?

Redirect to: https://domian.com/product-category/product/

I've tried the following questions, which don't work.

  1. Can't if in an if block -> Nginx Remove Trailing Question Mark From URL ...
Score: 1
sebix avatar
Ansible: How to log performed changes on the Remote Server?
ie flag

Ansible: How to log performed changes on the Remote Server?

Ansible can show and log the performed changes (including file diffs) locally on the Control Node, e.g.

TASK [example_task : file mode] ************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
 {
-    "mode": "0640",
+    "mode": "0600",
     "path": "/tmp/foo"
 }

changed: [example.com]

On the Managed Node, ...

Score: 0
nepdev2 avatar
Cannot Convert DC to single DC
tf flag

Windows 2016 Server environment with 3 DCs, single domain. All DCs are also GCs. Server 1 holds all 5 FSMO roles.

Now I want to export the VM of server 1 and put onto a different environment on a separate virtual host server, network completely separated from the actual domain. Shutdown VM, export, then re-import on the other host.

The VM works. Can ping it from a PC connected to the new separate ne ...

Score: -1
romaillard avatar
Internet reachable from the first subnet, not from the second, on same NIC
nz flag

Hi (I hope this a the right place)

I'm working on ubuntu 18.04 with ifupdown (/etc/network/interfaces etc.), not netplan. I'm trying for several days on this difficulty.

one PC (A) with 2 cards : enp4s0 linked to my FAI (Internet 192.168.100.254) enp3s0 to 2 subnets (intranet) 192.168.1.0/24 and 192.168.3.0/24

on this PC (A) the command "ip a" gives :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdi ...
Score: 0
Leonardo Trucco avatar
Best Setup with AWS ALB and Tomcat
lk flag

Our company currently operates a monolithic application that comprises multiple instances of Tomcat running on two servers. These instances are load balanced using Apache, where each instance listens on a different port and is then redirected to its respective endpoint (e.g., /payments, /orders, etc.).

We are in the process of migrating our infrastructure to AWS and considering replacing Apache w ...

Score: -1
Ronny Forberger avatar
Hostapd Wifi 6 channel not enabled though shown in iw list in Germany using Debian bookworm
sb flag

I am trying to set up a Wifi 6 Access point with an Intel AX210 card on Debian Bookworm.

My configuration of the hostapd.conf file looks like:

interface=wlp2s0
bridge=br0
driver=nl80211
hw_mode=a
channel=93
ieee80211d=1
ieee80211ac=1
wmm_enabled=1
country_code=DE
ieee80211d=1
ieee80211h=1
basic_rates=60 120 240
ieee80211ax=1
ieee80211n=1
rts_threshold=-1
fragm_threshold=-1
beacon_int=100
dtim_period=2 ...
Score: 1
Ahmad avatar
Windows Server 2022 Backup is always doing Full Backup and never doing Incremental Backup on data volume
ga flag

As in title, my Windows Server 2022 is always doing full backup and not incremental backup.

I've checked this 10 year old question Windows Server Backup, drive is doing full backup instead of incremental but there was nothing that can help me.

Additional Info:

  1. Software: Windows Server Backup on Windows Server 2022 version 21h1.
  2. Backup is done to an external 4TB hard disk drive. (No network)
  3. Perf ...
Score: 1
Exchange Server Cannot send and receive e-mail (501 5.5.4 Required arguments not present)
ao flag

I am unable to send nor receive e-mails on my new Exchange server. It is behind a pfSense firewall. All the necessary ports are forwarded to exchange server. DNS records are valid on DNS provider. When I check logs for send connector I see error: "501 5.5.4 Required arguments not present"

Here is the log file:

2023-06-12T12:51:29.527Z,Inbound Proxy Internal Send Connector,08DB6B20B9FE760E,0,,192. ...

Score: 0
nXn avatar
Apache Proxypass with SSL extremely slow
ck flag
nXn

We have a server with the spec 8 vCore and 16GB RAM. At its peak, the server uses only 15 to 25% CPU and around 40% of RAM.

The issue that we face is once the number of users start increasing, the response from apache simply starts taking more and more time. And at times doesnt respond itself.

proxy pass is used to connect apache to a node application running on a particular port. At the same time w ...

Score: -1
Haris avatar
Making all Linux network interface (bridged) in a qemu VM use dhcp
ec flag

I have a small application which takes in kernel code, and spins up VMs. I've been using this for kernel development. It is helpful and very fast when I want to spin up VMs with different kernel codes. The application uses qemu, and generates the qemu command on the fly based on the given options. The problem I am facing is ever changing network interface names.

The initial setup was such, that t ...

Score: 0
Kamil avatar
.NET runtime/sdk installation on Debian production server
it flag

I have dedicated Debian container on Proxmox to run ASP.NET Web API application. It requires .NET runtime (or SDK that contains runtime), like Java.

I have no problem to make it work, but I'm struggling with installation for the production environment.

By default, the current version of .NET installer script installs it in... user home directory (/home/myusername/dotnet for example). I don't like th ...

Score: 0
Daviid avatar
htaccess php_value works only if not nested
cn flag

I have this htaccess

<IfModule mod_env.c>
    SetEnvIf Request_URI ".*/my/path/to/api.php$" IS_MY_PATH
</IfModule>

<IfDefine IS_MY_PATH>
    php_value max_input_vars 5000
</IfDefine>

in php getenv('IS_MY_PATH') returns 1 but ini_get('max_input_vars') returns 1000

I've also tried

<IfModule mod_env.c>
    SetEnvIf Request_URI ".*/my/path/to/api.php$" IS_MY_PATH
</IfModule ...
Score: 0
scaryhamid avatar
analytics and nginx proxy cache
us flag

I want to use nginx caching for my website, and I came up with this configuration:

proxy_cache_key         $scheme://$host$uri$is_args$query_string;
proxy_cache_valid       200 5s;
proxy_cache_valid       404 30s;
proxy_cache_revalidate on;

proxy_cache_background_update   on;
proxy_cache_use_stale updating;

now i have couple of questions:

does this mean that every 5 seconds a subrequest by nginx will up ...

Score: 0
YoavKlein avatar
How does userPassword attribute work in LDAP?
co flag

I'm just learning about LDAP, and there's something I don't quite understand.

When we create users in a directory, we define their password using the userPassword. When we use for example the {SSHA} scheme, as far as I understand, it works like this: We take the cleartext password, add to it some random salt, and hash it all together.

EDIT: All this is outside of LDAP!

Then, we take this hashed p ...

Score: 0
premar avatar
Ubuntu - IPSec VPN with Dual Stack / Strongswan
ps flag

I'am trying to setup a IPSec VPN (ike1) for our Linux clients. But we need dual stack with ipv4 and ipv6.

The endpoint is a Fortigate firewall. With two phase2, one for IPv4 and one for IPv6. The setup is as followed:

config vpn ipsec phase1-interface
    edit "VPNRemote"
        set type dynamic
        set interface "port4"
        set peertype any
        set net-device disable
        set mode-cfg ...
Score: 0
djandDK avatar
Editing IIS with shared config through the Microsoft.Web.Administration namespace
lv flag

We are having a problem, and it's probably something completely stupid. We have the following setup:

WebCluster1 (A cluster of IIS web servers running a administration site) WebCluster2 (A Cluster of IIS web servers running another site) NAS (A Nas containing web configs for the servers)

A user has the option to create users on the sites hosted on WebCluster1, and these users are then written into t ...

Score: 2
detect if zone transfer with dig succeed or not via return code
in flag

I have script like this

CHARSET=ASCII dig domain.com AXFR > domain.com.zone

if [ "$?" = "0" ]; then
    echo "OK"
else
    echo "Something went wrong"
    
fi

However, I saw there is non complete file with line at the end

;; communications error: end of file

Is there some bug in my script or how I can "catch" this error?

Score: 0
suenot avatar
Grafana daemon doesn't run
cn flag

I tried to install grafana-agent by this command that I get grafana.net dashboard:

ARCH="amd64" GCLOUD_HOSTED_METRICS_URL="https://prometheus-prod-24-prod-eu-west-2.grafana.net/api/prom/push" GCLOUD_HOSTED_METRICS_ID="1033967" GCLOUD_SCRAPE_INTERVAL="60s" GCLOUD_HOSTED_LOGS_URL="https://logs-prod-012.grafana.net/loki/api/v1/push" GCLOUD_HOSTED_LOGS_ID="618877" GCLOUD_RW_API_KEY="glc_eyJvIjoiODc2MDk ...
Score: 1
Steph avatar
Apache rewrite rule for a folder to a different domain
mf flag

I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example

https://www.example.org/thisfolder/maps/map.jsp?id=2345 must be redirected to https://www2.example.org/thisfolder/maps/map.jsp?id=2345

I think the solution is to use the mod_rewrite module with RewriteRule directive and should be quite simple, but I cannot find a worki ...

Score: 0
Ismet D. avatar
Windows Server 2019 Best Practices Analyzer - Error is Fixed but a new scan still displays same error. What to do?
cn flag

Server OS: Windows 2019

Roles: Hyper-V, DC, DNS, etc. (2 vms on Hyper-V RDS vm and DC vm)

The old IT team had this configuration now I want to change it to best practices. BPA scan on Server Manager > Local Server shows some errors/warnings but even after fixing those items a new scan of the BPA shows the same things as not fixed. I checked many times and confirmed that the actual fixes are in  ...

Score: 0
Michael avatar
Restrict AWS SSM access to SSH only
tr flag

I need to restrict some users AWS SSM access to SSH only. These users should only be able to start a SSH session via SSM like this:

ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p"

It should not be possible to start a SSM session directly (ssm-user):

aws ssm start-session --target i-*

Is this possible?

Score: 0
DisplayName avatar
Do I need an ADFS and Proxy?
kz flag

The client has an ADFS server and they use our APP hosted on IIS developed on Dot Net. How Do I set UP ADFS - do I need ADFS Proxy server as well, Can I use an existing AD server and install ADFS, we should also create an URL for access. something like adfs.domain.com enter image description here

Score: 0
Bas avatar
Crashing cluster after kubeadm init on VPS
lu flag
Bas

Problem

Whenever I create my cluster, and deploy Flannel, it works for maybe ~5 minutes. When I check the cluster info by kubectl cluster-info, it shows the correct information. After a while, it simply shows

The connection to the server <server_ip>:6443 was refused - did you specify the right host or port?

Cluster information:

Kubernetes version: 1.27.2 Installation method: kubeadm init, d ...

Score: 0
nickcrv06 avatar
Nginx Reverse Proxy using only Trailing Slashes
mo flag

Hello ServerFault community,

I have been encountering numerous issues with my Nginx reverse proxy implementation, specifically regarding the handling of trailing slashes. I would greatly appreciate any assistance or insights you can provide to help me resolve this problem.

Requirements:

I have the following setup:

-DNS name: vpn.internal.example.com (publicly accessible) 
-VPN-Server for clients with ...
Score: 0
MadAtTheKeyboard avatar
Java SIGSEGV exception in libjvm library (Ubuntu)
cw flag

I previously posted here About a bug I encountered; apparently that wasn't the correct place to post.

Hopefully this is, I am unsure where to put this.

To recap, I am running a Minecraft server on Ubuntu, with the arguments -Xms1024M -Xmx10G Minecraft_Server_1.20.jar nogui, and I do not understand what is causing the crash. It crashes with a SIGSEGV error, presumably caused by something in libjvm ...

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.