Latest Server related questions

Score: 0
zrav avatar
Netplan routing with two uplinks
ni flag

We have servers in a colocation DC and have two uplinks: A fast metered connection (for live traffic) and a slow flat rate one (for things like backups). We'd like to use a Linux box for routing and have a specific uplink be used depending on the local source subnet, effectively meaning two different default routes. This should be possible with separate routing tables, but I haven't quite been able to g ...

Score: 0
dhanu gulati avatar
Nginx 502 Bad Gateway CentOS7, PHP 7.3.33 FPM
rs flag

I am new on CentOS 7. Trying to install Postfix on centOS7 with Nginx. I am following a tutorial, but I get an error message.

I have a 502 Bad Gateway on my server, http://domainname.com , how do I fix it?

023/04/29 15:56:32 [crit] 1525#1525: *5994 connect() to unix:/run/php-fpm/www.sock failed (2: No such file or directory) while connecting to upstream, client: IPAddress, server: domainname.com,  ...
Score: -1
Anders avatar
ProLiant ML350 Gen9 SATA Questions
za flag

Im a newbie with the "real" server-world, previously I've used ordinary pc's for servers but got my hands on a ML350 Gen9 recently and decided to have a go.

Now to my questions.

1, How large SATA drives can the motherboard handle? Thinking of getting 2x Seagate Exos 16TB and doing Raid1 for secure storage.

2, Will the ML350 "accept" the non-HP certified discs and not send the fans into max-speed?

Score: 0
Daniele Continenza avatar
Bind forwarding doesn't goes right if using views
cn flag

I have two server with Bind installed. One is a public dns for resolving domains I own. The other one is another dns that I'd like to use for my customers.

On the first one i set the forwarding to the second one and I have created a forward zone for a domain, pointing to the second bind server.

Server1:

acl internals {
  172.16.0.0/24;
  127.0.0.1;
  };
