Questions tagged [ubuntu-14.04]
Ubuntu 14.04, named "Trusty Tahr" is a Long Term Support release of Ubuntu Linux (released in April 2014). Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.
1,173
questions
127
votes
4
answers
178k
views
How do I auto-start docker containers at system boot?
What is a good way to automatically start docker containers when the system boots up?
Is there a preferred way to do this on Ubuntu 14.04?
I've used supervisord in the past to auto start web apps. ...
53
votes
4
answers
38k
views
Should I edit /etc/crontab or run crontab -e as root?
I'm setting up regular system maintenance tasks which have to run as root. I plan to use the flavour of cron which comes with Ubuntu 14.04 LTS as the default.
I see the previous admin (who since left ...
34
votes
6
answers
63k
views
How can I upgrade Python to 2.7.9 on Ubuntu 14.4?
Ubuntu 14.4 comes with Python 2.7.6 built-in, but I'd like to upgrade it to 2.7.9 (it has security features that I want).
Is that even possible? If so, how can this be achieved?
26
votes
5
answers
53k
views
Does CURL cache requests?
This is a pretty long question, so bear with me.
I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to ...
23
votes
4
answers
39k
views
Postfix : error: unsupported dictionary type: mysql
I've a problem w/ postfix
problem:
# tail -f /var/log/mail.err
Aug 20 17:57:50 myserver postfix/smtpd[8243]: error: unsupported dictionary type: mysql
Aug 20 17:57:50 myserver postfix/smtpd[8243]: ...
22
votes
6
answers
4k
views
Why is response time exploding when request frequency drops?
Correction: response time (%D) is μs not ms! 1
This doesn't change anything about the weirdness of this pattern but it means that it is practically way less devastating.
Why is response time ...
18
votes
2
answers
68k
views
How To Tune Apache on Ubuntu 14.04 Server
Currently on my Apache 2 (Apache 2.4.7 to be exact) on Ubuntu 14.04, I have this setting:
/etc/apache2/mods-enabled/mpm_prefork.conf
<IfModule mpm_prefork_module>
StartServers ...
17
votes
2
answers
38k
views
OCSP validation - unable to get local issuer certificate
I'm new to setup SSL from the scratch and did my first steps. I bought a SSL cert from RapidSSL for my domain and followed there steps to install the cert.
In general the cert is valid and working on ...
17
votes
2
answers
23k
views
How to avoid GRUB errors after running apt-get upgrade - Ubuntu
I'm running ubuntu 14.04 on an EC2.
After running apt-get upgrade, I'm prompted with a screen that asks me to reinstall GRUB boot loader
The GRUB boot loader was previously installed to a disk ...
15
votes
10
answers
64k
views
Get logstash version
How does one get the version of Logstash?
root@elk:/usr/share/elasticsearch# bin/logstash --help
bash: bin/logstash: No such file or directory
I have Logstash running on my system. Also.
root@elk:/#...
14
votes
5
answers
10k
views
error when running apt-get update on ubuntu 14
I am running ubuntu 14 on one of my servers.
When I run sudo apt-get update, I get the error below.
W: GPG error: http://cran.rstudio.com trusty/ Release: The following signatures were ...
13
votes
2
answers
54k
views
getent passwd dosen't show users of LDAP server
I have made the LDAP authentification configurations and I try to authenticate to the LDAP server on Ubuntu 14.04 TLS.
This is the file nsswitch.conf :
# /etc/nsswitch.conf
#
# Example configuration ...
12
votes
8
answers
10k
views
How to auto-start unprivileged lxc containers?
On Ubuntu 14.04, I have created an unprivileged container that I can manually start and stop.
But I would like this to start and stop along with the system.
I have added the following to the ...
12
votes
6
answers
90k
views
How to setup client for squid transparent proxy?
Server Details
Squid Transparent Proxy Version: 3.3.8
OS: Ubuntu Server 14.04
Server IP: 192.168.1.3
Squid config file
(excluding comments using grep)
root@ubuntu:~# grep -v '^$\|^\s*\#' /etc/...
12
votes
2
answers
18k
views
Strongswan VPN tunnel between two AWS instances won't connect
I am trying to set up a VPN tunnel using StrongSwan 5.1.2 between two Amazon AWS EC2 instances running Ubuntu 14.04.2 LTS. Prior to using StrongSwan, I used open(libre)swan on an Amazon RedHat AMI, ...
11
votes
2
answers
2k
views
crontab sends month-old emails
ubuntu 14.04
Mailserver: Postfix
root receives dozen of emails from crontab. These mails contain PHP warnings.
I've fixed the cause for these warnings.
I've fixed every cronjobs to not send emails (...
11
votes
4
answers
8k
views
UnicodeDecodeError in Ubuntu while installing PHP5.6 from PPA
I have a clean VPS, with Ubuntu 14.04 LTS x64. And Tried the following:
# Upgrade The Base Packages
apt-get update
apt-get upgrade -y
# Add A Few PPAs To Stay Current
apt-get install -y software-...
11
votes
2
answers
5k
views
Strange Bittorrent Log On My Server
I don't know if the following log has something to do with my site being down sometime. I have lot of websites on my server and they don't have any logs like the following:
117.169.1.85 - - [03/Jan/...
11
votes
1
answer
9k
views
Why is a /128 IPv6 address assigned via DHCPv6 in Ubuntu?
I am testing the implementation of IPv6 in Ubuntu. My Ubuntu linux client correctly gets RA from server and configures an address in the advertised prefix. Next it gets another address via DHCP which ...
11
votes
1
answer
3k
views
Docker container crashing ubuntu host
Very unexpected, but briefly if i run a docker container host becomes unresponsive, no in/out, can't ping it, only hard reboot works.
DMESG, sys and kernel logs doesn't show anything obvious
...
10
votes
5
answers
18k
views
What does it mean when Linux has no I/O scheduler
I have some virtual machines running Ubuntu cloud-based image 14.04-1 LTS version. I wanted to see the IO performance of different IO schedulers on the VM so I went to /sys/block/<drive>/queue/...
10
votes
2
answers
20k
views
SSSD Authentication to Windows Domain without @domain.com everywhere
We're trialling using a Ubuntu 14.04 desktop environment for a few of our developers and I've hooked the machines into the domain with SSSD. This has been working fine. However the system recognises ...
10
votes
2
answers
22k
views
How to monitor remote “https” with Icinga version 2?
I have icinga 2.3.11 on ubuntu 14.04.3 inside VirtualBox. Im trying to monitor "https" port 443 for example "https://mail.google.com" here.Below is my snippet from default host.conf file
object Host ...
10
votes
2
answers
965
views
Is there a way to know why a service is restarted and who did it?
Ubuntu 14.04
clamav 0.98.7
The problem is clamav-daemon is restarted nearly daily:
Sep 1 06:30:00 x-master clamd[6778]: Pid file removed.
clamd[6778]: --- Stopped at Tue Sep 1 06:30:00 2015
clamd[...
9
votes
3
answers
3k
views
Database accidentally deleted with a bash script [duplicate]
Edit: a follow-up question: Restore mongoDB by --repair and WiredTiger.
My developer committed a huge mistake and we cannot find our Mongo database anywhere in the server.
He logged into the server, ...
9
votes
3
answers
19k
views
How can I install MySQL 5.7.9 to Ubuntu 14.04?
I tried to install with these inscturctions, but installation installed version 5.5.
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ondrej/mysql-5.7
$ sudo apt-get ...
9
votes
1
answer
4k
views
Postfix - gmail encryption
My server is running on Ubuntu 14.04 and I have Postfix installed. When I send something to my gmail account, it goes to spam. I set up SPF, DKIM and DMARC, here is a confirmation:
Authentication-...
9
votes
2
answers
37k
views
How to use realmd in Ubuntu 14.04 LTS to join an Active Directory domain?
I want to use realmd to join an Active Directory domain from Ubuntu 14.04 LTS.
To do that I just installed realmd and some dependencies with this command: aptitude install realmd sssd sssd-tools ...
9
votes
1
answer
49k
views
Can't enable mpm_prefork with Apache 2.4 on Ubuntu 14.04
I'm installing PHP 5.4 with Apache 2.4 on Ubuntu 14.04.
Php 5.4 is not available on apt-get so I have to install it from source.
I have installed
apache2-prefork-dev
apache2-mpm-prefork
And i ...
9
votes
1
answer
102
views
How to setup local website with a certain domain [closed]
In a old PC, I installed Ubuntu server 14.04 and I want to use this server to host some websites and web applications that will be available in my network. I installed Apache and when I click in the ...
9
votes
2
answers
11k
views
Ansible with SSH keys
Moving from Puppet to Ansible. Like the fact that it is agent less and SSH driven. I just setup two test VMs. One as the Ansible server (yes overkill), and the other as an example client (random Linux ...
9
votes
2
answers
7k
views
dist-upgrade fails on libc6 because "kernel too old"
I have tried for the past few hours to upgrade ubuntu server 14.04 to 16.04 over SSH. The Server is hosted and I have no physical access to it.
It goes well until it updates libc6 and pops up curl ...
9
votes
2
answers
3k
views
nginx proxy_pass eventually returns GATEWAY_TIMEOUT even though server is still active
I have set up a nginx proxy passthrough which works fine when nginx initially loads up, but eventually (maybe after a day or so?, not too sure at this point) the location that is a proxy passthrough ...
9
votes
1
answer
3k
views
cloud-init module order is wrong, how to fix?
I'm using cloud-init to setup AWS EC2 machines running Ubuntu 14.04. One of the more useful features of cloud-init is the write_files module that allows me to install additional files during the ...
8
votes
7
answers
21k
views
GlusterFS failing to mount at boot with Ubuntu 14.04
Previously I asked about mounting GlusterFS at boot in an Ubuntu 12.04 server and the answer was that this was buggy in 12.04 and worked in 14.04. Curious I gave it a try on a virtual machine running ...
8
votes
3
answers
7k
views
How to correctly configure MongoDB to use Letsencrypt SSL on Ubuntu
How do I correctly configure MongoDB to use Letsencrypt SSL on Ubuntu?
I have created an SSL certificate using Letsencrypt and combined it via:
cat /etc/letsencrypt/live/example.com/fullchain.pem /...
8
votes
1
answer
8k
views
GitLab Active Directory authentication: no results and no authentication
I'm trying to set up LDAP authentication with GitLab (version 7.12.2 installed on Ubuntu 14.04 amd64 on a VM, Omnibus set up). I've edited my gitlab.rb file to look like the following:
gitlab_rails['...
8
votes
5
answers
6k
views
Should I enable automatic security updates on a Ubuntu server? [closed]
I can't seem to find an agreed answer on this anywhere, so I figured I'd ask it myself.
I have five Ubuntu servers running either 12.04 or 14.04, should I enable automatic security updates on these ...
8
votes
1
answer
8k
views
How does apache use or allow browsing of /usr/share? (linux / Ubuntu)
The default apache.conf (ubuntu server), contains the following block:
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/...
7
votes
3
answers
12k
views
PHP-FPM service status `stop/waiting` but workers are running?
Starting php5-fpm appears to work, but checking the status immediately shows that it is not running:
[root@server ~]# service php5-fpm start
php5-fpm start/running, process 4516
[root@server ~]# ...
7
votes
1
answer
5k
views
Why does Ubuntu 14.04.2 have the bind9-host packages upon installation? [closed]
Why does Ubuntu 14.04.2 have the bind9-host packages upon installation? Is this a bundled upon installing the Ubuntu OS? Is there a way to avoid having this packages upon installation?
7
votes
2
answers
1k
views
DST Morocco, a way to trick NTP server
From several years Morocco have been using GMT without DST, in the past years, our government reactivated the use of DST.
In the first years, the DST was a mess, different periods, starts, ends, so ...
7
votes
3
answers
13k
views
Is it possible to extend a 504 timeout in nginx on a per location basis
Is it possible to set timeout directives within a location block to prevent nginx returning a 504 from a long running PHP script (PHP-FPM)?
server
{
listen 80;
server_name ubuntu-vm.test-api;
...
7
votes
3
answers
44k
views
Connection closed by <ip> [preauth]
I'm on a Ubuntu server. I'm trying to enable an ssh tunnel in order to add a git remote in a project of mine.
On my local win7 machine I generated the key pair with PuTTYgen.
I pasted the public key ...
7
votes
6
answers
10k
views
Rsync hangs: expand file_list pointer array to N bytes, did move
Rsync is going into "interruptible sleep" mode after transferring some files from a local folder to a NFS folder.
The folder I am trying to backup contains more than 180gb of data.
This is what rsync ...
6
votes
4
answers
44k
views
How can I stop ZooKeeper on Ubuntu?
I have installed zookeeperd on Ubuntu 14.04 (Trusty Tahr) as suggested here:
Unfortunately this process is somehow not stoppable. I tried even kill -9
user@node1:/opt/zookeeper-3.4.6$ ps -ef | ...
6
votes
2
answers
24k
views
Getting Too many Open files error for Postgres
In Ubuntu 14.04 server on a JAVA application we are getting Too many Open files error for Postgres (Using Postgresql 9.5).
We set the following in /etc/security/limits.conf
* soft nofile 16384
* ...
6
votes
4
answers
23k
views
umask for www-data user running PHP on Ubuntu
Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files.
By default, all the directories and files in /var/www are owned/grouped to www-admin. ...
6
votes
2
answers
8k
views
Nothing is written in php5-fpm.log
I have two servers which is Ubuntu 12.04 and Ubuntu 14.04. When I use Ubuntu 14.04 in my new server and enabled the php-fpm log file found under /etc/php5/fpm/php-fpm.conf that reads as follows:
...
6
votes
3
answers
22k
views
Would it be advised to use Ubuntu 14.04 LTS over 12.04 LTS?
I'm unsure how to ask this question, but I'm switching hosting companies and got to migrate everything. I'll probably set up everything up manually, no copy paste work, except the regular files. ...