Newest ubuntu Questions

Q&A for system and network administrators

sftp No supported authentication methods available

I am trying to setup sftp to upload/download files from a specific directory (var/www/mysite.com) My issue is when I try to connect using Filezilla and I get an error stating No supported ...

strongSwan + xl2tpd VPN server: how to configure several config files?

I set up my VPN server with strongSwan and xl2tpd on Ubuntu server 16.04. After configuring, I tried to connect from a iPad, but got the errors as follows: Mar 26 02:22:13 myname-ubuntu-server charon:...

Ubuntu 16.04 AWS server taking more time to compile tomcat 8

Tomcat 8 takes more than five minutes to compile. The application keep on showing the following message and server not loading. Last login: Mon Mar 20 05:26:22 2017 from 182.65.138.12 ubuntu@ip-172-...

Listing all packages, but without addional text

In this time I am working of project, what tell you, what software you have installer and what you can install. In this time I have problem with this command: grep -hn Package: /var/lib/apt/lists/* . ...

What causes a server to be slow to respond when it has a very low load average?

I have an Ubuntu server that has recently been intermittently slow to respond - 30s+ to connect to ssh or web servers, and New Relic shows regular interruptions in the data (but no actual activity). ...

Squid cache not starting in Ubuntu 16.04.2 LTS

I'm trying to start Squid (3.5.12) by the following command: $ /etc/init.d/squid start [ ok ] Starting squid (via systemctl): squid.service. but only one line appears in cache.log, and nothing else:...

Webmin gives RPC error when trying to execute a scheduled Cron Job

When trying to run a cron job I created via webmin I get this error: Running letsencrypt renew on selected servers .. Failed to run on ... (this server) : RPC error : I just noticed this today but i ...

Ubuntu: apply security updates only if package age is at least x days

We apply security fixes automatically (via puppet) on our servers. If a bug/regression is added to the security update, we get it until it is fixed. Such updates often are fixed in the next 3 days. I ...

Dell PowerEdge 1950 Gen II - BCM Fan Speed Issue

Please see Update 1 hereunder for an update I would like to lower the fan speed of what I consider an optimized in terms of efficiency Dell PowerEdge 1950 Gen II having two quad core Xeon E5335 cpus ...

PHP throwing server errors after Ubuntu ran an unattended-upgrades session - any way to determine the cause?

We just had an incident on one of our webservers. Several PHP applications run on it and started spitting out the following error message: php_network_getaddresses: getaddrinfo failed: Name or ...

empty folder takes inodes

I'm running a ubuntu 14.04.1 While I have diskspace remaining, I do have a 100% inode usage: ubuntu@ipsec-2:~$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/xvda1 524288 520606 ...

Ubuntu 14.04 + libvirt KVM, 3 physical nic, 3 external ip, 3 subnet + internal network HOW?

i have an Ubuntu 14.04 LTS server with 3 nic, 3 external ip from 3 different subnet with 3 different gateway. I have installed libvirt KVM and two Windows 7 64-bit guests. The eth0 (1.1.1.1 with ...

ls -lt not working in SFTP

I log into sftp: sftp user@server Then I run: ls -lt I expect files to be sorted by date. sftp> ls -lt *.csv -rw------- 0 76547986 200 5073032 Mar 14 08:42 file1.csv -rw------- 0 ...

Check if PM2 daemon is running and resurrect

There were some recent problems on Ubuntu server due to low RAM. The server didn't reboot but PM2 crashed. To avoid such situations in future, I'm looking for a way to check if PM2 daemon is running ...

php5.6-fpm curl stops working (Couldn't resolve host)

All of a sudden our Ubuntu php5.6-fpm server has stopped working with curl requests. Here is what i have found: Works when ran from the console php test.php. Works via wet from console wget -qO- ...

Make a phone number ring for some time using a 56KB modem [migrated]

we have an old modem model US Robotics Sportster Flash and we'd need to use it to open a door in our organization, by making a phone call to an internal number (say, 101). We are running on an Ubuntu ...

Windows 10 hosts + Ubuntu VMWare + Iptables [closed]

I've been trying to set up a firewall on linux with iptables in a virtual machine(Laptop). The goal is to manage all traffic inside my home network. The configurations i'm using are the following: ...

MySQL cannot connect via SSH tunnel — Connection refused

I am trying to connect to MySQL from my MySQL GUI (Sequel Pro if it matters) using SSH tunnel. However, I keep getting the following error (mysql.log): [Note] Aborted connection 98 to db: 'example' ...

What command is run in the bash shell for this option?

I am trying to assemble the raid arrays in my system instead of going to live boot mode. (PS:Sorry for the small image.)

Apache2 on Ubuntu 16.04: Default configuration for FileETag

I have a question regarding the ETag configuration with Apache 2.4. The Apache documentation (https://httpd.apache.org/docs/2.4/en/mod/core.html#fileetag) states that the default value for FileETag is ...

How to determine why MySQL suddenly stops on Ubuntu

How do you determine why MySQL stops running? I recently upgraded an Ubuntu server to 16.04, and now MySQL will suddenly stop after a few hours. It's acting as the backend for a Wordpress install. My ...

Sonarqube Not Be Served By Caddy

I'm trying to visit a SonarQube installation I have installed behind the Caddy web server. When I visit the site I don't get a response. I've tried proxying 8999(secure) and 9000(unsecure) with Caddy....

Possibilities why VPS appends HTML in Chrome?

When visiting my website via Chrome, below the closing HTML tag another HTML tag gets added, with a script. This ONLY happens on Chrome, and not any other browser, it happens across OS'es and always ...

Free Port 80 for Caddy

I'm trying to use port 80 on caddy but I'm getting an error saying the port is already in use. listen tcp :80: bind: address already in use. When I check to see what is using it this is what I get. ...

Restricting WIFI AP access to AP's IP address only [closed]

I have an ubuntu system with a USB wifi dongle set up as both an AP and Client and it's routing my internet connection. I followed the instructions at http://imti.co/post/145442415333/raspberry-pi-3-...

Pulseaudio persistent hw name [migrated]

I am trying to design a system that plays multiple parallel streams of audio via multiple USB audio outputs. I have my laptop setup with 4 usb audio devices connected. Currently I am using pacmd list-...

Docker multi-app setup

This might be a silly question but I am learning docker here and trying to set-up a multi-app docker environment as a training. However I am wondering how it actually works with different web services....

Setup Squid with multiple IPv6

I am trying to setup Squid on a Ubuntu 14 box such way that it listens to IPv4 port and forward the traffic on specific IPv6 which was previously setup. In configuration file, I am using something ...

How to allow a vsftpd to write to a folder other than default `/files`?

I'm new to FTP and I've been following this DigitalOcean tutorial. Everything works great except that a user (at least in FileZilla) cannot write to the root of his /home/user/ftp folder, only /home/...

git reports “No space left on device”, but df -h says there is is 2.5G available [duplicate]

I have an EC2 node running Ubuntu 14.04. On a deploy this morning, I received the following error message from git fetch: error: unable to create temporary file: No space left on device I logged ...

DHCP Server Listing Host as “BAD_ADDRESS” and not Registering DNS

Question Why is DHCP showing "BAD_ADDR", why does it think there is a Conflict, and why can't the host register its DNS name? Devices: DHCP Server = Server 2012 on bare metal. Also running DNS. ...

Best Linux Distro for Thin Client [closed]

I am in the process of deploying a new software system at my company. The sysreqs suggest using terminal services to access the program, rather than running 15 individual installations. We have ...

Website successful login not saved

I am running an apache server on ubuntu 16.04 I have the following virtual server defined: ServerAdmin webmaster@localhost DocumentRoot /home/ubuntu/myuser/html ErrorLog ${APACHE_LOG_DIR}/error.log ...

Nginx & Gunicorn: “*1 connect() to unix:/<path>/my.sock failed (111: Connection refused) while connecting to upstream”

I have followed this tutorial to set up a nginx server and gunicorn to run a Django 1.10 project on an Ubuntu 16.04 server. My nginx server seems to fail to connect to the gunicorn socket and returns ...

mysql root password - where should it be stored?

Where is the best place to store the mysql root password? I had been putting it only in the root user's /root/.my.cnf file, which works fine for doing normal updates, backups, etc. However, the (...

Experiencing high latency with server without any server load nor local router latency

I am experiencing a very weird issue and it is hard to synthesize in a simple sentence, so I am sorry if the title of the question is rather shady. So I have a dedicated server running with the ...

crtc config fails when changing resolution with Xrandr from 4K

I am currently trying to change the resolution of my screen from 3840x2160 to 1920x1080. The screen is set to display 0 on output HDMI2. I am running an app via startx on display 0. When I try to run ...

Is it possible/advisable to try and update libc6 without rebooting the machine?

I want to update the libc6 package on a running production server without incurring downtime. AFAIK pretty much everything on the system depends on libc6 either directly or indirectly: $ sudo apt-...

cups' imagetopdf crashing Gnome Ubuntu 16.04 for Brother QL-700

I have installed printer drivers for a label printer according to directions here: http://www.linux-hardware-guide.com/2014-10-22-brother-ql-700-label-printer-usb One thing I noticed is that the ...

Could this process bring down the server?

I'm trying to understand why a server (AWS Ubuntu) sometime becomes unresponsive and eventually has to be restarted. While looking through top logs, I found a process that I think might be causing ...

Ubuntu on Hyper-V and VHDX

I have a setup where I will run a Ubuntu Server on two VHDX disks. System 50GB and Data 4TB. They are located on a mirrored Storage Spaces Pool and are dynamic expanded. During the Ubuntu ...

libreoffice headless listening mode - not working if not root

I'm trying to convert a docx file to pdf using LibreOffice headless. I started the server in listening mode, cause it seems the way to go to use it concurrently and for performance benefits (I'm ...

How is MemAvailable less than MemFree on my server

Today one of my servers started complaining it was low on memory because we use the variable MemAvailable from /proc/meminfo to determine how much memory is available. When I logged onto the server ...

StrongSwan ikev2 routing through VPN in Windows 10

I'm trying to create an ikev2 VPN using StrongSwan on an ubuntu server. Now, in Windows 10 clients, use default gateway on remote network option is off by default; so when I connect to the server, ...

Host with bonded interfaces on one subnet, set up bridge with a different public subnet for VMs

I am setting an Ubuntu host server (16.04) with a number of KVMs running on it. The host server has 4 physical NICs which are bonded in pairs to access a public facing network, and a private network. ...

Ubuntu - adduser / useradd both ask for password to be set, can force a script to bypass this?

I have a script that works fine on Centos because useradd doesnt require a password to be set there and then, but the same script doesnt work on ubuntu servers as it requires this info. I ideally ...

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 ...

Cannot mount block device /dev/loop read-only

I've got a ubuntu 14.04x64 VM running on Virtualbox on a Windows 7 x64 host machine. I'm trying to mount an image for forensic uses, and am trying to run this command in particular: mount -o ro,...

Time Machine Backup on Networkdrive not fixable by ZFS-Rollback [migrated]

Originally i had that usual problem of timemachine. It prompted me Time Machine completed a verification of your backups on "MacBookBackups". To improve reliability, Time Machine must create a ...

What is special about the dummy interface dummy0?

I'm creating dummy interfaces to set up dynamic routing, which all works fine. But I found one curious detail I can't explain: For some reason, when creating a dummy interface with the name dummy0, I ...
Translating... 0%