问题一:
/var/log/messages系统日志报错如下
Apr 30 09:03:19 sr_web_server_01 abrt-hook-ccpp: Process 325 (node) of user 1000 killed by SIGABRT - dumping core
Apr 30 09:03:37 sr_web_server_01 abrt-hook-ccpp: Failed to create core_backtrace: dwfl_getthread_frames failed: no matching address range
Apr 30 09:03:37 sr_web_server_01 abrt-server: Executable ‘/data/node-v12.14.1-linux-x64/bin/node‘ doesn‘t belong to any package and ProcessUnpackaged is set to ‘no‘
Apr 30 09:03:37 sr_web_server_01 abrt-server: ‘post-create‘ on ‘/var/spool/abrt/ccpp-2020-04-30-09:03:19-325‘ exited with 1
Apr 30 09:03:37 sr_web_server_01 abrt-server: Deleting problem directory ‘/var/spool/abrt/ccpp-2020-04-30-09:03:19-325‘
Apr 30 09:10:01 sr_web_server_01 systemd: Created slice user-0.slice.
Apr 30 09:10:01 sr_web_server_01 systemd: Starting user-0.slice.
Apr 30 09:10:01 sr_web_server_01 systemd: Started Session 7687 of user root.
Apr 30 09:10:01 sr_web_server_01 systemd: Starting Session 7687 of user root.
Apr 30 09:10:01 sr_web_server_01 crond: sendmail: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 30 09:10:01 sr_web_server_01 systemd: Removed slice user-0.slice.
Apr 30 09:10:01 sr_web_server_01 systemd: Stopping user-0.slice.
Apr 30 09:10:47 sr_web_server_01 abrt-hook-ccpp: Process 332 (node) of user 1000 killed by SIGABRT - dumping core
Apr 30 09:11:04 sr_web_server_01 abrt-hook-ccpp: Failed to create core_backtrace: dwfl_getthread_frames failed: no matching address range
Apr 30 09:11:04 sr_web_server_01 abrt-server: Executable ‘/data/node-v12.14.1-linux-x64/bin/node‘ doesn‘t belong to any package and ProcessUnpackaged is set to ‘no‘
Apr 30 09:11:04 sr_web_server_01 abrt-server: ‘post-create‘ on ‘/var/spool/abrt/ccpp-2020-04-30-09:10:47-332‘ exited with 1
Apr 30 09:11:04 sr_web_server_01 abrt-server: Deleting problem directory ‘/var/spool/abrt/ccpp-2020-04-30-09:10:47-332‘
Apr 30 09:20:01 sr_web_server_01 systemd: Created slice user-0.slice.
通过以上报错日志:
Executable ‘/data/node-v12.14.1-linux-x64/bin/node‘ doesn‘t belong to any package and ProcessUnpackaged is set to ‘no‘
得知是因为无法创建ccpp文件导致的,可以修改/etc/abrt/abrt-action-save-package-data.conf文件中的ProcessUnpackaged参数为yes,
cat /etc/abrt/abrt-action-save-package-data.conf
# With this option set to "yes",
# only crashes in signed packages will be analyzed.
# the list of public keys used to check the signature is
# in the file gpg_keys
#
# How can I check the GPG key used to sign an installed pacakge on
# Red hat Enterprise Linux:
# https://access.redhat.com/solutions/1120013
#
# Product Signing (GPG) Keys:
# https://access.redhat.com/security/team/key
#
OpenGPGCheck = yes
# Blacklisted packages
#
BlackList = nspluginwrapper, valgrind, strace, mono-core
# Process crashes in executables which do not belong to any package?
#
ProcessUnpackaged = yes
# Blacklisted executable paths (shell patterns)
#
BlackListedPaths = /usr/share/doc/*, */example*, /usr/bin/nspluginviewer, /usr/lib/xulrunner-*/plugin-container
# interpreters names
Interpreters = python2, python2.7, python, python3, python3.3, perl, perl5.16.2
也可以使用sed命令进行关键字替换
sed -i ‘s/ProcessUnpackaged = no/ProcessUnpackaged = yes/g‘
修改配置文件完成之后,记得重启abrtd服务
systemctl restart abrtd
问题二:
如果配置了定时任务,正常情况下应该发送系统邮件,即cron没有将任务的执行结果发送邮件通知到用户
报错信息如下:
crond: sendmail: fatal: parameter inet_interfaces: no local interface found for ::1
解决方法:修改vim /etc/postfix/main.cf配置文件
inet_interfaces = all
重启postfix服务
systemctl restart postfix.service