Latest Server related questions

Score: 0
otujuhxv avatar
What is the simplest way to set up shared/clustered read-write filesystem across servers?
ht flag

What is the simplest way to set up shared/clustered read-write POSIX-compliant filesystem across servers where performance is not a major concern?

Suppose I have two Linux servers S1 and S2 and an uninitialized (no filesystem) block device /dev/sdb.

Note: self-answered question.

Score: 0
user1672382 avatar
Having two datacenters with two virtual servers at each, what is the suitable redis topology for high availability?
pk flag

I have two data centers, A and B, which has two virtual servers at each site. We have connectivity between the two sites. I'm planning to deploy one redis HA cluster with two masters and two slaves. One master, one slave on A and vice-versa at the other site.

Will it work in a disaster situation where a data center is not available? Redis recommendation is to have a 3 master server cluster. I'm c ...

Score: 0
Tim avatar
nmap shows 8080/tcp open http-proxy on centos 7 VPS but lsof shows nothing for that port
za flag
Tim

Im running a Centos 7 VPS server for the past several years. Originally when I set it up I didnt install any firewall (iptables specifically) because I was under the impression the host (linode) needed them open to admin the box from their side. Yes I know, really dumb mistake. Other things like ssh, apache etc I locked down and hardened well along with using fail2ban and I keep things patched o ...

Score: 0
Gary Aitken avatar
Mail being rejected despite SPF record specifying envelope IP address
us flag

I have a mail server with a bridged DSL modem connection; the domain's SPF record looks like this:

"v=spf1 +mx +aa.bb.cc.dd -all"

where the aa.bb.cc.dd is the IP address for my end of the bridged DSL connection; this address is NOT in my domain; it is owned by my ISP. The IP for the mail server is in the MX record for the domain, but the PPPoE link for the DSL bridge changes the IP for my end of the  ...

Score: 1
neezer avatar
Port forward DNS using pf
br flag

On OpenBSD, I can successfully & transparently forward ports 80 and 443 to services running on custom, unprivileged ports using the following /etc/pf.conf:

tcp_pass = "{ 22 80 123 443 }"

block all
pass out log on egress proto tcp to any port $tcp_pass keep state

pass in log on egress proto tcp from any to any port 80 rdr-to 127.0.0.1 port 3080 keep state
pass in log on egress proto tcp from any to a ...
Score: 0
LifeWithLucifer avatar
Cannot connect to Ubuntu Samba from Windows
de flag

I setup Samba on a Ubuntu 22.02 server. I cannot access the shared with Windows but I can with Linux. Ports 139 and 445 are open and listening on loopback and lan interface. I even made the share public to test it without credentials and no connection. I feel like I'm missing something. I can ping the server from the windows PC. I included the smb.conf below. Any help would be greatly appreciated.

Score: 0
How to manage remote IIS instances from Windows 10 Professional?
us flag

I have a number of instances of IIS running on remote Windows Server 2019 boxes. I want to be able to manage them from IIS on my local Windows 10 Professional box.

To that end, I went to the Windows Features dialog and checked pretty much everything under Internet Information Services. However, when I fire up IIS, I don't see an option to Add Server....

Am I missing something simple or is the o ...

Score: 0
Syam avatar
Eventarc Triggers Not Receiving Events When GKE clusters are created
tj flag

I want to create an eventarc trigger which can send payload messages to Cloud Run whenever a new GKE cluster is created.The code seems to be working when I created another eventarc trigger which send messages to Cloud Run whenever a compute engine VM is created. is there any configuration that I am missing as I see only below options while configuring the eventarc for GKE. Please help. google.cloud.gkec ...

Score: 0
kevincw01 avatar
crontab shell script execution not as expected
cn flag

I have a script named run_logs.sh with the contents:

#!/bin/bash
source /root/.profile
zcat /var/log/apache2/access.log.*.gz | /usr/bin/goaccess - access.log

