Latest Server related questions

Score: 0
Ansible with_items not looping
cn flag

I think I've been at this too long, but I cannot for the life of figure out why my second with_items is not looping like my first. I already tried using a json_query like in the first task, which did not help.

Task:

- name: Set backing_lunuuid
  set_fact:
    backing_lunuuid: "{{ item | json_query('guest_disk_info.*.backing_lunuuid') }}" 
  with_items: " {{ rdm_jsondata.results }}" 

- debug:
    msg: " ...
Score: 1
vpseg avatar
What is the proper way to back up ISC DHCPd lease files?
ma flag

According to this answer, DHCPd lease files are cleared every hour. The goal is to back up the leases file continuously, so there is never a lease lost. This is made difficult since it is unclear whether the hour timer is based on system time (eg the file is rewritten at 1am, 2am, 3am etc) or process time (service_start + 1h, service_start + 2h, etc). Say the leases file is cleared at exactly 3am, and a ...

Score: 1
rumplesmyboy avatar
Adding a machine to a domain fails with internal error
ng flag

I've enabled winrm, disabled firewall, enable remoting, GPOs for winrm, enabled SMBv1 and completed updates first as troubleshooting but I still get the error. I can ping the DC as well.

The error I get is:

Add-Computer: Computer "server2019' failed to join domain 'dev.domain.com' from its current workgroup 'WORKGROUP' with following error message: An internal error occurred.
At line:1 char:1
Add-Comp ...
Score: 0
ZZ Wave avatar
asterisk - what's difference between format_* and codec_*?
cn flag

When building Asterisk, there is two different entities related to audio formats - formats and codecs. What's difference?

For example, I need a support only for alaw+ulaw+g.729 on voice traffic itself, and only plain wav + mp3 for announces and other sounds played to subscribers. What modules should I enable?

Thanks.

Score: 0
Dinesh Kumar avatar
Geting UNIX Timestamp while logging history
ar flag

I am running below bash script which is saving the history in a file, however it is logging the history with Unix epoch timestamp. I need the timestamp in human readable format.


_who_am_i=$(who am i|awk '{print $1}')
_ID=$(id -u $_who_am_i)
if [ "$_ID" > 0 ]
then
export HISTSIZE=10000
export HISTTIMEFORMAT="%F %T "
export HISTFILE=/var/log/users_historylogs/history-users-$(who am i | awk '{prin ...
Score: 0
AWS CloudFront error 502 connecting to EC2 host
cn flag

Community

I have a web page served by Apache running on a EC2 AWS instance. I am using AWS Certificate Manager with CloudFront to manage SSL/TLS in order to access the web page using HTTPS

My environment:

Domain: some.com.do

AWS Certificate Alternate domain names: some.com.do, www.some.com.do

CloudFront Settings

Name: some.cloudfront.net

Domain names: some.com.do, www.some.com.do

Security policy: TLSv1.2_ ...

Score: 0
sdittmar avatar
No more xrdp access after latest upgrade on Debian Bookworm
in flag

On my server I run a recent installation of Debian testing (Bookworm, 5.16.0-6-amd64), which I upgraded today. After upgrading all packages I can no longer Win-RDP into the box. Sesman connects fine but the UNIX socket times out after a few minutes. Xrdp worked perfectly before the upgrade and firewall cannot be an issue and I have been using a single login.

Here are the two relevant portions in  ...

Score: 0
Starting a Google Kubernetes cluster
cn flag
  1. We had a GKE cluster running a functional project
  2. Then we sunseted the entire project -- by deleting it.
  3. Due to a need, we restored the project
  4. Now I'm trying to get the GKE cluster running again.

The first thing I tried was running kubectl get pods which returned Unable to connect to the server: dial tcp ***.***.***.***:443: i/o timeout (I masked the ip with *)

Then I tried to open up the cloud shel ...

Score: 0
Windscale avatar
Environment variables in systemd ExecStart, ExecStop clauses not working as expected
us flag

I'm working on some unit files for some systemd services. The path prefix to some of my binaries is quite long and they are used several times in ExecStart=, ExecStartPost=, and ExecStop= clauses.

I have some environment variables defined (which also need to be passed to the service) e.g:

Environment=ORACLE_HOME=/u01/app/oracle/product/19/db_1

I believe, from the "Command lines" section in systemd.s ...

Score: 0
Ubuntu 21.10 ulimit (open file descriptors) not applying correctly
kr flag

The situation is strange because I have 2 identical servers with the same application but

on one server i get a ulimit error from the custom application ulimit error: too many open files but on the other it is working as expected.

I really ensured the config is the same but I cannot figure it out why this is doing it.

FACTS

/etc/systemd/system.conf DefaultLimitNOFILE=100000000:100000000

/etc/systemd ...

Score: 0
Алексей avatar
Quorum at Scylla. DR orchestrator
de flag

I have a strech cluster with Scylla for 2 data centers with a balancer. The principle of operation is Every_Quirum. (After reading the documentation, I came to the conclusion that all DPCs should work)

When the connection between data centers is broken: when I writing to Scylla there are errors, that the required quorum level cannot be obtained.

Is there any way to remove a fallen data center from t ...

Score: 0
celcin avatar
Why nginx is not reaching file in azure blob storage?
eg flag

Here is the minimal reproducible sample

configmap.yaml

apiVersion: v1
kind: ConfigMap 
metadata: 
  name: nginx-conf 
data: 
default: |     
  server {
       server_name myserver.com;
       location /read/ {
       proxy_pass https://myaccount.blob.core.windows.net/mycontainer/file.txt;
       }
     }

In my deployment file, I am mounting the configmap as volume as:

  containers:
    - name: nginx ...
Score: 0
Windows2016 Access 32bit counters
ma flag

We have a custom monitoring tool (.Net framework) that accesses custom performance counters.

The custom counters are from a 32bit application running via wow64 on 64bit machines.

in windows2012 we just run the monitoring tool as 32bit and it access the counters with no problem.

On windows2016 something appears to have changes. we can no longer access the customer counters when both the monitoring tool  ...

Score: -4
guettli avatar
Shortcut for: | less [ENTER]
cn flag

I often type | less [ENTER].

I would like to optimize this.

Environment: Ubuntu 20.04

This needs to work for terminals running in the browser, too.

Any idea how I could enter above string with less effort?

It would be super cool, if the CapsLock key could be used for this, since I don't need this key (and it is easy to access with the ten finger touch-typing-system).

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.