Latest Server related questions

Score: 1
Artem Trunov avatar
Terraform cycle error with AWS EC2 instance, volume and template file
it flag

Could you please help to explain and work around this error?

I have the following TF program for an instance with an EBS volume and template file using that volume id:

resource "aws_instance" "edge1" {

  instance_type = "t3a.micro" 

  ami = data.aws_ami.ubuntu.id
  key_name = "ozonm"

  £ root block device 
  root_block_device {
    volume_size = 10
  }

  user_data = data.template_file.user_data_e ...
Score: 0
Thamognya Kodi avatar
example.com to https://www.example.com | Apache
in flag

So I want to redirect example.com to https://www.example.com. I already have ssl with certbot but I want to change my redirect config in /etc/apache2/sites-available/example.conf.

Certbot already gives you a redirect from example.com to https://example.com.

this is my current apache config

<VirtualHost *:80>
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/e ...
Score: -3
user212398 avatar
Clone VMWare VM to multiple VMs
ve flag

I use vCenter cluster of several ESXi servers, with VSAN storage. I need to setup multiple VMs from a single vm. Is there a way to clone one VM to multiple VMs via vCenter? is there a feature for that? If not - I would like to use a script, that will run the cloning according to parameters: source VM to clone, new vm name, destination folder, IP, and hostname. I saw some examples of scripts, but couldn' ...

Score: -1
marcelorodrigues avatar
Load average greater than number of CPUs
in flag

Why load average is greater than number of cores CPUs? But, htop command is not showing which process are using so much CPU load average.

current load average

htop command

Score: 0
xabikip avatar
Cant't acces to localhost mysql server. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
pk flag

I have inherited an ubuntu machine with mysql installed and I don't know how. My problem is that i can't access to mysql.

Here some info of my host:

cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launc ...
Score: 0
nfs uses LOTS of hidden disk space
in flag

I have a machine that exports /home to 2 others. Regularly the partition fills up but it's impossible to pinpoint what takes up size. Both du -x /home and ncdu -x /home show something like 56Gb use while df /home shows 100% of 250Gb use.

I've tried lsof -a +L1 /home to find still open deleted files but there were few. No runaway log files.

Finally doing systemctl restart nfs-server.service frees up a LOT ...

Score: 0
Abdusalam Ben Haj avatar
asp.net web api jwt token expiry on plesk server
co flag

I'm having an issue with my asp.net web api where the jwt token expires with no valid reason after few api requests.

this issue only occurs on production environment, it doesn't happen in my dev env nor in my local IIS. The hosting company tried increasing application pool working process to the max but the issue is still there. any ideas would be appreciated.

Score: -1
ragnar avatar
Transport layer port and firewall
in flag

When a communication is initiate the OS chooses randomly a port number greater than 1023. As long as it does not conflict with other ports in use on the system at that moment. I wonder how the firewall knows about this port? Or a firewall rule should always allow any port from the inside LAN?

Thanks.

Score: 0
Shiv shivay avatar
Sed issue!! i tried to trigger this command cat test.txt | gf xss | sed ‘s/=.*/=/’ | sed ‘s/URL: //’ | tee testxss.txt
de flag

i tried to trigger this command

cat test.txt | gf xss | sed ‘s/=.*/=/’ | sed ‘s/URL: //’ | tee testxss.txt 

but getting error as sed: -e expression #1, char 1: unknown command: ' sed: -e expression #1, char 1: unknown command: '

please help resolve this issue

Score: 1
George Cimpoies avatar
Do bans on AWS SES accounts extend to sibling accounts?
dz flag

I have a root account with 3 subaccounts on AWS. I am using AWS SES (Simple Email Service) on all 3 subaccounts.

If my subaccount gets banned from SES, will this ban extend to all my other sibling/parent accounts?

Context: I am setting up a new service which will use SES extensively and I would like to isolate this service in a separate child account (4th one), so that in the eventuality that I get ba ...

Score: 1
Why running second time ansible.windows.win_package isn't working?
uz flag

I have a product that I can install it first, then update it - meaning to add more feature to my base product

I do it by execute the MSI first time, then going to Add \ Remove Programs and when selecting the product, you can click "Change" and the Installation Wizard would shown up again, allowing you to select and install additional feature in the product

I created 2 ansible roles and playbooks for ...

Score: 0
Philip Scot avatar
What DDR3L PC4 means ( stands for )?
nf flag

I read a bit and found that DDR3L is a low voltage ram (1.3 something ) and on the most of the boards i am usually seeing DDR3L PC3.
But i stumble upon DDR3L PC4.
What this PC4 stands for?

Score: 0
Whip avatar
How to mask last 2 parts of an IP?
cn flag

This maybe a dumb question but I want to block all IPs in my firewall starting with 149.129.xx.xx. I'm not able to figure out what to enter in my firewall setting. The field asks me for IP/Netmask and by default sets it to /32.

So If I enter 149.129.0.0, it makes it 149.129.0.0/32. I know how to mask the last part of the IP using 149.129.47.0/24 but I can't understand how it works. What would be the e ...

Score: 0
$0.010 per GB - regional data transfer - in/out/between EC2 AZs or using elastic IPs or ELB
at flag

In my current AWS account, I have only one instance in Us-West -2. I do not have a ELB. The Elastic IP is in the same region. It does not specify any availability zone. but wrt RDS, this instance is connected to in a different availability zone of the same region and it also access few S3 buckets created in other region.. Is it why I am getting charged? any thoughts on this will be appreciated.

Score: 0
WebApp needs to send emails via Outlook.com mail account
kg flag

I have a web app running on a shared server account for the domain example.com. The web app needs to send the occasional email to the app adminstrator.

The domain example.com is using Outlook.com as the email server.

How can I either:

a) Configure the web app to send emails via an Outlook.com mail account (can you point me to the instructions/settings to configure this?), or

b) Configure the included mail ...

Score: 0
STACK_MIN avatar
Cannot Forward IP and portnumber to another IP address
us flag

I am trying to forward the packets to another internal IP address in AWS. (Linux).

My scenario is Gateway(EC2)(9.19.22.22) and two internal IP address (10.0.0.5) and (10.0.0.6).

The packet coming to to 10.0.0.5 on 10009 from 17.16.0.99 (all) to be forwarded to 10.0.0.6 on 10010 port number.

iptables -t nat -A PREROUTING -p tcp -s 17.16.0.99/32 --dport 10009 -j DNAT --to-destination 10.0.0.6:10010

 ...

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.