Latest Server related questions

Score: 0
Gill-Bates avatar
InfluxDB: Re-Create a deleted Bucket recovers Content
ps flag

I am deleting a bucket with data from InfluxDB. Now I create a new bucket with the same name. The data then reappears.

Do I have to explicitly delete data from a bucket before I remove a bucket?

Score: 0
yeonsook kwak avatar
What's wrong in my docker file - services.db.environment must be a mapping
pn flag

Here's my yml contents.


version: '2.2'

services:

  # postgres
  # https://hub.docker.com/_/postgres
  db:
    container_name: postgres
    platform : linux/amd64
    image: "postgres:14.6-alpine"
    restart: always
    environment:
      POSTGRES_USER={###}
      POSTGRES_PASSWORD={###}
      POSTGRES_DB={###}
    volumes:
      - db_data:/users/a/documents/docker_db/
    networks:
      - serv ...
Score: 0
seq16 avatar
Limit bandwidth for incoming packets to specific ip and port
us flag

I have a Linux server application running on a specific IP and PORT. Incoming packets need to be manipulated and put into an nfqueue based on sources and ports, for example:

iptables -t raw -A PREROUTING -p udp --src 192.168.1.100 --sport 8000 -j NFQUEUE --queue-num 1
iptables -t raw -A PREROUTING -p tcp --src 192.168.1.100 --sport 8001 -j NFQUEUE --queue-num 1

The problem is that nfqueue fills up qui ...

Score: 0
Gill-Bates avatar
Send InfluxDB2 Metrics to different Buckets with Telegraf
ps flag

I would like to put different metrics in different buckets. In my bucket Websites, I want to put HTTP response metrics.

This is how my configuration file /etc/telegraf/telegraf.d/httpmetrics.conf looks like:

[[inputs.http_response]]
  ## List of urls to query.
  urls = [
          "https://example.com
        ]

  ## Set response_timeout (default 5 seconds)
  response_timeout = "5s"

  ## HTTP Request Met ...
Score: 0
jiyinyiyong avatar
Nginx warning: client sent invalid header line: "server_port: 80" while reading client request headers
ru flag

I have an Nginx instance proxy_passing an HTTP request to an HTTPS API. These some configs like:

# some $args rewrites and headers

proxy_pass_request_headers on;
proxy_set_header Host $target_host;
proxy_pass https://my-host/api$uri$is_args$args;

But I found this error when deployed in containers. Full error looks like:

2023/02/03 15:22:29 [info] 21#21: *40 client sent invalid header line: "server_port ...
Score: 0
U. Windl avatar
Ist it possible to manage old and new Data Protector Cell managers from one GUI?
it flag

I wonder: Reading that it's possible to manage multiple Data Protector Cell Managers (CM) from on GUI (using MS-Windows), I wonder whether that is still true if one installation uses the old Data Protector port 5555, and another uses the current port 5565.

(Note: None of these ports are officially assigned by IANA)

I "played" a bit, but it seems I cannot specify a port per CM; instead the entry from ...

Score: 0
Devanarayanan avatar
AWS Billing for EC2 Data Transfer in Free Tier
cu flag

I am new to AWS. I recently created a Free Tier account to install WordPress.

I followed instructions like this to install: https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-amazon-web-services/

Just created a t2.micro EC2 instance under free tier. But I am getting billed $0.010 per GB - regional data transfer - in/out/between EC2 AZs or using elastic IPs or ELB. I use only one zone.

Score: 0
YuriGeinishO avatar
Force Samba to only listen on loopback
lt flag

If I set interfaces = lo, then Samba won't start:

daemon_status: daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface ...

I need it to start on loopback, because I need to access samba shares via the loopback interface specifically. How would I do that, if it's technically possible at all?

Score: 0
kogepan avatar
Resolve network name resolution inside a namespace
sa flag

I have managed to set up a namespace. I was able to PING with the namespace.

$ ip netns exec myNS ping 8.8.4.4

However, my PING is unsuccessful when I perform the following instruction: $ ip netns exec myNS ping google.com The error returned was: ping: google.com: Temporary failure in name resolution

Can anyone advise how I can resolve network name in a namespace? How could I setup the namespace to per ...

Score: 0
Ayush Gupta avatar
How to convert virtual machine images to bootable OS installation?
np flag

I have a virtual machine installed in QEMU. I want to migrate this machine and use it as base machine. Query I have is that it is possible, and if yes will simple converting .img to .iso and burning the obtained .iso in pendrive be sufficient or any other steps will be required. Also please suggest if these is any other way than converting .img to .iso to achive the task.

Score: 1
Sanjit avatar
xfs_repair -L sent all data to lost+found directory with code names
gb flag

After a RAID recovery, my xfs partition of 20 TB did not mount and I tried to repair it with xfs_repair and subsequently xfs_repair -L option. Now the partition could be mounted and all the folders are there but no data is available inside those folders. Everything moved to lost+found. Is there a way to fetch the actual files from lost_found.

Score: 0
jiyinyiyong avatar
Can I set proxy in Podman so capture all requests from container?
ru flag

In my case I have an Nginx server in the pod, which is quite hard to debug when I encounter problems in using proxy_pass. Can I set Podman to use use Proxyman or Charles so that I could see all details in its outgoing request?

Score: 1
ned31469 avatar
Server getting spam requests by the same IP address opening Apple App Store
ly flag

I have a simple docker-containerized nginx application. I'm getting spammed with requests when I view the nginx logs via docker-compose logs -f webserver (this is thousands of lines but I'm leaving one because LinkedIn is marking it as spam):

webserver    | 54.38.176.64 - - [03/Feb/2023:02:43:09 +0000] "GET https://apps.apple.com/sa/app/%D9%85%D8%B3%D8%AA%D8%B1-%D9%85%D9%86%D8%AF%D9%88%D8%A8-%D8%AA%D9%88% ...
Score: 2
w-01 avatar
Google DataStudio (LookerStudio?) Can't connect to RDS MySQL using SSL?
mh flag

I am attempting to connect to an RDS MySQL instance from Google DataStudio (LookerStudio?). The RDS instance accessible via public internet. I'm able to connect to it successfully using non-ssl connection.

Attempting to connect to it via ssl fails i get

Sorry, we encountered an error and were unable to complete your request.

Error ID: f8e60d8e
and no additional details.

screenshot

I can verify the ssl connecti ...

Score: 0
Aren Cambre avatar
Cannot access MySQL in container from Windows host
in flag

I am on a Windows 11 Professional workstation. I am running a containerized MySQL in Docker via the instructions at https://hub.docker.com/_/mysql. It says all I need to do is run docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag, replacing tag with the desired tag. I used latest for tag.

To make it accessible to other software on my workstation, I also add a -p 3306:3306 ...

Score: 0
John Daniels avatar
Safari issue when searching kubernetes.io/docs
US flag

When I use Safari Version 16.1 and go to Kubernetes.io/docs and then search for anything all I get is

fetching results...

I never get anything back and it stays on the message above.

Chrome and Firefox work fine.

any ideas thanks

Score: 1
be-side avatar
Nginx auth_request ignored when accessing from non-auth_request location
th flag

I am trying to use a web app which allows me to upload and share files via a download link. I want the upload section to be accessed via authenticated users only, and download links to be accessible by public users. All download links have /download in the URL and the below configuration works for the most part. Authnetik is being used for the authentication requests.

location / {
    auth_request  ...
Score: 1
RAZ_Muh_Taz avatar
Socket In TIME_WAIT on Client when exit, but not on restart
pe flag

Linux Server (port 7000)

Windows Client (port 8585)

Scenario 1: Client Restart

  • Restart on client

  • Server socket read returns -1, gets errno 104, Connection reset by peer

  • Server closes its socket connection to the client

  • Client calls close on its socket

  • Client restarts and is able to connect right away to Server

Scenario 2: Client Exit

  • Exit on client

  • Server socket read returns 0, gets errno  ...

Score: 1
NickW avatar
Structuring and serving files after a build
td flag

So this is my first self-hosted site and server, so go easy on me please! XD

I've been developing locally using webpack and vanillajs. My server is hosted on digitalocean with ubuntu. I build locally, push to a github repo, and then pull that repo in to my server. I plan to use github actions from next week, but for the time being that's the (maybe less than ideal?) set-up I learnt from frontend  ...

Score: -2
sentadoensilla avatar
Recover root password on debian
us flag

I lost root password for Debian server. it's runing very important services like radius server and wifi controller How I can recover password without lose data?

Score: 1
Anders Kitson avatar
Redirecting traffic from a server that is down to a static site
cn flag

I have a digital ocean server that uses cloudflare for DNS. If for some reason my DO server goes down I want to redirect the traffic to a DO static site app. My first thought is to use a Load balancer. Is this the right idea? I understand that a Load balancer can perform health checks on a server and reroute traffic in between the DNS and your server to other available servers.

The main reason I  ...

Score: 1
healpimp avatar
UDP Nginx proxy timeout issue (Shared connection busy)
ms flag

I have setup a TCP/UDP proxy with nginx on multiple servers. Nginx is struggling to handle some client which causes timeouts for the users.

Here is the proxy setup

stream {
    upstream backend {
        server serverip:[my port];
    }

    server {
        listen [my port] udp reuseport;
        proxy_pass backend;
    }
}

I've allowed 10,000 workers connections in the nginx config, but I don't believe ...

Score: 1
Michel avatar
Unable to set ms-TS-Max-Idle-Time LDAP attribute
la flag

I need help with an LDAP attribute that I’m trying to assign for adding a new AD user.

I’m using the following Python script for adding a new user and everything works as expected:

    # sample attributes
    ldap_attr = {}
    ldap_attr['objectClass'] = ['top', 'person' , 'organizationalPerson' , 'user' ]
    ldap_attr['cn'] = user_username
    ldap_attr['givenName'] = user_firstname
    ldap_att ...
Score: 0
as3ii avatar
CIFS corrupts ext4 FS inside an image mounted on loop
nl flag

I have a CIFS volume which contains an image file formatted with ext4 and mounted on loop. Sometimes the ext4 FS corrupt itself and the following lines shows in the logs:

Jan 30 04:00:02 server1 kernel: [817452.247111] CIFS: Attempting to mount //IP/FOLDER
Jan 30 04:00:08 server1 kernel: [817458.303566] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
Jan 30 04:27:22 server1 ...
Score: -2
2 computers on the same subnet of an ISP can't talk
ve flag

I have networks connected to the same ISP. Both routers are configured with a static IP like:

Router 1:
Static IP address: 123.123.123.201
Subnet Mask: 255.255.255.0
Gateway: 123.123.123.1

Router 2:
Static IP address: 123.123.123.203
Subnet Mask: 255.255.255.0
Gateway: 123.123.123.1

So both routers are on the same subnet as each other and I think that's the problem. When I try to ping one from the ot ...

Score: -2
Primemaster avatar
Hiding subnet from router
zw flag

Lets say I have a network layout similar to this:

Subnet

What do I need in the ? node so that all of the PC's are not discoverable form the main network, but can access the main network/internet? I don't know if the "Main network" is a subnet in itself or not. The main network should see only the equivalent to one IP address, masking all the traffic as if only one IP is being used. I was advised that us ...

Score: 0
Nikola Kramaric avatar
NGINX: Is it possible to configure mTLS without an ssl_client_certificate?
il flag

The system I am working with allows clients to register their public keys for mTLS with an application server. We would like our client's applications to establish an mTLS connection with an NGINX proxy which offloads the certificate validation to our application server. Meaning, it accepts all mTLS connections and certs, puts the public cert in a header and passes the entire request to our application  ...

Score: 0
Zlotz avatar
status=bounced (mail forwarding loop for postmaster@localhost) when receiving an email with postfix
cn flag

I use postfix with the following /etc/postfix/main.cf:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_ses ...
Score: 0
Ian Richens avatar
firewalld in RHEL9 -do I have to whitelist sources on public zone now?
bw flag

we've just built our first webserver on RHEL9 (alma linux 9.1) being used to RHEL 7 (centos 7) mostly.

the firewalld config all seems the same, but when setting up our usual security setup of:

https (service) through the public zone, and then adding more sensitive remote services (ssh, mysql, cockpit) through the work zone, with a whitelist of sources.

however this setup as we normally have it on RHEL ...

Score: 0
Rajsekar Reddy avatar
Redirection of only home page to 404 not working
dm flag

What is needed is that https://cpc.dev.company.eu should redirected to 404 page, and all other like https://cpc.dev.company.eu/* and app1.dev.company.eu & app1.dev.company.eu/* should work as it is.

in nutshell what i want is only home page of cpc.dev.company.eu should be redirected

<VirtualHost *:8080>
    ServerName app1.dev.company.eu
    ServerAlias *-app1.dev.company.eu *-cpc.dev.company.e ...

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.