acl domain {
  192.168.1.0/24;
};
acl externals {
  ...
Score: 0
Mona Kouhi avatar
Tomcat 404 error after calling the web services
ch flag

For the first time, I want to deploy a java web application in tomcat9 (On the Linux OS). I have successfully deployed it and tomcat is running. Also, on the browser, the index.jsp page is shown correctly. But when I try to call the application web services (using a login button), it gives 404 error.

Here is a part of the LoginController class:

@PostMapping(value = "/v1/security/login")
@CheckAccess(p ...
Score: 0
Cleaning up WordPress thumbnails; trying to find all thumbnails and delete them on Ubuntu 22
it flag

So, I'm trying to clean up some backups I have, and they're getting bigger and bigger because of, mainly, the number of thumbnails generated by WordPress per image. I came close to finding a solution, but, naturally, there are a few outliers that make my solution not work, and I can't figure out either the proper regular expression or an alternative way to handle this.

Currently, I am going this  ...

Score: 1
Jesse יִשַׁי avatar
Virtual domain variable in postfix/smtp_header_checks
es flag

What Postfix virtual domain variable should I use in outgoing header creation?

Current server

I'm running a database-driven virtual domain server managed by PostfixAdmin. I want to put statements in the header of all outgoing emails using the Postfix system, not using the responsible web app or client.

We need to produce...

The question is not about a List-Unsubscribe header, which we already know  ...

Score: 0
Gal Weiss avatar
A user cannot access a dashboard on zabbix server after zabbix upgrade to 6.4
pt flag

I recently upgraded a Zabbix server from version 5.x to 6.4, after doing so, a regular user (not an admin) stopped being able to access a certain dashboard on any of the hosts he have access to.

Reproduction scenario:

  1. log in to zabbix frontend
  2. search for the host name using the search bar -> will give you the search results page
  3. in the search result page, on the relevant host line, click on "Das ...
Score: 0
KoenDG avatar
3-node Pacemaker setup shows 1 node 2 times, with the same name, one online and one offline
in flag

So I've got: machine001, machine002, machine003.

machine001 has 2 resources, machine002 has 1 resource. Normally they don't go on the same host, unless machine002 goes in standby.

Recently, I saw machine002 appearing 2 times. 1 time online, 1 time offline.

Checking with sudo crm_mon -R showed they have different node ids.

I tried deleting the node id, but it refused. I tried deleting the node name, but ...

Score: 0
tomas avatar
bitnami/nginx - stop generating RSA key pair
pt flag

Please is there a way to stop bitnami/nginx to generate RSA key pair on start (since I am not using SSL in nginx.conf)?

It takes 25-30 seconds to start the app :(

Thanks

nginx 20:56:32.30
nginx 20:56:32.50 Welcome to the Bitnami nginx container
nginx 20:56:32.80 Subscribe to project updates by watching https://github.com/bitnami/containers
nginx 20:56:33.00 Submit issues and feature requests at https://g ...
Score: 0
MikeFUT avatar
Audit logging in Microsoft 365 doesn't work for one tenant
tw flag

I am taking care of a few Microsoft 365 tenants and I set up audit logging for all of them.

One of these tenant only provides administrative audit logs but no user audit logs (for example no logs about deleted item from exchange mailbox or downloaded file from OneDrive etc.).

All the tenants use the same licensing (mix of "Microsoft 365 Standard, Essentials, Premium, Exchane Online).

These steps I have ...

Score: 0
How do you retain correct table width in openstack when pipeing to less?
it flag

If you set CLIFF_FIT_WIDTH=1, openstack cli will fit table output to the screen width.

However, this breaks if you try and pipe to less.

It seems like a possible workaround could be: alias openstack='openstack --max-width "$(tput cols)"' but this seems hacky. Is there a flag or env var for openstack cli I missed so that I can pipe the output to less without the width breaking?

Score: 0
Alexander Brehm avatar
rb_sys_fail_path_in(rb_file_s_rename, (filepath1, filepath2)- errno == 0 error when running a newly installed version of chef
fr flag

I have 1 box that seems to not want to run chef, while I have 5 other identical boxes that are working just fine using the same rhel and chef versions. On the non-working box, Chef runs correctly when the runbook is empty, but it fails when I add something to the runbook and try again.

Here is some of the error that is returned

/opt/chef/embedded/lib/ruby/2.6.0/fileutils.rb:529: [BUG] rb_sys_fail_path ...
Score: 1
bendodge avatar
Exchange Transport Rule to block combination of recipients?
us flag

Is it possible to create an ETR that blocks certain combinations of recipients? Imagine I have two customers in different domains with similar email addresses. I want to prevent sending to recipient lists that inadvertently mix users from the two domains.

Ideally, I'd block outbound messages with *@domainA.com AND *@domainB.com recipients. Also, blocking outbound messages with [email protected] AND ...

Score: 1
Broken Arrow avatar
Which domain/host to use with certificate for mail server
sr flag

I am having difficulties (confused) understanding SSL for a domain for mail server. GMail "send mail as" set up is reporting error with "550 certificate name does not match host name" while trying to connect with SSL/TLS.

Domain: domain.com

Mail domain: mail.domain.com

Email account: [email protected]

DNS

A domain.com IP

CNAME mail domain.com

MX @ domain.com

Tried with SSL certificates for both doma ...

Score: 0
TZar avatar
Return Values from Ansible Role Tasks in a loop are only registered for the last item
tr flag

I have a role ovirt_vm_add_disk_role that creates a new disk for a VM with ovirt_disk module.

In that role I register the variable disk_info which contains the results of the ovirt_disk module:

- name: "Update disk information"
  ovirt_disk:
    auth: "{{ ovirt_auth }}"
    activate: true
    name: "{{ disk_name }}"
    poll_interval: 10
    vm_name: "{{ HOSTNAME }}"
  delegate_to: localhost
  regist ...
Score: 0
Rasmus avatar
fail2ban matches regular expressions but does not ban
et flag

I'm trying to set up fail2ban to monitor our traefik access logs but I'm not getting fail2ban to actually ban anything even though fail2ban-regex shows a lot of matches.

I've also specified loglevel = HEAVYDEBUG for fail2ban but it's not logging anything special to my logtarget (/var/log/fail2ban.log)

I've checked that pyinotify is installed. I also tried switching for a polling backend but the resu ...

Score: 0
elliotta avatar
Debian 11 firewalld+nftables rules not taking effect
tz flag

Update: after commenting out the line in /etc/hosts that is kinda like

#127.0.1.1  my-host.domain.edu  my-host

and rebooting, the firewall does open the expected ports. I thought to do this because, during testing with the firewall down, binding to host '' was able to accept connections, but binding to the host my-host did not (because that was only binding to 127.0.1.1, not my external address).

 ...
Score: 0
Mathias Rønnow Nørtoft avatar
M365/OME - Encrypt emails not using TLS 1.2
cn flag

I don't want to require the use of TLS 1.2 in Exchange online/O365 as it might result in some important business email not being sent/received.

So has anyone found a way to actually encrypt all in/out going emails with e.g. Office 365 Message Encryption (OME) to ensure it is encrypted, if not using TLS.

Score: 0
Zenith2k3 avatar
ADFS2 secondary server not listening on port 443
id flag

Our monitoring sensor connection for https 443 to our secondary ADFS server is refused.

We recently renewed theADFS SSL certificate, and since the secondary server is not listening on port 443.

All changes appeared to have been replicated successfully and correctly from the primary server. i.e. can see New SSL is bound to port 443, and ADFS service restarted.

The servers are in AWS, both have the same ...

Score: 0
MaestroMaus avatar
$'\r': command not found error when executing find in a bash script
cn flag

I wrote the following script; it's modified for simplicity and privacy reasons:

FILES_ROOT='/data/FILES'

BACK_B2B_RETURNS_S="$FILES_ROOT"'/wms-m-company/w2z/b2breturns/backup'
BACK_B2B_RETURNS_D="$FILES_ROOT"'/wms-d-company/w-to-z/backup/m-company/b2b-delivery-confirmations'
find "$BACK_B2B_RETURNS_S" -maxdepth 1 -type f -exec mv {} "$BACK_B2B_RETURNS_D" \;

LOG_B2B_RETURNS_S="$FILES_ROOT"'/wms-m- ...
Score: 0
IgorTheOverlord avatar
How to delete olcAttributeTypes LDAP
gl flag

Is there a way to delete olcAttributeTypes from my schema?

It's not a system attribute, I added it myself, now I need to delete it.

I'm using LAM (LDAP Account Manager) v5.6

The attribute is located at /etc/openldap/slapd.d/cn=config/cn=schema.ldif

The way I added it was ldapmodify -Y EXTERNAL -H ldapi:/// -f ldif.ldif

Contents of ldif.ldif were:

dn: cn=schema,cn=config
changetype: modify
add: olcAttribu ...
Score: 0
Apoorv Patne avatar
How to create a new SSH service connection for a server which has MFA enabled?
in flag

I'm trying to create an azure pipeline. Part of the process involves creating a service connection so that I can copy files to the remote server securely.

enter image description here

I have 2 questions:

  1. What do I put in the Service connection name field? An example with a brief explanation would suffice.
  2. How do I create this SSH service connection if I have MFA enabled? There's no option related to this on UI.

I asked Chat ...

Score: 1
marismmm avatar
OpenLDAP gidNumber and group membership inconsistency
je flag

I encountered an interesting problem while examining a specific AD/OpenLDAP interop case. On the OpenLDAP server, there is a user1, whose gidNumber corresponds to a group1. There is another user2, whose gidNumber corresponds to group2. However, group1 lists only user2 as its member, group2 lists both of them. How is this possible?

I expected gidNumber in Linux environments to work similarly to ho ...

Score: 0
bing0 avatar
What is the difference between route add x.x.x.x via gatewayip and route add dev interface?
cn flag

I was so confused with my configuration.

In my server I have 2 interfaces:

eth0: 192.168.1.22  gw 192.168.1.1
eth2: 10.2.1.6 gw 10.2.1.1

I wrote a static route:

ip r a 8.8.8.8 via 192.168.1.1
 worked great!!

then I deleted it and
ip r a 8.8.8.8 dev eth0
 From 192.168.1.22 icmp_seq=1 Destination Host Unreachable

Why?????

Score: 0
Brice avatar
Assign specific Exchange Role to App-only authentication with Exchange Online Powershell
gb flag

I need to use the following cmdlets from ExchangeOnline Powershell module with an unattended connection.

  • Get-QuarantineMessage
  • Preview-QuarantineMessage
  • Release-QuarantineMessage
  • Export-QuarantineMessage
  1. Following this first documentation https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps, I created an Azure App registration with self-signed certif ...

Score: 0
Mo Fatty avatar
How to make KVM guest configs persistent across reboots/shutdown
hu flag

I create a KVM Guest VM (virsh define a.xml, virsh start a.xml). Guest uses pre-configured/pre-made QCOW2 disk image, which represents a virtual router (Arista vEOS). Host is Redhat 9.1. Guest is based on Centos 7.9. The VM uses a boot loader (Aboot) in a cdrom. The guest has two environments where one can configure it: Bash Shell as well as "Arista CLI".

I use bash to make changes to the system: addus ...

Score: 0
ptushev avatar
botocore.exceptions.ClientError: An error occurred (InvalidToken) when calling the ListObjectsV2 operation
jp flag

I have an mlflow server that is hosted on aws, that uses s3 in the background for storage. I am trying to run a lambda-function that runs a python script which accesses the mlflow server, loads a pytorch model, makes predictions and finishes. The code where my problems arise is:

with open('./data/api_keys.json', 'r') as f:
    API_KEYS = json.load(f)

os.environ['AWS_DEFAULT_REGION'] = API_KEYS['AWS_ ...
Score: 0
J1raya avatar
iscsiadm doesn't run under root/sudo
cn flag

When attempting to discover iscsi targets using the following command, I get (as expected not running with sudo) the following:

iscsiadm -m discovery -t st -p 192.168.1.199

Result:

iscsiadm: Could not open /var/lock/iscsi: Permission denied iscsiadm: Could not open /var/lock/iscsi: Permission denied

When attempting to run elevated:

sudo iscsiadm -m discovery -t st -p 192.168.1.199

I get the fol ...

Score: 0
AnxiousConcert avatar
Point a wildcard subdomain in go daddy to a heroku app
td flag

So I have purchased a domain on go daddy by the name let's say example.com. Now I want to direct all *.example.com to a nextjs app hosted on heroku.

I followed the standard process to point any subdomain to a heroku app which was

  1. Add a custom domain to heroku app by name *.example.com.
  2. Copy the dns target given by heroku
  3. Create a cname record in go daddy's DNS records page for the site with * as name and ...

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.