Latest Server related questions

Score: 0
Jerome Wolff avatar
Why is it not possible to establish a connection between these servers?
mo flag

I have the problem that my two servers (master, worker) can not connect to each other. However, connections outside e.g. "google.com" are possible. I have already tried to allow all ICMP connections, which are otherwise forbidden in the prerouting. However, this has not helped at all.

When pinging from my master to the worker I get the following output:

3 packets transmitted, 0 received, 100% packet los ...

Score: 0
Aleksandr Dubinsky avatar
Cancel `md --grow` operation
in flag

I added drives to an md RAID5 array, and quickly realized that I forgot to create a partition as is best practice (something I’ve also learned from bitter experience). How can I cancel this operation and re-add them?

Right now I froze the rebuild. As a safe workaround I can let the rebuild finish, fail one and replace it, etc. But this would take a week. Would failing both now also work?

Note: The ...

Score: 0
Sinlog avatar
SSH connection to gitlab server not working
ss flag

I have recently installed a gitlab server on a Fedora Server VM hosted locally on my computer. To install the gilab server I used this command : sudo yum install -y gitlab-ce.

I had no errors during the installation but when I try to connect to the gitlab instance with the command ssh [email protected] I have this message :

Last login: Sat Apr 22 16:33:11 2023 from 10.0.2.2.

instead of :

Welcome to ...

Score: 0
Maurice avatar
How can I configure gitlab and nginx as a reverse proxy with SSL authenticating to Azure AD?
gb flag

I've been pushing on this for days, I'm really hoping some kind soul can help.

Nginx is sitting on an Ubuntu machine in Azure. On that same machine, Docker engine is running a Gitlab container (which uses nginx for serving it up.)

I've gotten as far as getting everything working the way I want, except just over plain http. Yesterday I added SSL, which was not successful, and now I'm having trouble e ...

Score: 0
vvv444 avatar
How do I copy image in OpenStack under a second name
in flag

Say I have an image named org-image-name, I want to create a new image that will be identical but have a different name (say new-image-name). How can I do it using CLI? Or maybe there is an aliases feature?

Score: 0
vvv444 avatar
How do I rename image in OpenStack using command line?
in flag

I have an image named old-image-name in OpenStack. I want to rename it (say to new-image-name).

I know I can do it using "Edit Image" in the web interface. But how can I do it from command line/script?

Score: 0
Apollo avatar
Sudoers NOPASSWD not working for specified commands
cn flag

I have the following entries in the sudoers file:

christian ALL=(root)NOPASSWD: /usr/sbin/shutdown
christian ALL=(root)NOPASSWD: /usr/bin/systemctl start mc

When running sudo shutdown -h now or sudo systemctl start mc, I still have to enter the password, even though I've set the NOPASSWD option for these commands. I am not sure why, because as far as I've read, this should be the correct syntax for it ...

Score: 0
Arty avatar
Map subdomain to local IP through public IP
de flag

I want to map subdomain to local IPs on my machine to achieve a IP for each of my virtual machines.

I know I can setup a DNS on my own machine but that will only resolve the domain on my own machine.

subdomain.domain.com -> Public IP -> Internal IP 1
subdomain2.domain.com -> Public IP -> Internal IP 2
subdomain2.domain.com -> Public IP -> Internal IP 3

is there anything that might ...

Score: 0
popcorn avatar
Auto renew LetsEncrypt cert with nginx under Docker
sk flag

I'm having troubles setting up a auto renew for LetsEncrypt certificates.

I run nginx under Docker container that serves Django application.

Here is my docker-compose file:

version: '3.8'

services:
  app:
    image: registry.myimage.app
    restart: always
    build:
      context: .
      dockerfile: ./app/Dockerfile
    ports:
      - "8000:8000"
    command: /start
    expose:
      - 8000
    env_fi ...
Score: 0
E M A avatar
nftabels rules and rc.local
bv flag

i have problem like this
this is my iptables rules

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination (( my first server ))
iptables -t nat -A PREROUTING -j DNAT --to-destination (( my second server ))
iptables -t nat -A POSTROUTING -j MASQUERADE

i want to change these rules to nftables what should i do ?

also i always add these to nano /etc/rc.local ...

Score: -1
Sefa Akbulut avatar
show mapped drive as shared folder
bn flag

I have a mapped network drive and backup folder inside it.

O:\Backup

But I can't share this folder like \\localhost\backup

Is there a way to share a folder in a mapped drive?

Score: 0
Nuno avatar
Why does curl inside Docker to a subdomain in the same Host use private IP address?
us flag

