Latest Server related questions

Score: 0
Ejabberd - push not working for MucSub
cn flag

everybody, I and can't find any clue how to make PUSH notifications working for MucSub rooms. This is really painful with clients on iOS which hibernates any app while locked. I tried Siskin and Monal, both with similar behavior - pushes are working for one-to-one chats (mostly reliably), but not for MUC (all rooms are MucSub).

I'm running Ejabberd 21.07 on Ubuntu 20.04 using mariadb. This is muc ...

Score: 0
holden321 avatar
cron/php how to run command as a non root user
in flag

I need to run command (only one command) as a non root user from cron.

Have tried two versions and both fails;

Cron:

* * * * * php script.php

script.php:

exec("whoami"); // returns 'root'
// version 1
exec("runuser -u www-data -- ls"); // error -> sh: 1: runuser: not found
// version 2
exec("su www-data -c 'ls'"); // error -> This account is currently not available.
Score: 1
jim7475 avatar
auditd killing a server?
br flag

In /var/log/kernellog we can see many entries for audit (since we have "space_left_action = SYSLOG" and "write_logs = no"):

...
audit: audit_backlog=32769 > audit_backlog_limit=32768
audit: audit_lost=1 audit_rate_limit=0 audit_backlog_limit=32768
audit: backlog limit exceeded
...

The Question: Could it be that a server crashes/stops if it cannot process the too much audit infos? FS holding kernellog  ...

Score: 0
Sarath S avatar
gnutls_handshake() failed: An unexpected TLS packet was received
dk flag

I am facing this issue when triggering curl to a target application hosted in ubuntu 20.

curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received,Below is the curl version in source.

curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3

Interstingly when i trigger curl from another machine where curl version is different,its working

Working cu ...

Score: 0
Can log any user to mysql database
tr flag

I have mysql database 'politechnika_new' and user 'politechnika' with all privilages for this daabase, and host set as %, but I can't login to this database with this user.

How Can i fix it?

root@ubuntu:/var/www/html/politechnika# mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 8.0.27-0ubuntu0.20.04.1 (Ubuntu)

Copyright (c) 2000, 2021 ...
Score: 0
Windows 10 Password Reset Notification
kr flag

I have a strange issue with one of my end users. The issue is that the Windows Notification for Password Reset pops up for a certain user, daily. The end-user has reset their password via the notification link to office.com and I have reset their password via Azure AD and the Office 365 Admin centre. The user's account isn't showing that the password has expired in either Azure AD or O365AC.
The  ...
Score: 2
aks avatar
Contents in Kubernetes pod gets empty when persistent volume is mounted
us flag
aks

persistent volume claim and persistent volume yaml file

apiVersion: v1
kind: PersistentVolume
metadata:
  name: my-volume
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/mnt/datatypo"


---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-claim
spec:
  storageClassName: manual
  volum ...
Score: 0
Linux Sendmail use another DNS Server restart err
it flag

but when i use DNS Server local DNS Server it can wroking ,only use another DNS Server can't work

NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address daemon MTA: problem creating SMTP socket

Score: 0
BTRFS resize - free space not available to use
in flag

I'm trying to shrink BTRFS partition and create new EXT4 partition with that free space.

I did btrfs filesystem resize -5g /

Now I have this (notice Device slack equals what I shrinked):

orangepiplus2e:~:# btrfs device usage /
/dev/mmcblk2p2, ID: 1
   Device size:            14.15GiB
   Device slack:            5.00GiB
   Data,single:             7.66GiB
   Metadata,single:       768.00MiB
   System,s ...
Score: 1
What happens when there's no custom chain to jump in a table in iptables?
us flag

I'm looking into how iptables work in Kubernetes for packets from a pod to a service. For the outbound, it goes through OUTPUT chain first(nat then filter in my case). Part of the iptables-save result is like:

# Generated by iptables-save v1.4.21 on 
*nat
-A KUBE-SERVICES ...
# other rules in nat table

*filter
:OUTPUT ACCEPT [9:1136]
:KUBE-FIREWALL - [0:0]   # it seems there's no failures
:KUBE-SERVICES  ...
Score: 0
atftpd service start and removal error
id flag

I am facing error while doing apt --fix-broken install I searched on google but no luck.

After this operation, 5,120 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 487600 files and directories currently installed.)
Preparing to unpack .../atftpd_0.7.git20210915-3_amd64.deb ...
Failed to stop atftpd.service: Failed to activate ser ...
Score: 0
SSL certificate is not valid when the server is connecting itself
in flag

I have a local network where the [server] server's ip address is: 192.168.88.201, host: local.mydomain.com. This server is Ubuntu 18.04.6 LTS running Apache+PHP. Also this server has Let's encrypt SSL installed using certbot.

When using another computer on the local network the SSL works fine accessing https://local.mydomain.com -> Chrome shows that certification is valid.

The problem comes wh ...

Score: 0
Dennis avatar
OpenVPN TLS Shake Error on IP Change. Advise Please
kr flag

I'll try to be concise.

My Linux Debian VPS host changed IP addresses. This is how they did it. Quote, "we simply changed the IP for your VPS container. On reboot, the OS you have running in your container (Linux) sees the new IP and takes it as its own." Unquote

I thought there was nothing to worry about as all the other services moved easily, SSH and everything else works fine when I connect via both IP ...

Score: 1
Using expect to automate Alpine Linux installation in FreeBSD in Bhyve
mx flag

I am attempting to automate installation of Alpine Linux in vm-bhyve under FreeBSD and expect dies shortly after the boot menu times out and launches the Alpine Linux installation.

#!/usr/bin/env expect
spawn vm install -f alpine alpine.iso # shortened for brevity
expect "localhost login:"
send "root\r"
...

This results in the following error:

"while executing
"send "root\r"

I suspect that whenever  ...

Score: 2
How to map a location to a path in NGINX
vn flag

I have an nginx setup where I need to map specific url paths to server paths. For example I need example.test/myapp/ to go to the following directory in the server: /apps/myapp/web

I tried adding the following location block:

location /myapp/
{
    root /apps/myapp/web;
}

but if I go to example.test/myapp/ or example.test/myapp I get a 404.

As far as I can tell according to the docs this location should ...

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.