Latest Server related questions

Score: 0
S.Tacked avatar
Can not connect to a Google Cloud TPU using ssh (putty) in Windows
eg flag

I have a google v3-8 TPU, i can't figure out how to connect to it using ssh in windows. I did every guide there is, but the connection just times out.

What i tried (among others): 1. Dos command line: gcloud config set compute/zone europe-west4-a

gcloud config set account myusername@gmail.com

gcloud config set project myprojectname

gcloud services enable tpu.googleapis.com

gcloud alpha compute tpus ...

Score: 1
Force all traffic through vpn
nl flag

Goal: force all traffic through VPN only.

Client: Windows in VM VPN: OPENVPN

I delete the 0.0.0.0 route in the client. I make a route for the destination of my VPN server with my LAN default gateway as the gateway (192.168.1.1). So, in practice when I turn on openvpn, it attempts to connect to the server IP which has a route through my local LAN gateway, which would result in a connection and a new  ...

Score: 0
An Tran avatar
Redirect url to the CDN storage
bt flag

I have structure folders on my nginx server: Image URL

https://example.com/wp-content/uploads/image.jpg

https://example.com/wp-content/uploads/WP-data/data/employees/per-005/9032.jpg

I want it redirect to my CDN and get the picture on that CDN all time..

https://cdn.example.com/image.jpg

https://cdn.example.com/WP-data/data/employees/per-005/9032.jpg

I try to use with this setting but it doesn't w ...

Score: 1
anon avatar
High availability VM Windows server
nz flag

How can I create a highly available VM running the Active directory role and DNS role. If one server goes down I would like it to fail over to the other node where clients within the domain will still be able to resolve their ip address

Score: 1
user10489 avatar
Need a simple High Availability file share
nc flag

I am looking for the simplest way to share a single file in a high availability way between a pair of linux servers. (Version and distribution are unimportant, I'm looking for a generic solution.)

I have two servers, each with their own local disks and NFS shares and other services between them. I have a file that both servers need to access, but nothing other than those servers needs to access ...

Score: 1
Ubuntu on dl380p gen8 won't boot from SD Card after few restarts and powering off
cn flag

I have two HP Proliant dl380p gen8 servers with full array (25 disks). I did install SD Card into the internal slot on motherboard. Changed USB setup in bios to Internal SD card first. After successful installation of Ubuntu Server 20.04 (through mounting virtual media in Remote console) and setup I did restart few times and everything was OK.

I turned off the power (plug out from the wall), chan ...

Score: 0
YouTube  2005 avatar
sendmail /etc/mail/access REJECT based off of keyword and TO: field
jp flag

someone placed my email to a weird list and i get 100s of messages each day.

I want to block the word "Unsubscribe" in all body emails address to me@example.com

To:me@example.com  error:550 5.1.1 User unknown

Works perfectly but i want to receive other email so i want to create some sort of condition

if sent to me@example.com
CONDITION Body contains "Unsubscribe" 
Then: error:550 5.1.1 User unkn ...
Score: 1
jLynx avatar
Update MySQL replication server position
gh flag

I have been trying to set up a replication of a large DB (90GB)

I have created a backup using mysqldump --single-transaction

I have then restored that on the replication server. I have then enabled replication, but I have accidentally clicked Reset slave in phpMyAdmin and its set the position back to basically 0.

So if my understanding is correct, it's trying to rebuild the DB on the replication  ...

Score: 1
Nginx with rtmp module and ffmpeg adaptive stream is not creating master dash manifest
in flag

I have a working setup of nginx with the rtmp module working like a charm creating live streams with both dash and hsl. No problem so far.

When I try to enable ffmpeg transcoding for adaptive streaming, it creates the hls version just fine, the video chunks, a m3pu8 for each video version and a master m3u8 that is the one I call from the web player.

But in the dash version I get the chunks, the mpd  ...

Score: 1
saltface avatar
How can I determine if Microsoft Patches are recommended or optional without using IUpdateSearcher?
id flag

On a single computer, it's simple enough to filter which updates Microsoft deems important by running a PS script such as the following:

$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0")
$requiredupdates = $result.Updates |? AutoSelectOnWebSites -eq $true

However, this inf ...

Score: 0
miguelmorin avatar
Was AWS, Bitnami, NodeJS and MongoDB vulnerable during 2021?
jp flag

One user reported that their email and password on my website had been compromised. The website runs on NodeJS and MongoDB, with passwords salted and hashed. It has a front-end only, with little user content sanitized and never shown, and connection to the server secured by public-private key and IP address restrictions. The probability of a hack is very little and could have happened if MongoDB or Node ...

Score: 1
miguelmorin avatar
Does AWS Bitnami stay up to date?
jp flag

I use a Bitnami NodeJS instance on AWS. I found in the Bitnami docs](https://docs.bitnami.com/aws/get-started-lightsail/) that I have to manually keep a Wordpress installation updated. But for the OS, I could not find whether it keeps itself updated or if I need to update packages and the distribution updated by manually running sudo apt-get update && sudo apt-get upgrade periodically. Does any ...

Score: 1
Can't PING domains with ipv6 address
cn flag

All of a sudden, I can't ping domains with an IPv6 Address. I'm running this command:

 ping google.com

But I don't see anything returned ... it just returns this:

 PING google.com(iad30s15-in-x0e.1e100.net (2607:f8b0:4004:807::200e)) 56 data bytes

And nothing else. I hit CTRL+C to cancel and I get this:

 --- google.com ping statistics ---
 7 packets transmitted, 0 received, 100% packet loss, ti ...
Score: 2
GCP: Can I list permissions assigned to custom role using gcloud?
uz flag

Is there any way to list the permissions associated with a (custom) role in Google Cloud Platform IAM using gcloud? I can find how to list the roles, but not the permissions associated with a given role.

Score: 6
user13539846 avatar
No DKIM headers in sent mails from postfix
pl flag

I have two postfix, one for receiving mails and the other for sending mails, and I am having trouble signing dkim on my outgoing mails. I followed this tutorial.

Logs also is not helping me point to the main problem. OpenDKIM is running fine:

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
     Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled) ...
