Latest Server related questions

Score: 3
Iván Jf avatar
There is no replication in a HA Cluster
US flag

I had the problem of unrelated data aborting in a HA cluster and my Mysql resource was in standalone on both nodes, I managed to solve the problem and both nodes are synchronized, the problem now is that when checking the var/lib/mysql directory

On the main node I have the following files:

-database
-innodbdata
-innodblog
-lost+found
-mysql.sock
-replicationlog
-tmp
-trace

but the mirror node I only ...

Score: 0
chargingBrontosaurus avatar
How can I compress files while uploading them to GCP?
ch flag

I am trying to automate backups to a remote GCP bucket. I am using the gsutil CLI and Crontab to schedule transfers of all files in a given directory. I would like to compress the files as they are being transferred, and was led to believe that the following command would work:

gsutil -m cp -r -z * [local_path] gs://[GCP Path]

This however is not looking to be the case and it seems that individual fil ...

Score: 0
skyrin avatar
Issue with Rocky Linux System not showing deactivated ports
cx flag

I am having issues with a Rocky Linux system that a colleague is using. They are currently connected via 1gig ports and they want to use the 10gig ports on the switch. However, when looking for the deactivated ports they do not show up at all. nmcli connection show only shows the two 1gig ports. We have tried everything to get this to work we would use nmcli con up if we could figure out what the port i ...

Score: 0
user34295 avatar
Command that run fine... but give me an error when "piped" to grep, inside a docker RUN?
jp flag

Sorry for the title, I really can't explain better. I'm learning shell programming.

I'm trying to detect if Composer has a script named "post-install-cmd". To do that, one can call composer run-script --list (documentation). So i pipe that command to grep -q inside a conditional.

When I run this inside a Docker layer (distribution is Debian-based), i only get an error when calling composer run-scrip ...

Score: 0
How do I change default user settings in RDS Session Host?
cl flag

Using Windows Server 2022...

When a user connects the first time to my RDS Session Host, they get this layout...

enter image description here

How can I by default remove "server programs", prevent all users (but admins) to access eg. server manager? Get the desktop experience?

Is that controlled by GPO?

I don't want to log in as the user for the first time and manually set up all above.

I need a hint in the right direction : ...

Score: 0
Jay Michaud avatar
Roll back HP Universal Print Driver
jp flag

