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.
16,577
questions
0
votes
0
answers
169
views
How do I remove cloud-init backing image from my VM?
I am moving a VM from Ubuntu 22.04.3 LTS KVM host to a RHEL 8.9 Ootpa KVM host.
When I try to start the VM on the destination (RHEL) host I see,
error: Cannot access backing file '/var/iso/jammy-...
0
votes
1
answer
849
views
how to give permission to user or app to access /dev/ttyS0 without switching to sudo
I am writing a python app which access the /dev/ttyS0. When the script runs it give permission denied for accessing /dev/ttyS0.
PermissionError: [Errno 13] Permission denied: '/dev/ttyS0'
I tried ...
0
votes
1
answer
1k
views
Dovecot - rcpt [email protected]: Failed to initialize user
I have an SMTP server:
Dovecot as its IMAP server
Postfix as its MTA
OpenDKIM to sign the emails.
When I send mail it throws this error:
Jan 01 10:46:01 example.com dovecot[211047]: lmtp(219823): ...
0
votes
1
answer
219
views
Postfix doesn't send mail; example.com loops back to myself & Connection timed out
I have Postfix on Ubuntu 22.04. I can only receive but not send emails.
I have configured Postfix using How To Install and Configure Postfix on Ubuntu 22.04 tutorial from DigitalOcean.
sudo tail -f /...
0
votes
1
answer
245
views
Getting random http/s requests from certain IP addresses
Stack used: ExpressJs, NodeJs, Docker, Nginx, Ubuntu 20.04
I host my backend on DigitalOcean droplet with the tech stack mentioned above. My server constantly has been targeted multiple times on ...
0
votes
0
answers
56
views
ZKP5803 POS58 printer failing ti print with "Filter failed" message in Ubuntu
I am trying to install a POS58 thermal printer ZKTeco ZKP5803 in a raspberry pi 4 running Ubuntu 22.04. I updated it into CUPS as a POS58 but when I send the print I get "Filter failed" ...
1
vote
1
answer
481
views
Netplan configuration for bridge and route setup
I'm not very versed in netplan. Basic static IPs and VLANs are all I've really done.
I need to get this set of commands to persist on reboot:
ip link add loop-to-lan link eno1 type macvlan mode bridge
...
0
votes
1
answer
66
views
Is it possible to bind a port with HTTPS in nginx
I have a graphql api that works when accessed with http://example.com:4001/graphql but does not work with https://example.com:4001/graphql which is obvious as https takes the port 443 and here I am ...
0
votes
0
answers
98
views
MariaDB not starting after a server restart
I'm running a LEMP stack for my websites and they were running fine. Monitoring showed that the server wasn't responding to the pings, I restarted it. Now MariaDB service isn't running, my websites ...
-1
votes
1
answer
70
views
How to get the command of a process by an established port while ss, netstat and lsof failed?
Recently I have noticed extremely high network usage on a ubuntu server. I identified the port with nethogs. It connects to a SMB server within my LAN. It should be connected at boot for the dozens of ...
0
votes
0
answers
53
views
Monitoring network traffic on a multi interface Ubuntu server from the eyes of your provider
I tried vnstat and bmon as network monitoring tools to verify the bandwidth usage which my service provider is billing monthly. The number I reach is roughly 2 times greater than what they report. Now,...
1
vote
0
answers
195
views
Bind9 Permission issue, unable to sign zone
fellow experts, I am new.
I am on Ubuntu 22, I am looking to enable dnssec on my side by using Bind9.
However, I don't exactly know where and how to do it.
After some trials, I have come up with ...
0
votes
1
answer
134
views
pgrep -f from shell script is returning 2 pid instead of 1
code :
function main {
[ -z "$@" ] && { getProcessId "$@" } || "$@"
}
getProcessId(){
matchType=$1
#defaulting matchArg to x i.e exact match
matchArg=x
...
1
vote
1
answer
256
views
Configuring 2nd and 3rd NIC on Ubuntu 22
I'm trying to install 2nd and 3rd NICs on a Ubunutu 22 VM running on VMWare.
At first setup new VM with 1 NIC - that was successful and able to go out to internet:
network
ethernets:
ens160:...
0
votes
2
answers
138
views
Ubuntu server on Google Cloud Engine freezes randomly
I'm new to Google Cloud Engine, and trying to move my hosting to self-managed VM under Google Cloud.
I've setup VM with Ubuntu linux, chosen some Machine type (low spec to start with), configured ...
0
votes
0
answers
210
views
Internal Server Error when deploying Laravel using docker & reverse proxy
I'm trying to deploy my Laravel apps using docker. But got internal server error when accessing the url.
I have 2 server, one is for public ip & reverse proxy, and the second is where the Laravel ...
-1
votes
3
answers
2k
views
No Wired Connections in Ubuntu
I recently installed Ubuntu desktop 23.04.3 on a ThinkSystem RS630 Lenvovo server.
I have connected the server to my a working ethernet cable but I get no Wired Connection options on the network ...
-3
votes
1
answer
73
views
DHCP moved from [closed]
After connecting several Raspberry Pis running Ubuntu 23.10 to my switch, they are for some reason stepping on each others DHCP leases. DHCP is running on fpsense 2.7.2... Logs:
DHCPREQUEST for 192....
0
votes
0
answers
76
views
AWS EC2 networking
I've been trying to understand how exactly networking works for EC2 instances, more specifically I'm coming from on-prem infrastructure where I had dedicated networking devices (switches/routers) ...
3
votes
0
answers
120
views
How to investigate 100% CPU load for 15 minutes on random days
"I have a server that runs a website on Apache2 and is behind Cloudflare. The server's normal load, according to 'htop', is 10%. However, at random days/times, the server load spikes up to 100%, ...
0
votes
2
answers
87
views
How can set the order of name servers in LINUX?
This question is in context with the DNS queries by postfix MTA in Ubuntu OS. The issue I am facing is that I have two name servers one internal and one external. External DNS name server is added in ...
0
votes
1
answer
191
views
Milter Application Error Postfix Email Server
I am trying to sign the emails on my email server with opendkim but I am running against an error that I just can't seem to fix. The error I am getting is: warning: milter local:opendkim/opendkim.sock:...
0
votes
0
answers
63
views
High CPU load by KVM VM
VMs are hosting Java and they seem to be using high sy% CPU on the server.
Is there a way to limit it via Libvirt ?
Other VMs not using Java in them are not using that much sy% on the server.
I ...
0
votes
1
answer
249
views
OpenResty permission denied even though user has access when testing with sudo
I have a weird issue I can't seem to figure out.
I am using OpenResty. The way it should work on that particular server is that the whole configuration and Lua scripts and everything comes from a Git ...
0
votes
1
answer
106
views
How can I identify why my apache server getting killed once in every few days?
I have an Ubuntu 22.04 lts vps (Contabo) with apache installed. Basic install, nothing really edited or configured.
Every few day, the apache gets killed by the OOM killer and I don't know what ...
0
votes
0
answers
19
views
Compute Engine being underutilized
I got a notification saying that my VM instance was being underutilized and that I should change to a lower specification. If I do that, would I lose all the data on the VM.
0
votes
0
answers
26
views
How to configure Apahce with websocket through python daphne DJango on EC2 server
Below is my virtual host for running python
<VirtualHost *:8000>
DocumentRoot /var/www/VITSBACKEND
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log ...
0
votes
0
answers
123
views
Kubernetes keeps crashing (Vagrant master+3-node set)
To demonstrate what I've done, I put together a repo with a Vagrant + Cloud-init config.
https://github.com/johnmanko/vagrant-k8s-cluster
Basically, Kubernetes keeps crashing, and I don't know why. ...
0
votes
1
answer
266
views
Cloud Init can't create Apt source from k8s.io due to 302 redirect
I'm attempting to add the k8s.io apt package source to a VM using cloud-init, but the URL provided from the docs does a 302 redirect, and gpg doesn't like that.
cloud-init config.yml:
apt:
...
-1
votes
1
answer
66
views
Deb installation asks me to give inputs
When I trying to install 'nullmailer' in Ubuntu Jammy(22.04), it prompts to provide some required inputs like Mailname of your system:. Is there any way to avoid prompts while installing and ...
1
vote
2
answers
67
views
Not able to login to server with subdomain
I have set up an a record on a subdomain of mine which points to the IP address of my server. I am now trying to ssh into my server using [email protected] but I am getting the error could ...
0
votes
0
answers
211
views
Cloud Init isn't adding Apt sources BEFORE apt update is executed
I'm trying to install packages from docker and k8s.io, but package_update: true isn't using the newly added sources, and finding those packages fails.
Here is part of the cloud-init config:
apt:
...
0
votes
0
answers
87
views
Unable to create SSL for Ubuntu VPS NextJS application
I am trying to get an SSL for my websites hosted on Ubuntu VPS. I am receiving the following error upon running sudo certbot --nginx -v
Certbot failed to authenticate some domains (authenticator: ...
0
votes
2
answers
108
views
Issues with VPS provider limiting CPU usage with data processing Spring Boot application
I developed a Java Spring Boot application with a PostgreSQL database. Since the data being processed is quite a lot, the processing can take time and it uses a lot of CPU (e.g. up to 100% obviously). ...
0
votes
0
answers
36
views
Certbot enables root domain, instead only subdomains
I own a domain, lets say example.com.
I want a root domain example.com to be 404 or return a blank page (if 404 is not possible).
sub1.example.com - should redirect a traffic to a running docker ...
0
votes
2
answers
194
views
Cannot connect to WikiJS running in Docker via HTTPS
I have a new WikiJS installation on a DigitalOcean droplet (using the marketplace image). I cannot access the site via HTTPS, either with the domain or IP address, but HTTP is fine.
I get a pretty ...
0
votes
1
answer
62
views
Setup raid for a volume group consisting out of 2 nvme drives
I bought 4 x 4tb nvme volumes.
I already tested them and they are doing fine.
Operating system is Ubuntu-server 23.04.
What i want to achieve is the following:
2 drives act as one. (I think that is a ...
0
votes
1
answer
167
views
kubectl get nodes --kubeconfig admin.kubeconfig returns "No resources found"
I am a newbie in Kubernetes. I am not even very familiar with basic kubernetes commands, but the installation is a starting point for my learning journey. I wanted to avoid installing something like ...
0
votes
1
answer
61
views
Securing a secret key on a linux server to be consumed by a software running on the server
I'm not an expert in server security and I have a question regarding a situation where server is being compromised. I have a nodejs app which is a bot that only have https connection to read from some ...
0
votes
0
answers
286
views
How to upgrade postfix/dovecot/spamassassin/postscreen email server from Ubuntu 20.04 to Ubuntu 22.04?
I am running an Ubuntu 20.04 based LEMP Email server running Postfix, Dovecot, Postscreen, and SpamAssassin. I built the server using this Linuxbabe Guide, and followed the instructions and every ...
0
votes
1
answer
146
views
How to set up the relayhost to send emails to other external SMTP servers using PostFIX?
I am currently configuring an SMTP server on OCI but have some doubts. I would like to send emails with my domain to external servers such as GMAIL, OUTLOOK, and others.
I had configured the "...
0
votes
0
answers
85
views
Docker performance issue with nested Ubuntu KVM
I have an issue with docker performance in a nested Ubuntu VM. Here's the setup:
OpenStack Infrastructure
My Workstation (A)
My Project Host (B)
My Project VM (C)
Version info:
OS: Ubuntu 22.04
...
-1
votes
1
answer
132
views
Ubuntu - Nginx client cert authentication: is a public CA a security risk?
I am struggling with a Nginx setup as reverse proxy with client certificate authentication. The client is only accepting publicly signed certificates to be imported as client certificates for ...
0
votes
0
answers
48
views
Softether VPN Client - vpncmd - Two different MAC addresses for one virtual interface
I've encountered strange MAC behaviour in my system - I've got 15 Linux Ubuntu machines with NetworkManager disabled and dhcpcd as DHCP client. Those devices connect to my SoftEther virtual HUB and as ...
0
votes
1
answer
255
views
Netplan - add secondary IP address and assign label
I saw the same question here, but I can't find it anymore. How can I add secondary IP address and assign a label to it via netplan?
I have this netplan config:
# This is the network config written by '...
1
vote
1
answer
978
views
Issue with sshd logfile using fail2ban on minimal Ubuntu server 22.04
I am working on trying to get fail2ban set up and enabled for sshd on my VPS with Ionos. I am using a minimal Ubuntu 22.04 server install.
fail2ban has installed fine, but getting it to run seems a ...
1
vote
1
answer
142
views
Ubuntu server 23.10 100% CPU cannot ssh - how to diagnose?
I have a ubuntu 23.10 server running on an arm board. Occasionally it seems to get into a situation where it appears to run at 100% (judging by the pwm fan speed). I can ping it, but I cant ssh to it. ...
0
votes
0
answers
51
views
Is it possible to disallow external IPs from accessing a page of a React site?
I'm currently learning React to host a personal website (on an Ubuntu server) and am port forwarding it to allow access from the internet.
However, for security reasons, I'd like one or more pages to ...
0
votes
0
answers
99
views
NGINX Multi Site * SSL Subdomains: Configuration file error : [emerg] duplicate listen options for 0.0.0.0:443
Currently in process of installing SSL on an NGINX, Ubuntu 22.04 Vultr server. I have two existing domains on the server. Setting up a wildcard SSL for an Wordpress Multi Site (Subdomain base) and am ...
0
votes
0
answers
101
views
getting following error on ubuntu 22.04 when trying to ssh into any server. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Very annoying but solved by uncommenting:
vim /etc/ssh/ssh_config
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc