Author: admin

How to change the LiteSpeed connection timeout?

If you see errors like the following you need to change the LiteSpeed connection timeout setting. 2021-09-01 03:33:04.222931 [INFO] [12071] [198.51.100.2:11313#APVH_domain.tld:lsapi] Lsapi connection state: 3, watching event: 25, respState: 1, m_iTotalPending:0, m_iPacketLeft:0, m_iCurRespHeader:12, req sent for 121 seconds,Total processing time: 121. Login to the cPanel server as root and access the LiteSpeed WebAdmin console. You …

Read more

Find and delete older files

In a Linux server, finding and deleting files older than 7 days can be done as follows. You should use the find command to get a list of files older than 7 days with the following command. # find /directory-path -mtime +7 -type f -exec ls {} ; In case, files you are looking for …

Read more

Disable and enable ceilometer in OpenStack

Stop telemetry on the overcloud controllers. systemctl stop openstack-aodh-evaluator openstack-aodh-listener openstack-aodh-notifier openstack-ceilometer-central openstack-ceilometer-collector openstack-ceilometer-notification openstack-gnocchi-metricd openstack-gnocchi-statsd Next stop the mongod service. systemctl stop mongod You should now backup MongoDB files. tar Jcf /tmp/mongodb-backup-$HOSTNAME-$(date +%F_%H%M%S).tar.xz /var/lib/mongodb Delete the content of /var/lib/mongodb folder as follows: rm -r /var/lib/mongodb/* Run mongodb on all controllers. systemctl start mongod Create …

Read more

Risks of leaving older kernels installed

Are you concerned when some security software flags older kernels as security threats due to known bugs and vulnerabilities? Does leave those outdated kernels installed on a server opens a door for malicious attacks? After upgrading the server or updating the Linux kernel, leaving old kernels installed likely does not open an attacking threat against …

Read more

can’t find command `multiboot2′ – TBOOT fails in UEFI system

In a UEFI system, after installing TBOOT, the TBOOT GRUB menu entries fail to boot the kernel. The following error message will be output on the screen. error: ../../grub-core/fs/fshelp.c:218:file`/EFI/centos/x86_64-efi/multiboot2.mod' not found.Loading tboot 1.10.2 ... error: ../../grub-core/script/function.c:120:can't find command `multiboot2'.Loading Linux 4.18.0-305.10.2.el8_4.x86_64 ...error: ../../grub-core/script/function.c:120:can't find command `module2'.Loading initial ramdisk ...error: ../../grub-core/script/function.c:120:can't find command `module2'. Press any …

Read more

TBOOT boot crash observed with TPM 2.0 in UEFI mode

When TPM2.0 device is in UEFI mode, booting the kernel through TBOOT hangs. The root cause of this error is because GRUB package included with Alam Linux 8.3 does not implement the complete stack to validate kernel command line parameters. To resolve this issue, upgrade the system to AlmaLinux 8.4/CentOS 8.4. If somehow you cannot …

Read more

VNC session freezes for a few seconds

VNC hangs due to an increased number of VNC sessions initiated by sshd, being under the closing state. # loginctl list-sessions --no-pager | wc -l49290 A session would be in a closing state if a process within the session stayed alive after the session was closed. # loginctl session-status 4509845098 - root (0)Since: Fri 2021-09-04 13:20:15 …

Read more

How to login into VNC without a password

You can remove all types of authentications by configuring the vnc server.  As user start a vnc session and “-SecurityTypes none” option while starting a vnc server as below: #vncserver :X -SecurityTypes None In the above command, X is the display number at which the vnc session should start. The “-SecurityTypes none” can be added …

Read more

error “Cannot allocate memory” while executing commands

You should increase /proc/sys/kernel/pid_max sysctl. Otherwise, execute the following command to check which app is forking multiple threads. #ps -eLF Error “Cannot allocate memory” indicates that the system is running out of PID (process ids). In other words, the number of threads/processes present on the system has reached the maximum limit, which is delimited by …

Read more

How to configure multiple instances of Apache HTTPD on the same server in AlmaLinux?

You need to copy instance specific configuration file located at /usr/share/doc/httpd/instance.conf to /etc/httpd/conf/newinstance.conf cp /usr/share/doc/httpd/instance.conf /etc/httpd/conf/newinstance.conf Use the Listen option to change the port to run simultaneously with other httpd.service as below: Listen 81 This configuration will be the default when running httpd@newinstance.service systemctl start httpd@newinstance.service Some changes expected from the default are: The default …

Read more