ps aux | grep -i apt
root 13794 0.1 0.5 148856 91052 ? S Apr20 58:38 apt-get upgrade -y
kill 13794
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem
dpkg --configure -a
ps aux | grep -i apt
root 13794 0.1 0.5 148856 91052 ? S Apr20 58:38 apt-get upgrade -y
kill 13794
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem
dpkg --configure -a
Error hcp: ERROR: Could not init mrf hash!
sync; echo 1 > /proc/sys/vm/compact_memory
sync; echo 1 > /proc/sys/vm/drop_caches
service cdp-agent restart
N=Fake LE Intermediate X1
This error usually means you are using test certificate from Let’s encrypt authority. You should issue your SSL again without -t option.
sed -i '/string/d' somesime.txt
If you have issues to import a database using Virtualmin (Webmin) you need to disable or increase quotas:
Total server quota: Unlimited
Server administrator’s quota: Unlimited
By default it was set limit, so that error means: Disk quota exceeded
sed -i 's/^/*@/' somefile.txt
vi /etc/localdomains
domaina.com
domainb.com
vi /etc/exim/exim.conf
domainlist sender_domains = lsearch;/etc/localdomains
acl_check_rcpt:
accept hosts = +relay_from_hosts
sender_domains = +sender_domains
control = submission
control = dkim_disable_verify
accept hosts = +relay_from_hosts
sender_domains = +sender_domains
control = submission
control = dkim_disable_verify
require message = bad sender domain
domains = +sender_domains
tail -f /var/log/exim/main.log
2020-05-20 20:55:55 H=mail.server.com [xx.xx.xx.xx] F=<> rejected RCPT
2020-05-20 20:55:55 H=mail.server.com [xx.xx.xx.xx] F=<> rejected RCPT
License User Limit Exceeded
6 users exist on this server, but the current license allows only 5 users.
Because of this excess, this server has locked all cPanel users out of their accounts.
You need to upgrade your cPanel/WHM license and than:
/usr/local/cpanel/cpkeyclt
ssh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120" -f -N -L 2525:localhost:25 [email protected]
iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 127.0.0.1:2525
yum groupinstall “Development Tools”
yum install centos-release-scl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.fra10.de.leaseweb.net
* epel: mirror.init7.net
* extras: ftp.tu-chemnitz.de
* updates: mirror1.hs-esslingen.de
http://mirror.fra10.de.leaseweb.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
http://ftp.plusline.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://centos.mirrors.psw.services/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://centosmirror.netcup.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Fix:
yum clean all
Let’s Encrypt - agreement issue
AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'
Update tos: https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf
url='https://acme-v01.api.letsencrypt.org/acme/reg/24591046'
payload='{"resource": "reg", "agreement": "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf"}'
POST
url='https://acme-v01.api.letsencrypt.org/acme/reg/24591046'
_CURL='curl -L --silent --dump-header /var/lib/acme/.acme.sh/http.header '
_ret='0'
code='400'
Update account error.
on_issue_err
Please check log file for more details: /var/lib/acme/.acme.sh/acme.sh.log
Diagnosis versions:
If acme.sh --upgrade not helps, you need to update DEFAULT_AGREEMENT manually:
vim acme.sh/acme.sh
#DEFAULT_AGREEMENT="https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf"
DEFAULT_AGREEMENT="https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf"
n=0; for i in `cat ttt` ; do readarray arr$n < <(ssh $i 'cat /etc/passwd'); n=$(( $n + 1 )) ; done
printf '%s\n' "${#arr0[@]}"
20
printf '%s\n' "${#arr1[@]}"
26
for l in 1 10 100 1000 10000 100000 1000000; do printf "%7s %s\n" $l "test string"; done
1 test string
10 test string
100 test string
1000 test string
10000 test string
100000 test string
1000000 test string
base64 /dev/urandom | head -c 1000 | sed "1 i\\`hostname`" | head -n 5
localhost.localdomain
brXE3yBW/afyXoZXigNc+bTaw71rW7Ykz9xFD01ZeXeglA/vubg9eJPmldDN3qQEOZongJbjSIEl
D6tu8lfhoYboc8eJTPPPasoQP1RcbdX/kVRbrxV2cLTaKVik2o3sywpjLZl+0Dow/9Of8iToahOw
JdWXPrkmsZZ9le4uN+qGU55Z2TO2Mc/baY0UUmBXaWX9NsNTsO4HwfqnT62Gs0BVtbMaWw0vWf3n
4QxJGcNl/gi5WUM/aamcUFe5exb8YlEk6Nj3szqf3b4DQE4XODe46W/4qCzg/UFzCb5SOC0YBnEa