Score: 1
Hamza Ben avatar
RoboCopy Access Denied, even with SeBackupPrivilege
in flag

My account is a member of the Backup Operators group on the domain and I run PowerShell in elevated admin mode. I checked my privileges with whoami /priv and saw SeBackupPrivilege listed (disabled but nothing weird so far).

Still, when I run the command: robocopy 'o:\folderx' 'c:\temp' /zb

I get an error 5 (0x0000005), "Access denied" to the source folder. Tried also using azcopy with the backup flag ...

Score: 0
cyly derder avatar
clone a grafana setup to a different server
ua flag

I'm writing a set of scripts to automatically setup any virgin ubuntu server to be in a state usable for my production environment.

One of the things I want to do is setup grafana so that, on install, it has already added prometheus as a datasource, has a dashboard setup, and any other configuration steps already done, without having to touch the graphical interface.

For that, I thought I could set  ...

Score: -4
Mitch Hiller avatar
Getting "Must enable billing on Google Cloud Project"
de flag

I am sending an address to the Maps API, need the Lat & Lon of the address.

I pass in the request https://maps.google.com/maps/api/geocode/xml?address=.....

and the error message is what you see in the subject.

I am in the Cl

Score: 0
How do you use regex flags in postfix?
ca flag

In Postfix we can apply some basic header, body, client checks using regex. I wanted to use flags.

I added the following to the header_checks file:

/some(\s|_|-)words(\s|_|-)here/gmi REJECT

and tested it by sending myself and email with those words in the title, but I get the error in my maillog stating unknown regexp option "g": skipping this rule

Is there a proper way to apply flags or does postfi ...

Score: 2
Gustavo avatar
Where are Tomcat 9 sessions stored in Ubuntu 18?
ph flag

The manual below says:

Apache Tomcat 9 Configuration Reference - The Manager Component

Introduction

A Manager element MAY be nested inside a Context component. If it is not included, a default Manager configuration will be created automatically

My Context has no nested Manager element:

<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/t ...
Score: 0
Mukesh avatar
Less requests per second on Apache Bench test from same server
gt flag

I ran following test on one of my website from the server where it is hosted itself.

ab -n 100 -c 10 https://example.com/

enter image description here

It serves very less number of requests per second.

The server configuration is 64GB RAM, 16CPU, Ubuntu20.04 and webserver is Nginx 1.14

