Latest Server related questions

Score: 0
thaovy vu avatar
how to configurate ipv6_autocon = No is persistent
in flag

I modify the line "IPV6_AUTOCONF=no". When we try to do this manually, the change is lost after a network restart/reboot. How do we configure the system so this change is persistent

Score: 0
How to catch access/request to an (non-existent) directory under a base path?
cn flag

I would like to reproduce the autofs capability to detect the access to a sub-path of a base path and call the corresponding handler. The motive is that autofs cannot set (nor keep) the shared or rshared property of the mountpoint. While systemd have the path,mount and automount type of units and i could use generators, i failed to find a way to catch the request to an non-{existent,mounted yet} directo ...

Score: 0
Kurk avatar
If I setup a 'Passwordless SSH connection' as root user, will it be applied to all other users on the server?
vn flag

I'm new to the concept of SSH & password-less authentication.

I'm trying to setup password-less SSH connection between two servers A & B, using SSH-keygen.

If I generate the keys on "Server A" as "root" user, can all the other users on "SERVER A" use the password-less SSH connection?

(or)

Do I need to create separate keys for each and every user?

I'm trying to set up password-less SSH conne ...

Score: 0
beat_it_987 avatar
Unable to change "MaxSpareServers"?
ru flag

I wanted to increase the MaxSpareServers.

<IfModule mpm_prefork_module>
MaxSpareServers      20
</IfModule>

However, I get the below error while testing.

[root@server_1 conf.modules.d]# httpd -t
AH00526: Syntax error on line 26 of /etc/httpd/conf.modules.d/00-mpm.conf:
Invalid command 'MaxSpareServers', perhaps misspelled or defined by a module not included in the server configuration
Score: 0
Add TXT error - Total record size limit exceeded. Code: 83011
eg flag

I keep getting Cloudflare API: Total record size limit exceeded but can't find anymore info about it.

I’m using certbot with cloudflare plugin to automatically create the TXT content but even when I try to add TXT record manually get the same error: Name: _acme-challenge.example.co.uk Content: PzbhiEKiP0juIIf6kqzJQnuIzfSLCOjFw67UV1dssy0

certbot certonly --dns-cloudflare --dns-cloudflare-credentials  ...
Score: 0
kaziman avatar
Routing between two Cisco CSR1000v instances on AWS
in flag

I'm building a lab in AWS with Cisco CSR1000v virtual routers. I've tried both the below options.

  • In option 1, there's no way to force the traffic from linux1 or 2 to the respective CSR routers since it's all in the same VPC, so it didn't work. I was able to share routers between the routers to the Linux subnets with RIP but not OSPF (since it uses multicast addressing - not allowed in VPC) Option1 dia ...
Score: 0
Istio - Prometheus - HPA Stack not communicating [ HPA could not calculate the number of replicas ]
us flag

I have cluster with 1 control panel and 2 nodes.

Istio is installed as Service Mesh.

I do request management via istio ingress.

I want it to automatically scale by sharing metrics between Kubernetes HPA and istio prometheus, but I couldn't.

My pods on kube-system

kube-system pods

root@ubuntu-master:~# kubectl get pods -n kube-system
NAME                                    READY   STATUS    RESTARTS    ...
Score: 0
Al Malik Umair avatar
Nginx wildcard subdomain
cn flag

I have setup my nginx config file as:

server {
   server_name example.com www.example.com;
   listen 80;
   
   location = / {
     .....
  }
}

server {
  server_name *.example.com;
  listen 80;
  location = / {
      proxy_pass ...
  }
}

browsing through example.com and www.example.com is fine, but when I use some subdomain like a.example.com or b.example.com I get a message like "301 moved permanent ...

Score: 0
Daigo avatar
Cannot execute dpkg command in kube-proxy container
ao flag

I'm currently trying to get a list of all installed debian packages (dpkg) on the k8s.gcr.io/kube-proxy:v1.23.2 container.

First I tried to execute dpkg -l in the running container as a part of my kubernetes cluster but got the following error.

dpkg-query: error: showing package list on pager subprocess returned error exit status 127

Then I also tried the command directly on containerd nerdctl run -it  ...

Score: 0
LosmiNCL avatar
403 Access denied for tomcat manager page
in flag

I've installed Tomcat on Centos7, on Google Cloud. Tomcat works but I can't access the Tomcat manager page.

My /opt/tomcat/conf/tomcat-users.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regardin ...
Score: 0
TravelWhere avatar
Redirect causes 404 error on nginx
cn flag

How do I redirect if a user tries to direct access image files in browser only? I want to still keep the ability to allow social media sites to embed our images by hotlinking. I just want only if a user direct access image by browser to redirect.

This is my nginx conf

proxy_cache_path /var/www/img.example.com/htdocs/cache-store levels=1:2 keys_zone=pixstore:10m max_size=5g inactive=7d use_temp_path=of ...
Score: 0
DRBD terminated with exit code 40
ru flag

I am trying to setup DRBD on Ubuntu with an existing filesystem and when I run sudo drbdadm create-md r0 I get the following error message

md_offset 7889832898560
al_offset 7889832865792
bm_offset 7889592086528

Found LVM2 physical volume signature
  7704911872 kB data area apparently used
  7704679772 kB left usable by current configuration

Device size would be truncated, which
would corrupt data ...
Score: 0
Google Cloud Snapshot schedule
cn flag

I'm trying to understand the difference between machine image, snapshot, and image on Google cloud.

For example, I've configured the snapshot schedule and it is set to auto delete every 7 days.

  1. If I delete the source disk, will it stop the snapshot schedule automatically?
  2. Snapshot is taken incrementally. If I deleted the source disk and earlier snapshots, will I still be able to restore with the latest s ...
Score: 0
"Received HTTP code 400 from proxy after CONNECT", trying to put mitmproxy behind nginx
cn flag

I have a mitmproxy running on port 2011. I can use it by itself, with curl -x http://127.0.0.1:2011 google.com. However, I now want to put it behind nginx under the domain name proxy.history.test. However, doing curl -x http://proxy.history.test:80 google.com -L -v fails with

* Received HTTP code 400 from proxy after CONNECT
* CONNECT phase completed!
* Closing connection 1
curl: (56) Received HTTP  ...
Score: 0
Michael avatar
Nginx multiple directories with static references
do flag

I have an Nginx server on which I want to host two seperate react apps, let's call them Aapp and Bapp.

The folder structure is like this

  • Aapp (directory)
    • index.html
    • script.js
    • style.css
  • Bapp (directory)
    • index.html
    • script.js
    • style.css
  • ..other files and directories

I then have my config file setup like this:

server {
  root home/user/Aapp;
  index index.html;
      
  location ^~ /Bapp {
    ...
Score: 4
David Rogers avatar
Upgrading Windows Server + Domain Controller to Windows Server 2019 - Fails On "ADPrep.exe"
au flag

I'm am using the instructions here to upgrade my Windows Server 2012 AD Controller to Windows Server 2019. This server is a isolated AD controller that has no other server/clients connected to it in any way.

When I run the following on this server:

./adprep.exe /forestprep /forest Dev

I am presented with the following error:

Adprep could not contact the Schema FSMO STORMDEMO.DEV.EBM.COM. The Schema FSMO ...

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.