Questions tagged [ubuntu-16.04]
Ubuntu 16.04 - named "Xenial Xerus" - is a Long Term Support (LTS) release of Ubuntu Linux. Officially released on April 21, 2016, it was supported for 5 years. Extended Security Maintenance subscriptions are offered by Canonical until April 2024. Only use this tag if your question is version-specific.
947
questions
59
votes
2
answers
76k
views
How do view older journalctl logs (after a rotation maybe?)
I am running docker on ubuntu 16.04 and would like to view the logs. However, I am unable to view logs after what I am guessing is some sort of rotation or the logs grow to a certain size.
I have not ...
52
votes
5
answers
58k
views
How to allow a user to use journalctl to see user-specific systemd service logs?
I am running user-level services in Ubuntu 16.04 LTS. For example, I have my test.service located at ~/.config/systemd/user/test.service.
I was able to run the service by doing
systemctl --user start ...
36
votes
2
answers
90k
views
nginx: [emerg] "stream" directive is not allowed here
I have the latest NGINX from ppa installed on Ubuntu 16.04.
nginx version: nginx/1.12.1
From my understanding, it should support stream and UDP load balancing.
But I get this error message:
...
32
votes
4
answers
123k
views
Switch from PHP 7.2 to 7.1 on Ubuntu 16.04, Apache
I need to downgrade PHP on one of my VMs from 7.2 to 7.1 on Ubuntu 16.0.4. The last time I tried to remove just PHP and replace it with a different version, I had all kinds of issues with Apache and ...
31
votes
3
answers
59k
views
Best way to run python 3.7 on Ubuntu 16.04 which comes with python 3.5
I would like to avoid backports, they always seem to mess up my packages.
So I was thinking tools like conda / virtualenv / maybe even docker can help. What's the most simple / cleanest way to work ...
18
votes
5
answers
17k
views
Install of MySQL hangs on Ubuntu 16.04
I’m trying to install MySQL server on Ubuntu 16.04 using:
sudo apt-get install mysql-server
I get asked to set and confirm root password and then the install hangs at:
Renaming removed key_buffer ...
16
votes
4
answers
77k
views
Create daemon on ubuntu 16.04
I developed a crawler in PHP that parse an URL with specific headers and put all URLs of content in the queue. It works fine.
I developed this code in a ubuntu 14.04 and I put a .conf file in /etc/...
16
votes
5
answers
18k
views
OpenVPN for certain IPs, eth0 for everything else
Summary: I'd like to connect to my VPN and have access to certain servers, but for all other traffic I'd like to use my regular networking.
I've setup an OpenVPN server on my VPS, my server.conf file ...
16
votes
1
answer
23k
views
"Excess arguments." while doing "systemd daemon-reload" during MongoDB configuration
I am following the instruction mentioned in :
To install and configure the basic elements for MongoDB in Ubuntu.
During "Configure MongoDB username and password", on phase 4 "Step 4 - Enable mongodb ...
16
votes
2
answers
31k
views
switch apache from prefork to event in Ubuntu 16, get php 7 working
Apache was running slow in production. After searching for answers for some time, I finally went to #apache IRC channel and the pros had me check the apache mode with this command:
sudo apachectl -V
...
15
votes
1
answer
42k
views
Disabling rp_filter on one interface
I have an Ubuntu 16.04 Server which is acting as a router with multiple (VLAN) interfaces. By default, rp_filter (reverse path filtering) is enabled for all interfaces. I want to keep it that way, but ...
14
votes
1
answer
27k
views
systemd script for starting my app server - Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
I have a upstart configuration file as shown below which works fine in Ubuntu 14:
#/etc/init/data_server.conf
#sudo start data_server
#sudo stop data_server
#sudo status data_server
start on ...
14
votes
1
answer
17k
views
What does locking a password using `passwd -l` mean?
It is possible to lock a password using
$ passwd -l john
But what does that actually mean to lock a password?
13
votes
3
answers
9k
views
Why does Ubuntu want to reboot so often after installing updates?
One of the benefits that is always touted for Linux over Windows is that Linux servers don't need to be rebooted all the time, but it seems like our Ubuntu servers always want to reboot after ...
13
votes
6
answers
33k
views
Gitlab: Extremely high memory consumption by ruby "bundle" process
I have a problem with my Gitlab installation running on a small Ubuntu LTS 16.04. I have to point out that I don't have much experience with Linux or Gitlab.
My Gitlab installation with a few ...
12
votes
3
answers
7k
views
Automatically mount SSD instance storage on AWS EC2 in Ubuntu 16.04
I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called /dev/nvme1n1.
I am able to mount this drive using:
$ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1
$ sudo ...
11
votes
3
answers
19k
views
Ubuntu cron job every workday
On Ubuntu 16, I'm trying to trigger cron job at 8:00 AM on workdays, and here is what I've tried so far
0 8 * * 1-5 /path/to/command
and
0 8 * * MON-FRI /path/to/command
Does not work
11
votes
2
answers
13k
views
varnish daemon not listening on configured port
I'm trying to install varnish on ubuntu 16.04,
I read several article none are working.
From what I read, since ubuntu 15.04, the way of configuring varnish has changed (because of systemd).
Now on ...
11
votes
3
answers
21k
views
Why is ALPN not supported by my server?
I'm currently running a Ubuntu 16.04.1 LTS server using NGINX 1.11.9 and openssl 1.0.2g.
According to everything I've read, these versions should support ALPN, yet when I run a test on KeyCDN's HTTP/...
11
votes
3
answers
54k
views
InnoDB: The innodb_system data file 'ibdata1' must be writable
First, I'm not a backend person.
I had a running instance of mysql on my ubuntu server. I was able to log in, run some basic queries, everything was fine.
I stopped the service and started futzing ...
11
votes
2
answers
7k
views
How to change the drive reference in a zfs pool from /dev/sdX to /dev/disk/by-id (ata-XXXXXX)
In the example below, how can the devices in the second mirror be changed so they they reference the /dev/disk/by-id instead of /dev/sdX?
user@pc:~$ sudo zpool status
pool: storage
state: ONLINE
...
10
votes
2
answers
18k
views
command KLogPermitNonKernelFacility is currently not permitted
I've setup loggly to for syslog alerts among other things and am getting the following error repeatedly in syslog.
command 'KLogPermitNonKernelFacility' is currently not permitted - did you already ...
10
votes
6
answers
4k
views
Options for performance improvements on very big Filesystems and high IOWAIT
I have a Ubuntu 16.04 Backup Server with 8x10TB HDD via a SATA 3.0 Backplane. The 8 Harddisks are assembled to a RAID6, an EXT4 Filesystem is in use. This Filesystem stores a huge amount of small ...
10
votes
2
answers
168k
views
How Uninstall pip and python [closed]
I wanted to install version 3 of python and pip but instead issued
sudo apt-get install python-pip python-dev
how do I uninstall python and pip, I tried sudo apt-get uninstall but did not work, what ...
10
votes
7
answers
12k
views
Start service after AWS user-data has run
I am building an AMI based off of an Ubuntu 16.04 AMI.
When I start an instance from my AMI, I would like to pass in a user-data script that runs before the service start up on the AMI.
It looks ...
10
votes
4
answers
19k
views
Interface will not rename under systemd
I'm trying to rename a network interface on an Ubuntu 16.04 VPS, but am unable to do so. Systemd names my primary network interface enp0s3. I want to rename this interface to eth0.
According to the ...
10
votes
1
answer
50k
views
Enable error logging on PHP-FPM 7 with Nginx?
This is essentially the same as these questions:
https://stackoverflow.com/questions/8677493/php-fpm-doesnt-write-to-error-log
Nginx not logging PHP errors
BUT the answers there don't seem to be ...
9
votes
3
answers
42k
views
What does memory_limit = -1 mean in a PHP.ini file?
I was in some ubuntu server configs, and found that my memory on the server (online resources say default is usually 128Mb correct?)
and I found this listed
memory_limit = -1
Why? What does a ...
9
votes
1
answer
17k
views
php7.0-fpm.service is masked
I can't seem to get php to start anymore and it's telling me it's masked which from googling appears to be a super disable? Can anyone tell me how to unmask it?
What happened was I did some updates ...
9
votes
1
answer
8k
views
Can I request a specific IP address via DHCP without rejecting an offer of a different address from the DHCP server?
Using isc-dhcp-client on ubuntu server 16.04, there's an option that sounds like it should do what i want:
send dhcp-requested-address 10.23.33.254;
When this option is present in my dhclient.conf ...
9
votes
1
answer
15k
views
How to run 'sudo chmod 666 /var/run/docker.sock' on Ubuntu, before the services start [closed]
I have an Ubuntu Server 16.04, with a service that needs this permission
$ sudo chmod 666 /var/run/docker.sock
Right now, every time the server is rebooted, it's necessary to open a ssh console, run ...
8
votes
3
answers
26k
views
How to enable and use the serial terminal of a HP Microserver Gen9?
I have a HP ProLiant Microserver Gen9. It has HP ILO version 4, but the Java based Remote Console doesn't work reliably and I can't use it after the POST screen in the free version of ILO (asks me to ...
8
votes
2
answers
5k
views
Docker service starts before ZFS
I am using Docker CE on Ubuntu 16.04, with ZFS as storage for Docker. Setup is pretty much standard:
There's a zpool that has multiple disks
On the zpool, there's a zfs filesystem with mountpoint /...
8
votes
1
answer
12k
views
Postfix - Untrusted TLS connection
My server is running on Ubuntu 16.04 and Postfix is installed. All the emails sent from my server are marked as spam by Gmail and I thought that setting up a TLS/SSL certificate from Let’s Encrypt ...
8
votes
2
answers
17k
views
What does ALPN, server did not agree to a protocol mean?
I see this quite regularly when using various calls in curl.
I'm not sure if its the root cause to some of my returns resulting in error 400 but as a newbie just curious more than anything.
8
votes
1
answer
1k
views
How to limit bandwidth per VPN connection?
I have a StrongSwan (IKEv2) server setup and would like to limit each VPN connection to 512kb/s.
After researching I came across tc in Ubuntu. I don't quite understand it and am fighting through the ...
7
votes
3
answers
106k
views
Error when running docker build on any dockerfile: "unable to prepare context: unable to evaluate symlinks in Dockerfile path"
I'm running :
$ docker build -t somefile .
Every time I run that I get this error:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat
The full error is:
unable to ...
7
votes
3
answers
34k
views
Install more_set_headers in nginx 1.15.8
Ubuntu 16 Server - load_module modules/ngx_http_headers_more_filter_module.so does not work out the box from a fresh install.
root@ /etc/nginx # nginx -V
nginx version: nginx/1.15.8
built by gcc 5.4....
7
votes
3
answers
5k
views
Ubuntu Err :18 http://dl.google.com/linux/chrome/deb stable Release.gpg KEYEXPIRED 1555048520
Since this morning I have this error
Err :18 http://dl.google.com/linux/chrome/deb stable Release.gpg
The following signatures are not valid : KEYEXPIRED 1555048520 KEYEXPIRED 1555048520 ...
7
votes
4
answers
12k
views
Non-interactive (silent) install of MySQL 5.7 on Ubuntu 16.04 LTS
MySQL 5.7 (5.6+ actually) changed how mysql_secure_installation works. This made it hard to find a working, silent, scripted install for Ubuntu 16.04 LTS. How would you install MySQL securely in a ...
7
votes
2
answers
3k
views
ubuntu only use 8 cpu for RX and TX queue with vmxnet3
I installed Ubuntu 16.04 on vmware esxi 6.7 with 32 core cpu for this machine. Linux only run 8 queue for tx and rx and it cant use all cpus in heavy load.
# ethtool -S ens192 | grep Queue
Tx Queue#: ...
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
9k
views
uWSGI won't start with systemd under Ubuntu 16.04
I'm in the process of doing a somewhat painful migration of our staging and production servers from Ubuntu 12.04 to 16.04. I'm testing the migration on staging and it is mostly working, except for ...
7
votes
1
answer
11k
views
How to make systemd call my "status" command?
We are replacing an Ubuntu 8.04 server with a Ubuntu 16.04. The server runs a single (non-OS) service that we need. (I'm the dev of that service, and not the sysadmin, which is on holiday this week) ...
7
votes
1
answer
6k
views
IPSec strongswan "established successfully", but no ppp0
I'm trying to connect an Ubuntu Server 16.04 to an IPSec L2TP VPN using the strongswan client.
Aparently the connection is established successfully, but the interface ppp0 isn't created.
This is the ...
7
votes
1
answer
1k
views
Ubuntu server hang with ascii NUL characters in syslog and other files ( ^@^@^@… )
We are experiencing occasional hangs with ubuntu 16.04 LTS (kernel 4.4.0-34-generic) and we wonder if somebody has some clues how to get to bottom of this.
The log looks like this:
Aug 24 10:02:04 ...
6
votes
4
answers
23k
views
500 internal server - AH02429: Response header name
OS Ubuntu Ubuntu 16.04.2 LTS
Apache/2.4.18
Perl v5.22.1
So I have perl code that reads a mysql database, and then creates a dynamic webpage. The code's been working great for years. A week ago, my ...
6
votes
1
answer
2k
views
Why does certbot suddenly fall back to http-01 challenge instead of tls-sni-01 (https)?
I have a well-tested bash script that was running fine until a few weeks ago.
It seems that certbot challenge defaults now to http instead of https. I can't figure out the reason.
echo 'rsa-key-size =...
6
votes
1
answer
5k
views
Cannot connect to OpenVPN server under Ubuntu 16.04
I'm trying to connect to a VPN server.
I'v got client.ovpn from my system admin.
When running: sudo openvpn --config client.ovpn I'm getting Initialization Sequence Completed after few seconds, but ...
6
votes
1
answer
12k
views
SSL_ERROR_RX_RECORD_TOO_LONG certbot
I have the following setup:
Apache 2.4
Ubuntu 16.04 LTS
letsencrypt / certbot
Now, as soon as I enable the following .conf on the default server, all my configured top level domains receive a ...