Latest Server related questions

Score: 0
jasonshu avatar
Failed to stop kdm.service: Unit kdm.service not loaded
th flag

I am following this guide to install NVIDIA Driver. I have installed dkms by sudo yum install dkms and here is the version info.

$ yum -v list dkms
$ dkms.noarch                                    3.0.2-1.el7                                    @epel

After reboot my computer and stop gdm by sudo systemctl stop gdm. It has an error as the following

Failed to stop gdm.service: Unit gdm.service not lo ...
Score: 0
postfix multiple domain relay host
in flag

I'm failing at getting postfix to handle relaying for multiple domains.

The situation:

I'm trying to set up a mail relay for multiple entities each with multiple domains.

Mails from any given entity to itself should be relayed to that entitys local MS Exchange server, all other mail should be relayed via an external mail server.

What I've tried:

master.cf:
    localhost:6127  inet n - y - - smtpd ...
Score: 0
cr001 avatar
When using Cloud Platform, is it good to have separate load balancing for HTTP and socket-based connections or share the same IP address?
tr flag

For the sake of simple discussion, one can assume the "Cloud Platform" I talk about refer to Google Cloud or Amazon WS.

Currently I have a web server that mainly handles HTTP requests. However there will be real-time features (for example a live chat or video streaming) as well and those features are handled via socket-based connections in another server.

To clarify, actually the case is a bit more  ...

Score: 0
Heikki Tukiainen avatar
Apache - SSH output filter failed
us flag

Description of issue

My Apache starts processess and each of them takes 100%. Eventually mysql might crach or apache process is terminated with below error message.

CPU load behaves this way

Apache starts to cumulate

Swapping starts and then its downhill

Load increase / process hang is random, but currently very frequent. It lasts around 30secs and then might resolve by itself or not. When multiple proces ...

Score: 0
Tan Viet avatar
How to correctly use file content with virtual path using Nginx?
in flag

I have an AngularJs app (v1) that is built as a Docker image (with Nginx as webserver). It has below structure

-app
  --build
    --js
      |-app.min.js
      |-login.min.js
    --styles
      |-app.min.css
      |-login.min.css
  --assets
    --images
    --fonts
  --index.html
  --login.html

I have the following nginx config

server {
  listen 80;
  error_log  /var/log/nginx/error.log;
  access_lo ...
Score: 0
Arnaud Songa-Côté avatar
Unable to resolve private dns zone over vpn with bind9 DNS
ca flag

The Problem

I have a VPC in which I need to access the servers using private FQDNs. The VPC is accessible through a wireguard VPN. The VPN server also serves as a DNS server running BIND9. I have set the DNS server with a private zone according to this tutorial. From inside the VPC, the DNS works as expected and I am able to reach the servers by the FQDNs defined in the DNS zone.

When connecting to the ...

Score: 0
CentOS 8 / Red Hat / Rocky Linux - Blinking Cursor After Grub Menu - SAS RAID
in flag
OwN

Anyone have a solution for this slow boot:

https://forums.centos.org/viewtopic.php?f=54&t=73569

Essentially:

When I boot, my box posts fine, the Grub boot menu comes up, I select the first option, then my screen goes black, I get a blinking - in the upper left corner and my hard drive light comes on solid, for about 20 seconds. Then, my hard drive light stats flashing and the box boots like normal ...
Score: 1
Eric Gumba avatar
Still confused why docker works when you make a process listen to 0.0.0.0 but not 127.0.0.1
ve flag
const hostname = '0.0.0.0'; // << This is where I'm confused
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});

When I dockerize this app and run it in a container ...

Score: 1
dranobob avatar
Can you use a proxy server to retrieve a kickstart file?
in flag

I would like to access a kickstart file through a proxy. The kickstart file is hosted on the public internet but the server doing the install can only access the internet through a proxy.


The following works when the kickstart file is available locally:

The sample grub.cfg in tftp that works:

menuentry 'Install CentOS Stream 8' {
    linuxefi centos-st8/vmlinuz ip=dhcp inst.ks="http://localhost/cen ...
Score: 0
serveraddict avatar
What's the best means to clone the root linux hard drive to a new drive?
za flag

I bought a new enterprise grade SSD to replace my Samsung SSD. It was $500, not cheap. Anyway, the purpose is to have a more reliable and longer-lasting root hard drive, since a non-enterprise drive is effectively a ticking time bomb.

My system is CentOS 7 x64. My server is a dedicated server (not a virtual machine or VPS).

My server is live. It would take more time than I have to set up a new drive ...

Score: 1
cyanat avatar
Wireguard on Alpine: automatically mount wg0 after boot
us flag

I have a wireguard installed on a Alpine server. It's working, but when I reboot the server, I'm obliged to manually execute wg-quick up wg0

wireguard:~# wg show
wireguard:~# wg-quick up wg0
[#]
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.6.6.1/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] ip -6 route add fd9f:6666::1/128 dev wg0
[#] iptables -A FO ...
Score: 0
Catfoxes avatar
UDP Broadcast not being masqueraded
in flag

I have a VM in Proxmox with an IP (192.168.1.10) coming from a bridge. I have masquerading on to enable it to communicate with my network:

-A POSTROUTING -s 192.168.1.0/24 -o host_inteface -j MASQUERADE

It works great except with this kind of packet:

WOL packets (UDP port 9) on 192.168.0.255

When using termshark I don't see those packets on the host interface, they seem to have disappeared. I see ...

Score: 0
anghenfil avatar
Nextcloud on apache behind nginx reverse proxy returns 404 on index.php redirects
ph flag

I'm having issues with an nextcloud instance running on apache (+php-fpm) as a docker container and my nginx reverse proxy.

When I open the Nextcloud URL nginx proxies the request to apache and apache redirect me to /index.php/login. However, for some reason, nginx returns an 404 for /index.php/login.

This is my nginx log:

172.19.0.0 - - [29/Nov/2021:22:32:01 +0000] "GET / HTTP/1.1" 302 0 "-" "Some UA-St ...
Score: 0
Docker - Bad Gateway when attempting to proxy nginx container to laravel php-fpm container
cn flag

I'm trying to work out whats causing a 502.

I have a simple application with two containers:

web - running nginx, with a proxy to app: fastcgi_pass app:9000;

app - running php-fpm. I'm not sure how I can pass requests from web but on app/locally if I run php artisan up I get a response of Application is already up.

I can also ping app from web apt-get update && apt-get install iputils-ping -y  ...

Score: 0
How to add ipvs rule to nftables?
gb flag

I want to do the equivalent of

iptables -t nat -A POSTROUTING -m ipvs --vaddr 1.2.3.4 -j MASQUERADE

in nftables. The nftables wiki says ipvs is supported, but

add rule ip nat POSTROUTING ipvs vaddr 1.2.3.4 masquerade

does not work. All other variations I have tried do not work either... When I add the rule using iptables and list all rules using nft, I get

vaddr 1.2.3.4 counter packets 0 bytes 0 ma ...
Score: 0
pixelearth avatar
Can I mount an AWS EFS belonging to one AWS account on an EC2 instance belonging to another account?
cn flag

We have a server hosted with Engine Yard (which uses EC2 behind the scenes).

We'd like to start a EFS that we own directly. Is it possible to mount this EFS on our engineyard server (they will help)? Their EC2 instance is in a separate VPC, obviously. Is there some kind of way to grant access to it from our EFS?

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.