Categories
Linux Mastering Development Ubuntu

LVM no more mounted at boot after upgrade to 20.04 “mpath* is duplicate for …”

I was using a setup using FCP-disks -> Multipath -> LVM not being mounted anymore after an upgrade from 18.04 to 20.04. I was seeing these errors at boot – I thought that is ok to sort out duplicates: May 28 09:00:43 s1lp05 lvm[746]: WARNING: Not using device /dev/sdd1 for PV q1KTMM-fkpM-Ewvm-T4qd-WgO8-hV79-qXpUpb. May 28 09:00:43 […]

Categories
Linux Mastering Development Ubuntu

Ubuntu 20.04 Startx Gnome Desktop only running with root

Startx does only work with Root user. A User with the same rights does not work. The same is valid for RDP connection via XRDP. This is only valid for gnome-desktop. If I use anoother desktop environment this problem does not show up. The error message makes no sense for me. Both files are owned […]

Categories
Linux Mastering Development

How to change linux scheduling policy for user systemd file?

I have a user level systemd service running, aka under ~/.config/systemd/user/ but I want to change scheduling policy for this service, in a self-contained way, that is, i want it set on boot, and I don’t want to have to do anything on the CLI by hand. but when I add these two directions under […]

Categories
Linux Mastering Development

Delete kernel, Debian does not start

Yesterday have attempts the editor AptanasStudio 3 to install on my Debian and because Debian Buster uses JDK 11 but AptanasStudio 3 needs JDK 8, I tried installing with adoptopenjdk,I add it in my source.list also have a big bug because in in source.list have to changed the debian repos.. then write sudo apt dist-upgrade […]

Categories
Mastering Development System & Network

Systemd starts unknown openvpn instances – how could I disable this?

this is my output by tail -f /var/log/syslog/. May 26 08:02:29 ovpn-server systemd[1]: openvpn-server@ovpn-42.service: Main process exited, code=exited, status=1/FAILURE May 26 08:02:29 ovpn-server systemd[1]: openvpn-server@ovpn-42.service: Failed with result ‘exit-code’. May 26 08:02:29 ovpn-server systemd[1]: Failed to start OpenVPN service for ovpn/42. But there are not a config file like ovpn-42.conf at /etc/openvpn/server/. How could I […]

Categories
Linux Mastering Development Ubuntu

How to ensure local filesystems are mounted before NFS server starts?

I have a simple Ubuntu 20.04 home server sharing a directory by NFS. The directory being shared is contained on a local filesystem, but not the root filesystem. Sometimes on boot the NFS server starts before the mount is ready, and so the NFS server errors out. I need to login and restart the NFS […]

Categories
Mastering Development System & Network

Apache Webserver no starting, please help, Newbie

I have centos 7 , and everything was working fine untill I restarted apachectl. And it gave me following error and not starting after this. Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details. Result for systemctl status httpd.service [root@server ~]# systemctl status […]

Categories
Linux Mastering Development Ubuntu

Systemd service stopped suddenly

We have a flask python application that runs normally on terminal without error. We converted it to systemd service(ubuntu), but the problem is that the service runs normally then stopped suddenly without any error. Os used is ubuntu desktop 18.04 This is a sample of what happened: ubuntu-MS-7A72 python[10026]: insert done ubuntu-MS-7A72 python[10026]: insert done […]

Categories
Linux Mastering Development Ubuntu

Apache doesn’t start after reinstallation

before you ask, yes I already searched for this problem and looked at the few other answeres but none of them helped. I reinstalled apache2 and now it always give me this message (after using “journalctl | tail”): Mai 21 19:12:13 v14268 sshd[23964]: Received disconnect from 212.73.136.72 port 43340:11: Bye Bye [preauth] Mai 21 19:12:13 […]

Categories
Mastering Development System & Network

Getting error trying to feed SSL passphrase to apache

I’ve got scripts which restart apache so I’ve been trying to find a way to restart apache without it asking for the ssl passphrase as this means it won’t restart in the script. The two solutions I can think of (without changing the cert) is either feed in the passphrase in the script (which I […]