Latest Server related questions

Score: 3
Best way to backup a WordPress site on EC2 instance
jp flag

My WordPress site is sitting on a single EC2 instance. My site has 60GB worth of files and a 800MB database size. My site is running out of space just by running the Duplicator plugin to back it up. What would be your recommended alternative? EBS snapshot? AMI? etc?

UPDATE: I'd like to keep the backup files remotely.

Score: 0
DB_2022 avatar
Best way to identify what's crashing Print Spooler?
sy flag

I have a client with a centralized print server (Windows Server 2019) that manages about 65 printers with ~200 users (max). The Windows Print Spooler crashes 5+ times a day, and it's always due to faulting module "wsnmp.dll". From what I've been able to find online so far, I suspect that one or more of the client's Konika-Minolta printers is causing the crashes, but I'd like to be able to know for certa ...

Score: 0
USB SATA adapters not working with SSDs
cn flag

Has anyone else experienced issues with USB SATA HDD adapters working fine for traditional hard disks but not for SSDs?

I haven't been able to find any information about this, but I've now encountered this issue with multiple SSDs and multiple adapters.

The even more wierd thing is that a particular SSD might work once or twice and then it stops working with all the USB adapters I have, even though  ...

Score: 0
bungsearch avatar
Static IPv6 LAN address while using SLAAC for global unicast
gu flag

I have some IPv6 nodes in two IPv6 networks. There is a single IPv6 router, link-local to all nodes.

The router sends out router advertisements(RA) containing two prefixes for the two networks. The nodes in the network accept the RA and create two random addresses with the prefixes.

I want to configure one node (Alpine Linux) to have a static address for one of the two prefixes, while using SLAAC for  ...

Score: 2
best_of_man avatar
Is it better to generate "UUID" and "TIMESTAMP" within the NodeJS application or using the database built-in functions?
pl flag

I am writing a TypeScript-NodeJS application and want to handle object ids and created_at TIMESTAMP within the NodeJS application, instead of using MySQL or Cassandra built-in UUID or TIMESTAMP generator.

1- First of all I like to know is this a good idea to generate id and created_at values within a web server application instead of letting databases generate them?

2- Secondly, I want to know if I us ...

Score: 0
Laplie Anderson avatar
Reloading /etc/ld.so.preload without starting a new shell
de flag

I'm adding a preload library using /etc/ld.so.preload. My problem is, it doesn't take effect until a new shell is created. This also happens if I remove the preload library. I get error messages for the missing library until I load a new shell.

So, my question is, How can I force a reload of /etc/ld.so.preload? I looked a the man pages and can't find anything describing the mechanism of when or how it i ...

Score: 0
IlikeCatz avatar
Nginx proxy menager server multiple subdomains on port 80
ye flag

I just installed nginx poxy menager and nginx. I have a webserver on port 8021 and i want to have it on panel.mydomain.com:80 with https.

I'm trying to forward a webserver on port 8021 to a subdomain at port 80

Tried "Streams" but it dosent support SSL

Score: 0
Paul Rock avatar
Django deploy with Gunicorn, Nginx and Docker-Compose returns Server Error 500
vi flag

I'm deploying a Django application on ubuntu server, where I have installed Nginx. The app is deployed using docker-compose and gunicorn.

Here's my nginx configuration:

upstream backend {
    server 0.0.0.0:8000;
}

