Latest Server related questions

Score: 0
torchtree avatar
Putty: Network error: Software caused connection abort
es flag

We've run GCP instances which are about 30 instances on putty for about 3 months. It didn't encounter any errors but recently putty fatal errors occurred and that makes our program stop. I want to know how to fix this issue.

Also, the instances lose network too frequently to work my project. I think the network is weak. Does anyone know why this is happening?

Score: 1
Nolan O avatar
NGINX Rewrite Query as Path?
gb flag

What i am trying to do:

Convert

/posts/?post={randomnumber-atoF}
or
/posts?post=120430awasdfwasfw

to

/posts/120430awasdfwasfw

my Server Block (so far)

server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /forum;
        index index.php;
        server_name forum.example.net;
        location / {
                try_files $uri $uri/ =404;
        }
         ...
Score: 0
mway-niels avatar
Kubernetes: kubeadm join fails in private network
at flag

I'm trying to set up a HA Kubernetes cluster on Hetzner Cloud following this guide. I've created 6 servers, 3 control plane hosts and 3 workers. When trying to use kubeadm to join the second server to the cluster I get the following errors:

On k8s-server-1:

Jul 06 14:09:01 k8s-server-1 kubelet[8059]: E0706 14:09:01.430599    8059 controller.go:187] failed to update lease, error: rpc error: code = ...
Score: 0
user3246693 avatar
LUKS decrypt on boot with web based key?
cn flag

Is it possible to configure LUKS to grab a key file from a web server and use it to decrypt and mount the drive on boot?

The idea being that this allows the device to boot, decrypt, and start running without any intervention, but should the device be stolen I can simply nuke the key from the web server and the drive is no longer decrypted automatically.

I didn't see anything in /lib/cryptsetup/scrip ...

Score: 1
mon avatar
AWS - Can a Private Subnet reach the Internet only with NAT without Internet Gateway
ng flag
mon

Question

It is possible to access the Internet from a private subnet only with NAT without an Internet Gateway associate with its VPC?

Background

VPC with public and private subnets (NAT) says below. Just with this sentence, it would be a fair conclusion that it only requires NAT to reach the Internet without an Internet Gateway attached its VPC.

A NAT gateway with its own Elastic IPv4 address. Instances ...

Score: 0
Emersonjr avatar
Awk script to filter text output to single line
fr flag

I have a script that is giving me an output like this:

ruby-devel is needed by software1
tcl is needed by software 2
python3 is needed by software 3
ocaml is needed by software 1

I'm new to awk but was trying to script it to get the first word, and put it in a single line (can use sed or the best way to actually do this, I couldn't do it) to be able to build an output like this:

You need to get: ru ...

Score: 0
HAproxy "rate-limit sessions" to below 1 per second
id flag

As the title describes, I have a haproxy frontend with a rate-limit of 1 session per second and it's still too many. Is it possible to use like 1 session every 10 seconds (with 0.1) or the like with this parameter?

Else, does anyone have any ideas of other ways to achieve the same result?

TIA, Aaron.

Score: 0
alex avatar
Restarting jenkins (via systemctl): Job for jenkins.service failed because the control process exited with error code
jp flag

I checked the status of the jenkins service and tried to restart it, but it did not start, so I looked at journalctl -xe. What is the problem and how to solve it?

[ec2-user@ip-x-x-x-x ~]$ systemctl status jenkins.service

● jenkins.service - LSB: Jenkins Automation Server Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2021-07-07  ...

Score: 0
auslander avatar
Cannot enable php7.4 on Ubuntu 20.04
at flag

I'm trying to set up nextcloud on a home ubuntu box.

I've got php 7.4 installed, apache, etc.

However apache2ctl -M does not show php as shared. This causes (I guess) the http://localhost/nextcloud setup GUI to render as raw php code in the browser.

When I try to do a2enmod php7.4 I get:

Considering dependency mpm_prefork for php7.4:
Considering conflict mpm_event for mpm_prefork:
ERROR: Module mpm_e ...
Score: 0
alex avatar
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:49
jp flag

Iam facing with this error,

Starting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:49 nginx: configuration file /etc/nginx/nginx.conf test failed

This is my nginx.conf file:

For more information on configuration, see:

  2 #   * Official English Documentation: http://nginx.org/en/docs/
  3 #   * Official Russian Documentation: http://nginx.org/ru/docs/
  4
  5 user ...
Score: 0
IIS http to https rewrite rule only works at server level
in flag
Ya.

I've set up a rule in IIS to enforce https as described here:

https://www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10/

However it wouldn't work unless I set the rule at the global/server level. Setting the rule at the site level wouldn't do anything. Thoughts?

Score: 0
rc1 avatar
Clarification on understanding Linux disk usage with df and how tmpfs should be assessed
de flag
rc1

I have searched serverfault, SO and other sites but could not find a clear answer. I have done some reading on the basics of Linux storage and filesystems, but I'm still unclear about how to solve my problem.

My aim is to do a simple assessment of disk space and usage across servers in our environment. We will run a bash script that includes df -k command on each server. The output text will be g ...

Score: 0
How can i use vagrant to give windows and linux servers in a vagrant+virtualbox environment to live in the same IP space without private_ip addresses?
co flag

Im using the following network declaration to get an IP address for my Windows virtual machines, which is routable inside the same network to corresponding linux VMs made using the same directive. The vagrantfile in question is something like this:

    winw1.vm.network "public_network", bridge: "en0: Wi-Fi (Wireless)"
 ...
    linuxvm.vm.network "public_network", bridge: "en0: Wi-Fi (Wireless)"

Score: 0
Cannot SSH on My EC2 Instance
us flag

My last activity was I accidentically edited permission on my ec2 instace

I was trying to add permission 775 on my project's directory called storage

command like this

sudo chmod -R 775 storage

But instead doing this on /var/www/html/ I did this on directory like this ~ means the root directory.

and I exit the terminal and tried to access the server using ssh but it gaves me an error

Connection time ...

Score: 0
DMARC appears to fail, multiple DKIM signatures with one matching the from address
us flag

I am using a free outlook account. In the outlook account management portal I have added an alias for my custom domain ([email protected]). With this I am able to send mails from this alias, which appear in the receivers mailbox as "outlook username" on behalf of "[email protected]".

Now I wanted to enable DKIM, SPF and DMARC for my domain. SPF alignment is not possible, since the sendi ...

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.