Latest Server related questions

Score: 1
sam23 avatar
AWS EC2 not showing a request for IP Issue
cn flag

My AWS web servers are not showing a request for example '42.26.32.120' after running some athena queries We are unable to identify the cause of the issue, as the IPs is not in any of the access logs Therefore, I am trying to find out where the request was lost. I found some output against athena queries

SELECT * FROM alb_logs
WHERE client_ip= '42.26.32.120'

From the results this seems to indicate tha ...

Score: 0
Python setup tools getting dependency error with deb package, how to fix that?
kr flag

Below is the install_requires part of setup.py of setuptools.

setup.py Created rpm using this command. setup deb cpmmand When I ran the deb file on another ubuntu 20 machine, got below error. error installation But don't know why it is appending python3-*** to package names. Direct pip3 install commands on torch,torchaudio,torchvision works if I ran on the target machine manually.

Please suggest how to fix that.

Score: 0
Sensitive HTML file served by AWS S3 website hosting
gb flag

How must I configure an S3 bucket to serve sensitive content via website hosting (where the bucket name is the same as the DNS record)? The website will only be reachable from within intranet.

Since it's sensitive material, the bucket and its contents must have public access blocked, obviously. Now, the only file I want to be able to view on a browser is a report.html that I can easily configure  ...

Score: 0
Dimitri Danilov avatar
How could I make Cloud Run communicate with a kubernetes cluster?
us flag

I deployed an image on Cloud Run where I need to make http calls to a service that is inside a Kubernetes cluster.

This service can be only accessed from a private network.

I read on that article that I need to connect the cloud run instance to my private VPC, then I need to create a load balancer that will be mapped to one of my k8s service. That will get me a external ip that will not change and I co ...

Score: 0
ralberich avatar
Nginx - subfilters behind another VM
km flag

I've got 2 VM : VM1 is front with urlvm1.site url and is accessible by users VM1 has spring security & spring gateway

VM2 is back and is not directly accessible by users. it has urlvm2.site url. VM2 has nginx and superset, which we're trying to serve to users.

Superset doesn't allow url prefix so I made one using recommandations on ngnix :

upstream superset-server {
   server  urlvm2.site:8088;
}



 ...
Score: 1
TheUnreal avatar
CentOS 7 - upgrade PHP version from 7.2 to 8
gb flag
  • CentOS 7
  • Nginx
  • Current websites run on PHP 7.2

PHP -v says

```# php -v
PHP 8.0.25 (cli) (built: Oct 25 2022 09:42:31) ( NTS gcc x86_64 )
Copyright (c) The PHP Group```

But phpinfo() in the nginx server shows: PHP Version 7.2.34

Configuration File (php.ini) Path   /etc/opt/remi/php72
Loaded Configuration File   /etc/opt/remi/php72/php.ini

Nginx site config:

