Monthly Archives: August 2020

[WARNING] Server signature does not match the license key

/usr/local/lsws/bin/lswsctrl start
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
2020-08-17 11:24:47.232298 [NOTICE] Memory size is: 4718592KB.
2020-08-17 11:24:47.722767 [ERROR] [LICENSE] License key operation failure: EXCEPTION LR.AM: Invalid license key file
[FATAL] license problem, back to Apache!
2020-08-17 11:24:48.745494 [NOTICE] Switch back to Apache …
[ERROR] Failed to start litespeed!
[ERROR] Cannot detect control panel environment. Only cPanel WHM, Plesk, DirectAdmin are checked for now.
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
[WARNING] Server signature does not match the license key #2.
Please request a new license key!
2020-08-17 11:24:51.954129 [NOTICE] Memory size is: 4718592KB.
2020-08-17 11:24:52.413312 [ERROR] [LICENSE] License key operation failure: EXCEPTION LR.AM: Invalid license key file
[FATAL] license problem, back to Apache!
2020-08-17 11:24:53.441160 [NOTICE] Switch back to Apache …
[ERROR] Failed to start litespeed!

/usr/local/lsws/bin/lshttpd -r
/usr/local/lsws/bin/lshttpd -V
/usr/local/lsws/bin/lswsctrl restart

Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAIL

Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Creating OS template cache for centos-8-x86_64 template
Can’t open /proc/sys/kernel/virt_osrelease: No such file or directory
Error: /usr/share/vzyum/bin/yum failed, exitcode=1
VE_PRIVATE is not set
Creation of Container private area failed

Make sure you are using vz7 kernel:
uname -a | grep vz7
Linux CentOS-78-64-minimal 3.10.0-1127.8.2.vz7.151.14 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux

new-authz error: {“type”:”urn:acme:error:unauthorized”,”detail”:”Error creating new authz :: Validations for new domains are disabled in the V1 API (https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430)”,”status”: 403

acme.sh change api version
acme.sh v1 to v2

su - acme -s /bin/bash
mkdir temp && git clone https://github.com/acmesh-official/acme.sh.git temp
mv acme.sh acme.sh_backup && mv temp/acme.sh .

./acme.sh/acme.sh --issue

change birth creation date linux

sudo dd if=/dev/zero of=loop.img bs=100M count=10
sudo losetup -fP loop.img
sudo losetup -a
sudo mkfs.ext4 loop.img
mkdir loopfs
sudo mount -o loop /dev/loop0 loopfs
sudo touch loopfs/input.txt

sudo umount loopfs
sudo debugfs -R 'stat input.txt' /dev/loop0'

debugfs 1.45.5 (07-Jan-2020)
Inode: 15 Type: regular Mode: 0644 Flags: 0x80000
Generation: 1856443764 Version: 0x00000000:00000001
User: 0 Group: 0 Project: 0 Size: 42313
File ACL: 0
Links: 1 Blockcount: 88
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5f2f4acc:78970acc -- Sun Aug 12 04:01:00 2020
atime: 0x5f33c7f3:7fd665f4 -- Sun Aug 12 04:01:00 2020
mtime: 0x5f2f4acc:78970acc -- Sun Aug 12 04:01:00 2020
crtime: 0x5f2f4acc:b79f2b04 -- Sun Aug 12 04:01:00 2020
Size of extra inode fields: 32
Extended attributes:
security.selinux (37) = "unconfined_u:object_r:unlabeled_t:s0\000"
Inode checksum: 0x6371117e
EXTENTS:
(0-10):33280-33290

sudo debugfs -w -R 'set_inode_field input.txt crtime 201808090101' /dev/loop0
sudo debugfs -w -R 'set_inode_field input.txt ctime 201808090101' /dev/loop0

Sometimes also need: echo 2 > /proc/sys/vm/drop_caches

Another way, but is not recommended to change system time:
NOW=$(date) && date -s "2022-08-10 21:10:10" && touch input.txt && date -s "$NOW"

lsof find huge deleted


lsof -nP 2>&1 | grep '(deleted)'

find /proc/*/fd -ls 2> /dev/null | grep '(deleted)'

1273871272 0 l-wx------ 1 zabbix zabbix 64 Nov 4 08:38 /proc/10614/fd/1 -> /var/log/zabbix/zabbix_agentd.log.1\ (deleted)
1273871273 0 l-wx------ 1 zabbix zabbix 64 Nov 4 08:38 /proc/10614/fd/2 -> /var/log/zabbix/zabbix_agentd.log.1\ (deleted)

truncate -s 0 /proc/10614/fd/2

Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow)

echo user.max_user_namespaces=15076 | sudo tee -a /etc/sysctl.conf
echo 'vit:100000:65536' | sudo tree -a /etc/subuid
echo 'vit:100000:65536' | sudo tee -a /etc/subgid
sudo reboot

sudo podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/ubuntu latest 1e4467b07108 2 weeks ago 76.3 MB