Tag Archives: Daily error reporting

[Solved] ERROR: Linux route delete command failed: external program exited with error status: 2

Problem description

A set of environment of the company is accessed through VPN, which uses OpenVPN. At some time in the afternoon, some students reported that VPN login failed. Try it yourself, too. Log in to the server to view the VPN log information as follows

ERROR: Linux route delete command failed: external program exited with error status: 2

Solution: Remove the limit in the service startup file, and comment out the line LimitNPROC

vim /usr/lib/systemd/system/[email protected]

#LimitNPROC

Restart service

systemctl daemon-reload
systemctl restart [email protected]

 

HDF5 library version mismatched error [How to Solve]

HDF5 library version mismatched error
Error Messages:

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.10.2, library is 1.10.5

Solution:

pip uninstall h5py
pip install h5py

Centos7 Error: initramfs not found

Problem description

Centos7 reports an error: file ‘/ initramfs -… Img’ not found

Problem solving

This problem occurred after I set up the mount. After some guidance from Baidu and Lao Han, it was finally solved

Solution:

yum reinstall kernel

Is to reinstall the kernel

/usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4

Problem Description: the following error is reported when starting ZABBIX agent:

[root@vm-172-16-1-113 ~]# systemctl start zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
[root@vm-172-16-1-113 ~]# journalctl -xe
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:02:51 vm-172-16-1-113 zabbix_agentd[15221]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:02:51 vm-172-16-1-113 polkitd[3455]: Unregistered Authentication Agent for unix-process:15210:141884514 (system bus name
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Stopped Zabbix Agent.
-- Subject: Unit zabbix-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has finished shutting down.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:03:01 vm-172-16-1-113 zabbix_agentd[15230]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed

The keyword is /usr/SBIN/ZABBIX_ agentd: error while loading shared libraries: libcurl.so.4

Indeed, the libcurl installation is as follows. It is found that it is still not possible

[root@vm-172-16-1-113 ~]# yum -y install libcurl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-51.el7 will be updated
--> Processing Dependency: libcurl = 7.29.0-51.el7 for package: curl-7.29.0-51.el7.x86_64
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be an update
--> Processing Dependency: libssh2(x86-64) >= 1.8.0 for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Running transaction check
---> Package curl.x86_64 0:7.29.0-51.el7 will be updated
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be an update
---> Package libssh2.x86_64 0:1.4.3-12.el7 will be updated
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                     Arch                       Version                                 Repository                   Size
==================================================================================================================================
Updating:
 libcurl                     x86_64                     7.29.0-59.el7_9.1                       updates                     223 k
Updating for dependencies:
 curl                        x86_64                     7.29.0-59.el7_9.1                       updates                     271 k
 libssh2                     x86_64                     1.8.0-4.el7                             base                         88 k

Transaction Summary
==================================================================================================================================
Upgrade  1 Package (+2 Dependent packages)

Total download size: 582 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/3): libcurl-7.29.0-59.el7_9.1.x86_64.rpm                                                                | 223 kB  00:00:00     
(2/3): curl-7.29.0-59.el7_9.1.x86_64.rpm                                                                   | 271 kB  00:00:00     
(3/3): libssh2-1.8.0-4.el7.x86_64.rpm                                                                      |  88 kB  00:00:00     
----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                             3.4 MB/s | 582 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libssh2-1.8.0-4.el7.x86_64                                                                                     1/6 
  Updating   : libcurl-7.29.0-59.el7_9.1.x86_64                                                                               2/6 
  Updating   : curl-7.29.0-59.el7_9.1.x86_64                                                                                  3/6 
  Cleanup    : curl-7.29.0-51.el7.x86_64                                                                                      4/6 
  Cleanup    : libcurl-7.29.0-51.el7.x86_64                                                                                   5/6 
  Cleanup    : libssh2-1.4.3-12.el7.x86_64                                                                                    6/6 
  Verifying  : curl-7.29.0-59.el7_9.1.x86_64                                                                                  1/6 
  Verifying  : libssh2-1.8.0-4.el7.x86_64                                                                                     2/6 
  Verifying  : libcurl-7.29.0-59.el7_9.1.x86_64                                                                               3/6 
  Verifying  : libssh2-1.4.3-12.el7.x86_64                                                                                    4/6 
  Verifying  : libcurl-7.29.0-51.el7.x86_64                                                                                   5/6 
  Verifying  : curl-7.29.0-51.el7.x86_64                                                                                      6/6 

