Latest Server related questions

Score: 0
ptushev avatar
Cannot create aws lambda function. error: the following arguments are required: --runtime, --handler
jp flag

I am trying to deploy an image to be run in aws lambda at a scheduled interval. I have built and tested the image using RIE and locally it runs as it should. Next I have pushed the image to aws ecr to be stored. My next step is to create a aws lambda function and this is where my troubles begin. As per the docs:

If the deployment package is a container image , then you set the package type to Im ...

Score: 0
Lara19 avatar
How to check if my Big Query is compatible when I update my Gcloud Version?
pa flag

We are currently using Gcloud Version 359 at the moment, we want to upgrade it to the newest version 422. How do I check there will be no errors after I updating it? Since some tools or api might be deleted when I update it and my Big Query might crash. I just want to make sure everything is okay when I upgrade it. Any suggestion like where I can check the info before? Thanks

Score: -1
Vasanth Vel avatar
ping 100% packet loss - can't ping to server
mk flag

when I try to ping my newly created server it shows:

vasanth@vasanth-client:~$ ping -c 4 server.ip.name
PING server.ip.name (server.ip.address ) 56(84) bytes of data.

--- server.ip.name ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3055ms

when I check ICMP is allowed it shows:

[root@vasanth-server ~]$ firewall-cmd --query-icmp-block=echo-request
no

firewall zone stat ...

Score: 0
Henz avatar
How to cache nginx with acc and expired time on url
tf flag

(1) Source link:

https://bato.to/chapter/2170006

(2) Image url example:

https://xfs-s107.batcg.org/comic/7006/255/63d8e0e22aa1d12922877552/24710008_2160_3070_989124.webp

(3) Query:

?acc=s5WX_Vh52fc9nAuSzakSyg&exp=1689757290

Every time I reload (1) page, it will random add (3) with ?acc=CONTENT&exp=NUMBER to (2), it will become:

(4) Full image url with query

https://xfs-s107.batcg.org/com ...

Score: 0
Mévatlavé Kraspek avatar
Redirect nginx port 80 to http2 443 fails
cn flag

Searched tons of links on the web, I don't get why this conf doesn't redirect properly from http://example.com to https://example.com

My conf:

# HTTPS
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    index index.html;

    # Prevent nginx HTTP Server Detection
    server_tokens off;

    server_name example.org;
    root /home/www/example.org;

    # Let's Encrypt conf
    i ...
Score: 0
Red Cricket avatar
Seemingly contradictory host lookup results. (NXDOMAIN) and IP addresses
de flag

If I execute:

$ host rocky-k3.sst.example.com

I get this output:

rocky-k3.sst.example.com has address 10.0.3.53
rocky-k3.sst.example.com has address 10.0.3.51
rocky-k3.sst.example.com has address 10.0.3.52
Host rocky-k3.sst.example.com not found: 3(NXDOMAIN)

Why am I getting that NXDOMAIN line of output?

Score: 1
scgough avatar
Azure App Service to Azure MySQL Flexible Server Latency
sa flag

I have an old ASP.NET MVC website I've moved to Azure that runs super slow on there.

I've set up:

  • App Service (Standard S1 plan)
  • Azure Database for MySQL flexible server (Burstable, Standard B1ms - 1Vcore, 2G mem, 640 iops).

The site is working but there seems to be a huge delay on connecting from the site to the DB then it suddenly springs to life.

  • The App Service is 'Always On'.
  • The DB connection  ...
Score: 0
milkpirate avatar
Accessing docker-compose containers via ipv6 from the outside of the docker host
gb flag

I have the following (simplified) docker(-compose) setup and would like access the nginx container from the laptop. A ping from the laptop to the docker-compose gateway (fd..2222.0.0.1/80) works fine but to fd..2222.0.0.2/80 doesnt work.

enter image description here

I already tried to advertise a route via radvd (running on the Server):

interface wlp1s0 {
    IgnoreIfMissing on;
    AdvSendAdvert on;
    MaxRtrAdvInterval 600;

     ...
Score: 0
radius avatar
Communication between docker containers in different bridge
us flag

I have a docker setup with containers in two different bridge. I understand there is isolation between containers so they can't communicate with each others.

But my container A in bridge 1 expose port 443. So this port 443 is reacheable from the host and from external servers. As the port is explicitly exposed, It would make sens to be able to reach it from my containers in bridge 2 as well but i ...

Score: 0
beoifiboheuhio avatar
How to use IPPS with Brother printer and Mac?
mk flag

I have a Brother laser printer connected to my router via ethernet cable. Within the Brother configuration web portal, I did the following:

