Questions tagged [ubuntu]
Ubuntu Linux is a Debian derivative that aims to bring Linux mainstream. Questions on this site should generally refer to Ubuntu Server. Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.
4,100
questions with no upvoted or accepted answers
3
votes
1
answer
583
views
Start systemd socket on VPN connection automatically after boot
One of my servers is setup so that it will automatically connect to a VPN after booting up using a systemd service. Now I want to host a systemd socket on this VPN connection. And the socket should ...
3
votes
0
answers
4k
views
Using SSH key for install npm module from private repository inside docker
I make container for nodejs project. Inside the project I am using private repository. I need an access to it. For that I am using next Dockerfile
FROM node:15
RUN echo "StrictHostKeyChecking no&...
3
votes
0
answers
1k
views
Use SNI with pip/pypi on Ubuntu 14 Trusty
pip no longer works on old versions of Python 2, because https://pypi.python.org/ now requires Server Name Indication (SNI), which isn't available in Python 2.7.6, the version of Python that comes ...
3
votes
0
answers
671
views
SSH Shell not popping even though the debug log shows it connected
I try to log in to my server using the standard ssh user@host command, and although it technically connects, I'm unable to get a shell. I have used this server for months and I don't understand what's ...
3
votes
0
answers
256
views
Single line reverse proxy with HTTP Basic Auth
I am temporarily exposing some HTTP services to the Internet and I would like to password-protect them. Because the exposure is just a few hours, setting up Nginx, Traefik or other heavy-weight ...
3
votes
0
answers
4k
views
MySQL 8 InnoDB taking a long time to start
I upgrade some month ago from Ubuntu 18.04 to 20.04.
So MySQL upgrade from 5.7.33 to 8.0.23.
I notice after the upgrade that MySQL is slow to start.
2021-02-24T09:20:16.972632Z 0 [System] [MY-013172] [...
3
votes
0
answers
221
views
Prometheus not monitoring all EC2 instances of a region
I have set up Prometheus for the monitoring of my AWS EC2 instances, but the issue is taht Prometheus is showing up only 1 instance, however in my AWS instance account there are 2 instances running. ...
3
votes
0
answers
2k
views
Cannot start opendkim service, but command line works fine
Good morning.. I've read about 15 different guides on setup with DKIM and Sendmail signing on ubuntu 18.04 and for some reason I cannot get the service to start, yet command line works fine
/etc/...
3
votes
0
answers
1k
views
MYSQL wait_timeout and maxlifetime
A few months ago I acquired a VPS and a few days ago I decided to install MYSQL in it, and I am having some errors regarding Minecraft / Spigot plugins that require MYSQL.
The error it gives me in ...
3
votes
1
answer
3k
views
virt-install Couldn't find hvm kernel for Ubuntu tree
I'm trying to create a VM using KVM and virt-installer. When i use virt-install I get the following error:
Starting install...
Retrieving file .treeinfo... ...
3
votes
2
answers
7k
views
I have to manually restart winbind.service after every reboot. Ubuntu 18.04
S.O. Ubuntu 18.04.4, Samba version 4.7.6-Ubuntu
I have this problem with this machine. Whenever the system restarts, winbind.service fail to start properly, and error "clock skew too great" is ...
3
votes
0
answers
639
views
Old administrator password of LDAP still working after it has been changed
I have a LDAP server in an Ubuntu machine which I browse using Apache Directory Studio. I just changed the administrator password by going to cn=admin and changing userPassword. However I noticed that ...
3
votes
0
answers
4k
views
Load testing throws Server 502 error: Bad Gateway after 700 users. Gunicorn, Gevent, Nginx, Django
I'm trying to reach 2000 concurrent users with my benchmarking tool. I'm using locust to simulate them.
My server has 24vCPUs, 128GB RAM, 25SSD.
I want to be able to serve 2000 concurrent users ...
3
votes
0
answers
1k
views
Ubuntu kernel boot arg `ip=` not honored; can't determine why
I have a machine with two network interfaces.
See below (context) for setup...
My boot params look like:
set i ${net0/ip}
set ns 192.168.99.101
set t tftp://${ns}/pxelinux.cfg
set h http://$...
3
votes
0
answers
1k
views
Cannot delete php/sessions folder
I could really use some help. I have a Ubuntu 14.04.6 account with DigitalOcean and am encountering some errors related to lack of space. When I ssh into the account and do a tab-completion at the ...
3
votes
0
answers
2k
views
how to use old MySQL data directory for a new MySQL installation
I have my Mysql data in a EBS volume in aws, I need to point my Mysql to point to that directory instead of /var/lib/mysql. These steps i followed by this doesnot change the datadir
sudo systemctl ...
3
votes
0
answers
1k
views
What means "Invalid cross-device link" error message inside a Jenkins Docker Pipeline?
I'm trying to setup the software tests inside Jenkins for a legacy project at work.
In order to run those tests i need to setup a Docker container based on an old ruby version having several packages ...
3
votes
1
answer
776
views
fail2ban not banning on Ubuntu 19.04
I configured a jail for a PHP application login page, but failed login attempts:
stephane@example:~$ tail -400f /home/stephane/dev/docker/projects/common/volumes/logs/php_error_log
[15-Oct-2019 12:15:...
3
votes
1
answer
4k
views
Wireguard: packets returning from server are dropped
I set up wireguard by now on one server (with NAT enabled) and on a client (ubuntu). When I don't route all the traffic via the tunnel everything works. As soon as I start routing all the traffic ...
3
votes
0
answers
3k
views
No internet access through L2TP/Ipsec using Ubuntu 18.04 - Routing table
I have set up a VPN network using the package https://github.com/nm-l2tp/NetworkManager-l2tp.
The VPN works well (on certain situations) but I think there's a problem with the routing.
When I'm not ...
3
votes
1
answer
3k
views
IPv6 default route is removed after net.ipv6.conf.all.forwarding is set to 1
I see the ipv6 default router is gone when I set my ubuntu VM to forwarding IPv6 packet.
Below is the snippet when I spin up my ubuntu VM:
tester@myubuntu:~$ ip -6 route
2001:420:293:242d::/64 dev ...
3
votes
0
answers
1k
views
nvidia-smi must be run by root before it can be used by regular users
On a newly built Ubuntu 16.04 machine, running nvidia-smi fails as a regular user
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest ...
3
votes
0
answers
2k
views
USB network adaptor (tethered mobile) not automatically activated
On a fresh installation of Ubuntu desktop (ubuntu-18.04.2-desktop-amd64) connecting an Android phone and enabling USB tethering automatically brings up a DHCP configured network adaptor:
ifconfig
...
3
votes
1
answer
3k
views
Run Systemd Service Unit After AWS EBS Volume Mount
I launch m5.large (nitro-based) EC2 instance from Ubuntu AMI and attach EBS volume. There is systemd as a default init system. As AWS documentation "Making an Amazon EBS Volume Available for Use on ...
3
votes
0
answers
1k
views
Openstack Error: No valid host was found. There are not enough hosts available
As a purpose of testing, I am trying to spin up instances of large size, I mean of 8 vCPU's and greater than 20 GB memory, with 50 GB storage. Physical host has 48 GB RAM and 16 CPU. But everytime ...
3
votes
0
answers
4k
views
Dnsmasq unable to resolve local host
I'm unable to get my local DNS server to work and totally stumped. Here's what I have done so far to make it work...
Dnsmasq configured on Ubuntu 18.04 ( Static IP: 192.168.1.100)
/etc/resolv.conf
...
3
votes
0
answers
2k
views
L2TP ipsec using network-manager-l2tp and strongswan ubuntu 18.04
The VPN works flawlessly on OSX and Windows 10 but no luck with ubuntu
VPN gets connected on ubuntu using
Phase1 Algorithms : 3des-sha1-modp1024
Phase2 Algorithms : 3des-sha1
And in 10 seconds ...
3
votes
0
answers
533
views
Puma + Nginx permission denied on files that don't exist
Getting an error in the nginx logs:
[error] 6193#6193: *1 open() "/home/ubuntu/app/assets/bootstrap.min-2e2a039f4eb020ba4438b6e2ad6a83748c14257a60f68facd2d72df75c452969.css" failed (13: Permission ...
3
votes
0
answers
671
views
kworkerds process using up all the cpu - ubuntu
Screenshot
I have this weird process using up the all the CPU. I kill it and it gets restarted again.
Not sure what's going on here and how do I proceed further. We have solr, apache and mysql ...
3
votes
0
answers
197
views
Preventing Ubuntu EC2 server locking up with high CPU
I have a server that runs celery tasks. It runs a couple of worker threads with celery multi start 2, configured using systemd. Sometimes, it gets overworked and hits 100% CPU. When this happens, ...
3
votes
1
answer
11k
views
Problems with setting up bonding on Netplan (Ubuntu server 18.04)
I have a dual port network card that I want to bond both ports and balance the traffic between ports. I want 1 static IP address. I used to ubuntu 16.04 and this worked fine. Im now trying to set ...
3
votes
1
answer
920
views
Has anyone had trouble deploying Azure VM using Ubuntu 18.04 after March 8th?
I have a template based deployment that deploys our dev, staging, and production environments. This template has been working just fine since mid February. When I attempted to deploy the dev site ...
3
votes
0
answers
1k
views
Can't use Intel Quicksync(headless) for transcoding
/dev/dri and /usr/lib/dri doesn't exist.
vainfo returns:
error: can't connect to X server!
error: failed to initialize display
Aborted
lspci | grep VGA returns:
00:02.0 VGA compatible controller: ...
3
votes
0
answers
107
views
How to know which program is modifying iptables?
I noticed at some random time, my iptables rules se flushed, or not matching what I set up. I'm the only user of this server, so it is not another user but it is another program I guess.
How to know ...
3
votes
1
answer
774
views
Hosting multiple websites (Apache Virtual Hosts), Postfix settings for sending mail FROM those domains?
I am not sure that this was the right solution in the first place but I have Postfix up and running on my Ubuntu VPS with G-Suite using
relayhost = [smtp.gmail.com]:587
Mail is delivering fine, ...
3
votes
0
answers
181
views
Desktop notifications for failed cron jobs on Ubuntu/Unity
How can I receive notifications of failed cron jobs via my Unity desktop environment?
The age-old solution of having cron send emails is problematic as my ISP doesn't provide an SMTP server, and it's ...
3
votes
2
answers
847
views
Loopback interface is renamed to rename1
On my Ubuntu 17.04 Server the Loopback Interface keeps beeing renamed to "rename1" during boot (Syslog: rename1: renamed from lo).
I tried to disabling renaming by editing grub.conf: ...
3
votes
1
answer
466
views
Trailing slashes with nginx and shiny server
Trying to get Shiny apps to load without using trailing slashes. Here is my sites-enabled
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index ...
3
votes
1
answer
2k
views
Ubuntu 16.04 server is listening but not accepting incoming requests
I recently upgraded my server from Ubuntu 14.04 to 16.04. The upgrade seemed successful (so I'm not sure if it's related) but about a week in I restarted the host and it now will not accept remote ...
3
votes
0
answers
2k
views
Ubuntu 16.04 Systemd not possible to use systemctl
I have a Ubuntu 16.04 server, since the last restart,
systemctl doesn't work anymore.
For example if I want to start the nginx, I get the following error:
root@SERVER:/# systemctl start nginx
...
3
votes
0
answers
8k
views
SSH fork of unprivileged child failed on connection
we have some problem when we try to make an ssh connection to our server.
When we connect with user X (ssh x@serverIP) we receive these errors on console:
Connection to serverIP closed by remote ...
3
votes
1
answer
862
views
Reverse Proxy nginx not serving subdirectories
This is very strange and I can't get my head around it. I have set up a nginx server to reverse proxy a docker container. Nginx seems to be able to server some pages, but not sub-directories, or ...
3
votes
0
answers
2k
views
How do I get Prosody to use TLS 1.2?
I have Prosody running on my Ubuntu 14.04 LTS server. I have OpenSSL 1.01f installed, which is confirmed by running openssl version. TLSv1.2 is supported and confirmed by running openssl ciphers -v '...
3
votes
0
answers
1k
views
why does nginx need to be restarted?
Ubuntu 16.04 starts nginx on boot. It's configured to proxy several dev websites on localhost. These sites are not running when nginx starts the first time.
If I start the websites and browse to ...
3
votes
0
answers
1k
views
Kernel modules won't load for NFS/RoCE Ubuntu 16.04 with latest drivers/software
I'm having trouble with NFS over RoCE on Ubuntu 16.04 using the latest OFED package provided be Mellanox (MLNX_OFED_LINUX-3.3-1.0.4.0-ubuntu16.04-x86_64.tgz). My cards are Mellanox 10Gbe and are RoCE ...
3
votes
0
answers
3k
views
Mount CIFS-share with users Kerberos-Ticket
we want to mount shares through autofs. Nothing special we thought. But: this must be done in some complex active directory circumstances. What we have:
integrated Ubuntu 14.04 workstations on which ...
3
votes
0
answers
2k
views
Block Bad Bots in Nginx for Multiple Sites
I need to block a bunch of robots from crawling a few hundred sites hosted on a Nginx web server running on a Ubuntu 16.04 machine.
I've found a fairly simple example here
(important part of the ...
3
votes
0
answers
4k
views
Trouble with cloud-init user-data on Ubuntu on vSphere
I feel like I must be missing something obvious here. So I'm hoping someone can tell me why I'm being dumb before I try to submit an official bug report.
I recently downloaded the OVA version of the ...
3
votes
0
answers
2k
views
Authentication vsftpd account using remote LDAP user
I'm trying to authenticate vsftpd from LDAP logins which hosted remotely another server .
vsftpd hosted on Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-48-generic x86_64) amazon aws .
from the LDAP server ...
3
votes
1
answer
2k
views
Docker DNS not working
I'm on ubuntu 16:
I have a server running a docker container with Bind9 that works as my network DNS server at 192.168.3.70. All the hosts from my network use this as DNS and it works great.
I have ...