Latest Server related questions

Score: 0
Automount second encrypted drive without password
ru flag

I'm attempt to mount a second encrypted drive at boot by getting the password from a TPM device. I'm on Ubuntu 20.04.

The second drive as well as the first are in LVM as physical volumes. Both volumes are in the same volume group.

I followed the instructions here.

There is an entry in /etc/crypttab for the second drive:

nvme1n1_crypt UUID=64bcbd3e-a6e8-43e6-884c-dbf6189a8ecc none luks,discard,k ...
Score: 0
DRBD with external meta disk
ru flag

I am attempting to create a failover with DRBD and I have two partitions.

Partition 1) /dev/sda4 is setup for the KVMs I will be creating. Partition 2) /dev/sda5 is for the DRBD metadata

My config file is below

resource r0 {
    protocol C;
    startup {
            wfc-timeout  15;
            degr-wfc-timeout 60;
    }
    net {
            cram-hmac-alg sha1;
            shared-secret "SECRET_KEY";
   ...
Score: 0
Aditya avatar
GRPC call returns 'PROTOCOL_ERROR (0X1)' for a .NET application on EKS
cn flag

My .NET application is deployed to an EKS cluster, which has an ingress defined with the following relevant annotations

kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS-1-2-2017-01
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.k ...
Score: 0
RRAS VPN server with different adddress range for clients
za flag

I'm configuring another IP range for clients that connect through VPN, that is, I don't want it to be the same IP range as the internal physical network.

I have only one NIC card named LAN with the range 192.168.0 enter image description here

So I created an IP range for the clients starting at 192.168.2.1

enter image description here

I added the following static route.

enter image description here

However, clients do not have access, no ping response from 192.168.0.0 addresses. Ru ...

Score: 0
newcomers avatar
I Could not ping or curl master node flannel interface
vn flag

I have 3 nodes in the cluster, one is the master node and two are the worker nodes. I use CNI flannel for the Kubernetes cluster. I run an Nginx ingress in my cluster for the load balancer and the hostname is host.com

this is my pods in the cluster

namespace         deploy-4yhghhf4d-345ck                                  1/1     Running   0          2d14h   10.45.0.55     agent-02   <none>       ...
Score: 0
cat15ets avatar
Rewriting URLs with htaccess for multiple parameters
cn flag

I'm trying to rewrite this:

https://mywebsite.com/pages/article.html?id=1&title=Title-Goes-Here

into

https://mywebsite.com/pages/article/1/Title-Goes-Here

Using this Rewrite Rule

RewriteEngine on
RewriteRule ^article/([0-9]+)/([0-9a-zA-Z_-]+)$ article.html?id=$1&title=$2 [NC,L] 

However, when I try this code in https://htaccess.madewithlove.com/ it gives me

This rule was not met.

Also tr ...

Score: 0
Parsa Shabani avatar
Nginx stops working in cPanel/WHM
jp flag

I'm using Nginx as a reverse proxy in a Cpanel/WHM server. Installing it via WHM using the following cPanel documentation.

https://docs.cpanel.net/knowledge-base/web-services/nginx-with-reverse-proxy

Recently I see it stops working but the status is running! I will uninstall it once to switch to apache and then reinstall to start working. Any idea how to solve it? I'm using cloudflare if it can  ...

Score: 0
Using systemd-run To Limit I/O on cPanel for Grep Command
ph flag

When I run the grep command on Linux on my cPanel-based shared hosting account, I hit an I/O resource limit, it says on the cPanel. I tried to research how to limit resources on a command that I run and came across systemd-run. I don't know if that's the right command to use or not for a one-off grep request. If it isn't, please let me know what command I can use in front of the grep command to limit I/O ...

Score: 0
Raman Aryana avatar
app engine using react.js and node.js. Our database is on Cloud SQL, when a call is made from the app, it returns with 502 error nginx
cn flag

When a user clicks on the button to create a new record in the database these errors are returned:

(anonymous) @ xhr.js:210
e.exports @ xhr.js:15
e.exports @ dispatchRequest.js:56
u.request @ Axios.js:112
r.forEach.u.<computed> @ Axios.js:147
(anonymous) @ bind.js:9
(anonymous) @ utils.js:9
s @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
r @ asyncToGenerator.js:3
c ...
Score: 0
How do you generate a certificate with a RSA key instead of a regular key?
id flag

I am trying to see how the certificate was made, I have a key file called site.com.crt a bundle file called site.com.bundle and a key file called site.com.key and I have no way of generating the same type of certificate as the old one, because the key in the start is a RSA key.

I have:

-----BEGIN PRIVATE KEY-----

The old certificate has:

-----BEGIN RSA PRIVATE KEY-----

Score: 0
Client devices randomly unenroll from Windows Hello for Business
mx flag

I have followed the Deployment Guide found here: Windows Hello for Business Deployment Guide - On Premises Certificate Trust Deployment

We're able to set up fingerprint and facial recognition for the users and computers that are in the appropriate security groups, and when the screen is locked, the biometrics will unlock the computer. But after a few minutes (maybe 15 minutes, maybe an hour), Hello reve ...

Score: 0
Updating ApacheDs. Changing source code to match
bg flag

I was wondering how to change the ApacheDs source code to match the updated ones. What is typically the main issue in the code that needs updating. Thank you!

Score: 0
Monsquid avatar
.xyz domain not recognized by apache2 as valid hostname
de flag

When I try to add a virtual host of my new domain name that ends with .xyz, apache tells me that it can't resolve the hostname :

[Wed Jan 26 21:31:53.994125 2022] [core:error] [pid 25525] (EAI 5)No 
address associated with hostname: AH00547: Could not resolve host name 
saleori.xyz -- ignoring!

Is there a solution for this problem ?

Thanks

Score: 0
Subdomain & Emailing Hosting
in flag

I have a Domain A.Com Which is using Zoho for my emails Now I want to have B.A.Com (B is subdomain, so emails will be Test@B.A.Com)

I dont know how to setup DNS for my subdomain.

What I did so far....

I created a new DNS ZONE for Domain B.A.Com for my A.Com I added a new NS record for B and point it to B

I am still unable to ping B.A.com (Request could not find Host). what am I missing here?

Score: 0
Danny Roberts avatar
Remove Missing Drives from ZFS Pool
cn flag

After an embarrassing session trying to replace a disk in my ZFS pool, I have a bunch of entries representing disks that are no longer present in the system:

NAME                        STATE     READ WRITE CKSUM
  data                        DEGRADED     0     0     0
    mirror-0                  DEGRADED  141K     0     0
      replacing-0             UNAVAIL      0     0     0  insufficient rep ...
Score: 0
Justin avatar
Permissions Numbers Linux
at flag

Going through with permissions and understanding permissions, I understand thats the 3 is not part of the owner, group, other. I also know that 7 is the highest permission for those three sets, what is the 9 in the permissions set (3907)?

-rw-------. 1 root root 3907 Mar 4 08:34 sshd_config

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.