  • disabled all wireless functionality on the printer
  • disabled every protocol except for IPP and the nested AirPrint (the latter forces mDNS to be enabled)
  • created a self-signed certificate and installed it on my Mac
  • disabled port 80/HTTP, enabling only port 443/HTTPS
Score: 0
displayNameGoesHere avatar
Google Shared Drive File Structure
cn flag

We're looking at migrating from a traditional file server to Google Drive and are currently trying to figure out to replicate our current permission structure so there's as little difference between the two as possible.

On our current file share we usually have the following folder structure:

  • Project Folder
    • Budget
    • Scope of Work
    • Sensitive Content
      • User Interviews
      • User Contact info

At the proj ...

Score: 0
insane_IT avatar
Using strongswan to connect a checkpoint vpn gateway using Ikev1 and xauth-hybrid
uy flag

I try to connect to a r81.10 gateway using a linux distribution with strongswan. Gateway accepts user:password only. Tested with Windows Version of Checkpoint Endpoint Software. Have to use ikev1.

The error looks like a PSK would not match but xauth-hybrid should be used. so the server is verified by certificate (it is exported from smart console and imported to strongswan) und the client with us ...

Score: 0
Harry Hudson avatar
Website IP address doesn't match up with any EC2 instance IP addresses (AWS)
fo flag

I've been asked to look at some non-technical friends' AWS account because they're worried about their costs, but I'm struggling to find where they're spending their money. In particular I'm getting quite confused because the IP address of the website (according to the network inspector tools in my browser and nslookup) is different to every public IP address I can see on their AWS account. Is it p ...

Score: 0
Tarvez Khan avatar
Ansible getting error when connecting to remote windows host over ssh
uz flag

I have created a windows 2019 EC2 instance using Ansible. Once ec2 instance is created i have added the instance into hosts and then created a new play for accessing and executing commands on remote windows server.

Getting below error on ansible play book

UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname 34.219.153.40 : Name or serv ...

Score: 0
Neos Design avatar
Wordpress deployment GCP - Site Address gone - shows as null
gh flag

Not sure what happened, but my Wordpress instance on GCP seems to have gone away. My site address now shows "Site address https://null/". Any clue how to get it back?

I have the following warnings showing (not sure if it is related to the instance going away):

"This deployment has resources from the Runtime Configurator service, which is in Beta. There is no planned date for moving this feature into Ge ...

Score: 0
Jared Beck avatar
How to fix HPA deprecation warning on GKE?
ng flag

Observed output

kubectl describe hpa  
Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler

Attempted fix

Specified autoscaling/v2 in yml file, but warning remains.

head -n1 my_hpa.yml
apiVersion: autoscaling/v2
kubectl apply -f my_hpa.yml
kubectl describe hpa  
Warning: autoscaling/v2beta2 HorizontalPodAutoscale ...
Score: 0
MecaTheclau avatar
Why I am getting wrong IP address when connected to the freeradius server with VLAN attribute set
mo flag

I am new to the Freeradius

I am trying to connect to the Unifi AP through freeradius authentication. I can connect to it successfully and access local services. but I am not getting the correct IP address.

SSID is in VLAN 31 with IPs ranging in 172.31.x.x, AP is connected to the network of 192.168.1.x. The radius server is also connected to 192.168.1.x. with radius authentication, all devices connec ...

Score: 0
Alan Hollis avatar
Is there a method of performing "local arp" requests on linux
ug flag

I have some code that performs an arp-scan, I wondered if there was a way within a single machine to have "something" respond to arp-scan within the same host.

I've tried a few things so far like macvlans/ipvlans (l2) etc but I think perhaps it's just not possible due to the nature of ARP.

The flow is this:

I have an application that performs an arp-scan on startup, and I want to "mock" a response to t ...

Score: 0
ross avatar
Authenticating via SSSD but Unix Auth logs a failure
ae flag

I have WinAD authentication working on all 20+ of our Debian 11 servers. We also have a handful of CentOS/Rocky servers working correctly. Login to one of the Debian machines causes the following logs:

Mar 22 07:53:06 pcap-1 sshd[1107]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.18.224.2  user=ross
Mar 22 07:53:06 pcap-1 sshd[1107]: pam_sss(sshd:auth ...
Score: 0
Bill-- avatar
Randomly can not resolve host on web server running on ec2
br flag

I have a ec2 server running nginx inside a docker container that uses lets encrypt for https. Randomly for extended periods of time (roughly 10min - 1hour) the host name can not be resolved when sending an https request and there are no nginx logs about the request. It can still be reached via http and it's IP address. Strangely, the domain always resolves when you curl the domain on the server itself.

Score: 2
Cloudflare instead of nodebalancer in linode kubernetes cluster
pk flag

there is a similar question regarding cloudflare as a load balancer for the VPS. But in my case I'm looking for using cloudflare as a nodebalancer replacement for the linode kubernetes cluster.

Is there any chance I can make it work? Also, if there is a way to configure it to automatically detect a new nodes and remove the "dead" ones?

Score: 0
Collin Short avatar
why am I getting postfix loops back to myself error, BUT, only after I point the subdomain to the server?
cm flag

so I have set up a new web server that is hosted in the cloud. The server is ubuntu, I am currently transferring 1 site (with 2 subdomains) to this new server. I transferred 1 site so far, lets say example.com, to the new server. Since the registrar is still pointing to my home server I have redirected all A records and NS records to my new server. And everything worked, I got the hosting working, databa ...

Score: 0
adam78 avatar
Fail2ban regex not banning IP address
it flag

I have the following jail added to jail.local file:

[nginx-honeypot]
enabled = true
filter = nginx-honeypot
port = http,https
logpath = /var/log/nginx/access.log
maxretry = 1
bantime = 86400

I created the filter nginx-honeypot.conf inside the filter.d directory as follows:

[Definition]
failregex = ^<HOST> -.*"(GET|POST|HEAD).*HTTP.*"(?:/wp-login\.php|/\.env|/_ignition/execute-solution|/\.git/confi ...
Score: 0
NON avatar
High RAM usage when providing large file on apache
it flag
NON

I'm using Apache 2.4 on AlmaLinux 8. When I publicate a hundreds GB file and if someone starts downloading it, Apache RAM usage (especially VIRT) becomes bigger and bigger, starts swapping and ultimately, boom. Why this happens, and is there any way to prevent this? Thanks.

This is ps:

ps -eF | grep httpd
root         933       1  0 73036  7604   0 07:54 ?        00:00:03 /usr/sbin/httpd -DFOREGROUND
 ...
Score: 0
miguelmorin avatar
DKIM fails when users forward Hotmail to Gmail
jp flag

I use AWS SES for sending mail and CloudFlare for DNS. I set up DKIM following this tutorial. It works well.

When a user provides a hotmail.com address and forwards it to Gmail, I receive an email such as:

mx.google.com gave this error:

This mail is unauthenticated, which poses a security risk to
the sender and Gmail users, and has been blocked. The sender
must authenticate with at least one of SPF  ...
Score: 0
José Ferreira Neto avatar
How to compress a directory, using tar, and then delete the directory it compressed?
cd flag

On my server there is an application directory that I need to make a full copy of it but the copy takes up a lot of space, I need to compress it and then remove it. I already use the command

tar -czf bkp-mydir-$date.tar.gz mydir/

But I need it to be removed after the compression is done. In that case I could create a .sh file with the commands below:

 tar -czf bkp-mydir-$date.tar.gz mydir/
 rm -R ...
Score: 0
squirrel_killer- avatar
Apache2 mod_autoindex IndexStyleSheet Directive not applying CSS within mod_userdir directories
lr flag

I am using mod_userdir to share files using mod_autoindex to generate a directory index for people to browse and access them, and due to the retina burning nature of the default CSS I wish to rework the CSS to something darker. While I can do this with my README for each page, I would prefer to not need to include a README for each directory.

This is the css I used for style in my README.html, where it  ...

Score: 0
Nik avatar
Hyper-V VM wont start with more the 22gb RAM and produces Error Code 0x80070070
cv flag
Nik

Currently got a server with 512GB of RAM and want to allocate 22GB of RAM to VM's on Hyper-V, currently have three machines, two with 22GB and one with 24GB RAM and are working fine but the fourth VM I am trying to created won't allow for 22GB of RAM and produces an error code 0x80070070 and says there is not enough space on the disk even though there is 3.5TB+ of disk space and 413GB of physical RAM sp ...

Score: 0
pileup avatar
PHP configuration file path has no value on IIS
th flag

When I output phpinfo() it shows that PHP configuration file path has no value.

It does however have a loaded configuration file path, but whenever I edit the file there nothing gets updated, so maybe the loaded file is some sort of cache?

How can I set path to the php.ini and also make the changes really updated?

Score: 0
Abeloser avatar
Apache2 ProxyPass/ProxyPassReverse Not Working
ga flag

I am trying to redirect a online website such as amazon.com for example to a website using cloudflare such as chat.openai.com. The problem is that you can not obtain the IP address from a website using cloudflare which means we can not use a DNS since it needs the IP address where it needs to redirect to.

So I found something on Apache2 using Kali Linux VMware that uses a Reverse Proxy. I don't 1 ...

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.