Questions tagged [ubuntu-20.04]
Ubuntu 20.04, named "Focal Fossa" is a Long Term Support release of Ubuntu Linux (released on April 23rd, 2020). Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.
381
questions
4
votes
4
answers
8k
views
Make NFS server listen only on a specific interface
I am trying to run a NFS server (nfs-kernel-server package) on a Ubuntu 20.04 machine and want to make it only acessible via VPN.
I have set the appropriate IP address in the /etc/exports file and my ...
0
votes
1
answer
5k
views
ssh-keyscan to known_hosts produces no results
When I execute:
ssh-keyscan -H 172.22.56.2
I get the following output:
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22....
0
votes
0
answers
243
views
After upgrade from MongoDB 4.x to 5.0.2 shows Connection Refused trying to connect BD from Private Network
I have upgraded my MongoDB from 4.x to 5.0.2 into a Ubuntu 20.04 system. This server is an AWS EC2 Instance. After upgrade I can't connect my applications from other ec2 instances using the same ...
0
votes
2
answers
4k
views
Cannot add extra ip addresses on Ubuntu 20.04. using netplan
My servers has 10.20.10.100 ip address on eno1 interface.
I can successfully add temporarily ip address 10.20.50.60 (or any else).
When I try to add permanently using netplan I cannot connect to ...
0
votes
1
answer
60
views
Easiest/best way to only allow certain IP ranges for access
I'm looking for the easiest/best way to only certain IP ranges to access my Ubuntu 20.04 installation. I would mainly like this so I can block web traffic (apache), but a full server block would be ...
7
votes
2
answers
11k
views
apt-get throwing warning: "W: --force-yes is deprecated, use one of the options starting with --allow instead"
I'm running on Ubuntu 20.04 on Circle CI "machine" executor. Today I see that:
sudo apt-get install -y pkg1 pkg2
is throwing this warning:
W: --force-yes is deprecated, use one of the ...
4
votes
2
answers
3k
views
Influxdb is restarting constantly since my last reboot
Since my last reboot, I am seeing the following every 1-2 minutes:
Aug 02 13:53:00 monitor systemd[1]: influxdb.service: start operation timed out. Terminating.
Aug 02 13:53:00 monitor systemd[1]: ...
1
vote
1
answer
944
views
IPTables -m set unknown option
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 ...
0
votes
1
answer
1k
views
Cannot enable OpenLDAP memberOf of Ubuntu 20.04
I've spent the last few days following multiple how to guides to create an LDAP server with memberOf enabled, on a fully updated clean install of Ubuntu Server 20.04.2, purging between each attempt.
...
0
votes
0
answers
145
views
Linux make file executable inside service
I do have service looking like this:
[Unit]
Description=API environment service
[Service]
WorkingDirectory=/var/www/api
ExecStart=/var/www/api/api
Restart=always
# Restart service after 10 seconds if ...
-1
votes
1
answer
628
views
Ports closed remotely while they are open locally [closed]
i have a problem with a mariaDB server, the port is locally open, but on a remote desktop, the port appears closed.
Port Status service
3306/tcp open mysql
^^^^ localhost output
...
-1
votes
1
answer
267
views
bind9 not resolving intranetlinks
As a follow up to a question I've asked earlier: Linux server migration to Windows workstation. A supplier got us a new network-card yesterday, but no harddrives so far. I've also bit the bullet on ...
1
vote
1
answer
861
views
Ubuntu 20.04 Mysql8 keep accepting null/any password for root
After installing "mysql-server" on ubuntu20 and running "mysql_secure_installation" and setting a password the system still not authenticating correctly and still accepting any/...
1
vote
1
answer
56
views
How to configure and use all the IPs given by my provider?
Need assistance on how to use all the Ips given from my hosting provider. Currently i have 5 IPs that is routable and can be used on any circumstances. I wanted to make a new environment on my ...
0
votes
0
answers
2k
views
Docker error - "cannot open path of the current working directory: Permission denied"
I'm currently learning Docker and just migrated to an Ubuntu 20.04.2 VM running in VMware workstation player as my Raspberry Pi 2 running Debian 9 has kicked the bucket. Seems Docker requires some ...
0
votes
1
answer
729
views
NGINX https not working after I set it up?
I solved it, see my answer below!
So I just used certbot to generate an nginx certificate however https:// on my domain doesn't work. It gives me a 403 forbidden error.
SSL Configuration:
server {
...
1
vote
1
answer
555
views
set domain to a ubuntu 20.04 vps with bind
so I have a ubuntu 20.04 vps and a website running on it, I wanted to point my domain to it. but nslookup railnet.ir gives ** server can't find railnet.ir: SERVFAIL
the vps ip is 87.236.210.159 and ...
0
votes
0
answers
182
views
Cannot get Postfix Address Rewrite to work; Diagnostic tool fails
I am setting up a VPS with Ubuntu 20.04 to host a phpBB board, say "myvps.myserviceprovider.com", to which "mydomain.net" is assigned. I also have defined the MX record for my ...
2
votes
0
answers
2k
views
Static IP - Destination Host Unreachable
I'm a newbie to system administration. I've installed remotely a Dell server using iDRAC interface. Server's ip is 200.159.243.146 and everything is fine with it.
Using this interface I've installed ...
1
vote
2
answers
3k
views
nftables - limit rate behavior (error or misusage ?)
I am trying to set up a firewall with nftables but I failed to understand and implement a simple rate limit based on the documentation I have found.
OS : Ubuntu 20.04 LTS
nftables version : 0.9.3 (...
0
votes
1
answer
4k
views
xrdp fails to start on Ubuntu 20.04, firewall inactive - how do I fix this?
I'm trying to connect to a Hyper-V instance of Ubuntu 20.04 via RDP.
I've installed xrdp, but it won't start:
systemd[1]: Starting xrdp daemon...
xrdp[1906]: (1906)(140210881615680)[INFO ] address [...
3
votes
2
answers
16k
views
How to set up fail2ban with UFW on Ubuntu 20.04?
I'm trying to block IP addresses with fail2ban and ufw with the following configuration and the default ufw.conf in /etc/fail2ban/action.d.
Jail config
[app-custom]
enabled = true
maxretry = 1
...
0
votes
0
answers
967
views
postgresql stopps working shortly after install
I have a ubuntu 20.04 server (root server at hetzner.com if that helps anyone) and I am trying to get a simple postgres running. Installation (following this guide https://tecadmin.net/how-to-install-...
6
votes
1
answer
2k
views
No DKIM headers in sent mails from postfix
I have two postfix, one for receiving mails and the other for sending mails, and I am having trouble signing dkim on my outgoing mails. I followed this tutorial.
Logs also is not helping me point to ...
0
votes
0
answers
286
views
Can't download .bin file from server (Apache 2.4.48)
I have an Ubuntu server with Apache2.4. (Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-74-generic x86_64))
I updated Apache from 2.4.46 to 2.4.48 and everything else I have tested is working properly except ....
0
votes
1
answer
534
views
Installing ASP.net on Ubuntu 20.04
I'm trying to add ASP.net onto my Ununtu 20.04 server. As per:
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
They tell you to:
wget https://packages.microsoft.com/config/ubuntu/20....
1
vote
1
answer
163
views
VM in proxmox shows more RAM then assigned?
I assigned 10Gb of ram to my VM but inside the VM it mentions that it has allocated all the ram available in my server (48). Why is this happening? I have a windows VM aswell and there it just shows ...
2
votes
0
answers
4k
views
Nginx how to disable per ip rate limiting
I have a API which connect through private ip of the EC2 server and execute sequence of callbacks. I want disable per ip rate limiting on this scenario. I have tried this method in Nginx documentation....
1
vote
1
answer
1k
views
Identifying specific devices when using sensors in ubuntu
I am running the sensors command in Ubuntu 20.04 to try and get a temperature reading for my NVME SSD drives. However, although I can see the drives I am not sure which one is which:
nvme-pci-2300
...
2
votes
1
answer
3k
views
Cannot SSH to second network interface in Ubuntu 20.04 on EC2
I have a VPC 10.0.0.0/16 with an Internet gateway and two subnets 10.0.100.0/24 and 10.0.200.0/24 in the same availability zone. A single security group allows tcp/22 inbound from 0.0.0.0/0 and ...
0
votes
1
answer
527
views
Should I change the default folder for uploads?
PHP 7 uses the default system folder (/tmp) to store uploaded files. PHP allows you to change the settings and change the upload destination directory. Some sites indicate to change this folder to ...
0
votes
1
answer
951
views
Can ssh into Ubuntu 20.04 virtual machine but domifaddr shows no IP
I created an Ubuntu 20.04 virtual machine following this guide.
I am able to ssh into the virtual machine using the IP address I wrote in the network-config file, i.e., 192.168.122.101, however, when ...
0
votes
2
answers
2k
views
Ubuntu 18.04 to 20.04 : Broken Update
I upgraded from 18.04 to 20.04 using :
do-release-upgrade
After downloading all the packages it asked me if I wanted to keep my version of an existing config file. Trying to exit out of the file, I ...
0
votes
1
answer
37
views
Unwanted site traffic to my WP site
I am getting lot of unwanted web site traffic to my WordPress web site. It is apache web server on Ubuntu 20.04.
Is there any way to block them.
Please refer the screen shot.log example
0
votes
2
answers
2k
views
Ubuntu 20.04 cloud image can't get IP address
When using virt-install to create a guest, CentOS 7.9 cloud image successfully gets an IP address, which can be checked with sudo virsh domifaddr <domain>. However, Ubuntu 20.04 LTS cloud image ...
2
votes
1
answer
2k
views
How do I properly use flock(2) with a cron script?
I am using a crontab to execute a php script that retrieves data and writes it to a database. My crontab entry looks like:
* * * * * php /path/to/file/fileName1.php
* * * * * php /path/to/file/...
1
vote
0
answers
419
views
Ubuntu Snap Service Configuration (for "webhook")
How do I set service configuration options for a snap. Specifically this one:
https://snapcraft.io/webhook
I've tried:
$ sudo snap get webhook
error: snap "webhook" has no configuration
$ ...
0
votes
1
answer
1k
views
Broken MySQL Installation, Cant Install or Uninstall
So, ive installed MySQL but in the middle my PC Decided to crash and the Linux Terminal died therefore cancelling the operation... Now when i try to install it i get this
0 upgraded, 0 newly installed,...
0
votes
1
answer
142
views
How to Run/Access different web directory for virtual host other than default root?
I made the virtual host setup in Ubuntu 20.04 for accessing virtually to my web projects. I have followed the necessary steps properly, but since I wanted to work more portable and access my web ...
0
votes
0
answers
3k
views
Getting error while connecting with other nodes in cluster
I create Galera cluster for mysql 8, when i'm restarting the nodes it is connecting in the cluster but after few seconds its getting disconnected. Please help me to fix this issue. Please see the logs-...
0
votes
1
answer
2k
views
nfs downgrading from 4.2 to 4.0 depending on the client machine while theoretically capable of 4.2 - why?
I'm playing around with NFS to test some client options.
Before going with the "options" thing, I just test a "by-default" connection from a couple of clients to a given server, so ...
0
votes
0
answers
633
views
Yellow text on startup - Ubuntu Server 20.04
I have an ubuntu 20.04 server and when I start my server the text is yellow? I have searched google but I haven't found anyone with the same problem as me, any help is greatly appreciated.
0
votes
1
answer
2k
views
veth does not respond to other veth ping requests on same bridge
I created two veth pairs and connected them to the same bridge. However, they do not respond to ping requests. This is ubuntu 20.04.
# create the interfaces and bridge
sudo ip link add br0 type ...
0
votes
1
answer
2k
views
How do I block incoming traffic from Google Cloud IPs?
I'd like to block ALL incoming traffic from Google Cloud IPs.
I don't know how to do this, and I don't know how to know what the Google Cloud IPs are.
I have a dedicated server running Ubuntu 20.04 ...
-1
votes
1
answer
159
views
Fail2Ban is not updating iptables rules
I have set up fail2ban to protect my ssh port using these rather old instructions: https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-ubuntu-14-04
I tested my set-up ...
0
votes
1
answer
7k
views
pcs creating cluster fails because of unknown hosts
I am following several tutorials now and all of them have such steps -- authenticate given hosts in pcs and then create cluster. Yet in my case the first step (authenticating) works while the second ...
1
vote
2
answers
3k
views
Custom listen ports for Apache not working
I wanted Apache (v2.4.41) to listen to port 802 and 44302 instead of 80 and 443 on my Ubuntu (v20.04) server so I did the following:
Edited the port numbers in /etc/apache2/ports.conf. Now the file ...
1
vote
1
answer
3k
views
systemd-resolve fails to resolve hostnames when using bind9
I'm running Ubuntu 20.04. I set up bind9 inside a docker-container that I want to use as the dns-server. The container is running fine and will resolve correctly if queried with dig.
Running dig on ...
2
votes
1
answer
2k
views
Why ubuntu 20.04 cannot support mysql 5.7.33?
Today I tried to update ubuntu from 18.04 LTS to 20.04 LTS.
with do-release-uprade
After upgrade completed, I tried to start mysql with service mysql start
The result is
Job for mysql.service failed ...
0
votes
1
answer
67
views
Is it Safe to Use "ufw allow from xx.xx.xx.xx" Command for IP Addresses Which are Faced With UFW_BLOCK?
I have UFW opened on my database servers and I have seen a lot of UFW_BLOCK logs. Is it safe or right to use "ufw allow from xx.xx.xx.xx" and "ufw allow to xx.xx.xx.xx" command for ...