Latest Server related questions

Score: 1
T0maas avatar
How to disallow second OpenVPN client with the same key?
cz flag

I've setup my openvpn server, but I have this problem:

Clients connects in this order:

  1. client_A connects succesfully to server using it's own key.
  2. client_B connects to server using client_A's key and gets same ip as client_A.

When I try to ping client_A packets goes to client_B instead of client_A.

I don't have duplicate-cn in my server config.

How can I prevent this behavior? I want to kick client_B im ...

Score: 0
Reducing server response time (apache 2.4, c5a.2xlarge ec2)
ke flag

As the title says, I'm running an Ubuntu ec2 server with c5a.2xlarge instance type (8 vCPU and 16 GB Memory) with an apache web server on it and the site feels very slow even when trying to load an empty document with just a test being echoed out. As you can see in the screenshot, Time varies on every refresh and is never even around some 100ms-200ms (except once). When I hover over the request, most ...

Score: 0
uday kiran avatar
How to automate complete azure kubernetes environment?
uz flag

We have azure kubernetes cluster and database managed service in postgres azure flexible servers.

Created terraform templates to automate environment setup. But there is no option in azure devops to spin up a new cluster build job. So kept a single pipeline at present which just manages a single cluster

After that, need to manually create a service connection to this cluster which can be used in rel ...

Score: 0
theirman avatar
How to properly configure a custom logrotate configuration file?
vn flag

For the first time today, I am trying to write a configuration file for logrotate. When I restart the logrotate service, I get the following error: logrotate.service: Failed with result 'exit-code'.

If I delete my file and restart logrotate.service, everything is OK

Here is my logrotate.conf configuration file

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of  ...
Score: 0
QF0 avatar
Multiple hosts with the same hostname on the same network?
gu flag
QF0

Hypothetical situation: I have two (Linux) computers on the same network with the same hostname, but different FQDNs (foo.example.com and foo.example.org).

They have different MAC addresses, and get their IP addresses from a DHCP server.

What problems is this likely to cause, if any? In particular, there's no DNS in this network, and IP addresses are looked up from /etc/hosts and the Windows equivale ...

Score: 0
PowerShell add users, if exist, add a number
kz flag

Im creating active directory users from the file usersFile2.csv The users gets added. Right account information is added, for example firstname, lastname, etc...

The PROBLEM. If a user with the same sAMAccountName exists I want the script to add a number to sAMAccountName.. Get-ADuser part is where I need to edit...

# Import active directory module
Import-Module activedirectory

#Load data from file.c ...
Score: 0
syslog-ng freezes when reloading config changes in log msg size
ng flag

I'm having a weird case of syslog-ng freezing on some reloads and under some conditions.

syslog-ng version is ubuntu 20.04's default 3.25.1. It has to be something related to log_msg_size as this started to happen when it was reconfigured from log_msg_size(16384) to log_msg_size(65536) which, in fact, is its default value.

Once it was reconfigured the daemon was left in state Reloading configuration ...

Score: 0
Geno Racklin Asher avatar
Cloud Run / Secret Manager Free Tier
va flag

I'm using Cloud Run for the backend of a project I'm working on, in part due to its generous free tier (2 million requests per month, free). But the services require some secret values (database password, Oauth secret key, etc.), so I have followed the Google recommendation to store these values in Google Secret Manager and load them as environment variables through Cloud Run.

However, the free t ...

Score: 1
DNS cache: systemd-resolve and ping resolve different IP addresses
cn flag

I have changed the IP address in a DNS record (on Google Cloud DNS), associated to a subdomain test.example.com

From my Google Cloud VM:

  • if I ping test.example.com, I get the old IP address
  • if I systemd-resolve test.example.com, I get the new IP address

I have tried to flush the DNS cache using:

sudo systemd-resolve --flush-caches

but ping is still getting the old IP address

What am I doing wrong? ...

Score: 0
BySpecops. avatar
AWS CDK - How to deploy EC2 instances to multiple regions
de flag

I'm using the following resource to create my instances in AWS.

https://bobbyhadz.com/blog/aws-cdk-ec2-userdata-example

What I really want to implement is just creating multiple (specified) instances on AWS with CDK.

Example:

us-east-1 => Number of EC2 instances: 2
eu-west-1 => Number of EC2 instances: 1

And what about VPC? Can I share the created VPC or do I need to use the default VPC?

Instanc ...

Score: 0
Kim Mỹ avatar
wordpress post, page url redirect to local proxy_pass docker container hostname on nginx
cn flag

I have successfully setup a wordpress site running on a dockerized nginx. When the wordpress site is up and running, I can go to the home page: https://my_domain.com or any links or at wp-admin/...(after logged in at /wp-login.php which is accessible) without any problem.

But when I go to https://my_domain.com/sample-page or https://my_domain.com/post-id or /wp-admin(if not logged in) it immediatel ...

Score: 0
ERROR /init: /init: 1 cannot open /dev/root/: No such device or address after P2V
bq flag

I have a problem with converting a Physical Machine to a Virtual Machine. I'm using as VM host Windows Server 2012 R2 with Hyper V. Unfortunately I'm rather the Windows Guy and can't find a solution on the Web.

We have an old server (purchase date 2007). The server has Linux installed with the Lino bootlooder. After I cloned the server with CloneZilla, it won't boot anymore. The error is

/init: /ini ...

Score: 0
chepakwak avatar
mysqld fails to start due to InnoDB
in flag

I did install MariaDB on MX Linux, my system info below :

System:    Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21_x64 Wildflower Oct ...
Score: 1
Can't make Vmware ESXi 6.7 LAG on top of Dell VLTi port-channel
id flag

So.

I've configured dell 5212F switches with 2x100G ports into VLTi domain. For some reason - when I run show vlt 10 mismatch it show that both of switches have no roles. But they appear as should in show vlt 10 and they able to ping each other mgmt IP

In addition - i've created a port-channel 1 with vlt-channel 1 and connected 2 25G uplinks to one of vmware servers.

I've created a distributed switch w ...

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.