Latest Server related questions

Score: 0
port5432 avatar
Why can't ssh run rbenv in the shell?
ch flag

I'm trying to run a bash script on a remote server to install ruby via rbenv.

#!/bin/bash
# ssh [email protected] 'bash -s' < configure.sh

echo "ruby 3.2.1"
rbenv install 3.2.1 --verbose
rbenv global 3.2.1

On a remote server rbenv is already installed for the user deploy. If I log into that server, it runs OK.

❯ ssh [email protected]
deploy@ubuntu-focal:~$ rbenv
rbenv 1.2.0-59-g0704e65 ...
Score: -1
Mena avatar
Split DNS Issue - Configuring a new domain controller with an existing Apache web HTTP services using the same domain name "example.com"
bq flag

We have a problem configuring a new domain controller with an existing Linux server hosting an Apache web HTTP services using the same domain name "example.com".

The Ip address for the first Domain controller 192.168.234.5 the Second Domain controller 192.168.78.5 Apache Web server 192.168.234.232 All using BIND DNS Server.

How we can configure this? Where is the configuration will be set?

enter image de ...

Score: 0
Martin AJ avatar
Nginx stops after a while without registering any trackable log
cn flag

I have a server (Ubuntu 20.04) that uses Nginx as a web server. Also, several projects are on it. The problem is, sometimes the Nginx fails (stops). Like this:

enter image description here

I really have no idea why it crashes. Searched a lot for it and made some changes in the server blocks (port listening), but still it stops sometimes. The important part is, when I run systemctl restart nginx it back to be working as well, but  ...

Score: 0
Murat avatar
Accessing to resources linked to a closed billing account at Google Cloud
ug flag

Hi all I have a GCP account that Google closed my billing account due to unpaid invoices.

It has been almost a year now that account remains closed. I need to know If I will have access to my resources in the project like my kubernetes clusters/workloads, DNZ zone, virtual machines etc after clearing out the payment issues and reopen the billing account?

It is almost not possible to access live chat ...

Score: 2
Yassine Chilali avatar
Creating replicated gluster volume always gives Distributed-Replicate volume
ro flag

Peace upon you, I am trying to create a replicated gluster volume but always it gives me Distributed-Replicate volume
i followed the following commands

Pool Peers

root@tiny1:~# gluster peer status
Number of Peers: 2

Hostname: userver
Uuid: c9e26a34-7aa9-47d2-a142-3db62d96bf9d
State: Peer in Cluster (Connected)

Hostname: huserver
Uuid: 6e88d282-8a3a-4e9f-a46f-427095a3d870
State: Peer in Cluster (Connecte ...
Score: 0
Jonas avatar
To sync before shapshot or not to sync?
ca flag

There is a Postgres database on BTRFS. I need to make a backup of the database while it is running. Should I do btrfs filesystem sync before the snapshot or btrfs subvolume snapshot does it for me automatically?

Score: 0
Shamsudeen McHalwai avatar
How to handle scaling upto 3k concurrent connections
np flag

So here's our use case: We have firmware that connects to server (simple php file - that takes post request) and add the data (350-500 bytes per request) to database.

Now here's a issue we have 3k units in the market and non-technical manager wants server to be able to handle 3k concurrent connections in worst case. Current it can handle around 600-650 connections (VPS 8GB NVMe - 6 core CPU (3.1  ...

Score: 1
What does "no ports" on netstat -s mean?
gl flag

On Windows server 2016, when I execute, in a cmd prompt, "netstat -s" I get a bunch of statistics. One of those is "No Ports".

enter image description here

What does this mean? Is this the number of times no port was found to be available when requested? Or does this refer to the number of ports currently in use? Something else?

Score: 0
user37220 avatar
Configuring Google Workspace (Gmail) to trust a Mail Relay via ARC?
cn flag

I am building a system which modifies incoming emails body on the fly (for example, it deletes attachements with viruses). Of course, I break the DKIM signature when there is one. Is it possible to configure GMail (Google Workspace) to use ARC and trust my system (a mail relay)?

For example, if an email from StackOverflow is correctly signed, then received/modified/signed by my system, and transf ...

Score: 0
smithalysia92 avatar
How to take ownership of all contents in CSC folder?
hr flag

I have files that was saved as offline files from a Synology server to the CSC folder on my computer that I would like to delete. I cannot delete the files unless I individually take ownership of every file and folder within the CSC folder. I have tried taking ownership of all containers within the folder as the admin, which has been unsuccessful. It says I have full control over the folder, but when I  ...

Score: 1
Get the SID of a Linux computer joined to a windows AD domain
mc flag

With realmd you can integrate Linux servers into AD much easier. It sets up SSSD and Kerberos locally, and it creates all of the necessary objects in AD.

Now I search for a command I can run on the linux box's terminal to get the SID (Security Identifier) assigned to the machine.

Score: 1
user15397083 avatar
Emergency database does not shut down
mg flag

I did

pgsqld stop

and the command line was like

Stopping PostgreSql:

and I have waited for seconds, and I pressed ctrl+C to cancel it, because I just thought something is going wrong.

and I tried it again, then I saw the message like

pg_ctl: server does not shut down

and I checked the status

pgsqld status
// pg_ctl: server is running (PID: XXXXX)

In short, it seems the database is still running, an ...

Score: 0
Fedora does not boot when it is installed / virtualized using virt-manager and later booted using the qemu parameters (using /dev/sdd as disk)
it flag

I'm on Debian 11 (where I'm using the default qemu version 5.2) and I'm trying to boot Fedora 37 using the following qemu commands :

