Linux8-messages有dnf报错处理

隔几个小时,就有如下的告警

Aug 5 05:44:14 db dnf356416: Unable to read consumer identity

Aug 5 05:44:14 db dnf356416: This system is not registered with an entitlement server. You can use subscription-manager to register.

Aug 5 05:44:14 db dnf356416: CentOS Linux 8 0.0 B/s | 0 B 00:00

Aug 5 05:44:14 db dnf356416: Errors during downloading metadata for repository 'InstallMedia':

Aug 5 05:44:14 db dnf356416: - Curl error (37): Couldn't read a file:// file for file:///mnt/BaseOS/repodata/repomd.xml Couldn't open file /mnt/BaseOS/repodata/repomd.xml

Aug 5 05:44:14 db dnf356416: Error: Failed to download metadata for repo 'InstallMedia': Cannot download repomd.xml: Curl error (37): Couldn't read a file:// file for file:///mnt/BaseOS/repodata/repomd.xml Couldn't open file /mnt/BaseOS/repodata/repomd.xml

Aug 5 05:44:14 db systemd1: dnf-makecache.service: Main process exited, code=exited, status=1/FAILURE

Aug 5 05:44:14 db systemd1: dnf-makecache.service: Failed with result 'exit-code'.

Aug 5 05:44:14 db systemd1: Failed to start dnf makecache.

Aug 5 09:02:05 db dnf473997: Unable to read consumer identity

Aug 5 09:02:05 db dnf473997: This system is not registered with an entitlement server. You can use subscription-manager to register.

Aug 5 09:02:05 db dnf473997: CentOS Linux 8 0.0 B/s | 0 B 00:00

Aug 5 09:02:05 db dnf473997: Errors during downloading metadata for repository 'InstallMedia':

Aug 5 09:02:05 db dnf473997: - Curl error (37): Couldn't read a file:// file for file:///mnt/BaseOS/repodata/repomd.xml Couldn't open file /mnt/BaseOS/repodata/repomd.xml

Aug 5 09:02:05 db dnf473997: Error: Failed to download metadata for repo 'InstallMedia': Cannot download repomd.xml: Curl error (37): Couldn't read a file:// file for file:///mnt/BaseOS/repodata/repomd.xml Couldn't open file /mnt/BaseOS/repodata/repomd.xml

Aug 5 09:02:05 db systemd1: dnf-makecache.service: Main process exited, code=exited, status=1/FAILURE

Aug 5 09:02:05 db systemd1: dnf-makecache.service: Failed with result 'exit-code'.

查看dnf-makecache.service服务是非活动,执行stop发现问题点

root@db \~# systemctl status dnf-makecache.service

● dnf-makecache.service - dnf makecache

Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.service; static; vendor preset: disabled)

Active: inactive (dead) since Mon 2024-08-05 10:07:46 CST; 52min ago

Process: 513042 ExecStart=/usr/bin/dnf makecache --timer (code=exited, status=0/SUCCESS)

Main PID: 513042 (code=exited, status=0/SUCCESS)

Aug 05 10:07:46 db systemd1: Starting dnf makecache...

Aug 05 10:07:46 db dnf513042: Updating Subscription Management repositories.

Aug 05 10:07:46 db dnf513042: Unable to read consumer identity

Aug 05 10:07:46 db dnf513042: This system is not registered with an entitlement server. You can use subscription-manager to register.

Aug 05 10:07:46 db dnf513042: Metadata cache refreshed recently.

Aug 05 10:07:46 db systemd1: dnf-makecache.service: Succeeded.

Aug 05 10:07:46 db systemd1: Started dnf makecache.

root@db opt# systemctl stop dnf-makecache.service
Warning: Stopping dnf-makecache.service, but it can still be activated by:
dnf-makecache.timer

直接关闭dnf-makecache.timer,观察了几个小时,发现再也不报错了

root@db opt# systemctl status dnf-makecache.timer

● dnf-makecache.timer - dnf makecache --timer

Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.timer; enabled; vendor preset: enabled)

Active: active (waiting) since Thu 2024-03-21 11:23:47 CST; 4 months 15 days ago

Trigger: Mon 2024-08-05 11:48:32 CST; 46min left

Mar 21 11:23:47 db systemd1: Started dnf makecache --timer.

root@db \~# systemctl stop dnf-makecache.timer

root@db \~# systemctl disable dnf-makecache.timer

相关推荐
重生之我来学Python7 分钟前
Docker套装的简介、安装、超级详细教程
linux·docker·容器·eureka·github
和裕20 分钟前
光伏储能定制加强型瓦楞纸箱:降低组件运输隐裂率与售后损耗的核心价值
大数据·运维·网络·人工智能·算法
智购科技无人售货机工厂店24 分钟前
2026自动售货机大屏交互设计原则:从信息层级到视觉动线的工程实践~YH
运维·python·单片机·嵌入式硬件·自动化·交互
Ruiery37 分钟前
Linux 6.6内核 PCIe 深度解析(十):PCIe Port Driver(portdrv)— 一个物理 Port,拆出五个逻辑服务
linux·运维·服务器
运维行者_2 小时前
ISP 企业级带宽计费怎么做?网络流量计费的 6 大核心能力
运维·服务器·网络·数据库·支持向量机·接口隔离原则
数安旭说2 小时前
企业终端行为审计建设:本地审计 + 网络审计构建完整溯源取证体系
运维·数据安全·软件需求·溯源·审计·网络审计
码农小韩2 小时前
Linux应用开发(二)——Linux的文件IO
linux·嵌入式软件·嵌入式操作系统·linux应用
Elastic 中国社区官方博客3 小时前
在 Elasticsearch 中回填时间序列数据:通过批量 API 加载数月的历史指标数据
大数据·运维·数据库·人工智能·elasticsearch·搜索引擎·全文检索
Horn Still Sounds3 小时前
Linux网络并发服务器模型与SQLite数据库学习笔记
linux·服务器·数据库
10mAh3 小时前
【Linux】CPU 100% 怎么排查?——top、pidstat、jstack 到线程定位实战
linux·运维·服务器