Latest Server related questions

Score: 0
Dave Morrison avatar
Windows Server 2012 R2 - Task Scheduler - Multiple Instance Spawned
vn flag

ServerOs: Windows Server 2012R2

I have a weird scenario occurring on the windows task scheduler where multiple instances trigger at the exact same time. This only occurs after a reboot and after disabling and then re-enabling the scheduled task. The task is updated frequently and the enabling/disabling is something that occurs during our deployment process.

Following some research I have seen this i ...

Score: 0
OCFS2 file system mounted as read-only
in flag
Ray

I have a problem with an Oracle Cluster Filesystem (ocfs2) attached to a cluster of Ubuntu 20.04 servers. The file system keeps getting mounted as read-only. Unfortunately, I know the cause since the system was rebooted in the middle of a file copy. I'm not surprised there are issues with some of the files but I would even be happy to delete all of these files and re-copy, but the file system keeps g ...

Score: 1
How to tell nginx to honor backend's cache? uWSGI
al flag

There's a similar question but solution there doesn't work for me.

We have nginx and uWSGI ad backend. We need nginx to cache the backend response according to what is in the response header.

For example, I run curl -I https://example.com/api/project_data/. Using tcpdump I see the backend responds:

HTTP/1.1 200 OK
Content-Type: application/json
Vary: Accept, Accept-Language, Origin
Allow: GET, HEAD, OPTIO ...
Score: 0
Increase Disk for Gitlab with Kubernetes
my flag
mkn

I have setup gitlab with helm and set gitaly.persistence.size=150Gi. When I check the generated aws ebs size it matches the claimed 150Gi. Checking the Statefulset of gitaly I also see the 150Gi

volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      creationTimestamp: null
      labels:
        app: gitaly
        release: gitlab
      name: repo-data
    spec: ...
Score: 2
Elouan Keryell-Even avatar
Pod fails to mount ConfigMap: `failed to sync configmap cache: timed out waiting for the condition`
it flag

I am trying to deploy a pod on a v1.18 GKE kubernetes cluster

My pod loop-crashes because it fails to mount its config map:

$ kubectl describe pod <pod>

...

Volumes:
  cm-cxf-conf:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      project-cm-cxf-conf
    Optional:  false

...

Events:
  Type     Reason                  Age                    From                     M ...
Score: 0
jbbletterman avatar
Split initrd into smaller files
ca flag

I would like to know if it's possible to have a split initrd implementation. Our reason for doing this, is the fact that our Fedora based application uses a stripped version of Fedora underneath with an initrd file which has become so large (+500MB), that GRUB2 is giving us issues with said file on some computers (mainly cheap HP laptops our clients love to buy against our recommendations). We have esta ...

Score: 0
gai-jin avatar
How does the tbf and the fq_codel interract in this particular case? Why would I need fq_codel?
cn flag

I've posted this question in here, seems like it's been the wrong spot.) I've been studying TC for a while.

I came across this answer containing a script.

In it we set the egress limit as:

# setup bandwidth limiting:
tc qdisc add dev "$DEV" root handle 1: tbf rate "$UPLINK_RATE" burst "$UPLINK_BURST" latency "$TBF_LATENCY"

# setup fq_codel for bandwidth shaping
tc qdisc add dev "$DEV" parent 1: f ...
Score: 0
Syntax check for bash script, with error code as exit code for the sake of SSH?
cn flag

I want to automate some deployment steps. Have CD server, it runs on Linux (in bash). Project is then configured to run bash script on actual app server to perform deployment. SSH is used to connect from CD runner to actual server.

Whole setup relies on an assumption that failing deployment is signaled by appropriate non zero exit code.

Want to add extra safety, so that syntax errors stop/fail deplo ...

Score: 0
Blason R avatar
Need help on Nginx reverse Proxy
eg flag

I have server whose URL is https://xx.xx.xx.xx/TestPage/ which gets generated as

https://xxxx.xxx.xxx/TestPage/(S(0inoxzi14rxqq1uix1tiyp1t))/index.aspx

Now I have implemented nginx reverse proxy in front of this server and then I have done the config proxy_pass as

proxy_pass https://xxx.ssss.sss.ss/TestPage;

Now if you see after TestPage there is a unique value gets added and then index.aspx however wh ...

Score: 2
Why is firewalld allowing public traffic to my non-public ports, bound to Docker containers?
de flag

I'm trying to implement a pretty simple firewall in Fedora, where the public internet can access SSH, HTTP, HTTPS and Cockpit, but nothing else. Meanwhile, the servers run microservices via Docker that can talk to each other on ports 8000-8999.

network diagram

I set this up on a fresh Fedora Server install with the following commands:

firewall-cmd --zone=public --add-service=cockpit
firewall-cmd --zone=public --add-se ...
Score: 0
user3637971 avatar
Wildfly 10 is clearing server.log when restarts
ve flag

I'm using Wildfly 10 and the I had to restart so I killed wildfly process and I executed standalone.sh but server.log was cleared. I was checking in forums about that but I get information about jboss and log4j.xml but it doesn't exist in wildfly. It talks about logging.properties. What can I do so that server.log is not cleared when I restart it?

Score: 0
explogx avatar
Attach NSG to NAT gateway's interface
cn flag

How can I attach a stateful NSG to a NAT gateway's network interface in AWS? If I try to add it manually, I get the following error: "You do not have permission to access the specified resource." in the portal.

By default, the NAT gateway's interface has no NSG attached, so VPC Flow Logs show inbound internet traffic as accepted. I know the actual traffic isn't accepted by the NAT gateway and is  ...

Score: 0
How does DNS TTL work in chained CNAME configurations?
fr flag

I have a DNS config that looks something like this:

www.example.com                 600  IN   CNAME prod.myzone.l2.company.example
prod.myzone.l2.company.example      600  IN   CNAME ssl-endpoint-12345.hostcorp.example
ssl-endpoint-12345.hostcorp.example 60   IN   A     192.0.2.4

So the first two CNAME records in the chain have a TTL of 10 minutes, and the final A record has a TTL of 1 minute

The p ...

Score: 1
wordpress internal redirect using nginx
mx flag

I have a WordPress site with permalinks set to Post name.

Using Nginx rewrite, I am trying to have an internal redirect (with no change in browser URL), but so far, I am failing.

This works, but the URL changes

location ~ ^/u/(.*) {
    rewrite ^/u/(.*) /p/?username=$1 redirect; 
}

I don't understand why this does not work:

location ~ ^/u/(.*) {
    # this returns 404
    rewrite ^/u/(.*) /p/?usern ...
Score: 0
Adam Harbach avatar
Nginx Reverse Proxy 403 Errors on POST Requests
es flag

I'm trying to set up a stack of services in Docker: Unifi, PHP, Nginx, and Certbot, where Unifi and PHP are the backend services and Nginx serves them in reverse proxy mode, while Certbot runs periodically to get SSL certs for Nginx.

I have it mostly working; all the GET requests work and I can view the page that Unifi serves. However, any and all POST requests via AJAX all throw a 403 error due  ...

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.