Questions tagged [ubuntu-18.04]
Ubuntu 18.04, named "Bionic Beaver" is a Long Term Support release of Ubuntu Linux (released on April 26th, 2018). Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.
747
questions
25
votes
2
answers
74k
views
Load key "privkey.ppk" invalid format
What have I done:
I'm trying to connect to my remote server with private key with
ssh -i privkey.ppk root@ip
But it's returning an error.
Error message:
Load key "privkey.ppk": invalid format
root@...
20
votes
5
answers
119k
views
Nginx defaults to /usr/share/nginx/html
This was a dev site. Pushed to live environment was working as of my backup this morning.
System
Ubuntu 18.04
Nginx
PHP 7.2
MYSQL
Was working on removing TLSv1 form Certificate path. Removed it ...
19
votes
2
answers
4k
views
Why does the command 'apt install php' try to install Apache?
I'm trying to install WordPress + LEMP on my Ubuntu 18.04. I have no interest in installing Apache. Why does the PHP installer assume I do?
19
votes
2
answers
13k
views
Sudo directive in /etc/sudoers.d doesn't work (but it's fine if it's in /etc/sudoers)
I wish to add a file to the /etc/sudoers.d folder that includes a directive to allow www-data to run one specific script with no root password.
The directive is
www-data ALL=(ALL) NOPASSWD: /path/to/...
16
votes
2
answers
19k
views
How to Clear/Reset a Postfix Queue
I recently discovered that one of our Ubuntu servers was generating dozens of notification emails a minute and throttling the Office 365 relay account it was sharing with a handful of other servers. I ...
16
votes
2
answers
64k
views
Systemd: how to start service after another service started
I have these two services, one is Google start up script service and second one is redis service, I want to start redis service once the startup script service is started and done, I have these ...
12
votes
1
answer
11k
views
How to disable HSTS header in Apache 2.4? [closed]
I've set up a Vagrant box with Ubuntu 18.04 and installed Apache 2.4.29. I've created and enabled a new conf file that looks like this:
<VirtualHost *:80>
ServerName django.dev
...
11
votes
2
answers
22k
views
Find the used hard disk data and solve disk pressure [duplicate]
I have a server which is running Ubuntu 18.04 and it is also a worker node for K8s. Sometimes I see that K8s is killing pods on this machine because of disk presseur and when I get df -h --total I can ...
11
votes
2
answers
17k
views
Adding second network interface to Ubuntu 18.04 on AWS EC2
The provided 18.04 AMI comes with one interface, and I am adding a second one with its own IP (for stuntman-server). However the instance is only responding to one elastic IP or the other, not both (...
10
votes
1
answer
22k
views
How do I expand the root's volume size?
I have Ubuntu Server 18.04 LTS running off a 16GB SanDisk USB pendrive in my server. From what I can remember, when I installed Ubuntu on there I had enabled LVM support. For some reason, when I ssh ...
10
votes
3
answers
18k
views
What is the difference between default-ssl.conf and what is 000-default-le-ssl.conf?
default-ssl.conf is quite self-explanatory. I assume it's for default values that would be used when no vhost or other config overrides it.
But what exactly is 000-default-le-ssl.conf file? Why is it ...
9
votes
2
answers
7k
views
Wait before zpool import on Ubuntu boot
I have installed Ubuntu 18.04 on a Dell PowerEdge R720xd using ZFS. There are two 1TB boot drives in a ZFS mirror configuration. I followed the instructions in the ZFS on Linux Wiki.
(Note: My system ...
9
votes
4
answers
870
views
What caused a huge amount network traffic via SSH?
I have a virtual server running Ubuntu 18.04 from a well known hosting company. This morning our Fortigate Firewall logs shows that my Win10 computer transferred 3.5TB to and 6.5TB from my virtual ...
8
votes
1
answer
35k
views
Boot stuck at "A start job is running for Create Volatile Files and Directories"
I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/*. So I tried rebooting, but now my machine's stuck at the step:
...
8
votes
2
answers
29k
views
Ubuntu 18.04 doesn't load iptables rules after reboot
We provision servers with chef so we have same configuration for Ubuntu 16.04 and 18.04 versions.
And there is same rule for restoring iptables rules
cat /etc/network/if-pre-up.d/iptables_load
/...
8
votes
1
answer
12k
views
Unable to generate GPG keys without passphrase on Ubuntu 18.04 [closed]
Has anyone tried creating GPG keys for encrypted pillars on Ubuntu 18.04?
I'm using the following command to attempt to generate the keys:
gpg --gen-key --homedir /etc/salt/gpgkeys
When I run that ...
7
votes
3
answers
5k
views
Is it normal that one can access MySQL as root without entering password, although password is set?
I just installed MySQL (Ver 14.14 Distrib 5.7.22) on Ubuntu 18.04 and I discovered something weird:
I installed MySQL and used mysql_secure_installation to set a password for root, but as soon as I ...
7
votes
1
answer
31k
views
What services and ports are required for NFSv4?
I've been trying to find the definitive answer to this question, but I'm getting conflicting results due to various NFS versions out there.
I've configured NFSv4 by following https://help.ubuntu.com/...
7
votes
1
answer
371
views
Ubuntu 18.04 strange behaviour of date with --date option
I've found strange behaviour of date program in Ubuntu 18.04.
So, I consider date should work with --date option and correctly process +N minutes:
date --date "2019-01-01 13:43:32 +1 minutes" "+%Y-%...
7
votes
1
answer
15k
views
Every startup i need to manually run fsck /dev/mapper/ubuntu--vg-root
Hi every day when I start my ubuntu 18.04, then it's not starting and gives a below error.
(initramfs) exit
/dev/mapper/ubuntu--vg-root contains a file system with errors, check forced.
Inodes that ...
6
votes
2
answers
65k
views
openVPN Could not determine IPv4/IPv6 protocol. Using AF_INET
I am having issues connecting to my VPN, with port forwarding set correctly as I can VPN into my other lubuntu machine, also UFW is disabled. Can someone please guide my as to what I am missing in my ...
6
votes
1
answer
16k
views
What killed my tomcat service and how can I restart it automatically?
tomcat 9 with ubuntu 18.04. tomcat service status:
● tomcat.service - Tomcat 9 servlet container
Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: enabled)
Active: ...
6
votes
4
answers
12k
views
MariaDB 10.8.3 in Docker: can't initialize timers
This error happens even after clearing the Docker image cache:
$ docker run -it --rm mariadb:10.8.3
2022-06-15 11:28:14+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.3+maria~...
6
votes
2
answers
40k
views
How do I install a PFX certificate file into Ubuntu so Curl trusts it?
I'm running Ubuntu 18.04 on Windows Subsystem for Linux 2. I am making a curl request to a web service running on the Windows side using a self-signed certificate. I receive this error:
curl: (60) ...
6
votes
1
answer
3k
views
Replace systemd-machine-id-setup with alternative?
We're using a ubuntu-18.04 template on a virtualization environment. Therefore, before creating the template, we always empty the /etc/machine-id file so it's recreated upon the first boot.
The ...
6
votes
2
answers
16k
views
Https connection, TLS hangs and eventually fails SSL_ERROR_SYSCALL
I'm trying to correctly diagnose an issue where the server i have access to doesn't seem to be able to contact another server on the internet over port 443:
~$ curl https://mydomain.co.uk -vvv
* ...
6
votes
1
answer
1k
views
Docker 18.09 not talking IPv6 (on Ubuntu 18.04)
Brand new and fully patched Ubuntu 18.04 instance (on a Linode VPS) with Docker 18.09.0 (build 4d60db4) installed from the official Docker repo.
IPv4 networking is running fine, both between ...
6
votes
1
answer
3k
views
OpenVPN 2.4 + Google Authenticator = authentication failure
We have a corporate VPN server running OpenVPN 2.3 on an AWS instance with Ubuntu 16.04 Xenial. The server has been configured using an Ansible playbook.
I'm planning to upgrade to Ubuntu 18.04 ...
6
votes
1
answer
4k
views
Ubuntu 18.04.2 build of Tomcat 9 not writing to catalina.out, but in systemd status
So I'm having a problem with Tomcat 9 in Ubuntu 18.04.2. Tomcat 8 worked fine, it logged Java stack traces to /var/log/catalina.out fine. Tomcat 9 is unfortunately only logging GET and POST requests ...
6
votes
0
answers
2k
views
Ubuntu upgrade to 18.04 setrlimit, getrlimit & ssh_sandbox_child causing sshd to not work
I am performing a do-release-upgrade from a fresh install of Ubuntu 16.04 to 18.04 on a VM.
After the upgrade I could no longer access via port 22. Trying again I installed drop bear prior to ...
5
votes
3
answers
609
views
"Bad message" with a new SAN using multipath and iSCSI
I'm configuring a new SAN for a set of Ubuntu 18.04-based servers. Each of nodes can mount the ext4 formatted partition fine.
Being new to both multipath and iSCSI, I'm not sure if what I'm seeing is ...
5
votes
1
answer
2k
views
Will certbot actually renew my certificate?
Looking at /etc/cron.d/certbot, I don't think it will! That file includes the line:
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' ...
5
votes
1
answer
6k
views
Ubuntu Server with systemd - how to get a backtrace or coredump?
I'm using Ubuntu 18.04 Server with systemd. Recently a program my department has developed crashed twice within a day with the following error:
Jun 07 06:33:07 xxx systemd[1]: xxx.service: Main ...
5
votes
2
answers
3k
views
What are the correct dovecot file permissions for /etc/dovecot on Ubuntu 18.04?
I can't log in to my newly self-hosted webmail and I'm getting the following entries in /var/log/mail.log
Feb 10 02:00:31 ip-172-26-15-53 dovecot: lmtp([email protected]): Error: open(
/etc/...
5
votes
1
answer
888
views
Digital Ocean: "Failed to open serialization file readonly file system" Issue #Ubuntu
After applying an apt update + upgrade to my Ubuntu VM at Digital Ocean I started seeing the message in the title.
The Wisdom of Internet say's that this problem typically occur when the UUID in /...
5
votes
1
answer
2k
views
ZFS pool degraded on reboot
I have a Ubuntu server set up with a 14-disk ZFS raidz2 pool.
About 80% of the time, on reboot, I will end up with a degraded pool with two of the disks marked as faulted. The drives that are ...
5
votes
3
answers
14k
views
PHP 7.2.8 PDO Fails to Connect to MySQL 8.0.12 (GA) in AWS EC2 LEMP Stack
I'm testing a new LEMP webserver built with Ubuntu Server 18.04 LTS, NGINX 1.14, PHP 7.2.8, and MySQL 8.0.12. It is an AWS EC2 instance using the official Canonical AMI. Web and PHP work as intended ...
5
votes
1
answer
8k
views
How to create a service script for minecraft bedrock server on Ubuntu 18.04? [closed]
I've setup an Ubuntu 18.04 instance, to use as a private Minecraft Bedrock server.
I've downloaded the server itself from https://www.minecraft.net/en-us/download/server/bedrock/
I can run it ...
5
votes
1
answer
568
views
Unable to compress 18GB file on Ubuntu Linux 18.04
It never happened to me before, but I'm unable to do a simple task such as compressing a 18.5 GB file on Ubuntu Linux 18.04 with any of the popular compressing tools such as gzip, bzip2 and 7z. All of ...
5
votes
1
answer
13k
views
Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement
I am running this template in cloud formation to create auto scaling in ubuntu-18.04 machine and it will rollback the all instances automatically that is created by this template and giving such error ...
5
votes
1
answer
10k
views
Debugging DNS Resolution Issue in Kubernetes
I have built a Kubernetes cluster using Kubespray on Ubuntu 18.04 and facing DNS issue so basically containers cannot communicate through their hostnames.
Things that are working:
containers ...
5
votes
4
answers
18k
views
How can I route traffic over IPSec tunnel?
I have two sites: MAIN (local subnet 192.168.0.0/24, external IP: M.M.M.M) and CLIENT (10.0.0.0/24, external IP: C.C.C.C). I created an IPSec tunnel between the sites and both sites can ping computers ...
5
votes
2
answers
3k
views
Adding a whole IPv6 /64 block to a server using Netplan
I have read Adding a whole IPv6 /64 block to an network interface on debian
We want to make use of the AnyIP feature to add a whole IPv6 /64 subnet block to a web hosting server but using Netplan ...
5
votes
0
answers
2k
views
list directory is slow when using NFSv4
I'm currently setting up NFS based file sharing between my Mac client (Macos 10.14.1) and Raspberry Pi3 server (U16.04.1 LTS). As I dual-boot my Mac (MacOS/Ubuntu18) I want to use my Pi with NFS (I ...
4
votes
1
answer
5k
views
OpenDKIM ignoring hostnames and domains in trusted hosts file
According to http://opendkim.org/opendkim.conf.5.html, the ExternalIgnoredHosts and InternalHosts options support the same format as the PeerList option as follows:
The set should contain on each ...
4
votes
2
answers
13k
views
Cannot ssh or ping hostname, but dig and nslookup work on Ubuntu 18.04
I updated my kernel this weekend, and now I'm using 5.3.1.
christopher@HAL4:~$ uname -r
5.3.1-050301-generic
I need to login to servers, but I cannot do so by hostname any longer. For example, I ...
4
votes
2
answers
13k
views
How do I add certificates to Kubernetes to allow images to be pulled from a custom Harbor repository?
I am finding all sorts of walkthroughs on how to add certificates to be used in the pods themselves, but I can't seem to find info on how to setup Kubernetes to allow a self-signed cert for pulling ...
4
votes
1
answer
1k
views
How to take backup of Windows server in Linux Server
we are using a Windows server as the main server in our organization. Now we need to take the backup of that windows server in a Linux machine. Backup is of two types incremental and full backup.
...
4
votes
1
answer
710
views
Low CPU Utilisation But High CPU Load Wordpress Ubuntu Apache2
My Ubuntu 18.04 server with 2GB of RAM and 2 CPU cores experiences major CPU load spikes when someone accesses the Wordpress site that the computer serves. This slows down the website very much.
...
4
votes
1
answer
11k
views
Why does Slurm fail to start with systemd but work when starting manually?
I've just set up slurm where one physical machine will be the only system in the cluster (so far). This is on Ubuntu 18.04.
I have slurmdbd running, but when I attempt to start up slurmd and ...