/usr/bin/./qemu-system-x86_64
-enable-kvm
-m 8G
-machine q35,accel=kvm
-smp 8,cores=4
-cpu host,kvm=off
-smp 2,sockets=1,cores=2,threads=1
-drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE_4M.fd
-device ich9-intel-hda
-device hda-output
-usb -devi ...
Score: 0
Konrad Höffner avatar
Difference in routing between systemd-networkd and dhcpcd?
cn flag

When using systemd-networkd with the configuration below, I cannot connect over SSH (connection time out) to a certain server on our network. Bizarrely, there are no problems when I use dhcpcd instead. Everything else works with both approaches.

/etc/systemd/network/10-enp3s0.network

[Match]
Name=enp3s0

[Network]
DHCP=yes

I think I have identified the problem in that the routing works differently:

 ...
Score: 0
sherwood avatar
Rocky 9.1 dracut fails to boot
US flag

My rocky 9.1 vm kernel is not able to load/boot/decrypt a LVM Luks2 volume during boot. Booting with 5.14.0-162.6 works fine. But fails booting the latest 5.14.0-162.18 or 5.14.0-162.12 kernel, dracut throws with error:

Starting dracut pre-udev hook.
dracut-pre-udev[397] modprobe: ERROR: could not insert 'dm_mod': Operation not permitted.

/run/iniramfs/rdsosreport.txt

dmsetup ls --tree
/dev/mappe ...
Score: -1
redliquid avatar
why shell discard my string of variable
br flag
[root@es01 ~]# redis-cli  -h IP_ADDRESS -p 6380 -a admin info 2>/dev/null|grep config_file|cut -d: -f2
/opt/redis/7.0.5/cluster/redis-6380.conf

[root@es01 ~]# cat $(redis-cli  -h IP_ADDRESS -p 6380 -a admin info 2>/dev/null|grep config_file|cut -d: -f2)

: No such file or directoryer/redis-6380.conf

anybody can help me?

Score: 0
Digital Lightcraft avatar
Wifi connection fails until user logs in, then drops when the log out
in flag

Scenario: We have a number of PCs (50+) on a small corporate network, running Windows 10, MS server 2012 running the normal services (AD, DHCP, DNS etc) and a Ubiquity based network and wireless APs. Wifi authenticates through RADIUS.

We are in the process of switching from an old domain to a new one, so a new DC implemented, with trust.

When I switch a PC or laptop from OldDomain to NewDomain, we a ...

Score: 0
Arkadiy avatar
After adding .7z mimetype to IIS server .jpg stopped to show up on the site with 500
ci flag

