Latest Server related questions

Score: 3
Changing Nginx NGX_CONF_BUFFER
pw flag

When try to set long characters variables in Nginx it show error due to limit in NGX_CONF_BUFFER 4096 Reference: https://github.com/nginx/nginx/blob/master/src/core/ngx_conf_file.c

var set: set $q 'aaaaa........till 5000 characters include white space'; error: too long parameter, probably missing terminating "'"

is it safe to change NGX_CONF_BUFFER to 8192 0r 10240 before compile Nginx to avoid such err ...

Score: 1
nginx 403 Forbidden error, no error log. New installation on existing ubuntu 20.04 system
ru flag

Trying to understand why this new installation of nginx is not serving any files at all. I have a minimal website configuration. (rtmp was working last I checked but that has not been needed in a while. Just added the port 80 configuration. I mention only because you'll see it in the config.)

When I try to access this host (by IP or by hostname), I get a "403 (forbidden)" error"displayed on t ...

Score: 0
yegor avatar
monit: check specific python script running
jp flag

i'm trying to run a few different python scripts, each in its own screen. if I run something like:

SCREEN -dm -S script1screen python3 script1.py

how do I check with Monit if this exact script is running and not just python3?

something similar to

pgrep -af script1screen
Score: 0
Snappawapa avatar
Virt Block device resizing
gr flag

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still essentially full.

Taking a second look, the "20GB block device" (Second image) was not resized and is stuck at that 20GB (I resized the disk from ~20G to ~50G (added 30G)). In virt-manager, there is only  ...

Score: 0
Eamon Donovan avatar
Automatic captive portal detection is problematic because some networks redirect outbound traffic and others block DNS requests entirely
in flag

I am trying to automate captive portal detection on an IoT device. My basic understanding of a typical captive portal is that it checks a device's MAC address on connection, and if the device's user hasn't already agreed to the network owner's T&Cs then it will redirect all outgoing traffic to its splash page. This is easy to check for with curl, because if we try to access a known URL and get a 3XX ...

Score: 2
lalmagor avatar
Rebuilding an inactive RAID5
us flag

I have a 7 x 14TB RAID5 in my workstation with Centos 7. Last week one of the drives was marked as faulty by SMART (/dev/sde). I used mdadm to mark this drive as faulty and to remove it from the array and ... long story short... I ended up pulling out the wrong drive!

Now I have Centos in emergency mode (my operating system resides on a drive outside the array) and I am able to run mdadm to analy ...

Score: 0
Scott Wise avatar
Linux ping is routed correctly and then dropped
cn flag

I have two routers that are connected via Wireguard. Access to the internet via wg works fine, but I would like to access my PI attached to routerS.

From routerS, I can happily ping the locally attached PI (OutputInfo line below). An identical ping from RouterT (FwdInfo line below) is received by routerS and seems ready to FORWARD to the correct OUT=br-lan interface, but instead routerT replies with ICM ...

Score: 0
Making (virtual) smartcard available to system service
br flag

I have a VM running Windows Server 2019 Datacenter Core, which is running a Jenkins build agent as a noninteractive service with its own local user account (.\build).

Now I'd like to add code signing. To have at least a semblance of security, I want to use a virtual smartcard that is based on crypto operations on the host, so an attacker who is interested in copying key material would need to break out  ...

Score: 0
Bind/Fail2ban how to reject requests from certain domain
in flag

Today I got my VPS stucked.
Centos 7, 4 cores, Bind 9.11.
From ssh I got

Message from syslogd@host at Jul 18 09:46:16 ... kernel:NMI watchdog: BUG: soft lockup - CPU#0 stuck for 41s! [f2b/observer:1299]

From another ssh screen leaving top running I got at the end

top - 10:06:05 up 9:22, 1 user, load average: 101,26, 106,77, 94,46
Tasks: 318 total, 80 running, 218 sleeping, 0 stopped, 20 zo ...

Score: 1
vrms avatar
rebuild a vmware machine in KVM with an .ova file
de flag

I want to run vmware PKS in a KVM virtual machine and have the official .ova file as a starting point.

I am aware of the conversion from .vmdk --> .qcow2 basically but am still struggeling with the VM Settings. I guess my problems start with having 2 vmdks to begin with.

Inspecting the converted raw images I found out that the 1.vmdk has 2 partitions (one probably the boot partition then secon ...

Score: 0
Farhan Shirgill Ansari avatar
Which connections/interfaces are in zone 'docker'?
cl flag

Executing the below command on Ubuntu 20.04 LTS

sudo firewall-cmd --list-all-zone

gives me these

block,
dmz,
docker (active),
drop,
external,
home,
internal,
public,
trusted,
work,

The thing which is bothering me is the current one selected shown as

docker(active)

The Ubuntu 20.04 LTS is running on Virtual Box with Windows as Host OS.

When i try to add port 80/tcp to allow access to the same, the  ...

Score: 4
Murat Demir avatar
Can I use apache2 and memcache in same server?
ng flag

I am really new to server development. I have a server (Server version: Apache/2.4.41 (Ubuntu)) for Django and it's running on apache2. I want to use Memcache for a large queryset. I just wanna use the following Django future:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
        'LOCATION': '127.0.0.1:11211',
    }
}

As I understand with the ...

Score: 0
ehsan_kabiri_33 avatar
Nginx is working but : nginx.service: Can't open PID file on debian 10
de flag

I'm using nginx 1.20.1 on Debian 10, it's working but on command systemctl status nginx this is shown:

systemd[1]: Starting nginx - high performance web server...
systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: No such file or d
systemd[1]: Started nginx - high performance web server.

I googled alot and checked permission of related folders of address /var/usr/ ...

Score: 0
Thunderbird avatar
Pod stuck in pending state due to pod affinity/anti-affinity
lu flag

I have a problem, one of the replicas is stuck in a Pending state.

Problem: After another deployment one of the new replicas stacked and I have an empty node which satisfy all necessary requronmetns.

Deployment contains nodeSelector and affinity requirements:

    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
     ...
Score: 0
WireGuard Port-forwarding from Client in the Host
us flag

i'm trying to connect a port from a wireguard client to the host network of the server.

I tried to do it with IPtables but I always get the reply of "unreachable"

It seems that my configuration could be the problem?

Thanks!


TEST Connection

root@wiretest3:~# curl -I 10.7.0.2:6060
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Sun, 18 Jul 2021 10:37:38 GMT
Content-Type: text/html
Content-Length: 988
Last-Mod ...

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.