I recently installed the latest PostScript HP Universal Print Driver on my Windows print server, but it turned out that the driver was buggy. I reverted the server virtual machine to a snapshot taken before the upgrade, so the server is fine. Some Windows client PCs connected to the server during the brief period that the bad driver was installed, and they downloaded and installed the buggy version. (We ...

Score: 0
Vaune_ avatar
How to reverse proxy host paths to absolute urls using ngix?
tw flag

I have a series of local services all running on different ports. I'd like to expose these services via a nginx reverse proxy. The routing patterns should follow the pattern:

  • 0.0.0.0/app -> locahost:3000
  • 0.0.0.0/api -> locahost:3001
  • 0.0.0.0/db -> locahost:3002

I've tried the following:

http {
 
    sendfile on;

    upstream app {
      server localhost:3000;
    }

    upstream api { ...
Score: 0
Collin Stiner avatar
PM2 Cluster Mode - All Clusters restarting on error
mx flag

I am running a NodeJS application in Cluster mode: pm2 start server.js -i max

Assume I have 2 clusters (0 and 1)... Our application is a simple NodeJS backend app running Express. However, there is the occasion where there is an unhandled error that causes the app to go down (thus PM2 needs to restart). I am noticing that whenever PM2 restarts on cluster mode, however, it brings ALL clusters down tempor ...

Score: 1
Richard avatar
is "GET /" a valid HTTP request?
uz flag

I noticed that sending GET / (+CRLF) to some webservers (e.g. from a well-known search provider) results in a HTTP/1.0 200 OK message. Other webserver respond with a HTTP/1.0 400 error.

To my knowledge even HTTP/1.0 requires the version field. Is GET / (without protocol and Host) a standardized, valid shortened GET request?

After some digging I found HTTP/0.9 from 1991 defines the following:

  • This request ...
Score: 0
Rizwan avatar
Upgrading Printer Server 2016 to 2019
id flag

I am planning to upgrade our print server configured on Windows Server 2016 to 2019. I am planning to proceed with in-place upgrade. Have you tried in-place upgrade of printer server from 2016 to 2019 ? Any issues noticed during/after the upgrade ?

Score: 0
Merennulli avatar
IIS 10 - how to block an IP range
us flag

I'm trying to figure out how to block by range on MS IIS 10, but all I can find are partial range blocks (which maybe that's all IIS can do, but I'd like to know that rather than just guess that).

So, for example, the range 10.6.64.0 through 10.150.161.255 is owned by Example Incorporated and hosts malicious scripts and has yet to do anything with the abuse reports I've sent. There is no legitima ...

Score: 0
Node.JS avatar
Can Redfish be used to wipe hard drives
nz flag

I am wondering if can Redfish (Dell or Lenovo) be used to format/wipe clean hard drives. I haven't been able to find any examples. If it's not possible, what is the alternative approach other than Refish to accomplish this? Thank you.

Score: 0
Levi Cole avatar
Isolating a WordPress wesbite within a sub-directory of another
ls flag

Is it possible to isolate a website within a sub-directory of another on a WHM server? And by isolate, I mean in the event that website within the sub-directory is compromised any malware is contained to that site and cannot affect anything within the parent directory.

Some background to the question...

There are 2 WordPress websites:

  • primary.com (WP1)
  • secondary.com (WP2)

And as part of an SEO str ...

Score: -1
Possible to identify the application that is causing these entries in IIS Log?
us flag
Tim

I'm wondering if it's possible to identity the program that is causing these log entries in IIS. Could that be CuppaCMS that the program is looking for, hoping to exploit a vulnerability if it's present?

2023-05-05 12:11:30 192.168.1.99 OPTIONS /Cuppa.ico - 80 - 10.100.0.190 Microsoft-WebDAV-MiniRedir/10.0.19045 - 200 0 0 62
2023-05-05 12:11:30 192.168.1.99 PROPFIND /Cuppa.ico - 80 - 10.100.0.190 M ...
Score: 0
Luca Del Prete avatar
Windows Event Collector between workgroup
km flag

I configured a windows server 2016 in workgroup as windows event collector in "source computer initiated" mode. I added in the subscription configuration another windows server 2016, also in workgroup, as "non-domain computers".

I generated the certificates for 'authentication via PowerShell and they are self-signed.

Below is info regarding the client configuration.

The command line test works correct ...

Score: 0
LeperAffinity666 avatar
Unable to send emails from Postfix via Gmail (connect to smtp.google.com: Connection timed out)
sh flag

I want to configure a Ubuntu Linode VPS to send log information from Fail2Ban, Apache ModSecurity and other monitoring tools to my email address. However, I don't want to configure a whole email sever: instead, I want to leverage Gmail as a relay from where I'll send all my emails. Esentially, everything should be sent from my Ubuntu VPS to Gmail.

With this in mind, I

  1. Succesfully added the releva ...
Score: 0
Paandittya avatar
Empty Cgroup entries in Nginx service status output on an Ubuntu server
in flag

I am running multiple web application on a single server, using Nginx as the web server. After git pulling an update to one of the django based website, I restarted the Nginx server. To check if everything is running well, I ran the command sudo service nginx status which gave me this output.

ubuntu@myIp:~$ sudo service nginx status
● nginx.service - A high performance web server and a reverse proxy ser ...
Score: 0
Liam Chaney avatar
Event 1202 when trying to run a scheduled task GPO under NT Authority\System
cv flag

I'm trying to get a barcode font installed on machines for a enterprise application. The GPO is being served from a Windows Server 2019 Standard version 1809 OS build 17763.4252 server. The GPO in question uses computer preferences -> Scheduled Tasks to immediately run a script. Shown below.

#$fonts = (New-Object -ComObject Shell.Application).Namespace(0x14)
$Path = Test-Path \\DC\netlogon\font\ ...
Score: 0
acgbox avatar
How to configure failover in edgerouter x 5 ports?
ng flag

I have connected to my edgerouter x 5 ports, 2 WAN (WAN1 to eth0 and WAN2 to eth1 in failover)

Problem: WAN1 has 10 Mbps and WAN2 Failover 8 Mbps. When WAN1 drops, but not enough (example: 1 or 0.5 Mpbs), WAN2 failover does not enter.

What I want is that when WAN1 drops to XX Mbps, WAN2 goes into operation in failover mode and returns to WAN1 when it exceeds XX Mbps, in a recovery time of XX minutes ...

Score: 0
techgirl avatar
Redis Stack Server - Cannot Change Data Dir (Docker/Kubernetes)
ar flag

I am trying to get redis up and running in a Kubernetes environment. I’ve done many tutorials, read the documentation, etc. etc. I need to have the .rdb file and the .aof file(s) saved in a Persistent Volume so that the data can be persisted across Pod (or container) failures/deletions/etc. I have a redis instance starting, and I’m trying to use a custom config file. All the pods get created and run  ...

Score: 0
How to customize sudo permissions when using OS Login?
in flag

When OS Login is enabled, and a user is granted access by having either the "Compute OS Login" or "Compute OS Admin Login" roles, they can run sudo.

In my experience, the per-user sudoers file always has this permission:

# cat /var/google-sudoers.d/first_last_example_com 
first_last_example_com ALL=(ALL) NOPASSWD: ALL

Is it possible to customize these permissions or even disable sudo completely for a s ...

Score: 0
musbur avatar
Can mount on /mnt but not on other mount point, why?
us flag

this is an RHEL8 VM. I'm trying to mount a logical volume on /var (because I need more space). For now I have created a directory /xvar to mount on, but it doesn't work and doesn't show an error. Below an example, I first mount on /mnt, check that it's there, then umount (check again), then try and mount on /xvar. Below that is a listing of SELinux contexts (somewhat of a mystery to me) but I set the co ...

Score: 0
Stripe Custom PHP & JavaScript Stripe Integrations: form refuses to load
cn flag

I'm attempting to create a webpage for my startup, which is subscription-based. We have Stripe in live mode, and are essentially storing cards for future use, allowing us to have different payment options available when creating new subscriptions. Subscriptions will then be assigned to a device (similar to the way Office 365 assigns licenses to users).

When a user signs up, our code automatically ...

Score: 2
Gerfried avatar
IF Condition in Apache 2.4 is always executed
gb flag

I am trying to load a module based on a condition. {PHPMODULENAME} is replaced in the config by the AMP Server I am using - so please don't get confused.

<If "'{PHPMODULENAME}' == 'php8_module'">
    LoadModule module1 "..."
</If>
<Else>
    LoadModule module2 "..."
</Else>

If the condition is true it should load module1 - because only then the module1 is available and module2 isn ...

Score: 0
Derek avatar
Dual dnsmasq name resolution
sk flag

For resilience, I have two dnsmasq instances providing both local DNS and DHCP. DHCP is configured to offer separate IP ranges from each instance.

I then add IP reservations to the /etc/dnsmasq.d/99-static-dhcp.conf files on each instance, and hostnames to the /etc/hosts file on each instance - basically so that they're the same.

This largely works fine, but with this approach I need to give all dev ...

Score: 0
PouJa avatar
rsync skip transferring files that take longer than n minutes
in flag

I run rsync as a cron job within a script. Sometimes transfer speed falls down and my large files (say over 1G) take so long to transfer and this stops my script functionality. Is there a way I can tell rsync to stop sending a file if it takes more than n minutes?

In other words, I want to run a rsync command to send a large file to my remote machine. If the transfer finished successfully before n mi ...

Score: 0
Thermatix avatar
When logging out to journald, when would you use a library and when would you use systemd config options to pipe StdOut/StdErr to journald
us flag

I've found library's that allow logging out to journald which suggests that, yes you should use a library where possible and log to journald from inside your app.

But then there are tools like systemd-cat or systemd config options like this (from this) :

[Service]
StandardError=journal
StandardOutput=journal
StandardInput=null

Which suggests I can just pipe the output of stdout/stderr of the servi ...

Score: 0
th0masrad avatar
automatic mounting of encrypted zfs dataset
gi flag

As a newbie to zfs, I am having trouble getting an encrypted dataset mounted during boot. The dataset is protected with a raw key and not a passphrase.

This is how I created the zpool and the dataset:

# zpool list
no pools available

# zpool create ZPOOL -m /media/ZPOOL -o autotrim=on -o failmode=continue /dev/sdb

# zpool list
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    H ...
Score: 0
How to find memory consuming request in mongodb
in flag

There is a small(4 replicas) mongodb cluster(replicaset). Every node is 24GB ram with 8GB wiredtiger cache size.

Cluster is used by many (about 100) applications which do few hundred requests per seconds. Most of queries are optimized.

From time to time(every few months) primary node is killed by oomkiller, then secondary node is killed (probably with the same request repeated by app), then it back  ...

Score: 0
cordell452658 avatar
Allow non-admin, local user account, to shutdown Windows Server remotely
pa flag

For security purposes, on server1, I created local user account, shutdowntest, and gave it local security policy permission "Force shutdown from a remote system".

Now I want to shutdown server1 remotely, from another server, with sysinternals psshutdown.exe

psshutdown \\server1 -u server1\shutdowntest -p pAsSw0rD -f /t 0

I get output:

PsShutdown v2.6 - Shutdown, logoff and power manage local and rem ...

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.