Latest Server related questions

Score: 0
No such file or directory in sh file running
in flag

It may be duplicate because there is some similar question but I am not able to fix it, that's why I ask again with my code.

My sh have these code:

cd /home/domain.com/data/domain-statistics
git fetch origin
git merge origin/master
git add --all
git add .
git commit -am "File generated and updated on `date`"
git push origin master

when i run it as:

-bash-4.2$ sh /home/domain.com/data/crons/push.s ...
Score: 0
Petervw avatar
How can we create a load balancer for public IPs?
in flag

In our current setup, we have 2 datacenters with the same application. We want to have a cloud load balancer, to detect the best destination for requests.

Is it possible to create a load balancer in GCP, without configuring any VMs in GCP? How can we setup a load balancer for public IPs?

Score: 0
Redhat Enterprise Linunx 4 Advanced Server Install - Unable to Handle kernel paging request on VMWare Worksation 16
us flag

Need to replicate a legacy Redhat Enterprise Linux 4 environment to test migration plans. However when trying to install either using text or GUI installation we get the following error:

enter image description here

enter image description here

Is there any install options or VMX configuration changes that can be made to resolve this issue?

The VMX file has the following configuration:

.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "18" ...
Score: 0
David Mills avatar
NetworkManager does not start "secondaries" after a reboot
gh flag

I have set a VPN as a "secondaries" network for the main wired connection as follows:

[connection]
id=netplan-eno2
uuid=80ab1970-e833-372e-8635-f330b7d9f1f0
type=ethernet
interface-name=eno2
permissions=
secondaries=f907c227-7ccb-4e46-b0fb-da13852b24c6;
timestamp=1631586742

But after a restart, even though the contents of the /etc/NetworkManager/system-connections/netplan-eno2.nmconnection file are st ...

Score: 0
Matthew Developer avatar
Unable to change owner and group of Nginx error_log and access_log
br flag

Unable to change owner and group of Nginx error_log and access_log

I want to change the owner and group of nginx's error_log and access_log straight away from nginx (not manually using chgrp and chown). While keeping nginx running as root so that it can listen on port 80, 443, and so on.....

Server is running Ubuntu 20.04, nginx/1.18.0 (Ubuntu)

It seems like no matter what the location are :

/var/ ...
Score: 0
dleviathan avatar
Can't use Certbot to SSL for Nginx with reactjs app and laravel subdirectory in subdomain
tr flag

I have domain at 1 IP and subdomain at other IP. I had config nginx url for FE: http://subdomain/ and for BE: http://subdomain/api. And I need ssl for subdomain use Certbot, at this I have react app for FE and php laravel for BE all in docker, but not successfull.

nginx.conf

server {
    listen 8888;
    server_name subdomain;

    index index.php index.html;
    root /var/www;
    client_max_bod ...
Score: 1
Moving w2016 image from ESXi to KVM gives message "No Bootable Device"
br flag

I'm trying to move a windows server 2016 image from ESXi to KVM, but I'm receiving the error "No Bootable Devices" when I try to boot it.

Here's the output of the command "virt-filesystems -a ~/VM.qcow2 --all --long --uuid -h"

Name      Type       VFS  Label    MBR Size Parent   UUID
/dev/sda1 filesystem ntfs Recovery -   499M -        CCCEA1FFCEA1E246
/dev/sda2 filesystem vfat -        -   95M  -    ...
Score: 0
OpenVPN Modify incoming traffic or payload with custom script
ph flag

I recently setup OpenVPN with Dnsmasq as DNS and wanna do something I can't seem to find any info about.

Here's my current understanding based also on what I've currently setup on my server.

A. Client connects to OpenVPN, say from a phone

B. Clients sends traffic i.e opens a website, say YouTube

C. OpenVPN server takes the request.

D. Forwards the request to destination server i.e YouTube.

E. YouTube  ...

Score: 0
Is there a way to write the query parameters as cookie in nginx
us flag

I would like to ask if there's a way to set the query parameters as the cookie of a certain url?

Currently i'm having trouble with the varnish and nginx cause it was stripping the utm params which causes an issue with the GA. I can't remove the code that strip utm params since it would flood the varnish cache. So I was thinking of getting the utm params and set it as cookie from the nginx config

Any ...

Score: 0
/etc/cron.daily/ what this command is doing?
hu flag

Could you help to explain what this command is doing?

printf '#!/bin/sh\n\find /opt/traccar/logs -mtime +5 -type f -delete\n' > /etc/cron.daily/traccar-clear-logs && chmod +x /etc/cron.daily/traccar-clear-logs
Score: 0
Michael avatar
Google cloud server is slow when there is high network traffic
do flag

I have a google compute engine server that runs slowly when there is high network traffic, what do I need to upgrade to improve the speed?

Score: 0
GitLab serves certificate list of 1 certificates
ru flag

I'm trying to run GitLab's omnibus installer and use my organization's SSL certificate, but SSL clients complain that the certificate issuer is unknown. How am I supposed to configure intermediate certificates in the trust chain?

My set up starts with running the latest version of GitLab, exposing ports for HTTPS and HTTP, among others:

sudo docker run --detach --hostname myserver.myorg.org --publish  ...
Score: 1
johnnyApplePRNG avatar
Possible to have AWS take a snapshot of a spot instance just prior to it's unplanned termination?
hu flag

I've setup a lifecycle manager to reboot a spot instance and create an AMI of the instance once every 24 hours.

It would be ideal if it could do the same just prior to an unplanned termination event.

Is this possible?

Score: 2
John Smith avatar
Ensuring at least one ingress-nginx per kubernetes node
es flag

I'm trying to write an autoscaling configuration for ingress-nginx, deployed via helm chart.

my goals are:

  • 3 minimum replicas (because I have 3 nodes minimum)
  • ensure only one nginx per node, but:
  • be elastic, if autoscale says we need 4 nginx allow for a node in the cluster to have 2
  • if a fourth node gets added, ensure a new nginx gets spawned

https://github.com/kubernetes/ingress-nginx/blob/main/ch ...

Score: 0
Troubleshooting Windows container in Azure app service
cn flag

I've been struggling for over a week to get a Windows container to run with an Azure App Service. My initial preference was to just use a standard container instance, but it appears that you only have the option of public or private networking, rather than custom (unlike with Linux containers). It looks like if you run your Windows container within an app service, you get the same networking options y ...

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.