Latest Server related questions

Score: 0
Tirux avatar
Any possible way to receive an alert of Windows Server being "unresponsive"?
in flag

We currently use ServiceNow to have many alerts like ping, 100% CPU/RAM utilization, disk space being almost full, etc. but we are investigating if we can receive an alert when the OS is "unresponsive", that is, cannot connect by RDP or VMware console (black screen). We have experienced Windows Servers in which the IIS or other APP services are still working, but we have to reboot the OS in order to acc ...

Score: 0
SinaOwolabi avatar
Cloud-init in kvm guests (Debian and Centos) not setting interface settings
ng flag

Im trying to use cloud-init to setup kvm guests (currently Debian 11 and CentOS Stream 8), and I am looking for help in correcting the meta-data and user-data files. Everything else seems to work, but network interface settings aren't set, though I do see cloud-init logs showing that they are. Please see below:

For debian:

    cat << EOF > /var/lib/libvirt/images/$meta_data_file
instance-id:  ...
Score: 0
rage8885 avatar
nginx: How to match server with shorter regex first when both have the same TLD?
sc flag

I'm trying to configure nginx to support two server name schemes.

Current: https://custid.hosted-environment.com/test/app-name/ Proposed: https://app-name.test.custid.hosted-environment.com

The current scheme works just fine, but trying to support both the current and proposed scheme and have nginx direct to the correct server based on the host does not seem to be working.

Here is an abbreviated version o ...

Score: 0
hinneLinks avatar
top - Show graphical load on startup (interactive commands 1, t, m)
cn flag

I'd like to see the current load (cpu + mem) of my Server (rhel 7.x) in a graphical fashion and only have top (and other built-in commands) available, tools like htop (that need to be installed) are not available.

Currently I start top and then type 1, t and m to archive and output like this one:

top graphical output with bars

Is there a way to start top with this view or send keystrokes to it automatically after start? The man pa ...

Score: 0
Mike T avatar
PowerShell ForEach-Object Parallel RAM Memory Keeps Growing
in flag

Using PS 7.3.4 The code works fine without errors.

Issue - the RAM consumed by the script keeps growing. How do I release the RAM? How do I see what is consuming the RAM? Any suggestions will be greatly apprciated.

Memory results after processing batches of 10K input

End of 1st group of 10K memory results.

For loop memory used BEFORE collection: 1,208,928,432

For loop memory used AFTER full col ...

Score: 0
BenMorel avatar
How to set individual mysqld parameters using the bitnami/mysql Helm chart?
vn flag

We're using the bitnami/mysql Helm chart.

We'd like to upgrade max_allowed_packet from the default 16M value to 64M.

From what I can read in the README, it looks like the only way to pass custom [mysqld] parameters is by overriding the primary.configuration value.

But the default value is quite big:

$ helm show values bitnami/mysql
...
primary:
  ...
  configuration: |-
    [mysqld]
    default_authentic ...
Score: 0
Chris Vesper avatar
How does Windows run an uninstaller at logon
in flag

When users log into a Server 2016 Remote Desktop Server, they see this message. I'd like to stop that message from appearing.

Where does Windows set a flag or set up the autorun to uninstall an app at logon?

This may be user-specific as many users have reported seeing this message.

Cannot uninstall error message

In this case, we started installing "Virtual Printer Server" as an Administrator on the Server 2016 machine, and canc ...

Score: 0
santosh baruah avatar
How we Fix the APT repository errors Debian os
us flag

How to fix Fix the APT repository errors I'm using Debian GNU/Linux 9.13 (stretch), how can i fix this update error ?and import the Docker GPG key?

root@test:~# apt-get update
Ign:1 http://security.debian.org stretch/updates InRelease
Err:2 http://security.debian.org stretch/updates Release
  404  Not Found [IP: 111.73.1113.145 90]
Get:3 https://download.docker.com/linux/debian stretch InRelease [4 ...
Score: 1
Ror avatar
/etc/cron.d not running job
om flag
Ror

I need to run a script as a user to backup my database every night. I added the following cron job in /etc/cron.d/backup-mysql via ansible.

0 3 * * * backup_mysql /path/backup-mysql.sh

I can see the job running in syslog :

Apr 29 03:00:01 myserver CRON[1534185]: (backup_mysql) CMD (/path/backup-mysql.sh)

However it does nothing and I don't understand why. I checked the path, run the script as the us ...

Score: 0
Handsome Teh avatar
How to assign filtered column data to a variable using Set in VBA excel?
bh flag

I am newbie to VBA excel. I am trying to use Set to assign some data from a filtered column (through AutoFilter) to a variable (X in this case). Below shows the code and image of the table.