location ~ \.php$ {

               fastcgi_ ...
Score: 0
Codeluppi avatar
Windows 10 and OpenSSH to encrypt a local TCP port
co flag

I'm working on a Windows 10 machine. I wrote 2 apps: server and client. Both of them communicate via standard TCP sockets, no encryption. I installed OpenSSH, no certificates at the moment, just password login to keep things simple. I don't want to expose the server listening port to the rest of the world, so it's listening on 127.0.0.1:9000. I'd like to configure the SSH server to encrypt the traffic f ...

Score: 0
FiddlingAway avatar
One way s3 sync - Bucket to local only
hu flag

This is the scenario:

  1. Company A creates a bucket, and periodically uploads images to it, deletes or replaces some, etc
  2. Company B needs to sync with the bucket - they download the images from it and store it locally (think along the lines of a Wordpress site, and their wp-content/uploads///<>
  3. Syncing needs to be done bucket to WP server, and in that direction alone
  4. Company B installs AWS CLI in ord ...
Score: 0
Mahdi avatar
Route traffic on datacenters without traffic usage
uz flag

Imagine you have 2 servers, one on OVH and another one on Hetzner and each of them has a 500GB traffic usage limit.

can you route traffic from Hetzner to OVH without traffic usage for Hetzner?

Score: 1
Farhang Amaji avatar
Linux openvpn server/client configuration troubleshooting
bi flag

I'm new to openvpn. I have tried 7,8 Linux openvpn server/client configuration tutorials. with none of them I couldnt make the connection. btw I'm living in iran and maybe due to internet ban some of your suggestion don't work but anyway it has nothing to with troubleshooting which is a general approach.

from angristan/openvpn-install script I made a server and client config. also edited /etc/openvpn ...

Score: 1
Harsh J avatar
Error: Google Apps Script: Exception: You do not have permission to perform that action
mf flag

I am an add-ons developer and when I hosted my add-on on google workspace marketplace, it let's user install my add-on(google sheet add-on) for the first time. When user tries to access the same add-on in another spreadsheet, he/she receives this error in the console of the chrome tab.

Google Apps Script: Exception: You do not have permission to perform that action.

I tried to reauthorize the add ...

Score: 0
Siavash avatar
Port forwarding via vpn connection
kw flag

I have two RHEL servers, one frontend and one backend. The connection of which is like this:

----eth0---frotnend---eth0 -------- eth0 ----- backend

Also, I've set port forwarding between two servers for certain ports via iptables:

# Generated by iptables-save v1.4.21 on Fri Oct 28 08:11:16 2022
*filter
:INPUT ACCEPT [1596477:1248637845]
:FORWARD ACCEPT [1430638:1055355293]
:OUTPUT ACCEPT [1280144 ...
Score: 0
devio avatar
A frontend app redirection to backend using nginx does not work
co flag

I have a React app with an nginx conf as below. This app communicates with a backend (represented here with the alias app-backend in the conf file).

upstream app-backend {
    server app-backend.domain.com;
}

server {
    listen 3000;
    root /usr/share/nginx/html;
    location /api/ {
        proxy_pass https://app-backend/;
        proxy_redirect default;
    }
    location / {
        root   /usr/sha ...
Score: 0
location avatar
How to safely downgrade gcc from 8.5 to 8.4?
eg flag

I have a CentOS Stream 8 server with a backup application that requires the kernel to be compiled with the same version of gcc. Latest kernel is: 4.18.0-408.el8.x86_64

I inadvertently updated gcc in the course of doing updates, and it's currently: gcc version 8.5.0 20210514 (Red Hat 8.5.0-15) (GCC)

gcc 8.5 was apparently backported from CentOS Stream 9 into 8, and that's causing problems for me.

I ...

Score: 0
Caio César P. Ricciuti avatar
How to replace special characters variable value nginx
cn flag

I'm out of ideas to solve the following issue:

I use GeoIP with nginx server. I installed the module and I have the following under http context in nginx.conf:

    geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
        $geoip2_data_country_code default=NA country iso_code;
        $geoip2_data_country_name default=NA country names en;
        $geoip2_data_city_name default=NA city names en;
    }
     ...
Score: 0
ActualExplosives avatar
How to disable request buffering in Apache2
cn flag

I'm attempting to use PHP to show progress on uploads using apache2 (specifically 2.4.41 ubuntu). In the php manual here, it states:

The web server's request buffering has to be disabled for this to work properly, else PHP may see the file upload only once fully uploaded. Servers such as Nginx are known to buffer larger requests.

I believe this to be my issue since I only see the details for this once  ...

Score: 1
Marco Vivar De La Cruz avatar
Gmail account with custom domain can send emails to Outlook accounts but cannot receive emails from them
eu flag

I set up a custom domain autoinfo.cl at Gmail with Route53 AWS. I followed all the instructions described in Google Workspace to set MX records in DNS Manager.

Gmail account works fine to send and receive emails to any other gmail account, but for Outlook or Hotmail accounts only emails can be sent. When I try to send an email from my @outlook.com or @hotmail .com account to any account with the  ...

Score: 0
Maxfield avatar
Why create a new user with sudo privilege when you are the only person manage the server?
in flag

Please share some true use cases of benefits when you are the only admin of manage VPSs, I'm just hosted my first WordPress site. A lot of guide I read online suggests creating a new user after update and upgrade for the fresh Linux OS. I found that somehow annoying since type sudo every commands then often requires a password of that user. Searching online for the reasons, pretty much all point to secu ...

Score: 1
naasking avatar
Exchange shared mailbox login
kr flag

I have a client account that wishes to share his Office 365 inbox with a personal assistant, but obviously still wants to use the account himself, and the assistant has their own account.

Sharing login credentials is obviously one way, but not ideal. I was thinking of switching it to a shared mailbox, but there are some comments suggesting this use isn't "intended". That's obviously not a comment  ...

Score: 1
Aleh avatar
How to create alias to url in Apache 2
fr flag

I have main url like http://apps1.example.com and i want create alias like http://apps1.example.com/svc-base

in my vhost config

<VirtualHost *:80>
 ServerName apps1.example.com

 ProxyPreserveHost On

 ProxyPass / http://123.456.7.8:880/
 ProxyPassReverse / http://123.456.7.8:880/
 
 Alias /svc-base !
 ProxyPass /svc-base http://123.456.7.9:881/

 ProxyRequests     Off
 AllowEncodedSlashes NoDe ...
Score: 0
Rafael avatar
Is it possible to get the Google Cloud Messaging server key using the CLI?
eg flag

I'm working on an automation script to create Firebase projects with the GCM API enabled. So far I managed to create the project and enable the Google Cloud Messaging API (googlecloudmessaging.googleapis.com) by using the following command:

gcloud services enable googlecloudmessaging.googleapis.com

This has left me with the following configuration on the Firebase Console:

enter image description here

So my question is: Is it possibl ...

Score: 0
InterLinked avatar
Users and groups not found, but exist in their respective files
br flag

I just encountered a bizarre condition on a Debian system I was working on.

Out of nowhere, a program complained that its rungroup could not be found. After a bit of digging around, it seems like my system no longer thinks any users or groups exist on the entire system, including root.

However, they are all still there in /etc/passwd, /etc/group, etc.

For example:

root@debian:/etc# getent passwd
ro ...
Score: 0
Moha avatar
Metadata (as in hostname) is not set during instance creation in OpenStack
de flag

By creating an instance in OpenStack, IP is injected into the instance, but not other metadata as in Hostname and Key Pair. There's no error in the nova and neutron log files.

The problem:

...
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 5.45. request failed
failed 2/20: up 7.47. request failed
...
failed 19/20: up 746.84. request failed
failed 20/20: up 795.86. request failed
f ...
Score: 0
My Space avatar
mysql server failed when I run mysql.server start
tw flag

I use macOS Big Sur(11.5.1) and MariaDB(10.8.3_1) with Brew. After some manipulations with Docker(my guess) my mysql.server stopped working. I cannot run my local MySQL server.

These lines I have in the console when text command "mysql.server start"

Starting MariaDB
.221028 01:36:17 mysqld_safe Logging to '/usr/local/var/mysql/MacBook-Pro-My.local.err'.
221028 01:36:18 mysqld_safe Starting mariadbd da ...
Score: -1
How to get OS and version of every server on network?
pm flag

This is a case of "we are where we are". I'm a developer and I've been asked to get a list of every server on our network (IP and hostname) along with the OS version

We exclusively use Windows machines.

My first instinct was to use nmap but I'm unsure what syntax/values I would need. I'm on a VPN over WiFi but can RDP onto a server at work if needed. I tried using the gateway addy (with /24) but that y ...

Score: 0
Richard Tyler Miles avatar
PHP Serialize AWK command speed up?
cn flag

I've built an SQL migration script that will replace text in a MySQL dump file. Replacements would be easy with sed, but we must account for special serializations (PHP Serialize). The code below works but the awk command is very expensive. With a quick google search, I see many developers with the same runtime performance issues. This article breaks down how simple changes can make a large difference.  ...

Score: 0
Gaurav Singh avatar
Network endpoint group unhealthy state GCP
ua flag

I have setup http to https redirection for internal http load balncer in GCP. To fulfill this requirements I have setup such as,

  1. http ILB listening on port 80 with NEG backend.
  2. Added IP of https ILB(GKE Gateway) into NEG with port 443.

So requirement is to receive http request on first ILB on port 80 and it will send request to configured NEG --- And we have configured gateway IP and port(443) in  ...

Score: 0
Michal avatar
Apache mod_proxy redirect
bq flag

I have 2 domains, both on the same server. One of them is running a website. I have a subpage of that website that I want to map the other domain to. The goal is to have the domain www.something.com "invisibly" map to www.somethingelse.com/example.html.

I have achieved quite good success with the following configuration:

ProxyPass / http://www.somethingelse.com/example.html
ProxyPassReverse / www.somet ...
Score: 1
Marking services for killing in a resource-starvation situation
cn flag

We use systemd --user to run certain services of our own. In some cases, these "get out of hand" -- spawn way too many processes, which exhausts RAM and causes the machine to "thrash".

When this happens, kernel tries to kill some processes, but is not aggressive enough in that murder -- causing the machine to, effectively, lock up: no new ssh-logins, and even the existing ones aren't really usable.

 ...
Score: 0
Nil avatar
Config NGINX as proxy for local and remote websites
ie flag
Nil

I got three web servers:

app1 - on local server with nginx. this app listens 127.0.0.1:8080

app2 - on 10.7.0.2:80

app3 - on 10.7.0.10:80

I wan to config NGINX to proxy this three apps on same domain, but different paths:

app1 - https://my.domain.com/something/

app2 - https://my.domain.com/

app3 - https://my.domain.com/nothing/

I have wildcard SSL certificate for *.domain.com

Here is my config:

upstre ...

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.