Updated:
  libcurl.x86_64 0:7.29.0-59.el7_9.1                                                                                              

Dependency Updated:
  curl.x86_64 0:7.29.0-59.el7_9.1                                   libssh2.x86_64 0:1.8.0-4.el7                                  

Complete!
[root@vm-172-16-1-113 ~]# systemctl start zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
[root@vm-172-16-1-113 ~]# journalctl -xe
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:03:52 vm-172-16-1-113 zabbix_agentd[15278]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:03:54 vm-172-16-1-113 yum[15277]: Updated: libssh2-1.8.0-4.el7.x86_64
Sep 08 21:03:54 vm-172-16-1-113 yum[15277]: Updated: libcurl-7.29.0-59.el7_9.1.x86_64
Sep 08 21:03:55 vm-172-16-1-113 yum[15277]: Updated: curl-7.29.0-59.el7_9.1.x86_64
Sep 08 21:03:58 vm-172-16-1-113 polkitd[3455]: Registered Authentication Agent for unix-process:15291:141892032 (system bus name :
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Stopped Zabbix Agent.
-- Subject: Unit zabbix-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has finished shutting down.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:04:02 vm-172-16-1-113 zabbix_agentd[15300]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:04:02 vm-172-16-1-113 polkitd[3455]: Unregistered Authentication Agent for unix-process:15291:141892032 (system bus name

See if libcurl. So. 4 does exist. It seems that the system does not recognize it

[root@vm-172-16-1-113 ~]# ls /usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4

Join ld.so.conf and try ldconfig

[root@vm-172-16-1-113 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf

[root@vm-172-16-1-113 ~]# echo '/usr/lib64' >> /etc/ld.so.conf.d/zabbix.conf
[root@vm-172-16-1-113 ~]# ldconfig

Starting ZABBIX again still doesn’t work

Take another look at SELinux

I looked around because of it

Set setenforce 0
temporarily, and then you can start it

[Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)

RuntimeError: run loop already started raise RuntimeError(‘run loop already started’)
Error Codes:

self.engine.say(content)
self.engine.runAndWait()
self.engine.stop()

Error message

raise RuntimeError('run loop already started')
RuntimeError: run loop already started

Solution:

self.engine.say(content)
self.engine.runAndWait()
self.engine.endLoop()   # add this line
self.engine.stop()

[Solved] UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 3-9: ordinal not in range(128)

linux django UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 36-45: ordinal not in range(128)
error:

UnicodeEncodeError: 'ascii' codec can't encode characters in position 36-45: ordinal not in range(128)

Solution:

vi ~/.bashrc
export LC_ALL=C.UTF-8
source ~/.bashrc

Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’

After the server is shut down, restart it, and start the web application log on it to print an error. Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’ searches the Internet and finds that many of the answers are caused by the redis annotation related to springboot, and it is necessary to set redis.

But the problem is that this is not springboot, and there is no redis setting, because it was good before. After a long time, none of the reliable people suddenly thought about whether the problem lies in redis. Let’s take a look at the process of redis first,

ps -ef | grep Redis

Sure enough, redis didn’t start at all. First, open the redis service and see if it will change and if the error will change

Find the redis location
Find – name redis cli
(if redis or other services start, you can find the process number such as 12345, ll/proc/12345/CWD through PS – EF | grep XXXX to find the corresponding service location. )

Start the redis service
to the corresponding path to start the service
redis server /Redis conf
(note that the paths of redis server and redis conf are at the same level or not. )

Service start, web application process kill and restart, no error. So the reason for this error is related to whether the redis service is started or not.