Latest Server related questions

Score: 0
Rikisorsa112 avatar
fstab wrong uuid and server in emergency mode
tw flag

I copied from an old server setup to fstab (unsure now why I did so), and with it I overwrote the correct uuid. When I rebooted the server it started in emergency mode and I suspect the reason is that I have wrong specs in fstab.

How can I modify the correct uuid into fstab while its unwritable? With blkid I get the correct uuid and it's found in fstab but commented out.

tried running

mount -o remou ...
Score: 1
akarX_123 avatar
libvirt virsh not using a predefined target while attaching interface
td flag

I am trying to automate the process of creating a Guest VM. I am using uvt-kvm to create the VM. I am also taking a network type as a parameter. This can be either nat or macvtap.

Now in the script I create the macvtap interface using these steps:

MACVTAP_INTERFACE="macvtap$VM_NAME"
ip link add link eno1 name $MACVTAP_INTERFACE type macvtap mode bridge
ip link set $MACVTAP_INTERFACE up
ip addr add  ...
Score: 0
Toon Spin avatar
Varnish 6 bans_persisted_bytes ballooning, but memory usage is fine
cn flag

In a Varnish 6 server I'm responsible for, there are short bursts of very many bans. These are the result of an application I am not able to modify. This has caused RAM usage to very quickly balloon out of control, but I have been able to fix that by setting ban_cutoff to 100. That seems to be doing the trick very well. RAM usage is now very much under control.

However, bans_persisted_bytes still gro ...

Score: 0
Nick Lauder avatar
Firewalld apply port redirection from rootless Podman containers to host
ph flag

Is there a way to redirect ports for traffic that originates from the host or a Podman container and is destined for the host or another Podman container using Firewalld?

