Questions tagged as ['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 is specifically dedicated to Ubuntu questions.
Score: 0
Whip avatar
Fail2ban exited and didn't start back up
cn flag

Today I faced a what seemed like a DDOS attack. My server provider warned me about excessive CPU usage (400% for over 6 hours) and I couldn't access any website, could not login via SSH either. Lish console reported an error that went something like 'php-fpm out of memory'.

Only thing I could do was a hard reboot. After server was up again, I looked at fail2ban's status and it shows 'active(exite ...

Score: 0
PShaikh avatar
Unable to install K3s on Proxmox VM
cn flag

I'm trying to create an HA k3s cluster using Proxmox and a small fleet of Raspberriy PIs 4B.

For the PIs everything works fine, but when trying to install a master on a Proxmox VM it will not start.

My Setup:

  • Host: Proxmox 7.0.7 (I tried with 6.4.4 as well)
  • Guest: Ubuntu 20.04.2
  • K3S: v1.21.3+k3s1 (I tried with v1.19.13+k3s1 as well)
  • MariaDB: 10.3

I'm running these commands in order to install th ...

Score: 1
wally40 avatar
Resizing Virtual Ubuntu Server
cn flag

I have a virtual instance of Ubuntu Server running. Increased the virtual disk from 37GB to 50GB, but now stuck on getting the additional space to the LVM.

I have tried lvextend and resize2fs with the following results;

sudo lvextend -L +14G /dev/ubuntu-vg/ubuntu-lv
Insufficient free space: 3584 extents needed, but only 0 available

sudo resize2fs -p /dev/ubuntu-vg/ubuntu-lv 
The filesystem is already ...
Score: 0
MBiabanpour avatar
Apache Guacamole working fine over HTTP, but not over HTTPS
us flag

I've recently installed Apache Guacamole on Ubuntu 20.04 LTS and use NGINX as the proxy server. Everything works fine with it over HTTP but when I use HTTPS, the application still loads, but then the connections are super slow (get stuck for some seconds). About configuration, I've exactly done what the official documentation says and all the services run on the same server.

EDIT: NGINX Configuration: ...

Score: 2
Jacob avatar
mdadm partitions gone after reboot
ru flag

I had a RAID 6 setup in Cockpit UI with multiple partitions. There was one partition in particular that I wanted to extend from 10TB to 11TB using available space and attempted on /dev/md127p6 using "growpart /dev/md127p6 1". Afterwards I noticed I could access some of the mount points in the system under this array (two of them actually).

From that point I decided to restart (checked /proc/mdsta ...

Score: 0
MBiabanpour avatar
Strange behavior of Docker's Image Pull Rate Limit
us flag

I have an Ubuntu 20.04 LTS Server with packages docker-ce, docker-ce-cli, and installed on it. When I try to pull an image from Docker Hub for the second time this day, the toomanyrequests error shows up but as of Docker's website, I'm allowed for about 100 pull requests per day. Is there anyone who knows what the solution to this problem is?

Score: 0
Ananth avatar
Will dropbear-initramfs work along with a keyfile in crypttab in Ubuntu (21.04)?
cn flag


# <target name> <source device>         <key file>      <options>
crypt_root UUID=12989868-19fe-4834-90a8-f1bf13977745    /dev/disk/by-label/wopr_keys:/crypt_root_key  luks,discard,keyscript=/lib/cryptsetup/scripts/passdev,initramfs,x-initrd.attach                                                        
crypt_swap /dev/disk/by-id/scsi-SSamsung_Portable_SSD_T5_4B1C ...
Score: 1
zkvvoob avatar
Ubuntu 20.04 + Docker: correct folder permissions
kp flag

When I was setting up Ubuntu 20.04, I opted for Docker to be installed as well. I haven't made any changes to its settings (i.e. I believe Docker runs as root), apart from creating a docker group and adding my user to it.

My containers store their data in /home/docker. In order for me to be able to FTP into the folder and add/edit some files, I changed the ownership of all subfolders to myuser:myuser

Score: 0
Output iptables drooping 443 even when rule allows it
cn flag

Output iptables drooping 443 even when rule allows it

This are my current rules

INPUT DROP [2:406]
:DOCKER - [0:0]
:DOCKER-USER - [0:0]
:LOGGING - [0:0]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -s -p udp -m udp --sport 53 -m co ...
Score: 1
IPTables -m set unknown option
cn flag

I'm having trouble seting-up iptables on Ubuntu 20.04.

Does anyone know why this doesn't work?

# iptables -A INPUT -m set -–match-set cf src -p tcp -m multiport –dports http,https -j ACCEPT
iptables v1.8.4 (legacy): unknown option "set"
Try `iptables -h' or 'iptables --help' for more information.

My cf has the cloudflare ip's:

for x in $(curl; do ipset add c ...
Score: 0
UBKB avatar
debmirror not sync dist-upgrader-all correctly
in flag

We have mirrored the Ubuntu bionic from with debmirror tool in Centos 7 and we can upgrade servers with this local mirror without any issues,but when we were trying to do-release upgrade server we got error like below files are missing.

dists/bionic-updates/main/dist-upgrader-all/current/ReleaseAnnouncement dists/bionic-updates/main/dist-upgrader-all/current/ReleaseAnnouncement ...

Score: 0
Sahat Shah avatar
How to protect Backend server from DDoS
in flag

I live in a country where there is no DDOS protection for game servers ( UDP Protocol ).

Since latency is important for users, I can't host it in other country or region.

So I have only one option left and that is using fail-over servers.

Current architecture

I have a main dedicated server where game server is running.

I have 64 dummy VPS where I have installed Nginx proxy.

So the main server's IP  ...

Score: 0
TravelWhere avatar
How to delete specific files?
cn flag

I'm running Ubuntu 20.04. I have a directory with million of files named like this


How can I delete all of master-stdout.log files?

Score: 0
Syntax Error avatar
NFS mount is gone after reboot, but present in fstab
es flag

I have added the following to /etc/fstab, which I understood would automatically mount upon startup of the machine. /nfs/plex nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

However every time I reboot my server I have to run sudo mount -a in order to see anything in the /nfs/plex directory. Otherwise it is empty.

The network storage location (Synology NAS) was ...

Score: 0
iptables doesn't redirect 443 to 8443 on local machine
cn flag

I want to redirect all the traffic from my computer from port 443 to port 8443. All the traffic is on the same machine. A proxy server is listening to port 8443 and i tried to add the following Rule:

sudo iptables -t nat -A PREROUTING -i wlp3s0 -p tcp --dport 443 -j REDIRECT --to-port 8443

But my proxy didn't get any package. wlp3s0 is my wifi adapter according to ifconfig. What did i wrong?

Score: 0
commands which dont exist refer to python instead of apt suggestion
de flag

I had some issues when installing a newer version of python on my ubuntu installation. Having downloaded a few different versions i then changed some soft links including repointing python to the 3.8 version as well as pip to pip3.

Now my issue is that when ever i type something that normally I would get an apt suggestion for or expect to a command not found error i now get a python error

Example from ...

Score: 1
SebaSbs avatar
Missing disk half space on Ubuntu 18.04.5 LTS VPS
ru flag

My client has a problem with one server, plesk is throwing error 500, and the websites hosted there act weirdly. I found out it's because the system ran out of space, technically. My problem is that when i perform a lsblk command, something weird appears.

sda             8:0    0   240G  0 disk 
├─sda1          8:1    0   487M  0 part /boot
└─sda2 ...
Score: 0
Johnson Sebire avatar
Cloudron Open Port 5080
pl flag

I'm attempting to run Antemedia on a Server which is pre-installed with Cloudron. It appears Cloudron's Firewall system has blocked port 5080 by default. There doesn't appear to be an option to open this port inside Cloudron. Does anyone have an idea how I can open port 5080 so I can access the Antmedia Application as this runs on port 5080?

Score: 1
Alan avatar
DNS lookup not working when using Ubuntu as an access point
in flag

I have a Ubuntu system with a wired connection to a router, and a USB connection to 4G internet via an iPhone. I want to be able to connect other clients to the router and access the internet via the 4G link. I have followed the steps here iptables forwarding between two interface and it is successfully routing ping requests and seems to connect to sites provided I use the IP address of the site rath ...

Score: 1
Hamza AZIZ avatar
high CPU usage of MySQL and recommendation from Mysqltunner
sn flag

we have noticed that our database server is getting so high CPU (more than 90 % used by mysqld process), the output of mysqltunner is shown below, can you help me please,

i'm okay about the innodb_buffer_pool_instances(=7), but is there some other suggestions ? enter image description here

enter image description here

enter image description here

Score: 0
Anand Bajpai avatar
DHCP Pools on Ubuntu DHCP server not working properly
do flag

Mac addresses ending with "55:a3" and "56:2a" are also ending up in last pool

123    match if binary-to-ascii(16,8,":",substring(hardware, 5, 6)) = "55:a3";                                                                                                                                                                
124 }                                                                                ...
Score: 2
Adrian avatar
Initial connection (TCP handshake) takes 150 seconds first time with https only, but normal from then onwards - Apache - AWS EC2 - Route 53
in flag

I'm new to web deployment. I have this at this stack at the moment:

  1. Django
  2. Apache
  3. EC2
  4. Route 53
  5. Namecheap

When I access the website through the public IPv4, it is instantaneous.

However, when I access the web page through the domain, it takes 2 minutes and 30 seconds exactly.

This picture shows the waterfall graph

In more detail

I see that there's no problem with the DNS lookup, nor the SSL, so the  ...

Score: 0
live2 avatar
Ubuntu install with pxe boot (UEFI)
in flag

Do I need to create a special configuration to install an ubuntu server with uefi over network pxe boot? I have on my boot server the default pxelinux.0 file. After installation of a new hardware i have checked the filesystem /sys/firmware/efi/vars/ and the uefi folder has files. With this my system should run under uefi.

Since I have found some instructions in the internet on how to set up a uefi  ...

Score: 1
Ubuntu package revision not found in GitHub actions
co flag

I use GitHub actions with an Ubuntu 20.04 runner, and since last Saturday, started getting an error in Github actions log. I had not changed the yml config.

The error:

Get:79 focal/universe amd64 proj-bin amd64 6.3.1-1 [88.8 kB]
Fetched 55.7 MB in 1s (61.8 MB/s)
E: Failed to fetch ...
Score: 1
ibrewster avatar
Clear ZFS Checksum errors?
in flag

TLDR; My ZFS mirror pool got some checksum errors. I replaced the controller, thinking that was the most likely cause, but the errors won't clear. pool clear temporarily resets them, but they come back the next time I run a scrub. How can I clear them for good?

Full story: I have had a ZFS mirror-0 set up and running on ubuntu 20.04.2 LTS for some time. When one of the drives died, I took advanta ...

Score: 2
Gediminas avatar
How to stop unstoppable mysql-server package on Ubuntu 20.04
ua flag

So I purged and then tried to install mysql-server package on Ubuntu 20.04, it doesn't let for some configure problem. I found out that it doesn't even stopped and it seems that it automatically runs itself up again, I can't stop it no matter what

gediminas@ubuntu-g:~$ sudo ps aux | grep mysql
systemd+    9177  5.5  2.2 2123136 364052 ?      Ssl  21:21   0:00 mysqld
gedimin+    9354  0.0  0.0  2020 ...
Score: 1
Top Stars avatar
Postfix / Dovecot can't send or receive e-mails in Ubuntu 20
de flag

I've generated ssl files using letsencrypt and everything is installed and configed but my IMAP and SMTP are not working. What I can find from the /var/log/mail.log file is this error:

dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>,TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL al ...

Score: 0
kittygirl avatar
`bad-setting (Reason: Unit nftables.service has a bad unit file...` when add `/etc/systemd/system` conf to nftables
us flag

System is debian 10 with nftables.
I plan to make nftalbes auto restart when failed,script as below:

cat << EOF >> /etc/systemd/system/nftables.service.d/override.conf

systemctl daemon-reload

Output shows bad-setting:

systemctl status nftables.service

nftables.service - nftables
   Loaded: bad-setting (Reason: Unit nftables.service has  ...
Score: 0
kittygirl avatar
How to get the permission of `/run/user/1000/gvfs` when system is newly installed?
us flag

System is newly installed debian 10.
I cannot get the permission of /run/user/1000/gvfs properly,changed from d????????? ? ? ? ? ? to dr-x------ when cd /run/user/1000.

me@pc:~$ sudo ls -al /run/user/1000
[sudo] password for me: 
ls: cannot access '/run/user/1000/gvfs': Permission denied
total 0
drwx------ 11 me me 280 Jul 22 14:53 .
drwxr-xr-x  3 root  root   60 Jul 22 02:07 ..
s ...
Score: 0
Adamski2505 avatar
Ubuntu Updates Cause NGINX Lockup
us flag

I've encountered and issue with 2 different nginx/Ubuntu based Load Balancers this week, hoping someone might be able to help.

Each machine has received the following updates in the past 24 hours apt update log

That has caused nginx to stop accepting traffic, subsequently causing an outage.

running " service nginx status " still shows as "green" with the Service running, and an uptime of since the la ...