Consider I have docker-subdomain.mydomain.com pointing to a website in a Docker container, and host-subdomain.mydomain.com pointing to a website in the Host itself. Both these websites are in the same Host and IP address.

When the PHP code of the docker-subdomain.mydomain.com inside Docker makes a curl call to host-subdomain.mydomain.com, and that host-subdomain.mydomain.com logs the IP address of  ...

Score: 1
nr1chiefrocka avatar
OOM killer beeing invoked by snapd systemd timer, CPU usage locks at 100% (snapd, mount, certbot)
nc flag

Im having trouble debugging why my nodeJS webapp gets killed by the OOM killer in Debian 11. Im working on a small VPS (VMware ESX 7.0.3 build-21313628) by IONOS with single core 1GHz cpu, 512MB RAM, 1,9GB swap and 10GB SSD.

The webapp runs with pm2 and nginx as a reverse proxy, im using certbot systemd timer for automatic SSL renewals.

The issue which occurs is the following: The VPS gets unrespons ...

Score: 0
szlev avatar
How was apache2 able to use 8+GB ram "in idle"? (oom-killer)
it flag

I bought a vps in Contabo, using ubuntu22, installed apache2, php, mariadb.Sometimes the apache2 uses all of my memory. Literally all. At idle, not really anything was running.

A php process was running in the picture but right after this happened I stopped it and restarted apache2 and the memory again got to 8gb in just like 10sec. So I think it is not related to the problem, I used this php script on ...

Score: 0
FalcoGer avatar
How to sign a certificate for s/mime and generate pkcs12 store with existing CA?
cn flag

I want to create a certificate store file in pkcs12 format to use in thunderbird for s/mime signing and encrypting. I already run a mail and web server that use certificates signed by a CA certificate that I have created. I want to sign the mail user's cert with that same CA.

I loosely followed this guide but adjusted my steps to fit my setup.

The CA cert is in PEM format.

I create the p12 certificat ...

Score: 0
Mustafa Mohiuodin avatar
network does not work for VM after a while, only resolves after changing MAC
dk flag

I have installed pfSense as a KVM guest in a Debian 11 host using libvirt. The host has two interfaces. One is attached to the VM using macVLAN driver, and serves as pfSense's WAN interface. The other is attached to a linux bridge, and serves the LAN (thus the linux bridge has three ports: the actual physical NIC, a tap interface for VM, and one for the host).

Everything works fine at first. Howe ...

Score: 1
jurgen avatar
Systemd service not logging
gt flag

I have a systemd service. No logs appear from it despite my best efforts. This is the service file:

[Unit]
Description=Load Balancer

[Service]
WorkingDirectory=/home/lb
ExecStart=/usr/lib/jvm/jdk-20/bin/java --enable-preview -jar /home/lb/app.jar
User=lb
Type=simple
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

I've also tried adding

StandardOutput=journal
StandardError= ...
Score: 0
musbur avatar
Linux client: mount.cifs works but net time doesn't
us flag

I'm running a Linux VM that needs to access files on Windows machines. For that I have a bunch of CIFS mounts in /etc/fstab that work fine. Idiotically the Windows machines have free-running system clocks not synced to anything, so I also want to know their respective local times. I'm using "net -I xxx.xxx.xxx.xxx time" for that. Every now and then I'll get "Protocol negotiation failed: ERRDOS:ERRnomem" ...

Score: 0
Andre avatar
How to install Gnumeric/ssconvert no Amazon Linux 2?
ws flag

I cannot find gnumeric/ssconvert package for Amazon Linux 2 (using yum).

I tried to compile the source code with error. Is there any easier way to install it?

Compile Error

[ec2-user@ip-172-31-6-34 gnumeric-1.12.55]$ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/ ...
Score: 0
Md Mosharef Hossain avatar
Redirect utm_source for multilingual web page
td flag

I have https://www.example.com/page-name/?utm_source=dlvr.it&utm_medium=twitter

I have added the following code in the .htaccess file and redirected it to https://www.example.com/page-name/.

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(utm_source) [NC]
RewriteCond %{REQUEST_URI} ^/$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)$ [NC]
RewriteRule ^ %{REQUEST_URI}? [L,R=301]

But the multilingual page is  ...

Score: 0
Ashutosh avatar
Kubernetes federation
cm flag

I have two eks cluster added in kubernetes federation , I am able to deploy pod on each cluster by adding labels in deployment for each cluster , but I am not able to do the same randomly , if I run the deployment it should be able to deploy pods of any one cluster randomly without adding any labels