My use case: I am hosting a DNS server and a reverse proxy through rootless Podman containers with the port mappings 5353:53 for DNS and 1443:443 for the reverse proxy (higher port numbers have been used to avoid having to remov ...

Score: 1
Robert avatar
PowerShell script to write a printer name
mn flag

I have a PowerShell script. This:

Get-Printer | ft name,portname,location | Export-Csv c:\intel\intvprint2.csv -NoTypeInformation

But it isn't any good :( I made the script, but the result is file error data.

This it makes:

"ClassId2e4f51ef21dd47e99d3c952918aff9cd","pageHeaderEntry","pageFooterEntry","autosizeInfo","shapeInfo","groupingEntry"
"033ecb2bc07a4d43b5ef94ed5a35d280",,,,"Microsoft.PowerShell ...
Score: 0
Mohammed Alkilani avatar
df -h --total command showing wrong total disk size
om flag

I have 512GB attached to my linux centos 7.9 server I'm trying to know how much total disk size used from overall disk size from inside the server

I tried to use df -h --total command to show the total disk and used percentage but it shows 224GB total disk size and 13% used which is wrong because

In Azure monitoring it's showing 76% from the space used can anyone help with that ?

I tried many commands  ...

Score: 0
Newskooler avatar
How to monitor systemd?
it flag

I am looking for a way to monitor systemd services: Basic things such as whether they are running or not is a good start (and anything else on top is a bonus).

I tried using node_exporter, but since I am running all my services rootless (systemctl --user) I don't see them being captured.

My question is: How can I monitor the state of all my systemd services with the note that I am running my systemd ...

Score: 1
dns_nx avatar
Apache 2.4 on Windows Server 2022 - Always getting Error 500
cn flag

I hope, this is the right place for my question. First I need to say, I am pretty much a beginner in Apache web server. I already had some experience with Apache. But these are already 15 years and more back. I'm trying setting up a Windows 2022 Server with Apache 2.4. I want to use PHP on this server. The problem I actually have is, that the Apache web server is always returning Error 500:

Internal Ser ...

Score: 0
user1506145 avatar
Making two ssh port-forwarding connections in one "go"
bh flag

I have two servers, A and B. I'm connecting to B jumping trough A with ProxyJump, my sshconfig looks something like this:

Host A
...

Host B
...
ProxyJump A

I have applications running on A and B, and I'm doing port-forwarding to my localhost, like this:

ssh A -NL 8888:node:8888 ssh B -NL 9999:node:9999

The problem is that every time I'm connecting to A it requires 2FA. Is there some way I can do thes ...

Score: 0
JM John avatar
Server doesn't respond to If-Modified-Since
mz flag

I get the following error on a Drupal & site running on PHP-FPM/NGINX set up.

Server returned the last modification time, but did not respond to If-Modified-Since.

So basically Nginx is responding with 200, when it should be responding with 304.

Output from the curl -

curl -I -H "If-Modified-Since: Mon, 06 Feb 2023 06:31:44 GMT" -X GET

https://www.example.com HTTP/2 200 server: nginx date: Mo ...

Score: 0
Vicky Ingle - Mint avatar
ansible logrotate issues with postrorate script
sj flag

Below is my ansible role > defaults/main.yaml

    $cat roles/logrotate/defaults/main.yml
    
      logrotate_conf_dir: "/etc/logrotate.d/"
      logrotate_scripts:
        - name: test
          log_dir: '/var/log/test'
          log_extension: 'log'
          options:
            - rotate 7
            - weekly
            - size 10M
            - missingok
            - compress
            -  ...
Score: 0
mlclm avatar
Apache2 SSL certificate error when other website site is enabled , server not picking up the right certification or configuration
jp flag

I have 2 SSL configuration files for 2 sites. Both SSL are covering www and non-www versions of the sites.

The first SSL one works for SiteA. As soon as I enabled Site B, it looks like my server uses the certificate for Site A and therefore says it is invalid and an insecure connexion,etc.

Below is the config file of site a :

<VirtualHost *:80>
    ServerName site-a.com
    Redirect permanent / htt ...
Score: 0
What is the equivalent to "sudo apt autoremove" in CentOS?
jp flag

I read this but there's no apt command in CentOS. So, how can I remove unused packages in CentOS?

Score: 0
Furqan Ahmed avatar
Trying to connect a CentOS 7 linux machine on googe cloud to a pptp server
dk flag

Yes, I know that its an old and deprecated and unsecure and whatever protocol. I still have to connect to it because its a third party server that I am trying to connect to. I managed to connect an instance of centos7 on aws to the server using instructions on here: https://zlthinker.github.io/Setup-VPN-on-CentOS

But I have been unable to do the same on google cloud machine I can follow all the steps w ...

Score: 0
Is it safe to delete folders/files under run/log/journal (not var/log/journal)?
jp flag

I'm running CentOS in EC2 and I saw this post but my path is run/log/journal and not var/log/journal. And there're two folders under journal - e76430a3b6eb....d3d1dc73 and b30d0f2110ac....3ce88f

So, it is safe to delete the files/folders under my run/log/journal?

UPDATE: I'm running out of disk space.

Score: 1
Sandeep avatar
netbooting CentOS via PXE and UEFI : unable to mount root over nfs -- failed to switch root path /sysroot
id flag

Last weekend, I went down the rabbit hole of trying to netboot rockylinux on raspberry pi 4.

I was able make it work as far as being able to boot the kernel. But I fail to properly nfs mount root. I get the error: Failed to switch root path /sysroot ... does not seem to on os-tree. os-release file missing.

My NFS server is rockylinux VM. I have disabled the firewall and made the root filesystem rea ...

Score: 1
surfrock66 avatar
Cannot initialize openLDAP-backed kerberos realm using krb5_ldap_util with startTLS?
cn flag

I have set up an openLDAP backed MIT Kerberos realm on a server after much iteration, and I am now trying to move it to its own server. When I first set it up on the original server, I created a local realm, then moved it to one backed by openLDAP which was installed on the same server.

On the new server, I've set up openldap and populated it, including setting up startTLS. I have validated the ...

Score: 0
sx5486510 avatar
iptables fwmark does't work,always route from default table
gn flag

The mangle table:

Chain OUTPUT (policy ACCEPT 9427K packets, 26G bytes)
 pkts bytes target     prot opt in     out     source               destination          
  19M   48G CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK restore mask 0xff00000
 7717  435K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00000 stat ...
Score: 1
user1531083 avatar
Rootless docker fails with `systemd error: Interactive authentication required`
ao flag

I followed the guide on https://docs.docker.com/engine/security/rootless/ for running Docker on a Debian (testing) machine. After stumbling across some paths that are apparently not configured correctly in Debian (solved by sudo ln -s /usr/share/docker.io/contrib/dockerd-rootless* /usr/bin/), it seemed to work:

$ dockerd-rootless-setuptool.sh install
[INFO] Creating /home/tobias/.config/systemd/user ...
Score: 0
PouJa avatar
Why are my openvpn clients experiencing interruptions every now and then?
in flag

I have an openvpn server installed on my Ubuntu 20.04 VPS and a number of clients (let's say 50 clients who mostly are behind NAT) connect to it successfully and can browse the web.

I used this Angristan script to install openvpn on my VPS and didn't change anything in the server and even client configurations. They are:

/etc/openvpn/server.conf :

port 1194
proto tcp
dev tun
user nobody
group nogroup ...
Score: 0
jak123 avatar
Azure VPN fail to connect while working remotely
cn flag

My organization is using Azure VPN to connect to Azure VMs and environments. When I'm working from office or from the same country, the connection works fine. However, when I'm working overseas, the connection fails with error message:

Fail to connect to server. Connection dropped. Session state: Initial.

The logs show the following:

02/05/2023 21:56:39 Information Successfully Received AAD Crede ...
Score: -1
Mars avatar
How to allow VPN traffic to a Docker Container
io flag

I have the following:

                                            Docker Host (public IP 5.6.7.8)
(1) Client (IP 1.2.3.4) <--> (2) OpenVPN in a Container (public IP 5.6.7.8, port 1194)
                             (3) App in a Container (public IP 5.6.7.8, port 1234)

So, from my phone, I want to connect to my OpenVPN server as a client and after that, I want to connect to my app (e.g. Nextcloud) ...

Score: 0
JoelCrypto avatar
No internet from OpenVPN (IPV6)
th flag

I've searched over this and this but still, I don't achieve to access Internet from VPN clients. My VPN is giving a local IPV4 (10.8.x.x) IP that allows to access local infrastructure. It allows give an IPV6 public IP. However, I cannot access internet from this ip. My ISP gives me a /64 block for my VPN (which is different from the block I have for eth0, my ISP giving a whole /56 block), here is ...

Score: 0
Mr.Mmg avatar
forward open vpn traffic to another port
ng flag

I run a openvpn server with port 2030 on my server and run a ssh tunneling on port 2020. due to there is not authentication method for ssh tunnel (in fact it is a socks connection) I want to route openvpn traffic to ssh tunnel.

scenario: user connect to openvpn on phone so he is connected to port 2030, at this point I want to route / forward / traffic of openvpn (IP range 10.8.x.x) to my server 2 ...

Score: 0
Ben avatar
Why is existing RAID1 boot array not working in new PC
ng flag
Ben

This question maybe related to this: https://askubuntu.com/questions/1347710/disappeared-raid-1-array-after-replacing-motherboard

I created a software RAID1 array with 2 SSDs on an HP Z800 and configured it as my boot device. Everything worked. Recently I wanted to update the machine to a Z840, so I moved the drives over, disabled UEFI BIOS and tried to boot. Nada! BIOS complained that there wasn't a bo ...

Score: 0
thebjorn avatar
svn ci timing out with "Named transaction doesn't exist."
pf flag

Whenever I check a file into subversion it hangs for a long time (>30s) with Comitting transaction.... The commit seems to go through though since I can svn up it on other clients.

The log says Named transaction doesn't exist., but I'm not sure how to fix it...

I'm running subversion 1.13.0 on Apache (behind nginx) on Ubuntu: 20.04.5.

What the client sees:

bp@linuxdev:/srv/bin$ svn ci testfile.t ...
Score: 0
nEmai avatar
Predictable network interface names not showing up
ne flag

I seem to have the opposite problem of the internet. When you search for predictable network names not working all you find for the love of god is how to go back to wlan0, eth0 etc and disable it. I do have the opposite problem. I have a freshly installed Ubuntu 22.04 server on Raspberry 4 and it will not use predictable net names. In fact I have heavy problems with interfaces wlan0 and wlan1 randomly s ...

Score: 0
Seriy_A avatar
AD User logon script on custom server
tw flag

Is it possible to run user logon script stored on a specific machine in domain, without using GPO?
I tried to set logon script for AD user as \\machine.domain.local\share\script.bat or cmd /k \\machine.domain.local\share\script.bat but it doesn't work.
there are no sessions at fsmgmt on script-storage-machine when user log in
eventvwr checked - no related events

Score: 0
Scarnet avatar
OpenSSL Does not Create Subject Alternative Name (SAN)
ma flag

I have been trying to create a self-signed certificate with subject alternative name; however, although the cretifcate was created successfully, SAN was not added to its details.

Here's the command I used to create singing request.

openssl req -newkey rsa:2048 -nodes -sha256 -keyout server.key -out server.csr -config openssl-san.cnf

And here's the content of the configuration file.

[ req ]
default_b ...
Score: 0
Sawtaytoes avatar
How to NAT-route network to Tailscale?
cn flag

EDIT: I already spent 3 days going through different possible ways of handling this and settled on iptables. This is like the biggest-kept secret to me. No matter how much I read, I feel like I'm missing some critical information to doing something as simple as pre- and post-routing redirection.


I want to send 100% of the network traffic for PC-A in one location to PC-B in another location using ...

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.