server {
    index index.html index.htm index.nginx-debian.html;
    server_name www.example.com example.com;

    location / {
        root /home/user/project/web;
        index  index.ht ...
Score: 0
stan avatar
How to add two interfaces to KVM VM acting like a loopback
fk flag

I have KVM machine with network interface (say eth0) attached to virbr0, I use it to ssh into the vm.

I would like to add two more ethernet interfaces (say eth1 and eth2) and "bridge it on the other side" (meaning on the host), so for the VM it looks like two ethernet cards connected with a wire.

I tried adding two more networks with virsh:

<network>
    <name>network0</name>   # and sa ...
Score: 0
cheryllium avatar
Mercure 0.14 configuration behind Nginx reverse proxy with supervisor - server not responding
ki flag

I need help configuring Mercure 0.14 to run on port 3000 on a production server, which nginx will proxy to behind the path /mercure/.

To install Mercure, I did the following:

  1. Grabbed Mercure 0.14 linux x86_64 binary from the release page on github. https://github.com/dunglas/mercure/releases
  2. Unpacked the tarball and moved the mercure binary to /usr/bin/mercure

I set up supervisor with the follo ...

Score: 1
archygriswald avatar
Cannot remove LVM snapshot
cn flag

I am running Debian 11, using LVM.
The root partition is /dev/mainvg/lvroot.
I created a snapshot of the root partition by doing lvcreate -L5G -n bkp_lvroot -s /dev/mainvg/lvroot.

My system was in this state for a few days.

Now I wanted to remove the snapshot, like so:

lvremove /dev/mainvg/bkp_lvroot
  Logical volume mainvg/bkp_lvroot in use.

Looks like the snapshot is in 'active' state, so I tri ...

Score: 0
twis7 avatar
Slow speeds on wireguard install on ubuntu 20.04 with PiVPN
bn flag

I installed wireguard with PiVPN on Ubuntu server 20.04. The server has enough RAM and good CPU. Using UDP with port 2028

The server is behind NAT (mikrotik router).

My server configuration is :

[Interface]
Privatekey= key
Address = 10.179.90.1/24
MTU = 1420
Listenport = 2028

[Peer]
Publickey = key
PresharedKey = key
AllowedIPs = 10.179.90.2/32

I tested the Internet speed of the Ubuntu server : & ...

Score: 1
Rino Bino avatar
Using Nginx upstream hosts with proxy_pass
us flag

Below is the bare-bones stripped down Nginx config that demonstrates the problem I'm having directly. The "real-world" setup has multiple upstreams and multiple conditional checks that are omitted for clarity.

upstream barhost {
  server example.com;
}

server {
  listen 8080;

  location / {

    # this works fine if used directly:
    # proxy_pass http://example.com/;

    # this doesn't work, re ...
Score: 1
timur zolotov avatar
How to allow squid user to use only certain ports that are bound to ip
ye flag

In my squid configuration, I map each ip to a specific port.

acl port_3000_acl myport 3000
acl port_3001_acl myport 3001

http_port 3000
http_port 3001

tcp_outgoing_address 185.166.196.238 port_3000_acl
tcp_outgoing_address 218.151.231.148 port_3001_acl

The problem is that each user can use any port. I considered the solution to run a separate instance of squid for each user, but it seemed to me that ...

Score: 0
ANURAG MATHUR avatar
Data reconciliation for applications
in flag

I need to create a plan for a catastrophic data loss scenario where I need to recover some services (multiple apps each) from bare metal using data backups. The process (i believe) requires the following:

  1. Recover binaries and data from the backup. Instal App. (Easy bit)
  2. Applications are interdependent and need to be synced - different backup times mean I may need to roll back data for some application ...
Score: 0
Unable to install Visual Studio offline
in flag

We've created a 40GB offline installation of Visual Studio that needs to be installed to a system not connected to the internet. Despite it being an offline installation and using the --noWeb and the --noUpdateInstaller parameters when installing via the command line it still attempts to download installation files and fails when attempting to install. Anybody know what is missing and how to get this  ...

Score: 0
Ricky Du avatar
iptables redirect IP from bind to another VPN server
lt flag

I have a prefix /24 announced by Bind, and a VPN network connects my server from home.

Now assume I announced 1.2.3.0/24 to the network, my VPN network prefix is: 192.168.3.0/24

I am trying to use iptable to redirect the traffic from network to the 1.2.3.5 to the private server 192.168.3.5. Like if I am using ssh 1.2.3.5 -p 22, then it redirects the traffic to the 192.168.3.5.

The iptables I have trie ...

Score: 0
How to disable the default RBLs used by rspamd?
in flag

I'd like to use an RBL in rspamd without using all the preconfigured RBLs, but it seems that the configuration in /etc/rspamd/local.d/rbl.conf can only add new lists, not remove the default ones.

The documentation also describes a way to disable rules (I am not even sure if this disables the checking itself or just assigning points for a match), but it looks like you have to do this for each defau ...

Score: 0
Peter Bentix avatar
Php-fpm cannot run a *.php file from a symlink pointing outside the DocumentRoot directory. Error "File not found."
bo flag
  • if I will create a virtualhost with PHP mode: php-fpm (using Virtualmin)
  • if I enable Options +FollowSymLinks in the Virtualhost
  • if I create a symlink inside DocumentRoot to a directory outside DocumentRoot

, then php-fpm will refuse to run any *.php file in that symlink directory location. Only the error "File not found." is displayed. If I display a different type of file available through the  ...

Score: 0
Dave avatar
Configure Windows Server w/ multiple interfaces reply to DNS with subnets from specific interfaces?
id flag

Our windows server 2019 needs to respond to requests with IP addresses that are only on the interface subnets they are being quried from.

We have two DC's. Each has 3 interfaces. Each interface is its own subnet. I believe this is a split brain type set up, but with 3 interfaces instead of 2.

Right now the DC's are replying to requests with all ips for a given hostname. This is a problem when queryi ...

Score: 0
Root Loop avatar
How can I find out the activation details from the internal KMS server?
ru flag

I have any internal KMS server running on Server2012R2 and We are using it to activate Office internally, Is there a way that I can output a list of details of the activation like UserName, ComputerName, Activation date/time and periad etc.

So far all I can see from the cli is the total number of the activations and few other info, I would like to have a list of users who was activated by this KM ...

Score: 0
Handling GPO Policies between different domains
pk flag

I have a handful of changes in a policy that I'd like to apply to other domains. I am wanting to copy this policy to these other domains so I do not have to create them for every dc.

Most of what I've seen said to right click the GPO and backup but I don't have that option. The other way was to do the following: "In the Group Policy Management Console tree, click Change Control in the forest and  ...

Score: 0
pohlarized avatar
Why does ip6tables lose packets after PREROUTING to a different interface?
td flag

I'm using ip6tables to nat packages to an IP on a different interface (localhost), but all packets sent there are lost. I have the same iptables rules for IPv4 where everything is working fine.

Setup

The host is a debian 11 VM, the client is a docker container running debian:stable-slim.

/etc/docker/daemon.json:

{
   "ipv6": true,
   "fixed-cidr-v6": "2d00::/8",
   "ip6tables": true,
   "experimental": t ...
Score: 0
revox avatar
mysql connection failed when DNS is down
li flag

We had DNS problem in the past with one of our web application coded in php Therefore we used IP addresses instead of the server name and we used HOST file and decided to perform a crash test

When our DNS server is working our web application works fine. However when we switch off our DNS server the code stops working at this line

        $bdd = new PDO('mysql:host=139.XXX.XXX.XXX', 'username', 'pwd', ...
Score: 3
Masplus avatar
OneDrive on RDS Windows stuck listing folders and files
kp flag

This is a bit awkward because I've already wasted tons of hours with no result, this is my last chance.

Problem

OneDrive sometimes (90%) is stuck on loading folders and files, but just listing them. Sometimes crashes "explorer.exe" when it's stuck.

You can see the "Cloud" icon appear very slowly.

enter image description here

Hardware (Dedicated VPS Hetzner)

  • CPU: AMD Ryzen 9 5950X 16-Core
  • RAM: 60 GB DDR4
  • SSD: 500GB NVME

Vir ...

Score: 0
Mort avatar
Allow browse directory on sub directory only
es flag

I have an ASP.NET Core website which contains the binaries and resources needed to run the website. The site generates log output in a "Log" directory, located inside the web site's root directory.

I would like to be able to browse the contents of this "Log" directory, without allowing browsing of any other directories belonging to the website.

Is there any way to achieve this in IIS or will I need  ...

Score: 0
Danny avatar
Ubuntu reboots randomly
gw flag

I'm running some servers on Hetzner (AX101) and have been experiencing random reboots for a while now, all my investigations lead absolutely nowhere.

Prerequisite: Ubuntu 22.04 (Ubuntu 5.15.0-58.64-generic 5.15.74)

From system's standpoint it looks nothing is happening:

Feb  6 10:44:00 server4 kernel: [256072.858601] [UFW BLOCK] IN=enp41s0 OUT= MAC=a8:a1:59:c0:b0:d0:00:31:46:0d:3d:f3:08:00 SRC=185.156.73 ...
Score: -1
yatso1 avatar
After building a WSUS server in a windows 2016 server I get failed to synchronize error followed by 'System.Net.WebException: The underlying conne...'
pm flag

So I started with the basic procedure of adding the Windows Sever Update Services (WSUS) roles.

After doing so I created a self-signed certificate and add the domain names where required.

Image of left pane that contains the create the cert actions

Creating a self signed cert image

Then I would configure the HTTP and HTTPS ports respectively and bind the WSUS to my SSL certificate

Image of Bindin ...

Score: 1
logax avatar
aws guardduty some alerts won't notify on slack
ma flag

I have recently setup aws guardduty with slack notification using this guide right https://medium.com/@damitj07/how-to-create-a-slack-alert-for-guardduty-49d542927529, there were a few issues with the code regarding how to read the json, but i fixed them, and i finally worked when i sent the samples findings through aws guardduty, the alerts came to the slack channel, but i noticed that a findings like  ...

Score: 1
Fryz avatar
Build a debian package which includes a template [email protected]
ht flag

I need to build a package for a program that should be deployed as a service. I have added a debian/helloworld.service and my package is built, installed and works correctly, i have a /lib/systemd/system/helloworld.service on the target host.

However, users may be able to run several instance of the service, each one with their own config files and i have seen here that i need a template service file ...

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.