Sub Test()

    Dim X As Variant
    
    Worksheets("Sheet1").Range("B2").AutoFilter _
                                     Field:=2, _
                                     Criteria1:="1"

    With Worksheets("Sheet1 ...
Score: 0
Henrik Schultz avatar
PHP 7.4 FPM under Nginx serves wrong class from cache
dm flag

We have a Linux environment serving a few different applications, all written in PHP 7.4. They are served out of a single Nginx web server using virtual hosts, and are all using FPM.

In our code we are using a JSON-RPC client class (@package JsonRPC, @author Frederic Guillot), which is a wrapper around PHP CURL. For historical reasons, the Client.php class exists in different versions within the  ...

Score: 0
macos, how to remove permissions which cause: "ls: .: Operation not permitted"
pk flag
eos

Unfortunately, when onedrive stopped working, I ran the onedrive reset tool. This created a directory under /user/me/ called "OneDrive-Personal (Archive)".

Now onedrive is working again, i have to find a way to diff the whole of my .5 TB onedrive "archive" and the current onedrive dir, to find 3 months worth of work which is in the archive and not saved to onedrive.

Unfortunately, even though its in ...

Score: 0
Mohamed Rimas avatar
Web Caching using the SQUID Proxy Server
bi flag

[enter image description here][1]

file:///C:/Users/moham/Downloads/Documents/IT3010_LabSheet07.pdf [1]: https://i.stack.imgur.com/pe5iS.png

Score: 0
Deploy to AWS EKS using a service account
cn flag

I need to deploy multiple (> 2 dozen) applications into distinct namespaces from GitLab. Unfortunately, Gitlab's old instance-wide Kubernetes integration has long been deprecated, and the new agent system requires setting up and configuring a separate agent per project which is infeasible at my scale.

My first attempt was to use Kubernetes CertificateSigningRequests to create client certificates, but ...

Score: 0
Some Name avatar
Connect to a postgres running internally within a cluster through a kubernetes pod
cn flag

I've got a kubernetes pod myapp-2390458f-kfjgd I can get access to with kubectl and an instance of a PostgreSQL that can be accessed from within the kubernetes cluster by the name mypos.tgres.com, but it cannot be accessed outside of the cluster.

I'm trying to connect to the PostgreSQL from my laptop, but to my knowledge kubectl port-forward would not work in that case since I can only forward my l ...

Score: 0
Riad Reza Shuvo avatar
Configure varnish with cloudflare along with SSL terminator
cn flag

Our present scenario: Present Scenario

Now, we are planning to create a cache server between the user and the site. Proposed Plan

As per my understanding, cache servers can't work with HTTPs data. So, we have to convert the data from https to http. For this reason, we can use two SSL terminations for this conversion. Varnish with SSL termination

I can configure the SSL between the user and the va ...

Score: 0
khushbu shah avatar
Tenant with name projects/**/tenants/** not found using Google Cloud talent solution API
ci flag

Description:

Code:

String projectId = "*****";

String tenantId = "***-ay7tp";

        try (JobServiceClient jobServiceClient = JobServiceClient.create()) {

        // Construct the list jobs request
        ListJobsRequest.Builder requestBuilder = ListJobsRequest.newBuilder()
                .setParent("projects/" + projectId + "/tenants/" + tenantId).setFilter("status = \"OPEN\"")
                . ...
Score: 0
Cat Mucius avatar
Remote call of NRPE comman fails in one case, while succeeding locally in all
ng flag

I have amazingly strange issue with monitoring a CIFS (SMB) shared folder mounted to Linux machines by Nagios + NRPE.

NRPE process runs on the Linux machines under dedicated user nrpe:

# systemctl status nrpe
  nrpe.service - Nagios Remote Program Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2023-05-02 14:4 ...
Score: 0
khushbu shah avatar
how to resolve error like io.grpc.StatusRuntimeException: PERMISSION_DENIED when Implementing google Cloud talent solution api?
ci flag

Description :

Language: Java 8, Framework: Spring Boot

Build type: maven

Tool: Sring Tool Suite

Here I implemented this Google Cloud talent solution API for job search below code :

Code :

GoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialsPath));

// Create a JobServiceClient instance and authenticate with credentials JobServiceClient jobServiceClient = Job ...

Score: 0
How do you instrument a nodepool in AKS to use their public ip for all communication outbound?
de flag

How do you go about configuring two nodes in AKS to use their public ip in a request/response type setting?

Say you have two nodes in AKS, A and B. A hosts a API and B consumes it. B is configured with a public ip. and A has a DNS name mapping to it's public loadbalancer. B uses the public domain name when resolving API requests.

However upon a API request, A reports that B's ip is it's internal ip ...

Score: 2
Dan avatar
Online monitoring / dashboard service for multiple metrics
cn flag
Dan

I know there are services like Uptimerobot and Pingdom that monitor web service uptime.

I'd like to easily monitor web availability as well as backup status, eg if a backup ran/ completed properly. I'd like to avoid the backup script filling my inbox with emails and just have a single webpage to check every metric at a glance.

I'd like to know if there is an online service that can provide a dashboa ...

Score: 0
achhainsan avatar
curl: (7) Failed connect to 192.168.169.128:80; Connection refused, how to fix?
qa flag

Why is my haproxy load balancer not working?

I'm on centos 7.

I've set up 2 servers "nginx-node01" and "nginx-node02". As the name implies these 2 servers are of nginx. They're up and running.

The server's IP address being 192.168.169.133(hostname=nginx-node01) and 192.168.169.135(hostname=nginx-node02) respectively.

Then I've set up haproxy on another server. It's IP address being 192.168.169.128(hostnam ...

Score: 0
Expired avatar
How to recover partition/filesystem from failed dd command
lt flag

I have a server with two SSDs of 250GB each.sda contained all my stuff while sdb was empty. I was trying to copy drive sda to drive sdb using the following command:

dd if=/dev/sda of=/dev/sdb conv=noerror,sync

I ran the command over ssh. However before the process finished, my pc was closed, the ssh connection closed as well and so was the dd command. I thought it's not a big deal since I was copying FRO ...

Score: 0
Hyper-V (Windows 11) - Disable all network access on host but not VMs
gd flag

Is it possible to create a setup where the Windows 11 Hyper-V VM host has all network access completely disabled, but the VMs running on it still retain full access?

In a model similar to what Qubes OS does under the hood, but on Windows...

Score: 1
RanWang avatar
Permission denied while creating TPU VM
kz flag

I encountered a similar issue when following the tutorial on using a cloud tpu VM to run Jax code.. The error message is

PERMISSION_DENIED: Permission denied on 'locations/us-central2-b' (or it may not exist).

This question is similar to this, but it is completely different. Most importantly, in the original post, people are using the Legacy node while the most recommended methods are using cloud TPU VMs ...

Score: 2
W Lucking avatar
Storage Spaces Direct CSV_REFS latency degraded when diskspd not run on Owner Node, CSV_NTFS good on all nodes
br flag

CSV_REFS performs properly when the diskspd test is run on the disk’s Owner Node. Latency increases 35x for 64k blocks when the test is run on any other node in the 4-node cluster. I can switch the owner node around and run the test on the new owner and I will continue to get good performance. When I run the test from a non disk-owner, the results are poor. CSV_NTFS performs strong regardless of t ...

Score: 0
Thesevs Scutulatus avatar
PostgreSQL client (psql) cannot connect after starting service with pgenv or pg_ctl
de flag

I'm able to start the service with pgenv and pg_ctl but cannot connect with psql. The following error shows:

$ psql -l
psql: error: connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?

I checked the path of the mentioned socket but it does not exist as psql reports.

If I use pg_ctl ...

Score: 0
fancyshark avatar
What is Option 60 (Vendor Class Identifier) used for in DHCPv4?
aw flag

Currently I'm using Wireshark to analyze the DHCP process between wireless devices and my DHCP server (which in this case, is my Wi-Fi router). On all of the devices that I tested, I noticed that each device provides a 'Vendor Class Identifier' (or Option 60 on Wireshark) in its DHCP Discover packet. Some examples of vendor class identifiers I saw were:

  • udhcp 1.23.2
  • android-dhcp-13
  • MSFT 5.0

The 'andro ...

Score: 0
sunny avatar
Cant ssh to ec2 created from AMI of recently patched server
bb flag

One of my ec2 instance "patched-server-1" was running of kernel version 4.18.0-240.1.1.el8_3.x86_64 and then I did patched the server and current kernel version is 4.18.0-425.19.2.el8_7.x86_64 and I can ssh to the server , then I created an AMI from "patched -server-1" and launched new ec2 instance "patched-server-2" , I cant ssh to it. It give connection refused error.

Reason: Missing below file ...

Score: 0
PnP - Sharepoint site members and site Owners
cn flag

I'm trying to pull site 'members' along with 'department details, 'job title' as well as other attributes per site. The results pretty confusing as I'm unable to differentiate between site 'owners','admin', 'members' and 'visitors'. The goal is only to list the site members.

So advise around files or item total's per site would be really helpful, I'm to sure on the best solution, looping Get-PnPL ...

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.