将rhel8.10系统升级到最新版后,在使用useradd命令创建用户时,收到了如下错误信息:
[sss_cache] [sysdb_domain_cache_connect] (0x0010): DB version too old [0.22], expected [0.24] for domain implicit_files! Higher version of database is expected! In order to upgrade the database, you must run SSSD. Removing cache files in /var/lib/sss/db should fix the issue, but note that removing cache files will also remove all of your cached credentials. Could not open available domains [sss_cache] [sysdb_domain_cache_connect] (0x0010): DB version too old [0.22], expected [0.24] for domain implicit_files! Higher version of database is expected! In order to upgrade the database, you must run SSSD. Removing cache files in /var/lib/sss/db should fix the issue, but note that removing cache files will also remove all of your cached credentials. Could not open available domains
解决方案
检查/var/log/message日志,发现如下信息提示:
ec 13 11:07:00 shizhanxia.com useradd[109696]: new group: name=app03, GID=1003 Dec 13 11:07:00 shizhanxia.com useradd[109696]: new user: name=app03, UID=1003, GID=1003, home=/home/app03, shell=/bin/bash Dec 13 11:07:00 shizhanxia.com useradd[109696]: useradd: sss_cache exited with status 74 Dec 13 11:07:00 shizhanxia.com useradd[109696]: useradd: Failed to flush the sssd cache. Dec 13 11:07:00 shizhanxia.com useradd[109696]: useradd: sss_cache exited with status 74 Dec 13 11:07:00 shizhanxia.com useradd[109696]: useradd: Failed to flush the sssd cache. Dec 13 11:09:32 shizhanxia.com useradd[109707]: failed adding user 'app03', exit code: 9
使用以下命令手动删除缓存。
原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/2063.html