Latest Server related questions

Score: 1
Julia Fischer avatar
flock fails with NFSv4
ph flag

I don't know why this code is not working under NFS4, using NFS3 works perfectly. The idea is to avoid the file being written while a process is still reading it.

I would like to debug, but our sys-admin is not able to. Which could be reason. Under our NFS4-Installation I always get into this condition

  if ( flock(fp,LOCK_EX) == -1)
    printf("Error: file %s is already locked\n", fileName); ...
Score: 1
red0ct avatar
Iptables --reject-with tcp-reset for non-TCP traffic
cn flag

Here I faced with a bit strange rule:

iptables -A INPUT -s 10.26.95.20 -j REJECT --reject-with tcp-reset

This rule matches all the protocols from specific network and rejects it with TCP RST packet.
How is this supposed to work with non-TCP packets? If other end (10.26.95.20) sends UDP packet it then receives TCP RST? This looks extremely strange..

Score: 0
Fail2ban on CentOS 7 with Docker-powered Traefik ban OK without iptables rule addition
fr flag

I set up a Traefik instance run by Docker engine in Swarm mode with a "classical" configuration (see below, for sake of brevity I only put relevant [to me] parts. Feel free to ask more details if you need so).

Fail2Ban is installed, as well as firewalld (CentOS distribution). So far I put simple filter/jail configuration, mostly for blocking DOS and bruteforce, by watching Traefik access log.

My prob ...

Score: 0
uday avatar
How to configure consul to access webpage from Ingress gateway
ke flag

I am trying to configure ingress gateway for consul deployed in AKS.

As per their documentation , I have created a sample deployment and ingress gateway to it.

yaml files: github

kubectl apply -f static-app/

I changed the static app service from CluserIP to LoadBalancer and can get the page using http://<LB_IP>

But, with ingress gateway, I can access only by adding the header as below:

curl -H " ...
Score: 1
Ubuntu 20.04 Mysql8 keep accepting null/any password for root
mx flag

After installing "mysql-server" on ubuntu20 and running "mysql_secure_installation" and setting a password the system still not authenticating correctly and still accepting any/blank password for mysql root user via linux root user while from other linux users its not accepting any.

Score: 1
DottorBooom avatar
Fetchmail does not use the indicated protocol
ng flag

I'm trying to setup fetchmail for download some mail from gmail using pop3. The problem, as you can see, is that fetchmail instead of use the pop protocol will use imap.

For being sure to not have commit any error during the configuration i will summarize the procedure:

  1. I edited the file called "fetchmail" in the folder /etc/default and set the variable demon to "yes";

  2. Now I created the configuration fi ...

Score: 1
John Roberts avatar
lpstat getting status of specific job id
cn flag

Is there a way using lpstat to get the status of a particular job ID? everywhere i've read seems to mainly refer to the following for completed jobs

lpstat -W

But i'm looking based on Job ID

Score: 1
Siddharth R avatar
different proxy_cache_min_use value for different status codes
in flag

Is there a way we can proxy cache 404 errors after 3 numbers and all other responses immediately?

As you can see, we can use proxy_cache_valid for different status code

proxy_cache_valid 200 302 10m;
proxy_cache_valid 404      1m;

Like the above, I also want to use proxy_cache_min_uses for different status codes with different values.

Edit:

I have only one location

location /
{
....
proxy_cache_vali ...
Score: 0
mai_sicuel avatar
Calico pod with CrashLoopBackOff caused by service account
co flag

I have Calico installed on my cluster but a few days ago pod routing stopped working. I noticed the calico pods went offline and from the logs I got this:

2021-07-12 08:36:43.524 [INFO][1] main.go 92: Loaded configuration from environment config=&config.Config{LogLevel:"info", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", DatastoreType:"kubernetes"} ...
Score: 3
Logan Lee avatar
Effect of trailing question mark (?) in nginx rewrite directive's replacement URI
cn flag

I'm trying to understand the difference between rewrite ^/search/(.*)$ /search.php?q=$1 and rewrite ^/search/(.*)$ /search.php?q=$1?. The difference is the trailing ? in the replacement URI.

If the request URI is /search/apple?opt=123 then how are the URI rewritten differently?

I'm guessing for rewrite ^/search/(.*)$ /search.php?q=$1 it will be /search.php?q=apple&opt=123 and for rewrite ^/search/(.*) ...

Score: 0
stckvrw avatar
Again see the Welcome menu after installing FreeBSD on Virtualbox
ru flag

I've installed Virtualbox 6.1 on my local computer with Windows 10. Next I've downloaded FreeBSD image and select it as virtual optical disk. Next I gone the FreeBSD installation process and restarted the system, but now I again see the Welcome menu with the options "Install", "Shell" and "Live CD".

What's wrong?

Score: 0
writingdeveloper avatar
How to specify SSHFS capacity
ua flag

Is there anyway to set SSHFS volume size with option cmd's?

I already tried to find option cmd's in https://linux.die.net/man/1/sshfs but it seems that there are no settings for that.

But some SFTP clients have quota function to set virtual volume size. How do they make it?

Score: 0
ssh avatar
Pfsense monitoring Icinga2 - CRITICAL - Plugin timed out after 10 seconds
ve flag
ssh

Recently added new pfsense system, existing one working as expected.I have installed package nagios-plugins on pfsense for monitoring like existing pfsense. Existing ssh-keygen -t ed25519 using for new setup added to pfsense.

Installed: sudo pkg install nagios-plugins Run command : /usr/local/libexec/nagios/check_procs PROCS OK: 88 processes | procs=88;;;0

curl -LO https://github.com/oneoffdallas/pfsense ...

Score: 1
onee avatar
PowerDNS subdomain delegation, no answers
tm flag

I'm having trouble redirecting subdomain to other DNS.

I have:

main exsisting domain: d and new subdomain:

| 8412 | 42 | test1.d | NS | ns1.test.test1.d
| 8413 | 42 | test1.d | NS | ns2.test.test1.d
| 8414 | 42 | ns1.test.test1.d | A | 10.64.91.100
| 8415 | 42 | ns2.test.test1.d | A | 10.64.91.200

and return:

 dig admin.test1.d

; <<>> DiG 9.10.6 <<>> admin.test1.d
; (1 server  ...
Score: -1
den-neko avatar
Cannot proceed wizard of adding custom domain on Firebase Hosting
it flag

I am trying to add custom domain to my new app on Firebase Hosting. Following official documents, I pressed "add custom domain" button in my project's Hosting page and stared a wizard.

In the wizard step 1, I entered my domain "example.com" and press "next" button without check a redirect checkbox. Then spinner stared to spin but after 1-2 seconds, spinner disappeared and the wizard were still on ...

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.