Latest Server related questions

Score: 0
user20666772 avatar
Docker behind proxy
au flag

I’m using docker with AWS Amazon Linux EC2 instance Everything was working fine until the EC2 instance was moved behind company proxy. I did set the proxy on docker daemon and I could reconfirm the setting via “docker info”

Due to strict security policy, I need to provide our system admins the exact URL which is to be whitelisted so that Docker can communicate with its default repository †...

Score: 0
Ahmed Atef avatar
Why do I see more than one IP address for my site when I PING it from CMD?
pg flag

I have a website (cimahouse.co). Every time I wanted to reach my site, I got a different IP address. Sometimes domain cimahouse.co opens normally, and sometimes it should write it with www.

I tried to PING it with cmd, and I got two different results. The first time I got this reply.

Pinging cimahouse.co [188.114.97.7] with 32 bytes of data:
Request timed out.

The second time I got this:

Pinging  ...
Score: -1
how can I detect if g++ compiled without errors
us flag

I have a script file to automatically compile a C++ program, then automatically run the executable.

script

g++ -o bin/program main.cpp 
bin/program

The problem is, sometimes the compiler encounters an error, and the executable is not generated. Therefor, the script will be running an outdated version.

How can I detect if g++ was unable to generate the executable, so that I may prevent the script ...

Score: 0
Ankit Tiwari avatar
python.exe - The FastCGI process exceeded configured activity timeout
ru flag

I'm trying to host a Flask (Python) application on a Windows server, but it was giving me request timeout error, then I changed it to 300 seconds (5 minutes), and after that, it's giving me an activity timeout error, and I did the same for this, but then also after 5 minutes, it's giving me a request timeout error again. I've given the correct permissions to Python and ffmpeg (ffmpeg is used in my app) ...

Score: -1
Andy Lam avatar
bind9 with mysql dlz start failed with Required token $zone$ not found
fi flag

bind 9.16.33 with mysql dlz start failed with Required token $zone$ not found. detailed informations:

$ sudo named -d 0 -g
07-Dec-2022 14:54:31.043 starting BIND 9.16.33 (Extended Support Version) <id:35e9c6e>
07-Dec-2022 14:54:31.043 running on Linux x86_64 6.0.9-kagamine #2 SMP PREEMPT_DYNAMIC Sat Nov 26 18:02:37 HKT 2022
07-Dec-2022 14:54:31.043 built with '--build=x86_64-pc-linux-gnu' '--host=x8 ...
Score: 0
Joker avatar
How to remove trailing slash in nginx's passproxy?
aq flag

I would like to access it as follows using nginx proxy pass.

proxy.com/api/ -> proxy.com/api (connected site is example.com)

proxy.com/api -> proxy.com/api (connected site is example.com)

The first one went well.

The second one raised a 404 error or redirected to a trailing slash.

