Latest Server related questions

Score: 0
deanhuff avatar
Can Block Device IDs in LVM be set statically?
ru flag

I have a system using LVM2 with a single PV which contains 1 VG which in-turn contains 5 logical volumes (/, /home, /var, /swap, /data).

When I create a snapshot of LV / (lvcreate -L 15G -s -n root_snap_test01 /dev/vg01/lv_root), upon reboot the device id (using something like stat /home) will show that it's device id has been incremented for each snapshot of / that is created. Further, if / is  ...

Score: 0
herny avatar
How to redirect in Nginx hidding the redirect path
ua flag

I have the next URL:

https://my-web.com/path1 and I would like to redirect the call to https://my-web/path2 but I would like that in the browser tab show's /path1. Is this possible?

I'm using a virtualhost in Nginx 1.16. I'm using a rewrite, but the problem is that in the browser tab it shows /path2 and I need /path1 but with the content of path1.

EDIT:

My vhost cfg:

server {
    root /var/www/myweb.dyn ...
Score: 0
xgeek652 avatar
127.0.0.1 always redirecting to HTTPS but localhost don't
cn flag

I have a Kali Linux machine which I installed an apache2 web server on it.

When I try to access the server using HTTP 127.0.0.1 it always redirect me to https://127.0.0.1 (which is not configured) but http://localhost don't - I can access it using the port 80.

It's only on port 80 when 127.0.0.1 redirects to https (I tried chaning the port of apache2 to 8080) and it worked fine on http://127.0.0.1 ...

Score: 0
strongSwan service will not start
na flag

Ubuntu 20.04 strongSwan 5.9.1 (swanctl)

I have get the following error:

/usr/sbin/charon-systemd: symbol lookup error: /usr/lib/ipsec/plugins/libstrongswan-stroke.so: undefined symbol: chunk_unmap_clear

It was working before with no issues.

Update:

Upgraded to 5.9.5 from source and it works again. Probably some files were corrupted.

Score: 0
afshin avatar
how do I configure nginx to send user ip in response headers
br flag

I have an nginx server I installed on ubuntu 20.04 server. I'm trying to get the user IP address but nginx doesn't seem to be configured to pass it. when looking at access logs /var/log/nginx/access.log - I can see the correct IP address.

I'm testing this issue with a basic flask program below:

from flask import Flask,jsonify,request

app = Flask (__name__)
@app.route('/')
def home():
    return jsoni ...
Score: 0
Kickstart Fedora server iso using usb
se flag

Hi I need to create a Fedora Server image with my application in it using kickstart installation. I have executed following steps :

  1. Downloaded the fedora35 Image from https://getfedora.org/en/server/download/ (Fedora-Server-dvd-x86_64-35-1.2)
  2. mount the iso : mount -t iso9660 -o loop Fedora-Server-dvd-x86_64-35-1.2.iso /mnt/
  3. mkdir /var/iso
  4. cp -a /mnt/ /var/iso
  5. cd /var/iso/
  6. vim ks.cfg (contents o ...
Score: 0
kcpf avatar
RDP server not getting proper licensing
br flag

I am currently setting up my Windows VMs to be connected to the licensing server, which is already configured, using the Per User CAL. Even though it seems to be running normally, when I log in to the machine using RDP, I get the warning that there is a problem with your remote desktop license and I will be disconnected within 60 minutes.

This problem only appears in my VMs, since I have another  ...

Score: 0
GCP External HTTPs Load Balancer - 404 - 503 - SSL Exception (Remote host terminated connection, read handshake, socket closed & upstream connect)
in flag

We're load testing a MIG (with 2 instances) hosted behind the HTTPs load balancer using JMeter.

Observation 1: We randomly receive 404 error and 503 error, for 404 we see an entry get created within load balancer monitoring NO_BACKEND_SELECTED (other than our actual MIG backend). Further, for 503 we see an entry get created within load balancer monitoring FRONTEND_5XX.

Based on GCP:

NO_BACKEND_SELE ...
Score: 1
Claudio avatar
How to bridge a physical subnet with a public server?
in flag

So I've been banging my head on this issue for a while, hopefully someone can help me here.

My idea is to run a proxy (nginx, traefik, etc) on the public server, with authelia or some other kind of auth helper, and redirect to some services that can be run on the container network behind NAT (think like matrix.org, gitlab server, grafana)

Let's set the stage: there is a physical network, with a router  ...

Score: 0
Bandwidth consumption of Amazon S3 bucket mounted with S3fs on a VPS
cl flag

I have :

  • VPS server on Vultr with web server and Wordpress installed.
  • Uploads folder is mounted on Amazon S3 bucket using s3fs.

If a user downloads a 1GB file from my website will the traffic be served to him from Amazon S3 directly or it will be passed through the vps. Because I want to offload bandwidth and I would like to know if it will be counted as 1GB or 1GB + 1GB.

Score: 1
carmik avatar
Dell Powervault ME4 (ME4024): unattended shutdown possible?
cn flag

I'm rather new in this world of SAN devices/ESXi hypervisors and stuff.

Some years ago we had had physical servers with internal storage connected to a USB/LAN UPS and whenever he had a power loss we would first trigger a clean server shutdown to preserve data integrity and then trigger a UPS shutdown altogether (to preserve UPS batteries). Everything automatically of course.

Now, we are trying to a ...

Score: 1
S3 policy to allow by IP can't be changed
ua flag

We have an S3 bucket with website content in it that's served to the public through a proxy cache. The access to the bucket is limited to the IPs used by the proxy. This is all working fine.

New IPs were recently added to the proxy, but we're not able to add those to the policy. Directly editing the policy gives a "permission denied" no matter what permissions the user has. We discovered that ...

Score: 0
Thijmen avatar
Attaching RDS database to Elastic Beanstalk fails with reason "null"
cn flag

Image shows relevant events from the Elastic Beanstalk event page.

enter image description here

Roughly what I did:

  1. Created new EBS application
  2. Created new EBS environment using the "Sample Application" option
  3. Added a bunch of environment variables (software configuration -> environment)
  4. Tried to add a Postgres RDS database. This is where the error occurs. Tried this for several different Postgres versions.

Does anyone have a ...

Score: 0
Rate limit not working as expected on nginx
in flag

I have request rate limit set as:

20 r/m
burst=4 delay=2

My expectation is that 1 request will be handled every 3 seconds. For any bursts, upto 4 requests (beyond the rate [1 per 3 seconds]) will be queued, of which 2 will be immediately handled and 2 will be handled such that it satisfies 1 req every 3 seconds.

I am testing using synchronous requests, by adding a delay of 3500ms after every 2 requests,  ...

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.