When I run same test on a different website which is running on 8GB RAM, 4CPU, Ubuntu 18 and Apache2 webserver, I am getting the 20.09 requests s ...

Score: 0
jsjw avatar
PHP OpCache on Amazon EFS
mc flag

Looking for some validation of my thought process here. I don't have the stats to hand to back up my claims, but have enough experience with web hosting with and without EFS to be comfortbale in making it.

A Joomla or WordPress PHP site being served entirely from EFS (e.g. the document root is in EFS) - making use of Apache and PHP-FPM will be slower than one that is served from EBS. This is beca ...

Score: 0
Daniel Grunblatt avatar
cannot send emails from a powershell script to postfix/dovect mail server
in flag

Update: it works when sending to a domain that the server handles. As this is a shared hosting server, it contains several domains. For example, domain1.com and domain2.com. If I specify the recipient to be somebody@domain2.com, I receive the email

A week passed googling and browsing in serverfault without success. So, here's my last chance to fix this.

I have a powershell script that sends an ema ...

Score: 0
saro avatar
Disable dynamic logging
my flag
Message from syslogd@dev01 at Jun 18 09:23:49 ...
 varnishd[8318]: no cookie

Message from syslogd@dev01 at Jun 18 09:23:49 ...
 varnishd[8318]: no cookie

Message from syslogd@dev01 at Jun 18 09:23:49 ...
 varnishd[8318]: no cookie

I keep getting these logs pop out when I ssh into the staging server, I don't remember what I entered, but I would like to disable all dynamic logging that's on current ...

Score: 1
Elias Arellano avatar
How does update management works for virtual machines in Azure?
cn flag

We defined the execution's time of the update management with a runbook for 6 hours.

But I would like to know : Does update management work asynchronously (every virtual machines are getting updated at the same time)?.

Score: 2
Elias Arellano avatar
Can we connect 2 VPN gateways with 2 vnets with the same ip range in Azure?
cn flag

Let's suppose that in two differents subcription we have 1 vnet with the same ip range, and both sites also have one subnet with the same ip range. Does VPN gateway still working ? For example in this case:

Subscription 1:

Vnet range : 10.1.0.0/16

Subnet range : 10.1.0.0/24

Subscription 2:

Vnet range : 10.1.0.0/16

Subnet range : 10.1.0.0/24

Score: 1
Luca Moscato avatar
Change permission for a file created by other user in the same group
in flag

I have a centos 7 file server and user that can work on shared directory are in group users. With default umask a user is able to create file with the following permissions:

[luca@myserver mydirectory]$ ls -l testfile -rw-rw-r-- 1 luca users 0 18 giu 13.03 testfile.txt

but when an other user, part of the same group users, try to change permissions on the same file I have

[nick@myserver mydir ...

Score: 1
fgrieu avatar
Benefits of separate RDBMS server
de flag

I'd like to compare the benefits of two hosting architectures for a small server (meaning a 2-core CPU and 250GB SSD, with 100GB dedicated for data, is more than enough), consisting mostly of a custom application providing web services, with a REST architecture and all the data in a relational database.

  1. Hosted on a single machine in the cloud (e.g. an EC2 instance) with a Relational Database (e.g. my ...
Score: 1
Jas Har avatar
Fail2ban regex working but not banning. DNS warning instead
in flag

I had the following problem (already solved) with fail2ban and misplaced it on stack overflow so I'm putting it here now.

So, I've been reading issues for some days and don't seem to find a solution anywhere. I'm making some tests on a web server lab, I have set up two VMs (Ubuntu 20.04) server and client. On the server I have a PHP login app configured to give me this log whenever someone fails  ...

Score: 0
soundtruck avatar
Building cURL with NSS on Ubuntu server fails
in flag

On a fresh ubuntu 21.04 x64 or 20.04 lts x64 I do:

apt install build-essential
wget https://curl.se/download/curl-7.77.0.tar.gz
tar -xvzf curl-7.77.0.tar.gz 
cd curl-7.77.0/
apt install libnss3-dev
./configure --with-nss
make

That's what I get:

Making all in lib
make[1]: Entering directory '/root/curl-7.77.0/lib'
make  all-am
make[2]: Entering directory '/root/curl-7.77.0/lib'
  CC       libcurl_ ...

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.