美文网首页
服务无法正常启动显示“failed to activate se

服务无法正常启动显示“failed to activate se

作者: 戈羽殇雪 | 来源:发表于2021-07-09 10:11 被阅读0次

    一个dockercompose的服务,服务无法拉起报错显示

    failed to activate service 'org.freedesktop.systemd1' timed out
    
    image.png
    根据错误信息,发现其他的systemd的服务也无法正常启用
    经过查询引起的原因应该是systemd 服务崩溃,原因是用户session 舍弃的过多导致
    systemd version 42.17e cannot handle too many sessions at once according to red hat global support. It ran out of memorey and futhermore crashed the modules org.freedesktop.logind and org.freedesktop.systemd.
    This issue can happen because of "abandoned" user session. You can check with the command -- $ systemctl | grep 'of user'| grep 'abandoned'
    可以通过以下指令来查看“被舍弃的”进程:
    systemctl | grep 'of user'| grep 'abandoned'
    

    解决方式

     rm -rf /run/systemd/system/sessionscope   ##删除用户session 目录
    systemctl daemon-reexec   ##reload systemd
    

    以上如果不生效,重启大法好

    reboot
    

    相关文章

      网友评论

          本文标题:服务无法正常启动显示“failed to activate se

          本文链接:https://www.haomeiwen.com/subject/enzxpltx.html