Latest Server related questions

Score: 0
Soufiane Odf avatar
SSL not working in Nginx docker container
cn flag

I have a project structure like this:

├── docker-compose.dev.yml
├── docker-compose.prod.yml
├── docker-compose.yml
├── homeid
│             ├── Dockerfile
│             ├── nginx.conf
│             └── website
├── reverse-proxy
│             ├── Dockerfile
│             ├── dev.homebooker.conf
│             ├── homebooke ...
Score: 0
Dani-Br avatar
skip openssh-server configuration on apt-get upgrade
in flag

When I'm trying to upgrade Ubuntu 20.10 on Linode, it stucks on one configuration prompt.
How can I skip it?
Using -qy didn't help, as shown below.

The code:

set DEBIAN_FRONTEND=noninteractive
apt-get update -qy
apt-get upgrade -qy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"

Screenshot:
enter image description here

Score: 0
Adrian avatar
What is the "kind" of a resource in Azure ARM Templates?
us flag

https://docs.microsoft.com/en-us/azure/templates/microsoft.web/serverfarms?tabs=json#serverfarms

The only documentation about that property of the ARM Template is this:

enter image description here

That description is not helpful at all, and I couldn't find any examples of it anywhere. I thought it referred to the type of resource as in Microsoft.Web/serverfarms, but that's what the type property is for.

Score: 0
Вукашин Лекић avatar
Blocked port 22 but still have root access to ftp
za flag

recently I messed up hard and blocked port 22 with ufw, but I still have root access with sftp. I tried editing /etc/ufw/ufw.conf and set ENABLED=no but even after reboot I still cant connect. Any suggestion ? I also know that port 25566 is opened, can I maybe somehow change ssh to that port ?

Also with putty i get this:

Error

Update: I logged into ssh with port 2226(sftp port) and disabled ufw. I stil ...

Score: 1
Apache http to https WITHOUT any adress?
ye flag

a normal http to https rewrite could look like this:

RewriteEngine On
# RewriteCond %{HTTP_HOST} !^example.com$
# RewriteRule /.* https://example.com/ [R]

but this code specifies the site to "example.com"

Is there anyway to make a "global" rewrite, so regardless if anybody opens example.com, broken.example.com or even example.Lom, (as long as the DNS is pointing to the server) so will it simply p ...

Score: 0
Aphrim avatar
Nginx failing to listen for requests, fails to connect
cn flag

so I am trying to host a website with nginx. For the first month it was working, until I tried to add a new domain. By default the domain was not working ( It was just showing content of the default server block ), and certbot was failing to authenticate it, so I tried to remove all certs and try again, but that screwed everything up and nothing works now. It fails to connect to any of the domains. I go ...

Score: 0
manifestor avatar
SSMTP: Map local user (UID greater than 1000) to an external email address
mp flag

I've configured SSMTP to send system messages for users with a UID < 1000 in /etc/ssmtp/ssmtp.conf:

root=to@mydomain.com
rewriteDomain=mydomain.com

If I send an email to root (echo test | sendmail -v root) for example it gets properly delivered to to@mydomain.com (as per root in /etc/ssmtp/ssmtp.conf).

However this doesn't work for user accounts with UIDs greater than 1000. If I send an email  ...

Score: 1
warheat1990 avatar
Am I still limited to gigabit speed if the file transfer is happening between same VLAN on the same physical ethernet port and same host machine?
in flag

Consider the following:

Gigabit Switch port16 configured to have native network of VLAN10 (192.168.10.x) and tagged VLAN20 (192.168.20.x) and VLAN30. This port is plugged into proxmox machine.

Proxmox host will get 192.168.10.x IP address and I will create 2 Container and 1 VM inside proxmox, all CT/VM is set to VLAN20, so in summary.

1st Container installed with Frigate (NVR) -> 192.168.20.xx
2 ...

Score: 0
guettli avatar
etcdctl endpoint health --> unhealty?
cn flag

If I run etcdctl it hangs. If I use --debug=true I see:

root@k8scp:~# kubectl exec -n kube-system -it etcd-k8scp sh


sh-5.1# ETCDCTL_API=3 etcdctl --debug=true endpoint health

{"level":"warn","ts":1643546720.7707205,"logger":"client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0005681c0/127.0.0.1:2379","attempt":0,"error":"rpc error: co ...
Score: 0
HTTPS for intranet website
in flag

My situation is, I have a server running inside a home network which can be connected from the outside through VPN (Zerotier). This network connected to the internet through NAT, thus there is no real public IP.

Now there are some services that requires HTTPS. Also using self-signed certificate would be quite troublesome as some other service is running inside container (and adding root CA for ev ...

Score: 0
Alexander avatar
How to configure hugepages on CentOS Stream 9
tr flag

I need to reserve 12288 hugepages for QEMU/KVM virtual machines.

I followed the guide in 3 easy steps to configure hugepages in RHEL/CentOS 7/8 but it looks like in CentOS Stream 9 the configuration file /etc/sysctl.conf is not for manual edit any more.

grep -i huge /proc/meminfo
AnonHugePages:   1986560 kB
ShmemHugePages:        0 kB
FileHugePages:         0 kB
HugePages_Total:       0
HugePages_Fre ...
Score: 0
guettli avatar
Containerd: /proc/PID/cwd is a symlink to / But that's not the root-dir of the node
cn flag
root@k8scp:/proc/1328/cwd# ls -l /proc/1328/cwd
lrwxrwxrwx 1 root root 0 Jan 30 09:44 /proc/1328/cwd -> /

I looks like cwd is a symlink to the rhttps://serverfault.com/questions/1091636/containerd-proc-pid-cwd-is-a-symlink-to-but-thats-not-the-root-dir-of-the-noot directory.

Pid 1328 is a container of containerd of a kubernetes master node.

root@k8scp:~# grep PRETTY /etc/os-release /proc/1328/cwd/etc ...
Score: 0
guettli avatar
How to enter the directory of a container?
cn flag

How can I access the directories of a container from the node which executes the container?

I have root-access to the master-node. Now I would like to have a look at the /etc directory of the etcd pod/container.

kubectl exec does not help, since it is a distroless image which misses the usual shell tools like ls and tar.

I use containerd

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  ...

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.