I've added .7z mime type with text/plain to my IIS server on Windows Server 2019. After that site's web.config was added the block (I didn't do that)

<staticContent>
    <mimeMap fileExtension=".7z" mimeType="application/octet-stream" />
</staticContent>

And the most interesting that after that site is loading all text and css but not the images giving 500 error on them.

  1. Why this  ...
Score: 1
King David avatar
RHEL server + what is the meaning of the kernel messages about Hung TX queue XX
gb flag

We have 524 RHEL machines. in our Hadoop cluster ( all machines are DELL HW ) all machines are RHEL 7.2 version (old kernel version)

uname -r
3.10.0-327.el7.x86_64

last week we seen the following kernel messages on 64 machines.

[Wed Mar 15 00:45:11 2023] i40e 0000:81:00.0 pap3: VSI_seid 388, Hung TX queue 43, tx_pending_hw: 3, NTC:0x90, HWB: 0x99, NTU: 0x9c, TAIL: 0x9c
[Wed Mar 15 00:45:11 2023]  ...
Score: 0
olivierg avatar
Apache reverse proxy mTLS only between client and proxy, regular TLS between proxy and backends
us flag

am trying to create an apache reverse proxy (for webservices) where i need Imutual authentication (mTLS) between clients and the proxy itself, but i don't need mTLS between the proxy & the backends (multiple backends runnings multiple webservices on different ports), regular SSL is sufficient.

a schema of what i am trying to achieve :

schema1

I was thinking of an apache configuration that would look li ...

Score: 0
PouJa avatar
Stunnel between two servers: should the ssl certificate be the same on both sides?
in flag

I have two Ubuntu servers with stunnel configured between them. Server A acts as a middleman server and forwards all inbound traffic to Server B (Openvpn server) through stunnel.

Stunnel configurations on server A and on server B are:

server A:

[openvpn_client]
accept = 0.0.0.0:443
connect = <serverB_ip>:993
cert = /etc/stunnel/cert1.pem
client = yes

server B:

client = no
[openvpn_server]
accept  ...
Score: 0
Pierre Abbat avatar
In Postfix, how do I block all clients whose reverse DNS is in a domain?
sg flag

I just got hit by a spammer sending spam through my mail server from multiple IP addresses in various netblocks all with a reverse lookup ending in googleusercontent.com. (I haven't figured out how; my server kept replying "reject" to some while letting others through.) I'd like to block all IP addresses in the domain. I have this in my main.cf:

smtpd_relay_restrictions = permit_mynetworks
        chec ...
Score: 1
user1751825 avatar
Are there any benefits in using HTTPS between a load balancer and EC2 targets?
ru flag

I've spent some time refactoring a load-balanced web application in AWS in order to make it end-to-end HTTPS, CloudFront->ALB->EC2. This was mostly just for fun, to see if I could do it. Having jumped through quite a lot of hoops to make it work, I'm now wondering if it's worth upgrading the production infrastructure to work this way. Currently in production it's just HTTPS at the front-end and be ...

Score: 0
Merge SSL certs - one with a proper CA and one self signed
pl flag
Jay

As per the title - is this possible?

I have the scenario of some application running off Tomcat/Apache and in a customer environment, within the local LAN they are on the domain customer.local, and externally they own customer.com

However the same servers service both users in the LAN and externally, is it possible to combine a cert that I can load into the the Tomcat/Apache applications so that it  ...

Score: 0
Direct Connect not showing metric data even when the direct connect is turned off manually?
kr flag

I have create an alarm for direct connect with ConnectionState metric and dimension set to connection id.

It is showing ok state in alarm.

Now, when Direct Connect turned off for maintenance activities, still the alarm is not triggered.

So, when I check the metric graph, it is showing value 1 only in the metric graph in the time duration when direct connect is turned off.

Why it is not showing in metrics  ...

Score: 1
Diogo Braga avatar
How to reload MySQL 8 and update SSL certificates
cn flag

What is the correct way to update MySQL 8 SSL certificates without having to restart the service?

With PostgreSQL, you can do a reload using "systemctl reload postgresql", for example.

Score: 1
BPDev avatar
Can't rebuild deployment with PersistentVolumeClaim
gl flag

I want to create a MongoDB deployment with a PersistentVolumeClaim.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: auth-mongo-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 50Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: auth-mongo-depl
spec:
  selector:
    matchLabels:
      app: auth-mongo-pod-label
  template:
    metadata:
  ...
Score: -1
user900476 avatar
can't files in AWS s3 bucket be overwritten?
ps flag

I uploaded a new js file with the same name into the s3 bucket, but when I check the file via the Object URL in the file info page, the contents seem not to be changed

I then permanently deleted the js file in the s3 bucket and then reupload a newer version with the same file name, but when I open the Object URL the contents remains the same as the previous file.

I have no idea what happened.

Score: 1
mod_rewrite rules on subdirectory not woring due to parent rules
ph flag

My application lives in one directory and is served from a public folder, and I have an API endpoint in a sub-directory of public, both of which are redirected to their own respective index.php files. Until a recent server migration everything was working great. Now though, the API requests are being intercepted by the parent directory. Here are the vhost <directory...> segments in question ...

Score: 0
pt1xoom avatar
How do I set up a Cloud Run to communicate through our internal VPN using a custom URL
sv flag

In GCP, we would like to connect to a Cloud Run application through our internal network using a custom URL.

We have a cloud run answering on a custom URL, externally. We are using an IPsec VPN to connect to GCP internally. We have a Private Service Connect set up with an IP address that I can ping and route correctly through our network.

I set the application in Cloud Run to internal traffic only ...

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.