Latest Server related questions

Score: 0
ssh-copy-id ceph@osd-0 /bin/ssh-copy-id: ERROR: failed to open ID file '/home/ceph/.pub': No such file or directory
bw flag

I can ssh successfully my ceph osd nodes but when i am trying to copy ssh id i am getting below error can anyone guide why i am getting below errors.

[ceph@monitor ~]$ ssh-copy-id ceph@osd-0

/bin/ssh-copy-id: ERROR: failed to open ID file '/home/ceph/.pub': No such file or directory (to install the contents of '/home/ceph/.pub' anyway, look at the -f option) [ceph@monitor ~]$

Score: 0
SuperNova avatar
AWS EC2 instance randomly refuses connections. Given the context below what could be causing this?
bd flag

Context:

The instance sits behind an Application Load Balancer.

The main and only route table for the VPC routes locally as well as to the Internet Gateway

The security group for the instance and Load Balancer allows all outbound traffic, and all necessary inbound traffic.

The ACL allows all inbound and outbound traffic.

My Load Balancer is associated with the subnet of my instance.

Problem :

I can ss ...

Score: 0
Removing old files from home directories
mz flag

I need to find and remove files older than 2 weeks from the home directories of my cluster. I do not want to let people just "touch" the file to change the modification date and keep it for another 2 weeks. (I'm talking about files of several hundreds of Gb) I thought about doing md5 check on the content and comparing it against a list with the file creation date, but maybe there is an easier solution.

Score: 0
ajthealchemist avatar
Attaching new network after instance creation causes DOWN network device status
ca flag

When creating a new instance, the attached network interfaces work normally as checked by logging into the instance and using ip addr. The IP addresses set to the network devices are the expected values.

When adding a new network interface/port after instance creation, the dashboard would say that the new interface is up and running with the new IP address. However, using ip addr inside the instance  ...

Score: 0
Ansible- Define variables based on conditions with if elif else
in flag

I have multiple roles as follows : haproxy, java, nginx, tomcat

├── ansible-test-host.yml
├── hapoxy
├── java
├── myplaybook.yml
├── nginx
└── tomcat

Base playbook is : myplaybook.yml and looks like below:

---
- hosts: test-local
  connection: local
  vars:
    java_version: "1.8.0"

  roles:
    - java

So my requirement is depending upon the roles specified ja ...

Score: 1
Nuno avatar
Health Tests on NVMe
us flag

On the servers I have, with HDD or SSD, I have a cron that periodically runs:

/usr/sbin/smartctl --test=short/long /dev/sd1

(for each disk)

While it runs, it just looks at the output of /usr/sbin/smartctl -c /dev/sd1, looping until it no longer contains:

[0-9]+% of test remaining.

And then checks if it completed without errors:

(   0)  The previous self-test routine completed

However, it appears t ...

Score: 0
erfan mehralizadeh avatar
how to mark connections to route multiple gateways?
us flag

hi i am having trouble setting up permanent routes for my network interfaces,

i have :

os : linux (centos 7)

eth0 : IP 172.16.3.6 -- Gateway : 172.16.0.1

eth0:1 : IP 10.1.5.102 -- Gateway : 10.1.5.101

eth0:2 : IP 10.1.5.106 -- Gateway : 10.1.5.105

and i wanna to connect to :

10.10.10.1:5160 via 10.1.5.102 (Sip-Trunk Connection (udp))

10.10.10.1:5161 via 10.1.5.106 (Sip-Trunk Connection (udp))

the ...

Score: 1
Daigo avatar
Offline installation of kubernetes fails when using containerd as a CRI
ao flag

I had to build a bare-metal Kubernetes cluster with no Internet connection for some reason.

As dockershim was deprecated, I decided to use containerd as a CRI, but the offline installation with kubeadm failed while executing kubeadm init due to timeout.

    Unfortunately, an error has occurred:
            timed out waiting for the condition

    This error is likely caused by:
            - The ku ...
Score: 0
Buse B. avatar
How to get a static IP address for outbound requests in AWS?
fr flag

We are in an integration process and the company is asking for whitelisted static IP addresses. The suggested solution by AWS is to create new ECS that uses new subnets. Is it possible to change subnets in an existing cluster? Do we have to redeploy everything in a new cluster? Since, redeployment is a risky process for us, we need a easier solution for that.

Score: 0
Hamid Farahani avatar
how to use firewalld in stateful mode
jp flag

I have to setup an stateful firewall on centos8 using firewalld. I'm new to firewalld but have experience with old style iptables for this purpose.
since it is recommended by Redhat here I prefer to not combine two methods like firewalld and iptables.
I want to know is there a way to use firewalld in stateful mode? if it is how?

thank you

Score: 0
Headers set using mod_headers modules in apache are being completely ignored
th flag

So I'm trying to see if I can set reponse headers by configuring them in Apache.

I'm using Debian testing, in case that matters.

My web server is working and I've been using it for multiple websites that I'm developing. So now all I want to do is set a header to see if it works.

This is what I changed in my apache.conf

<Directory /home/web>
        Options Indexes FollowSymLinks
        Allo ...
Score: 0
Lawrence avatar
.NET program sending of email not working on client server only
gb flag

I've originally asked this in SO but it seems this is a more appropriate place.

Basically, I have a program that sends email which works on my local machine and on our company's server. However, it's not working when deployed on the client's server.

The program cannot connect to the smtp server for some reason. Here is the exact error:

System.Net.Sockets.SocketException (0x80004005): A connection attempt ...
Score: 0
YD8877 avatar
Inheriting rules from nginx.conf
jp flag

I am running multiple websites under the same nginx server using separate .conf files in the conf.d/ folder. However, to restrict access to certain secure files and folders, I have to enter the below lines in each .conf file

        # deny access to .htaccess files
        location ~ /\.ht {
            deny  all;
        }
           
        # restrict access to individual files
        location ~ /(co ...
Score: 0
Livy avatar
How to connect QEMU directly to the outside network using command line?
ke flag

My host has 1 Ethernet controller with the IP address 192.168.1.2/24, and I want the virtual machine to be on the same subnet with the address 192.168.1.3/24.

Basically it is making a bridge interface on the host with the old IP address, and a tap interface as a member of that bridge, and use that tap interface as the backend of the virtual machine network interface. All tutorial I found always i ...

Score: 0
blueFast avatar
Host key changing during reboot
mm flag

I have four Azure VM machines running Ubuntu 20.04.3 that I regularly shut down. Yesterday I shut them down, and early today I restarted them. Usually this presents no problems.

Today, one of the machines started giving me the dreaded WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED:

» ssh machine-two                                                                                                           ...
Score: 0
user2980746 avatar
Wordpress permalinks with a load balancer in google cloud
br flag

Hello I used the wordpress one click deploy on google cloud and am trying to get custom permalinks working but every setting besides the default gives me a 502 server error.

My load balancer is setup with this frontend IP, 35.241.50.51
My backend IP is 34.69.91.228

My domain, hexcards.io, is set to the google name servers and I have a zone in the cloud dns which is pointing to the load balancer frontend  ...

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.