I am sharing the crd file

apiVersion: types.kubefed.io/v1beta1
kind: Placement
metadata:
  name: random ...
Score: 1
Autumn avatar
Windows OpenSSH Match Exec string with embedded quotes
in flag

Under Openssh for Windows, is there a way to specify an exec string for powershell with embedded quotes? It's made complex by the fact that a multiword command must be quoted, and I can't figure out a way to escape the embedded quotes. I've tried the following arguments to Match ... Exec:

# This gives error ${CMDVAR} is not recognized
"powershell -command ${CMDVAR}"

# This executes the script bu ...
Score: 0
mrlitsta avatar
Unable to mount CIFS share using mount.cifs using AD credentials on Centos 7
bt flag

I'm trying to mount a CIFS share from a storage array on a Centos7 machine, and I'm failing miserably.

sudo mount -t cifs -o vers=2.1,user=domain/myuser //storagearray/Server_Backups  /tmp/dbshare/

[sudo] password for myuser:
Password for domain/myuser@//storagearray/Server_Backups:  ***********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I've increa ...

Score: 0
Dustin Lewis avatar
MCE Errors but no edac-util errors?
US flag

I have an older HP Z440 tower with 4x8GB ECC DDR4, running Proxmox VE 6.4. Recently, it started showing MCE errors every few seconds. I installed rasdaemon and can see that they are memory read errors. However, edac-util doesn't show any sign of problems. Memtest passed, but I understand that's normal for correctable errors.

There is only one socket, and the DIMMs are installed in slots 1, 3, 6,  ...

Score: 0
Marc avatar
service file disappeared in Google CLoud VM
vn flag

I have a Google VM micro instance running Ubuntu 20.04. Last week on this VM, I set up a systemd service that runs a python script. I created the service file (say my_fancy_service.service) as /lib/systemd/system/my_fancy_service.service and inside this service file, it calls /usr/bin/python3 /usr/local/bin/my_fancy_service.py. Everything works fine as expected.

But today I came back to this serv ...

Score: 1
pacoverflow avatar
"Target KMS key" error when trying to enable backup replication on an AWS RDS instance
ng flag

I created an RDS database instance using the AWS user interface, and I made sure that the "Backup replication" feature was enabled and I specified the ARN for a symmetric multi-region KMS key that I created for "encrypt and decrypt" usage. The database creation seemed to go successfully.

To my surprise, when I tried to modify the RDS instance, the "Enable replication in another AWS Region" box wa ...

Score: 0
Evgeny avatar
Do not log access to some php scripts
ro flag

I would like to exclude from access.log access to some php scripts. To do this, I did the following:

 location ~ ^/lib/exe/(jquery|taskrunner|css|js)\.php$ {
        access_log off; 
        #access_log /var/log/nginx/test_access.log;
        try_files /dev/null/1 @processphp;
    }   

    location ~ \.php$ {
        try_files /dev/null/1 @processphp;
    }   

    location @processphp {
        i ...
Score: 0
Tedd Hansen avatar
Access multple tenants as Global Administrator with principal from single tenant (PowerShell 7)
in flag

My goal here is to be able to use the service principal of an Enterprise Application in source tenant to authenticate towards/connect to destination tenants as Global Administrator.

In source tenant I have added an Enterprise Application. I am able to successfully connect to this tenant with this EA service principal using Connect-AzAccount (providing secret in Credential parameter).

Connect-AzAccoun ...

Score: 0
Agrikk avatar
Supermicro IPMI - pingable, flashable, HTTP/HTTPS not accessible
lu flag

I have a Supermicro X9SRL-F motherboard on which the IPMI isn't working properly. When I got the board I went into the BIOS and changed the IP address to static and it shows as 192.168.x.y. The IP address is pingable but I cannot point a browser to it. IPMIView 2.21.0 detects it and I can add it to the list of devices, but I cannot conect to it that way either.

I was able to flash the firmware wi ...

Score: 0
fejyesynb avatar
AWS Lambda's indirect S3 requests
ca flag

I noticed AWS Lambda causes S3 tier 1 and 2 requests. Do these cost anything after 12 months free tier expires?

Specifically:

  • Create new AWS Lambda function in AWS console causes 1 tier 1 S3 request
    • Amazon Simple Storage Service Requests-Tier1: $x per request - PUT, COPY, POST, or LIST requests: 1 Request
  • Delete AWS Lambda function in AWS console causes 1 tier 2 S3 request
    • Amazon Simple Storage  ...

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.