Latest Server related questions

Score: 0
Julius avatar
How to assign a tty to a process?
fi flag

I can configure a command which will be run without a tty (similar to a cronjob). The problem is that the binary to be run seems to require a terminal. Is there a way to run a process with a new tty assigned? I don't really care about the output, but the binary seems to fail without it.

I tried to run it with tmux, but it seems like tmux fails if there is no terminal.

Score: 0
Zevrant avatar
NDB allow not allowing access with valid ip
cl flag

I have a nbd server setup with the following config

[generic]
    user = nbd
    group = nbd
    port = 98745
[export]
    exportname = /dev/ubuntu-vg/lv0
    authfile = /etc/nbd-server/allow

without an allow file this works flawlessly.

after adding the following allow file

10.0.0.0/24

with an ip of 10.0.0.10 i get

Negotiation: ..Error: Connection not allowed by server policy. Server said: Access  ...
Score: 0
Rashad Aliyev avatar
nslookup script for return empty hostnames
vn flag

I want to write script which returns hostnames with no IP. I wrote following part of the script but I don't know how can I return the empty answers. Thanks in advance

$numbers=1..255
foreach ($number in $numbers){
{
    nslookup host$number
}
Score: 0
How can I resolve or trace the latency on Remote Performance Counter request?
gr flag

I have a Powershell script which directly accesses a performance counter from a remote machine in the cloud in a large corporate environment:

$a = (Get-Counter -Counter "\\myservername\PI Analysis Service\Recalculation Requests Completed" -ErrorAction Stop)

The first time this line runs, the application hangs and it takes 4 minutes to reach the next line of code.

All following (identical) queries return  ...

Score: 0
László Stahorszki avatar
Kubernetes: certificate for non-http service
co flag

In my cluster (DOKS), I'd like to run an SMTP/IMAP server, obviously with SSL encryption, provided by Let's encrypt. For HTTP based servers this works perfectly with cert-manager and the ingress resource.

However, if I want to run a non-http service, I can't use the ingress controller, unfortunately.

My idea is to run a certbot container as an initContainer, so that all I need for a new certificat ...

Score: 1
Willy avatar
How to replicate the configuration of a self-signed certificate with OpenSSL?
in flag

I have a load balancer that requires a certificate with a specific configuration, unfortunately those who created the first certificates did not document this configuration and I only have a list of commands that is not complete either.

I have these two files: example_ca.crt and example.crt

And using this OpenSSL command:

openssl x509 -in file_name.crt -text -noout

These are its properties (I will omit  ...

Score: 2
Col. Shrapnel avatar
Can I rely on the 701 permissions to prevent users within the same group from messing with each other's data?
br flag

Some time ago I've learned that assigning all users to the same group and setting 701 to their home directories prevents them from messing with each other's data, yet lets a system program, such as a web-server, to access the data.

So I create a group users then two users, alice:users and bob:users with /opt/www/alice and /opt/www/bob home directories respectively. Then, after logging under alice I ...

Score: 0
HP ProLiant DL380p Gen8 raid swap
in flag

We have a HP ProLiant DL380p Gen8 which boots vmware and loads 3 windows virtual servers. We started getting cyclic redundancy erros during backup and then one of the raid drives started showing red on it's push button release. I ordered a new drive and hot swapped it this morning. The new drive appears to be acting the same as the old drive. I tried to download a gui to see the raid status but everythi ...

Score: 0
Terry G Lorber avatar
LXC instances do not have IPv4 addresses
br flag

I've had limited success in having LXC instances acquire an IPv4 address. It has worked at creation, but if I reboot the host, all addresses are lost.

Host Ubuntu 21.10

Client version: 4.21

Server version: 4.21

Image Ubuntu 21.10

tgl@electra:~$ lxd version
4.21
tgl@electra:~$ lxc version
Client version: 4.21
Server version: 4.21
tgl@electra:~$ lxc list
+---------+---------+------+------------------------ ...
Score: -2
Ole Tange avatar
PERC H700: "Virtual disk creation failed" Why?
ar flag

I try to create a new VD on a drive from the PERC config. I get:

"Virtual disk creation failed"

The drive has been used before in another system.

What do I need to clear, before I can use the drive?

Score: 1
rvs avatar
Setting resource limits on kube-apiserver
vn flag
rvs

Resource Management for Pods and Containers describes how to set resource requets and limits for "regular" pods in Kubernetes. Is there a supported/reccomended way to set these limits for control plane components such as kube-apiserver?

Things I considered:

  • Modifying static manifests, e.g. in /etc/kubernetes/manifests/kube-apiserver.yaml. This could work but it will be overwritten by kubeadm during nex ...
Score: 0
Can you install GRUB on an MDADM Raid 1 device before it's added to the MD array?
id flag

So we have our 2 OS drives in a Raid 1 MDADM mirror. One of these drives has failed. Typically after replacing the failed drive, we do a sfdisk command to match the partition table, and then add the device into the MD array (which starts copying/syncing data from the old drive). Once the rebalance/copying of data by MDADM is complete, we install grub on the new drive with "grub-install /dev/sdb".

Score: 0
Varnish sometimes (up to ~5% of the requests) triggers err_too_many_redirects, running in docker combined with plesk for wordpress
tf flag

We've followed these instructions https://support.plesk.com/hc/en-us/articles/115001888894-Does-Plesk-support-Varnish- and were able to get it to work 'properly', it serves the wordpress site through varnish and the speed is amazing. All good and well, but our uptime robot reports short downtime every now and then (very irregular, but between 1 and 8 times a day for a period of <5 minutes, on variou ...

Score: 1
Z Wang avatar
Nginx can't accept TLS handshake when client is not sending TLS extensions
in flag

Nginx is configured as load balancer and has a server certificate installed to terminater TLS handshake for MQTT connections. It works when TLS extensions are included in clientHello during the handshake but there are other clients running old code who don't send any TLS extensions in clientHello. In that case I found Nginx will throw errors as in

SSL_do_handshake() failed (SSL: error:14201044:SSL  ...
Score: 0
user3804769 avatar
OpenCms: Kerberos SSO authentication with httpd+Tomcat
cn flag

I have a standalone httpd+Tomcat 8.5.65 installation on OpenJDK 11 with OpenCms 11.0.2 for my client's internal website.

They have a LDAP network and they're requesting the automated logon using Kerberos (krb5).

We configured SPNego and it works on Tomcat: a test JSP page including the code:

 <%= request.getRemoteUser() %> 

works as intended (prints the username) when accessed through tomcat ...

Score: 1
Al Qbeck avatar
Rewriting to point to a CDN
jp flag

I'm hoping to use a CDN to deliver all our image files. We call the images by simply using the CDN's domain instead of our own. I could easily change the domain reference in our content management system, but then preview breaks because it's looking for an image that doesn't yet appear on our external server for our CDN to pull from. As soon as we publish, the CDN has an image to pull.

I'm thinki ...

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.