Latest Server related questions

Score: 0
anthuvan amaladoss avatar
In log rotation configuration file. I have to append the boot count
ph flag

I have to append the boot count in log rotation file in this format:

boot-0000001-syslog_1.log                                                                     
boot-0000001-syslog_2.log

This is my logrotate config file:

/mnt/software/appdata/syslog/all/syslog.log
{
  missingok
  rotate 1
  size 10M
  Compress
  Create 
  dateext
  dateformat -%Y%m%d_%H:%M:%S
  Postrotate
  invoke-rc.d syslog- ...
Score: -1
merlin avatar
Why does mailutils no longer contain Postfix on Ubuntu 20.04?
in flag

I am trying to install postfix on ubuntu 20.04 but the postfix config screen does not start and there is no error message:

user@leo:~$ sudo apt-get install mailutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mailutils is already the newest version (1:3.7-2.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

user@leo:~$ sudo dpkg- ...
Score: 1
GDutton avatar
Windows service starts again after manually stopping it. Why?
us flag

I have a Windows service that is a custom API, it is running on Windows Server 2019.

When I manually stop it, it stops, but about 30 seconds later it restarts. The restarted service has a new PID. Setting the service to Automatic or Manual makes no difference: it still restarts. If I install the service on a different machine, a Windows 10, when I stop it, it stops permanently.

I have read that a ma ...

Score: 0
Uncle-Bob avatar
iptables nat localhost forwarding
cn flag

Hopefully someone can help here as I've been trawling through different answers and I cant get anything to work.

I have 2 machines - machine 10.3.0.4 current iptables is set up as below:

-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-N MY_tcp
-A OUTPUT -o lo -p tcp -j MY_tcp
-A MY_tcp -p tcp -m iprange --dst-range 127.1.1.1-127.1.1.20 -j REDIRECT --to-ports 12000

This works  ...

Score: 3
apt update different behavior in Dockerfile and prompt, return error code 100 but works
kr flag

I'm trying to install an apt source on the Microsoft azure function docker, here is my Dockerfile

FROM mcr.microsoft.com/azure-functions/python:3.0-python3.9

RUN echo 'deb [trusted=yes] http://deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
RUN apt update -y

This fails in the apt update -y step with the following error

WARNING: apt does not have a stable CLI interface. Use ...
Score: 7
Noah Broyles avatar
Apache2 access.log has multiple lines that say "combine"
cn flag

I'm running an Apache2 webserver on Ubuntu 20.04.2 LTS. I noticed that my access.log has several lines that simply say combine on them, with no information about the request or anything else. There are other lines in the access.log that do not say combine, and do have information about the request.

Here is a sample from my access.log:

combine
combine
combine
45.129.136.74 - - [26/Aug/2021:00:17:23  ...
Score: 2
How do I start an nginx service using a custom nginx.conf file?
ky flag

I'm trying to set up a raspberry pi as a jellyfin media server.

I'd like to access the device over the internet from a domain I own.

I've followed the jellyfin instructions for setting up an nginx conf file. The instructions indicated I should create a new file in /etc/nginx/conf.d/jellyfin.conf. However, they don't indicate what I should do next. I assumed that nginx just sort of "knows" to look for cus ...

Score: 0
FiddlingAway avatar
Access logs show +210k mentions of localhost IP as origin of request
hu flag

I have a CentOS 7 server, with 5-6 domains (one being the main domain, the others subdomains).

Ever since installing Lets Encrypt and handling the redirections in httpd-vhost.conf, the access log has been filling up with requests from localhost / my server's IP. Using this:

cat /var/logs/domains/example.com-access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -n 1

yields 214,900 requ ...

Score: 1
some user avatar
How to move live QEMU-KVM VM without libvirt?
cm flag

Let me start by saying that I read How to (properly) back up a live QEMU/KVM VM? But it does not seem to meet my need.

I am looking for a solution to backup AND move a few QEMU-KVM VMs without stopping them. The state do not need to be perfecting preserved (i.e. I don't care about their state after backup) but the backup must not be corrupted. I have no libvirt in the setup.

I have done so far: backup a p ...

Score: 1
Apache HTTP with Kerberos not working with Chromium-powered navigators on machines outside of domain
gb flag

Here is the Apache HTTP Kerberos module configuration in /etc/apache2/sites-available/my.server.tld.conf:

# ...
<Location />
  Authname "SSO Authentication"
  AuthType Kerberos
  KrbAuthRealms MY.DOMAIN.TLD
  KrbServiceName HTTP/my.server.tld@MY.DOMAIN.TLD
  Krb5Keytab /etc/apache2/kerb5.my.server.tld.ktab
  KrbMethodNegotiate On
  KrbMethodK5Passwd On
  Require valid-user
</Location>
# ...
 ...
Score: 1
GCP user with "DNS Administrator" role cannot create record sets anymore
dj flag

I have an Google account equipped with the "DNS Administrator" role that can suddenly not create record sets through "Add Record Set" in Google Cloud DNS anymore, via the console, since a couple of days. The project owner is able to, though. No specific error is returned by the console, only "Failed to load":

enter image description here

I can easily reproduce the error: add a new account to that project, assign it the "DNS Administ ...

Score: 1
Anonymous avatar
Is there any kind of complete RFC document for MBR (master boot record) format - better with explanations?
gd flag

I am designing the code enumerating the partitions in the system. Reading numerous documents I can not devise complete and definite list of constraints for the algorithm, and find out why constraints exist.

  • Root MBR is having 4 entries, and thus MBR may contain 4 primary partitions;
  • In this list of root MBR, there may be only one expanded partition, which then chains down to secondary MBRs with logica ...
Score: 2
raphael avatar
Is it possible to have multiple users SSH tunnel to a same local port?
us flag

I have a web-app running on a particular port on a Linux EC2 instance. Only SSH traffic is allowed to that server.

Can multiple clients use SSH tunnels to that server to load a webpage from that port?

Score: 1
Marry Jane avatar
S3 through Nginx Proxy doesn't allow more than 10 files to be downloaded simultaneously
ar flag

I setup a Nginx Proxy in front of my S3 object storage and I'm able to download files without any issues so far.

However, if I try to download the same file from, let's say, 30 different servers, at the same time, only the first 10-11 servers are able to continue downloading while the rest gets cancelled with the following error;

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar:  ...
Score: 0
Askirkela avatar
Proxying to a proxy with nginx
fr flag

I'm trying to use the proxy_pass directive to proxy requests to different servers.

In the following conf, /api1 and api2 are proxied correctly but api3 is not.

The server api3.server3.com runs an Apache server that proxies /api-alt to the correct server (which I cannot contact via the nginx server)

server {
  location /api1 {
   proxy_pass https://api1.server1.com;
  }
  location /api2 {
   proxy ...

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.