Latest Server related questions

Score: 2
Get Wordpress+Apache to work behind nginx reverse-proxy
mp flag

I'm trying to setup the following:

  • docker container with nginx on localhost as a reverse-proxy for Wordpress, listening on localhost:80. It is also used as a reverse-proxy for other microservices.
  • docker-compose container(s) with Wordpress+Apache, listening on localhost:4261. The docker-compose.yaml was taken from the official example. The 'ports' directive was changed from "8000:80" --> "4261:80".
Score: 0
Disable Screen Saver for PyVirtualDisplay with xephyr
gb flag

How do I disable the screen saver for PyVirtualDisplay and xephyr?

The closest I've found is https://unix.stackexchange.com/questions/608187/xephyr-server-does-not-have-extension-for-dpms-option which says call “xset s off” from the command line. I'm running Python within an IDE so not sure how to call xset with my Python program.

I'm using CentOS 7, Python 3.9.7, and latest version of rest o ...

Score: 0
Dnd avatar
Configuring STONITH on non-shared disk cluster
sn flag
Dnd

I have configured a 2 node (VMs) cluster with SUSE High Availability Extension.

The cluster doesn't use shared disk. So Stonith is not really required. But the cluster keeps on asking for Stonith.

So what basic stonith can i create ??

Score: 0
Mort avatar
Apache: Allow Certain Users only from specified subnet
us flag

I have a requirement to change some Apache 2.4 authentication so that most users can access the website from anywhere, but certain users (who can be identified in a number of ways, but an LDAP group would be the easiest) can only be permitted access from a certain IP address subnet. (Authentication is via OIDC module plus ldap groups.)

(A simplified version of what) the current Apache config is

<Req ...
Score: 0
Ress avatar
Zip all files returned from "grep-ril" command
lc flag

I'm using grep -ril to be able to see all files that contain a certain string:

[user@machine]$ grep -ril "test string"
file1.log
file2.log
file3.log
file4.log
...

I then would like to zip all of the files that have been returned by that command. Is this possible?

I've tried things such as grep -ril myPattern | zip files.zip and grep -ril myPattern | zip > files.zip but nothing has worked so f ...

Score: 0
Ror avatar
Mariadb xtrabackup_binlog_info location
om flag
Ror

I want to set up replication on my existing Mariadb 10.6 servers. I backup the databases automatically everyday with a custom script. Basically, it runs the following command :

mariabackup --defaults-file=${defaults_file} --extra-lsndir=${todays_dir}" --backup --compress --stream=xbstream --parallel=8 --compress-threads=8 --target-dir=${todays_dir} > "${todays_dir}/${backup_type}-${now}.xbstream ...
Score: 0
Joe Schmolo avatar
Prevent duplication of physical Salt Stack minions
uy flag

Recently I've implemented Salt on physical minions in our enterprise environment as a "backup" solution in case our current management system takes a nose dive and we need to restore configurations on nearly a thousand clients without having to get hands on with each computer, as well as an easy way to manage certain local files/scripts through git. The biggest challenge I'm facing is how to prevent du ...

Score: 0
Gergan Zhekov avatar
MySQL 8.0.21 error log is cluttered with [Note] [MY-012102] [InnoDB] Open file list len in shard X is Y
us flag

Since we have upgraded our MySQL server to 8.0.21 from 5.7, our error log is cluttered with the following message (if it is even an error message?), which takes a lot of space in our log and it is being spammed consistently:

2021-11-19T14:33:45.754254Z 0 [Note] [MY-012102] [InnoDB] Open file list len in shard 17 is 0
2021-11-19T14:33:45.754589Z 0 [Note] [MY-012102] [InnoDB] Open file list len in sh ...
Score: 0
Przemyslaw Wojda avatar
Sending image to repository not working
in flag

I've got problem with sending image to repository e.g. docker push command. Any idea what causes it?

enter image description here

Score: 0
Kamal Asdeo avatar
How to delete a specific string from a line using ansible
co flag

I have some package added in yum exclude list in /etc/yum.conf and I want to remove a specific package from a exclude list

example:

exclude=java* exclude=kernel* java* exclude=java* kernel* exclude=kernel* abc* java* def*

I tried to add # but that do not serve the purpose and add comments to all exclude statement.

- name: Comment Java exclusion
  replace:
    path: /etc/yum.conf
    regexp: '(.*ja ...
Score: 0
Compatibility between SFP+ and SFP28 ports at 1gbps
sm flag

I own a HP DL380 Gen10 with a HPE Ethernet 10/25Gb 2-port 640SFP28 (817753-B21) network card. The thing is that now I need 1gbps RJ45 connectors and those are not (strangely) present in the server. There seems to be no SFP+ adapters including RJ45 connectors (at least not listed at HP docs).

My question is regarding compatibility, in general:

  • Can I use non-HP SFP+ with this server?
  • Can I use SFP transcei ...
Score: 0
simonw avatar
FIO 17x slower on ZFS than raw device
in flag

I have ZFS pool RAIDZ-1 on 4 x 3.84TB SATA3 'enterprise' SSDs.

zfs create rpool/fio
zfs set primarycache=none rpool/fio

fio --ioengine=sync --filename=[X] --direct=1 --rw=read --bs=4K --numjobs=1 --iodepth=1 --runtime=10 --time_based --name=fio

Results:

--filename=/dev/sdg:        
  read: IOPS=25.1k, BW=98.2MiB/s (103MB/s)

--filename=/rpool/fio/testx
  read: IOPS=1408, BW=5634KiB/s (5769kB/s)
 ...
Score: 0
Why are binlogs on by default in MySQL 8 and will they be deleted automatically?
in flag

We recently discoverd that in MySQL 8 default configurations, binlog.* files clutter up in /var/lib/mysql on Ubuntu 20.04 machines.

i.e. we have a 4.2 GB database size and around 500 MB binlogs per day.

Because of this we run low in disk space.

Sure we can disabled and delete binlogs, but we are wondering what is the reason for this default configuration and if they every will be deleted (and we  ...

Score: 0
Oleksandr Bushkovskyi avatar
GKE autoscaler sometimes doesn't scale pods
pt flag

We have a deployment configured with HPA based on the CPU metric. It can work fine for days, scaling pods up and down. And then at some point looks that it ignores metric and scales to some small number of pods. Usually we resolve it by setting manually minimal number of pods that could handle traffic. And after an hour or two it starts scale again. Here is the result of kubectl describe hpa command  ...

Score: 0
Mnemosyne avatar
Connection Refused between 2 VM containers
fr flag

On my host Ubuntu 18.04 I am running two lxc containers using default setups. Containers use Ubuntu 18.04 as well. I have an app running on container1 that offers an https based service on https://localhost:3000/. Container2 is not able to even establish a connection with container1.

Container2 can ping container1 and read the html of the default Apache2 server running on localhost (for container ...

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.