server {
    listen       80;
    server_name  proxy.com;


    location / {
        root   html;
        index ...
Score: 0
Rahul Bharadwaj avatar
How to pass environment variables with FreeBSD service command?
sn flag

The rc.subr ${name}_env specifies this for setting environment variable:

${name}_env   A list of environment variables to run command
              with.  This will be passed as arguments to
              env(1) utility.

So I tried using it like these methods, via my rc.conf for my daemon named /etc/rc.d/mydaemon.

in /etc/rc.conf:

mydaemon_env="MYD_ROOT"

This give error on starting:

# root @ rahul  ...
Score: 0
Best practice for preferring the network interface that actually has internet?
eg flag

I have an embedded device where I have three network connections, eth0, wwan0, and wlan0. wwan0 is a metered connection, so I would generally prefer eth0 or wlan0. The problem is that at any given time any interface can be connected but not actually be able to reach the internet. For various reasons any interface may not be present at all. In this case my routing table does not do what I want. Is there  ...

Score: 0
john_smith avatar
How to connect cloudfront and alb?
ca flag

I am trying to connect to ec2 through ALB through Cloudfront.

Currently, the ALB already has one listener associated with cloudfront.

So I set a listener with a different port as the origin and set the path to the behavior.

However, when connecting to the distribution domain, a 404 error occurred in the previously connected domain.

origin setting

behavior setting

Looking at the cloudfront docs, I  ...

Score: 0
yao xu avatar
Glusterfs io bandwidth or iops limitation
sk flag

I am new to glusterfs and I am using glusterfs 9.6 with some iops sensitive job like etcd or some other process in one disk device.

The glusterfs is the least important program on my server. I am setting ionice of glusterfs service to the least, but sometimes glusterfs still will take more io resource then I image. Is there any way to limit glusterfs' iops or io bandwidth ?

My server's OS is cen ...

Score: 0
Cruise5 avatar
How to use globbing in ssh config to connect via SSH tunnel?
cn flag

Here is the architecture from local host to ServerC1..n

I have configured ~/.ssh/config file on localhost:

### First jump host. Directly reachable
Host ServerA
    Hostname 10.0.5.101
    User jenny
    IdentityFile /home/admin/.ssh/serverA

### Second jumphost. Only reachable via 10.0.5.101
Host ServerB1
  HostName ServerB1
  User james
  ProxyJump ServerA
  IdentityFile /home/admin/.ssh/james

### Host only reachable via serverA and ServerB1
Host Se ...
Score: 1
Vocoder avatar
Automating NFSv3 File/Folder permissions in Windows
sy flag

I'm a Windows/MSSQL DBA who is inheriting a quirky system through no fault of my own, and had a quick question.

Background

I have an Azure NFSv3 volume that is being exported to a Windows Server 2019 VM for the purposes of copying data in bulk from an existing Windows ecosystem. The issue that I'm running into is that ACLs are not inherited in NFSv3 (AFAIK) and so every file and folder I copy to the NF ...

Score: 1
Michaelzh avatar
xauth on Oracle Linux 6.8 constantly fails with "xauth: error in locking authority file /root/.Xauthority"
cn flag

Newly installed Oracle Linux 6.8 (actually a RHEL/CentOS 6.8 release underneath), yum install xorg-x11-xauth, xauth list , xauth generate, all xauth commands involve $HOME/.Xauthority file fail with xauth: error in locking authority file /root/.Xauthority. I have these 3 files:

[root@oracle11 ~]# ll .Xauthority*
-rw-------. 1 root root 0 Dec  7 09:45 .Xauthority
-rw-------. 2 root root 0 Dec  7 09: ...
Score: 0
john_smith avatar
Is there a way in Nginx to remove a route specified in location from one domain and port and forward it to reverses proxy?
ca flag

I want to connect example.com:80 and example.com:82 to a specific site through reverse proxy.

localhost/api/buy/ -> http://example.com:80/

localhost/api/sell/ -> http://example.com:82/

I set up the config file as below.

server {
    listen       80;
    server_name  localhost;



    #access_log  logs/host.access.log  main;

    location / {
        root   html;
        index  index.html  ...
Score: 0
Luke Devon avatar
Basic LVS implementation
af flag

I am testing a basic lvs/ipvsadm implementation.

  1. 192.168.1.200 is the Loadbalance Director (Master LB), At the moment I am not testing a VIP.

1.1 enabled sysctl -w net.ipv4.ip_forward=1 in the Loadbalance Director

1.2 firewall-cmd --permanent --add-port=80/tcp

1.3

ipvsadm -A -t 192.168.1.200:80 -s rr

ipvsadm -a -t 192.168.1.200:80 -r 192.168.1.201:80 -g

ipvsadm -a -t 192.168.1.200:80 -r 192.168.1.202: ...

Score: 0
Albrecht avatar
Two application installations from APS catalog fails on Plesk for Windows Server: The 'mysql' extension was not found
ye flag

Please excuse, if this is the wrong place to post this question, I didn't know better.

I'm using Windows Server 2022 and Plesk Obsidian Version 18.0.48. I try to install two applications via Plesk getting the message: The 'mysql' extension was not found. I read on the internet for a while, but couldn't find a solution.

The two applications are Coppermine V1.5.42 and SugarCRM V6.5.18. It seems to me ...

Score: 0
Marc avatar
Use container hostname resolution with network=host
eg flag

I have two docker container. One is the "backend", the other "connector"..

The connector needs to have its network type set to "host" (To receive udp multicast: ssdp/mdns packets).

But it also needs to be able to use docker dns system so i can resolve container names to their ip addresses.

How can i do this?

docker-compose.yml:

version: "3"
services:

  database:
    image: mongo
    container_name: ...
Score: 1
KPacheco avatar
OpenSSH on Windows with key authentication
ml flag

I am attempting to get key based auth working on OpenSSH on Windows Server 2019. Currently we installed Open SSH according to the Microsoft docs and can login using our AD logins using password auth but when following instructions for key based authentication the following errors start to pop up.

On the client side we get this:

client_loop: send disconnect: Connection reset

Google results seem to think t ...

Score: 0
QF0 avatar
CGI scripts: when can you return a document, instead of an HTTP response?
gu flag
QF0

Script 1 below is bash, and is at https://example.com/cgi-bin/test. It produces the output 'Under construction' when fetched. It echos Status and Content-type headers, and some HTML. If I instead try to echo an entire HTML doc Apache just complains about an invalid header.

Script 2 below is php, and is at https://example.com/cgi-bin/test2.php. Unlike the bash script, this one returns an HTML document.

Score: 0
Monkish Rex avatar
What are the downsides of using IPv6 Multicast for majority of all communication including one-to-one?
sm flag

Given IPv6 Multicast allows for a sub-pub communication model, it seems like a no-brainer for the vast majority of communication, but its very rarely used beyond video streaming, and I'd like to know if this is because its only efficient for large groups or if its just because its not well understood and Unicast/Anycast are easier to implement?

Score: -1
Two Subnet Routing
br flag

Consider the following scenario

Network 1 Switch (Call it Switch1) with the following connected appliances Old Windows 2008 Server (Old Domain Controller) with interface IP 192.168.2.113 255.255.255.0 (No Gateway) ISP Router for Internet service with Ip Address 192.168.1.1 255.255.255.0

Network 2 Switch 48 port (call it Switch2) with the following connected appliances Windows Server 2019 (New Domain ...

Score: 1
EK0 avatar
nginx serving content from wrong proxy
zw flag
EK0

I have a single server hosting several Rails sites. All sites are identified by unique host names (all domain names map to the same IP address). Both Rails and nginx are running in Docker containers. I am using nginx 1.23.1 running in a Docker image built from the official Docker image (I only added certbot for TLS certificate processing).

After recently adding another site, a very strange thi ...

Score: 0
igalsc avatar
I get directory listing instead of the website index.php
cn flag

Ubuntu 20.04, Apache 2.4, PHP5.6

I have website with the following vhost config

<VirtualHost *:80>
      ServerAdmin [email protected]
      ServerName website.com
      ServerAlias www.website.com
      DocumentRoot /var/www/html/site_admin/public_html
      # Directory path where code exists
        <Directory /var/www/html/site_admin/public_html>
                Options -Indexes +Follow ...
Score: 0
TotallyConfused5599 avatar
NATing Traffic Through VPN Tunnel
ug flag

I have a Fedora 36 server setup running as a gateway. It forwards packets to a further gateway down the line, which works well. I have taken out a subscription to NordVPN, and have used OpenVPN on the server to connect. The connection works, and tun0 is created.

When I start the VPN tunnel on the server, clients lost connectivity to the outside world. When I stop the VPN tunnel, connectivity is restored ...

Score: 0
fooquency avatar
Creating and mounting a disk using cloud-init after a server is installed
cn flag

Is it actually possible to run cloud-init to create a disk after the VM itself has been created?

I have a VM created on a VMware platform. Currently cloud-init is not enabled on the GUI for creating VMs. I am trying to attach a newly-created disk. This appears as sdb but is not formatted or mounted.

I can create the disk manually using:

fdisk /dev/sdb
mkfs -t ext4 /dev/sdb1
mount /dev/sdb1 /data
Score: 0
intranet dns lookup fetching incorrect ip
ng flag

We have a host entry on our server in /etc/hosts file. So there is an entry as follows:

10.74.74.76 foo

But on the same machine, via SSH I do the following:

$ host -t a foo
foo.internal.domain.com has address 10.43.55.23

Why is this not referencing the ip in /etc/hosts?

Score: 0
exim4: how to add an address as BCC to all the outgoing emails?
us flag

I'm working on an Ubuntu 20.04 web server where exim4 is used to send emails from the PHP application running on it.

Due to diagnostic and archival needs, I need to configure exim4 to automatically BCC an additional address to ALL the outgoing emails.

TO be cleared: all the original recipients of the outgoing email must remain the same. I just need to add my additional [email protected] address to th ...

Score: 2
Georg Schölly avatar
What does the subnet mask of the tunnel ip in Wireguard do?
us flag

Wireguard works even without setting a tunnel IP address, i.e. it's enough to set the AllowedIPs, endpoint addresses, private and public keys.

In the docs of OpnSense, there is the following warning:

Note: The tunnel address must be in CIDR notation and must be a unique IP and subnet for your network. [..] Do not use a tunnel address that is a /32 (IPv4) or a /128 (IPv6)

and pfSense has a likely explana ...

Score: 0
solonely avatar
Cached windows domain credentials issue
na flag

I need to delete or lock out a single cached domain account on a local pc. If I disable the cached logon domain information I will lockout me from the pc if I am not in the office. Is there a way to disable a single cached user? Even by deleting the cache for the single user or locking the login for the user. I hope someone can suggest me something? Or the only way is to be in the office joined to netwo ...

Score: 0
Travis avatar
Apache 2.4 Reverse Proxy using HTTPd
ls flag

I created an AWS EC2 instance with a public IP, lets call it 100.0.0.0.

I added a rule for the security group to allow incoming HTTP traffic on port 80 for any IPv4.

I added to the config file in: /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass /test/ http://www.example.com/
    ProxyPassReverse /test/ http://www.example.com/
</VirtualHost>

Which when I we ...

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.