Latest Server related questions

Score: 0
mariadb-client cannot connect to db throwing "RSA Encryption not supported"
no flag

I have a docker-compose with a 'db' and 'web' containers. The db is a mysql:8.0 image, and the web is a python:3.9-slim.

If I try to connect to the MySQL server inside the db container, it works. But not if I try it inside the web container, from where I get the following error:

root@c08888899ca9:/local/app# mysql -h db -u root -p123qwe
ERROR 2061 (HY000): RSA Encryption not supported - caching_sha ...
Score: 0
rebatoma avatar
configure inactivity timeout while handling keepalive probes
pe flag

I am developing a TCP echo server using python and the socket library.

I'd like to have a timeout configured for each incoming connection. So to drop and close them if there is inactivity for a SOCK_TIMEOUT value.

This is achieve with the specific setting: client_sock.settimeout(SOCK_TIMEOUT)

At the same time I would like to maintain active the connection that use keepalive method. So, if a keepa ...

Score: 1
How to validate variables contents in Ansible?
in flag

ansible-lint only checks the tasks/handlers and doesn't iterate over the variables (e.g. if you're using with_items, it won't iterate over all the items) and yamllint only checks cosmetic issues and is hard to customized with custom rules.

Is there a tool that can validate the actual data in the variables in YAML files before they are fed into Ansible?

Examples:

  • A given variable cannot contain a specifi ...
Score: 0
Carl Colijn avatar
Windows DEL command behavior wrt junction points
pn flag

In my installer script I want to delete known files from known locations on the local PC using the DEL command. The command should purge the file from a certain folder and all subfolders below that. I therefore use:

cd /d "C:\MyFolder"
del /f /s /q MyFile.xyz

However, if a junction is mapped somewhere below "C:\MyFolder" (say, at "C:\MyFolder\Junction", pointing to another folder on the same drive), ...

Score: 0
Rosamunda avatar
What does it means "Signal lost for 15 minutes on 'Low Application Throughput'"
sd flag

I've recently implemented the New Relic service in my website, and I keep getting this error

Signal lost for 15 minutes on 'Low Application Throughput'

enter image description here

And here is more information when clicking on "Issue Payload"

{
  "timestamp": 1652961056996,
  "title": "[\"Signal lost for 15 minutes on 'Low Application Throughput'\"]",
  "mergeReason": "",
  "status": "OPEN",
  "unAcknowledgedBy": null,
  "l ...
Score: 0
Why "vlan: 3 parent interface: en0"
jp flag

I have created a VLAN:

Linux

vconfig add en0 3
ip addr add 192.168.126.5/24 dev en0.3
ip link set up en0.3
can be translated to macOS by e.g.

MacOS

ifconfig vlan0 create
ifconfig vlan0 vlan 3 vlandev en0
ifconfig vlan0 inet 192.168.126.5 netmask 255.255.255.0

And I can now see, from ip link show that I have a VLAN saying:

vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1496
 ...
Score: 0
List "hardware" Network Interfaces Controllers
jp flag

When using ifconfig or ip link show commands, it lists not only hardware interfaces, but also software interfaces - I would expect only the physically interfaces?

Note: I am running on MacOS.

ip link show

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
    nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT ...
Score: 0
CHETAN SUTHAR avatar
How to add dynamic subdomain to site test.mysite.com
us flag

I have requirement to manage dynamic subdomains for site like test.mysite.com BTW my current IIS has already multiple site hosted and each has SSL certificate configured. What I want to achieve is any subdomain should use the same site. like profile1.test.mysite.com,profile2.test.mysite.com etc., should use test.mysite.com. I have added code in site to check the domain URL and based on the first subdoma ...

Score: 0
Unable to add old HostKeyAlgorithms Ciphers KexAlgorithms to sshd_config no hostkey alg error
us flag

I have 2 linux boxes one is CentOS 6 one is Fedora 35

CentOS 6's openssh is too old and Fedora 35 sshd server reject the connection. I want to add back the old HostKeyAlgorithms Ciphers KexAlgorithms to Fedora 35's sshd_config

the thing I've added in is following

# Add old client support
Ciphers +aes128-cbc
MACs +hmac-sha1
HostKeyAlgorithms +ssh-dss
KexAlgorithms +diffie-hellman-group1-sha1

it's a ...

Score: 0
redundant load balancer for Tomcat
jp flag

I have three Tomcat webservers in a VMWare cluster.

In the first place we thought of using Apache as a load balancer in physical server but this would be a SPOF.

I have searched around and I found this discussion but I would need some more info. Does it make sense to include the two (or more) HAProxy servers as virtual machines and not run them on physical servers? Can this active-passive configurati ...

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.