when I run that script as root (both with and without a 'bash' prefix', on the command line the goaccess software processes both access.log and all of the gzipped logs. But when cron runs it, it only processes the access.log. What can I do to c ...

Score: 1
Bouarfa Mahi avatar
nginx with subdomains and two servers
vi flag

I have two servers: the first one has the IP address 192.168.1.216 and is configured with the hostname hub.domain.tld (jupyterhub). The DNS record is pointing to the public IP address, and all requests on ports 80 and 443 are forwarded to 192.168.1.216.

The initial Nginx configuration on the first server was simple to set up and is functioning properly.

However, the issue arises with the second se ...

Score: 0
Роман Коптев avatar
Remote requests to localhost
th flag

How is it principlally possible that I have records in my reverse proxy (nginx) log that shows requests form remote ip (second column) to localhost (first column) and it is not proxy requests (not GET http):

localhost 159.65.111.248 - - [04/Jun/2023:10:51:19 +0000] "GET / HTTP/1.0" 503 190 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0" "-"
localhost 137.184.74.35 - - [04/Jun/20 ...
Score: 0
Massimo Sparavigna avatar
Failure to Update Maximum Upload Limit Set By Hosting Provider and PHP Max Input Vars
gq flag

Hi I deployed a VM with Wordpress only I can't update the Maximum Upload Limit Set By Hosting Provider value from 2M to 40M.

I also can't update the PHP Max Input Vars value , despite we have modified the (./etc/php/8.1/apache2/php.ini) php.ini and .htaccess file

Can you please help me. Thank you

Score: 0
mehov avatar
Nginx sets HTTP_HOST to punycode
no flag

I have a unicode domain name. It is configured as punycode in the server_name directive.

When I call $_SERVER['HTTP_HOST'] in my PHP code, I get that same punycode version. How do I configure Nginx to set HTTP_HOST to the unicode value instead?

As a hotfix, I call idn_to_utf8($_SERVER['HTTP_HOST'], 0, INTL_IDNA_VARIANT_UTS46) at the top of my script. But I would like this to be done automatically outs ...

Score: 0
Why doesn't this HAProxy ACL match the HTTP method from returned from a map?
us flag

I'm trying to configure HAProxy to allow a specific set of HTTP methods to a specific set of paths, stored in a map.

For example, I have a haproxy map file which contains the following:

/api/read_method GET
/api/write_method POST

Given the above map, I would like to allow GET requests starting with /api/read_method (but no other methods), and POST requests to paths starting /api/write_method (but no GE ...

Score: 0
Dave avatar
XCP-ng Local Storage SR on LVM is unplugged and errors when being re-attached
cn flag

I have an XCP-ng cluster running XCP-ng 8.2.1 and following a patch and reboot the local storage SR is showing as unplugged. This is an XCP create LVM on a RAID drive, the same RAID drives contain the OS which is booting and I can see evidence of any actual disk issues.

Asking the stack to plug the SR in (either in XO or with the command line) results in the same error:

[15:39 hal02 log]# xe pbd-plug  ...
Score: 1
hangerer avatar
How do I configure nginx to remove a part of the URI given to index.php
mc flag

The routing script of my application expects the URI to be

/api/v0/create

My request goes to

http://my-server.test/subdir/api/v0/create

How can I configure nginx to remove the "/subdir" from the URI, providing the expected path to the application's router?

I tried this one, but got only "404 File not found" from the server (not the app):

location /subdir/api/ {
    rewrite ^/subdir(.*)$ $1 last;
  ...
Score: 0
Gene avatar
Ansible: escaping special characters in a regexp loop
us flag

I been having problems getting this to work, can anyone provide any insights?

    - name Configuring rsyslog.conf playbook
      hosts: "{{host}}"
      tasks:
      - name: Configuring rsyslog.conf
        lineinfile:
          path: /etc/rsyslog.conf
          regexp: "{{item.regexp}}"
          line: "{{item.line}}"
          state: present
        loop:
        - { regexp='^action\\(type=', lin ...
Score: 0
Madhuri Muralidhar avatar
Trying to install Kubernetes in RHEL 8.5 (CRI-O) - getting error
sa flag

Trying to install Kubernetes in RHEL 8.5 (CRI-O) - getting error Error: Failed to download metadata for repo 'devel_kubic_libcontainers_stable: Downloading error(s): repodata/9eaf71711c185fd237f77107b8023a9dce64aacc2d66c301d1b5e21f2b111469-filelists.xml.gz - Cannot download, all mirrors were already tried without success

Tried dnf clean all - Did not work

Please suggest the alternate workaround to i ...

Score: 0
Christian Pedersen avatar
Remotely initiating an unattended Windows reinstallation on multiple machines from a partition
ar flag

I am aiming to achieve the following:

  • Install Windows from scratch on Disk 0 partition
  • Prestage the machines remotely before reinstallation (using a custom tool I am developing). The tool ensures that the Windows installation is fetched to the machine.
  • Issue a simultaneous reboot command for all machines and have them boot directly into an unattended Windows installation.

My specific problem is get ...

Score: -2
user12158726 avatar
can I change the Raid setting without reformatting the hard disk?
cn flag

I have configured the Dell R740 to use Raid 5 (mixtured of HDD/SDD storage) to run citrix xen server for VMs. In the past it was configured as Raid 1 mirroring and resulting insufficient storage. therefore we reformatted the hard disk and set it to Raid 5, the storage space is increased.

However the performance is very slow when a single VM is turned on, the navigation in Windows is very lag.

I woul ...

Score: 0
Pavol avatar
How to assign Windows process to specific network adapter
wf flag

I would like to start specific applications for example MQTT broker, Node-red etc. in multiple instances and I would like to assign, that each one can communicate just on the specific network adapter on Windows.

So it mean, I have many network adapters and each instance of some process can use just own adapter.

Its possible to do that?

Score: 0
Tuaris avatar
What's the difference between default_transport & content_filter in Postfix
cn flag

Postfix has two options which to me appear to do the same thing: default_transport and content_filter.

https://www.postfix.org/postconf.5.html#default_transport https://www.postfix.org/postconf.5.html#content_filter

For example I have these this processes setup in master.cf

my_custom_smtp_client            unix  -       -       n       -       -    smtp 

I can then use either one of these options in a

Score: 1
anonymous avatar
cannot run kubeadm init on centos
jp flag

I am trying to run kubeadm init on my centos 8 server and I am getting this error

I0609 09:51:54.527931 2575529 version.go:255] remote version is much newer: v1.27.2; falling back to: stable-1.23
[init] Using Kubernetes version: v1.23.17
[preflight] Running pre-flight checks
    [WARNING FileExisting-tc]: tc not found in system path
error execution phase preflight: [preflight] Some fatal errors occ ...
Score: 1
Jamie McClelland avatar
Why does all email, including email that is rejected, get processed by the milter?
il flag

I've configured postfix to use a milter.

Unfortunately, it seems that all email goes through the milter, even email that is rejected with "User unknown" messages or email rejected by the check_policy_service setting in smtpd_check_recipients.

This is causing problems when we get mail bombed because our milter can't keep up. Have I misconfigured something? Or is this by design?

Here's my main.cf:

Score: 0
Rafael avatar
PHP-FPM child processes terminate for no apparent reason
mg flag

// FIXED

  • Issue was Shopware 6.5 related

After weeks of unsuccessful debugging, we are now hoping for help here.

We have a system where we can create test instances for Shopware 5 and Shopware 6. The applications are not special and run on LAMP without any specific configuration.

In detail, the issue is that after an indefinite period of time, for an unknown reason, the PHP child processes crash and fai ...

Score: 0
aprilduck avatar
Rancher 2 RKE cluster component kube-api-auth is throwing an error with v1Authenticate request
py flag

I’m facing a strange error in my RKE1 k8s cluster. Running 1.24.13 on vsphere. kube-api-auth is constantly throwing these errors in the logs:

time="2023-06-08T09:21:09Z" level=info msg="Starting Rancher Kube-API-Auth service on 127.0.0.1:6440"
time="2023-06-08T09:21:09Z" level=info msg="Running in single server mode, will not peer connections"
time="2023-06-08T09:21:09Z" level=info msg="Starting  ...
Score: 1
TRS-80 avatar
Troubleshooting issues joining computers to a new'ish domain - meaning when built six months ago joining worked
eu flag

I'll begin with a cold-start with some background at the end.

While adding a computer to domain 'MyDomain.local' an error occurred:

An Active Directory Domain Controller (AD DC) for the domain "mydomain.local" cound not be contacted. Ensure that the domain name is typed correctly. If the name is correct, click Details for troubleshooting information.

The details message:

DNS was successfully que ...

Score: -1
Paw Pedersen avatar
Always on VPN profile with Group policy
kp flag

I am trying to deploy the always on VPN profile via GPO, with a powershell script from Richard hicks. the script works when i run local, but i can't figure out how to run it with a startup script in group policy.

have anyone figured this out ? Intune or SCCM is not a possibility

Edit: Solved Thanks to Richard I got it to work now, i used you suggestion and remote signed the script, then it worked. ...

Score: 0
fr0 avatar
Trouble with password rules in Linux-PAM
by flag
fr0

Ubuntu 20.04. I've installed pam_pwquality.so.

Here's the contents of /opt/pam.d/common-password:

password    required    pam_pwquality.so retry=1 minlen=10 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1 difok=1 symbols="!#%^()&"
password    required    pam_unix.so obscure use_authtok try_first_pass sha512

The intention here is that all passwords:

  • Must be at least 10 characters long
  • Must have at lea ...
Score: 0
Flat-Entry avatar
Visio 2016 deployment on a Office 365 laptop
vi flag

I'm trying to put a volume copy of Visio 2016 on a laptop that has the click to run version of Office. I have been attempting to use the Office Deployment Tool to get the copy of Visio installed, however, I get the "can't install" message.

I am following along as best I can with the following: https://learn.microsoft.com/en-us/DeployOffice/overview-office-deployment-tool https://learn.microsoft.com/en ...

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.