Latest Server related questions

Score: 0
user2354982 avatar
Changing VM network without restart the virtual machine in ESXi 7
us flag

I want to change my VM network from CLI. I managed to do this by editing the .vmx file, but I need to Restart my VM for the changes that will take place. I tried: vim-cmd vmsvc/power.off #id change vmx file vim-cmd vmsvc/power.on #id

I also tried to use vim-cmd vmsvc/reload #id to reload the vmx file, but it does not succeed. If I run the command: esxcli network vm list I get:

World ID Name Num Ports  ...

Score: 0
guettli avatar
etcdctl: unknown command "save" for "etcdctl"
cn flag

I entered the etcd container:

kubectl -n kube-system exec -it etcd-k8scp -- sh

The I try to backup the container like explained in the K8s docs

ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save snapshotdb

I get this error:

Error: unknown command "save" for "etcdctl"

What's wrong with my command?

Score: 0
Prasad Rajapaksha avatar
How to identify cause of sudden CPU utilization
ar flag

I have a production server for a web application configured in AWS EC2 instance. I was running this for years and suddenly since today morning it is showing some spikes in CPU usage and application was down for few time today. When I run atop command I see the CPU utilization is high for php-fpm but only for few PIDs. Is there any way to identify what is this running process or PHP controller action. Ap ...

Score: 0
Can't send or receive mails when connected to OpenVPN server (on which also the mail server is running)
in flag

I'm a bit stuck here at the moment and will appreciate every push towards the right direction to solve this issue.

My two goals are to get an OpenVPN server running on a remote VM (Digital Ocean Droplet) and also run my postfix server on that VM. The OpenVPN connection is routing my DNS queries to a Pihole which provides me with proper ad blocking when I am not at home (where there is a pihole on ...

Score: 0
HAproxy: per-client queue for rate limiting?
ng flag

I’d like to put a rate limit on incoming HTTP requests, but without sending 429 errors. Instead, requests beyond the limit should be put into a queue from which they are processed at a speed that respects the rate limit. It’s important that such a queue be per-client, so that clients don’t affect each other. Is this possible with HAproxy?

Score: 0
Spamassassin unintentionally honoring user_prefs
br flag

Postfix is configured to use Spamassassin as a milter, and spamd runs as user debian_spamd (homedir: /var/lib/spamassassin) with no per-user configuration. All mail is forwarded to a remote server. Every time spamd encounters a message for an existing username (e.g. existinguser@remotedomain.com), it does this:

Jan 30 07:00:22 eden spamd[385091]: spamd: creating default_prefs: /home/existinguser/.spamassa ...
Score: 0
Joel Divekar avatar
Running multiple flask applications with different domain names using mod_wsgi
ru flag

We are trying to run 2 different flask applications with different domain names from same server using mod_wsgi + Apache2.

This is the settings configured in httpd.conf

# For www.yyy.com
WSGIDaemonProcess yyy python-path=/var/www/yyy
WSGIScriptAlias / /var/www/yy/wsgi.py process-group=yyy application-group=%{GLOBAL}

# For www.zzz.com
WSGIDaemonProcess zzz python-path=/var/www/zzz
WSGIScriptAlias / /v ...
Score: 0
Vytas avatar
block internet access to all applications except whitelisted
fi flag

If blacklisting I'd use firejail, but since I want to whitelist and include preinstalled binaries, seems like SEL is the only potential choice. Essentially, could SEL be used to add a new type context to the network device, and then check if binaries requesting network access have that type context as well?

I've checked the docs, but since it's so niche - didn't find anything.

Score: 0
miguelmorin avatar
Unable to connect to Lightsail instances through SSH
jp flag

Yesterday around 21:30 GMT, my server on AWS Lightsail crashed. I cannot connect to it through SSH. I am also unable to connect to a separate small server, which checked the uptime of the first. I can connect through browser SSH, but not with SSH, even after restarting the instances.

Since these are two separate servers with no public connection to each other, I wonder if Lightsail may have some  ...

Score: -3
Maestro223 avatar
Hardening /home Directory via /etc/fstab
cn flag

I am on Ubunto 20.04 server using a single partition at / for all directories as I am running web & mail servers. I hardened tmp , /var/tmp , & /run/shm using:

none /tmp       tmpfs nodev,noexec,nosuid 0 0
none /var/tmp   tmpfs nodev,noexec,nosuid 0 0
none /run/shm   tmpfs noexec,nosuid,nodev 0 0

I would like to add the nodev option to my /home directory without creating a whole new partiti ...

Score: 1
MegaBrutal avatar
NFS insists to send packets over MTU, nftables might be the solution
id flag

I have an NFS mount over a Strongswan IPSec tunnel, which is encapsulated in a 6to4 tunnel. The IPSec is because I need encryption for NFS traffic, the 6to4 is because the VPS provider won't assign a native IPv6 prefix to my server. Because I had MTU problems with the 6to4 tunnel, I had to lower the MTU on the tunnel interface to the minimum (1280 – if I try to set anything lower, I get an "Error: mtu ...

Score: 0
the_midnight_developer avatar
Redirect domain root to CloudFront with nginx?
jp flag

Note - I see several other questions asking about redirecting to the root of their S3 static websites, but I didn't see anything about redirecting from the root of a domain name to a CloudFront/S3 site.

I have my personal website deployed to AWS CloudFront & statically hosted on S3. I have a www. CNAME record pointing to the CloudFront hostname, and that works properly, but I've discovered that  ...

Score: 0
How to setup Apache as reverse proxy to a docker container
jp flag

I struggling to setup my Apache server as reverse proxy for a docker contained Greenlight instance.

In the official docs it is proposed to run Greenlight in a docker container with an Nginx instance as revers proxy (mainly to make it easy to run it alongside a BBB server). In my setup however I do not want to run my own BBB instance but rather use Greenlight as a frontend for an external BBB server. ...

Score: 0
GCP VM Instance: Server Timed Out Error - Intermittently
us flag
GXS

cloud web security scanner1. Setup a WordPress site on localhost 2. Setup GCP Fresh Account for it 3. Created a New WordPress CE Instance [Login details, etc] 4. Migrated local site to GCP successfully [config cloud dns and update remote dns registrar] 5. SSL installed through Lets Encrypt 6. Updated urls with wp commands 7. Direct ssh access through the VM Instance Dashboard works 8. SFTP works 9. St ...

Score: 1
Raphael Noero avatar
AWS i3en.3xlarge really low iops
lk flag

I just launched a new instance ec2 instance of type i3en.3xlarge. Operating system is Ubuntu. I mounted the NVMe Instance store but every speed test I run is incredible low at around 7k iops. What am I doing wrong?

Here are the steps I did:

1) Check available ssds with nvme -list:

---------------- -------------------- ---------------------------------------- --------- -------------------------- -- ...
Score: 1
Someone Sometime avatar
Different output of parted and fdisk
nl flag

I have a strange CentOS behaviour, When I type parted -l command on my server I got following results :

Model: DELL PERC H730P Adp (scsi)
Disk /dev/sda: 5758GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  3146kB  2097kB                        bios_grub
 2      3146kB  1077MB  1074MB  ext4
 ...

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.