Latest Server related questions

Score: 0
Maxime avatar
Ansible blockinfile module - insert insert lines of code
cn flag

I try to insert lines of code (shell script) with Ansible blockinfile module.

name: Customized prompt
blockinfile:
path: /etc/profile.d/customized_prompt.sh
create: yes
block: |

#!/bin/bash

# customized prompt normal user and root

if (( "$(id -u)" == "1000" ))
then
    PS1="[\u@\H \w]$ "
elif (( "$(id -u)" == "0" ))
then
    PS1="[\u@\H \w]# "
fi

I have this Ansible error

[admin@srvansible /e ...
Score: 1
Possible to create a Virtual Machine in linux and specify IOPS?
cl flag

I would like to create a few VMs with different max IOPS - e.g. 100, 200 and 500 - for various bench-marking tests.

I have tried VMWare Workstation Player for Linux but it does not have options to configure this. I have also tried to get a free trial of VMWare vSphere ESXi but so far no luck with that.

Are there any easy/simple free alternative for linux where I can create multiple VMs with a specif ...

Score: 0
How do I resolve 400 bad request in Google Picker dialog in test application?
jm flag

I'm running into trouble with test users and the Picker component in my web applicaton.

My test users, but not myself are receiving a 400: The server cannot process the request because it is malformed when attempting to access the picker. Because I am not receiving the error message, I believe this must have something to do with the IAM.

  • I believe I've been able to eliminate managed browsers settings ...
Score: 1
run a script via cloud-init
gb flag

I know cloud-init allows to run commands as part of the cloud-init yml

runcmd:
 - [ pwd ]

but I am looking for a way to execute a full shell script.

Some people just pipe the output of a curl into a shell - but that feels like a very wonky approach. Maybe the script could be integrated into the yml via some templating, but that doesn't sound too great either.

Much better would be to ship the scri ...

Score: 0
Zak avatar
Apache Hangs for 20 mins ever few days
in flag
Zak

I am having a heck of a time figuring this out. Apache, every few days hangs for about 20 or so minutes and then "comes back to life". This has happened during the middle of the day, it's happened in the middle of the night. The server is a beefy web server with 4 CPUs 8GB RAM and another 12GB swap. I cannot see anything that stands out in the error logs. Can someone see anything in these logs to in ...

Score: 0
Where are these infrastructure entries coming from in AWS SAM?
lk flag

I'm learning SAM, and when I create a project on my computer, following sam init, I can deploy it and it shows up in AWS. When I create pretty much the same project in AWS, it creates some extra entries in "Infrastructure" section of the Lambda application. These do not appear when I do sam init and sam deploy:

enter image description here

The entries at the bottom of that screen, in the Infrastructure section, look essent ...

Score: 0
What's the AppId in the default AWS SAM template (when you create it from the website, not sam init)?
lk flag

I created a SAM application from the AWS website, which yield something slightly different as sam init and in the template.yml it has this:

Parameters:
  AppId:
    Type: String

When I try to deplay manually with sam deploy --guided it asks for the AppId. What is it supposed to be?

The only time it seems to be used is in the same template.yml:

Globals:
  Function:
    PermissionsBoundary: !Sub 'a ...
Score: -1
How to determine why a static external IP address changed in GCP?
ru flag
tom

I noticed that a static external IP address changed in GCP in our project. I'm trying to determine why and when, and i'm not finding any useful information in the google console.

Is there any way to view history of a external IP? Creation date, deletion date, etc?

Has anyone heard or experienced Google changing a static external IP address? If so, what were the circumstances?

Edit:

To clarify, yes this ...

Score: 0
Ubuntu 20.04 myslq-server-8 mysqld fails with any other than bind-address = 0.0.0.0
th flag

As per subject. I wanted to limit the servers listening to local lan in 192.168.1.0/29 by bind-address = 192.168.1.1,192.168.1.2,192.168.1.3

but this always leads to

"Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"

As I understood, one should be able to limit the accepted addresses by a list?

Score: 0
moddayjob avatar
Set up nginx successfully on Ubuntu server on vultr but can't see nginx welcome page on browser
cn flag

I have followed step by step this article (https://coderrocketfuel.com/article/how-to-set-up-nginx-on-a-ubuntu-server-with-vultr) to set up an instance on Vultr and everything went smoothly and fine but at the end of the second step, where the articles says "visit http://server_domain_or_IP" and you should see the nginx welcome page, I go to http://my_server_ip_address, and I always get "The connectio ...

Score: 1
Allowing untrusted clients read-only replication of public data in a redis instance?
id flag

I've got a database of publicly auditable votes, updated in real time in a redis instance. Nothing else is in that redis instance. It has been separated from related data in a second redis instance. Although I can expose it to the internet with the bind directive, AFAIK that won't work since there is no way to permit write operations based on the source IP being localhost without also permitting ...

Score: 0
che yang avatar
why bind mount(shared mode) doesn't work for fuse client?
de flag
  1. Create juicefs Network mount(like NFS mount) in host machine
juicefs mount -d redis://10.111.100.91:6379/0 /mnt/jfs-mount
2021/12/10 20:05:25.914969 juicefs[33027] <INFO>: Meta address: redis://10.111.100.91:6379/0
2021/12/10 20:05:25.916720 juicefs[33027] <WARNING>: AOF is not enabled, you may lose data if Redis is not shutdown properly.
2021/12/10 20:05:25.917140 juicefs[33027] &lt ...
Score: 0
hendr1x avatar
Nginx won't serve images with proper headers (example + conf provided)
ec flag

Here is an example of an image that is being served incorrectly :

https://www.questionhosting.com/product/temp.jpg

here is my config

server {
    listen   80;
    listen   443 ssl;
    listen   [::]:80 default ipv6only=on;
    listen   [::]:443 ssl ipv6only=on;

    server_name questionhosting.com;
    ssl_certificate     /etc/nginx/ssl/ssl.crt;
    ssl_certificate_key /etc/nginx/ssl/ssl.key;
    ss ...
Score: 0
How to identify slot for faulty GPU card in server using UBUNTU OS commands?
fr flag

I have a question. Is it possible to identify in which slot there is a broken GPU card using the UBUNTU operating system? We have a SuperMicro GPU server in which there are about 8 GPU cards for AI computing. Every now and then we go to the server room after we get information from users/department that the card is not visible in 'nvidia-smi' command. These are generally hardware failures. Then we encou ...

Score: 0
mt42 avatar
ISC-DHCP and BIND 9 DNS: DDNS update fails for /27 subnet
ph flag

I have a problem with DDNS update with ISC-DHCP server.

My /etc/dhcp/dhcpd.conf subnet section that doesn't work is:

subnet 193.198.186.192 netmask 255.255.255.224 {
  range 193.198.186.200 193.198.186.222; # MT 20211210
  option subnet-mask 255.255.255.224;
  option domain-name-servers 161.53.235.3, 161.53.2.70;
  option domain-name "slava.alu.hr";
  ddns-domainname "slava.alu.hr";
  zone slava.alu.h ...
Score: 0
Route only some traffic through different VPNs
ve flag

In my work, I have quite a few different external networks that I need to access from time to time via VPN. Generally I need to connect to somebody else's managed network to access their Building Management System (BMS) so I am at the mercy of however they set up their network access - this usually involves juggling various assigned logins and having to re-enter the credentials everywhere I go. More ann ...

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.