在过去的三天里,我们几乎所有的机器每隔几秒钟就会收到垃圾邮件日志:
2 11:13:59 11:13:59 ZT1 user.5 snapd-desktop-i[2823704]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:00 11:14:00 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:00 11:14:00 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:01 11:14:01 PATG daemon.5 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:01 11:14:01 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:01 11:14:01 E450 user.5 snapd-desktop-i[397538]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:02 11:14:02 ZT1 user.5 snapd-desktop-i[2823808]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:02 11:14:02 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:02 11:14:02 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:03 11:14:03 PATG daemon.5 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:03 11:14:03 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:03 11:14:03 E450 user.5 snapd-desktop-i[397617]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:04 11:14:04 ZT1 user.5 snapd-desktop-i[2823937]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:05 11:14:05 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:05 11:14:05 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:05 11:14:05 PATG daemon.5 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:05 11:14:05 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:06 11:14:06 E450 user.5 snapd-desktop-i[397694]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:06 11:14:06 ZT1 user.5 snapd-desktop-i[2824038]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:07 11:14:07 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:07 11:14:07 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:08 11:14:08 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:08 11:14:08 E450 user.5 snapd-desktop-i[397779]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:08 11:14:08 ZT1 user.5 snapd-desktop-i[2824167]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:09 11:14:09 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:09 11:14:09 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:10 11:14:10 PATG daemon.5 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:10 11:14:10 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:10 11:14:10 E450 user.5 snapd-desktop-i[397847]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:11 11:14:11 ZT1 user.5 snapd-desktop-i[2824261]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:11 11:14:11 ZT1 daemon.5 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:11 11:14:11 ZT1 daemon.4 systemd[1207]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:12 11:14:12 PATG daemon.5 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 11:14:12 11:14:12 PATG daemon.4 systemd[5140]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
2 11:14:12 11:14:12 E450 user.5 snapd-desktop-i[397915]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
2 11:14:13 11:14:13 ZT1 user.5 snapd-desktop-i[2824373]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Run Code Online (Sandbox Code Playgroud)
在这些消息开始的时间段内,我们应用的唯一更新是密码和登录,因此我们取消了它们:
====================================================================
Aptitude 0.8.13: log report
Fri, Dec 2 2022 11:56:27 -0800
IMPORTANT: this log only lists intended actions; actions which fail
due to dpkg problems may not be completed.
Will install 1 packages, and remove 0 packages.
========================================
[DOWNGRADE] login:amd64 1:4.8.1-2ubuntu2.1 -> 1:4.8.1-2ubuntu2
========================================
Log complete.
=======================================================================
Aptitude 0.8.13: log report
Fri, Dec 2 2022 12:03:00 -0800
IMPORTANT: this log only lists intended actions; actions which fail
due to dpkg problems may not be completed.
Will install 1 packages, and remove 0 packages.
4096 B of disk space will be freed
========================================
[HOLD, DEPENDENCIES] login:amd64 1:4.8.1-2ubuntu2
[DOWNGRADE] passwd:amd64 1:4.8.1-2ubuntu2.1 -> 1:4.8.1-2ubuntu2
========================================
Log complete.
======================================================================
Run Code Online (Sandbox Code Playgroud)
但这没有什么区别。
我们还看到类似这样的重复消息:
2 12:39:17 12:39:16 E450 daemon.5 systemd[1022]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
2 12:39:17 12:39:16 E450 daemon.4 systemd[1022]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
Run Code Online (Sandbox Code Playgroud)
所以我们猜测这可能是突然改变或更新的东西。
另一位用户也发生了这种情况:
snapd-desktop-integration 淹没系统日志
我们的系统都运行 Ubuntu 22.04。
非常感谢有关在哪里寻找解决此问题的任何提示。
编辑:请参阅下面 Dan Christensen 的答案,了解解决此问题的有用方法。
编辑 2023 年 3 月 2 日:稳定版本 2023-02-21 (57) 似乎已经消除了重复的系统日志消息并解决了问题。(请参阅下面我的回答。)
现在,我做到了snap remove snapd-desktop-integration,日志垃圾邮件消失了。我不确定该软件包有多重要,但如果有任何需要,我可以在问题解决后重新安装它。
编辑 2023 年 2 月 28 日:稳定版本 2023-02-21 (57) 似乎已经消除了重复的系统日志消息。(请参阅 Sergio 的回答下的所有评论。)
\n以下是修复后的版本信息:
\n~$ snap info snapd-desktop-integration\nname: snapd-desktop-integration\nsummary: Desktop Integration for snapd\npublisher: Canonical\xe2\x9c\x93\nstore-url: https://snapcraft.io/snapd-desktop-integration\ncontact: https://github.com/snapcore/snapd-desktop-integration\nlicense: unset\ndescription: |\nProvides a user session daemon used to provide a bridge between the user\'s session and snapd. \nUsed for things like automatic theme installation.\nservices:\nsnapd-desktop-integration: simple, enabled, inactive\nsnap-id: IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu\ntracking: latest/stable\nrefresh-date: today at 15:17 PST\nchannels:\nlatest/stable: 0.1 2023-02-21 (57) 438kB -\nlatest/candidate: 0.1 2023-02-23 (59) 442kB -\nlatest/beta: \xe2\x86\x91 \nlatest/edge: 0.1 2023-02-23 (59) 442kB -\ninstalled: 0.1 (57) 438kB -`\nRun Code Online (Sandbox Code Playgroud)\n编辑 2023 年 1 月 21 日:当我们通过 ssh 连接到测试系统后安装候选版本 57 时,它会产生这些重复的系统日志消息:
\n21 10:11:52 10:11:52 ZT1 kern.5 kernel: [261316.069573] audit: type=1107 audit(1674324712.162:358): pid=830 uid=106 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.3" pid=1145400 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=881 peer_label="unconfined"
21 10:11:52 10:11:52 ZT1 kern.5 kernel: [261316.069573] exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?\'
21 10:11:52 10:11:52 ZT1 kern.5 kernel: [261316.069831] audit: type=1107 audit(1674324712.162:359): pid=830 uid=106 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.login1.Manager" member="ListSessions" mask="send" name=":1.3" pid=1145400 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=881 peer_label="unconfined"
21 10:11:52 10:11:52 ZT1 kern.5 kernel: [261316.069831] exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?\'
21 10:11:54 10:11:54 ZT1 user.5 snapd-desktop-i[1145502]: Failed to do gtk init. Waiting for a new session with desktop capabilities.
21 10:11:54 10:11:54 ZT1 kern.5 kernel: [261318.318431] audit: type=1326 audit(1674324714.410:360): auid=1001 uid=1001 gid=1001 ses=152 subj=snap.snapd-desktop-integration.snapd-desktop-integration pid=1145502 comm="snapd-desktop-i" exe="/snap/snapd-desktop-integration/57/usr/bin/snapd-desktop-integration" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fb4631a6a3d code=0x50000
21 10:11:54 10:11:54 ZT1 user.5 snapd-desktop-i[1145502]: Failed to get session list (check that login-session-observe interface is connected). Forcing a reload.
21 10:11:54 10:11:54 ZT1 kern.5 kernel: [261318.321048] audit: type=1107 audit(1674324714.410:361): pid=830 uid=106 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.3" pid=1145502 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=881 peer_label="unconfined"
21 10:11:54 10:11:54 ZT1 kern.5 kernel: [261318.321048] exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?\'
21 10:11:54 10:11:54 ZT1 user.5 snapd-desktop-i[1145502]: Loop exited. Forcing reload.
编辑 2023 年 1 月 3 日:如果您正在测试候选版本 55,您可以通过运行以下命令来停止重复消息:
\nsudo snap connect snapd-desktop-integration:login-session-observe
请参阅下面 Sergio 的评论。目标是消除此步骤的需要并使其自动连接。
\n编辑 2022 年 12 月 17 日:我们在通过 ssh 连接的两台机器上测试了候选版本 55。它修复了 atk-bridge 消息,但每隔几秒就会产生一组不同的消息:
\n17 10:42:52 10:42:52 PATG user.5 snapd-desktop-i[53867]: Failed to get session list (check that login-session-observe interface is connected). Forcing a reload.
17 10:42:52 10:42:52 PATG user.5 snapd-desktop-i[53867]: Loop exited. Forcing reload.
17 10:42:52 10:42:52 PATG kern.5 kernel: [246586.108424] audit: type=1107 audit(1671302572.982:370): pid=1182 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" memb er="GetAll" mask="send" name=":1.11" pid=53867 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=1280 peer_label="unconfined"
17 10:42:52 10:42:52 PATG kern.5 kernel: [246586.108424] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?\'
17 10:42:52 10:42:52 PATG kern.5 kernel: [246586.108847] audit: type=1107 audit(1671302572.982:371): pid=1182 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.login1.Manager" membe r="ListSessions" mask="send" name=":1.11" pid=53867 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=1280 peer_label="unconfined"
17 10:42:52 10:42:52 PATG kern.5 kernel: [246586.108847] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?\'
17 10:42:55 10:42:55 PATG user.5 snapd-desktop-i[53945]: Failed to do gtk init. Waiting for a new session with desktop capabilities.
17 10:42:55 10:42:55 PATG kern.5 kernel: [246588.351735] audit: type=1326 audit(1671302575.223:372): auid=1000 uid=1000 gid=1000 ses=10 subj=snap.snapd-desktop-integration.snapd-desktop-integration pid=53945 comm="snapd-desktop-i" exe="/snap/snapd-desktop-integration/55/usr/bin/snapd-desktop-integration" sig= 0 arch=c000003e syscall=314 compat=0 ip=0x7f0aba0cda3d code=0x50000
17 10:42:55 10:42:55 PATG kern.5 kernel: [246588.355602] audit: type=1107 audit(1671302575.227:373): pid=1182 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg=\'apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" memb er="GetAll" mask="send" name=":1.11" pid=53945 label="snap.snapd-desktop-integration.snapd-desktop-integration" peer_pid=1280 peer_label="unconfined"
17 10:42:55 10:42:55 PATG kern.5 kernel: [246588.355602] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?\'
该序列每隔几秒重复一次,直到我们卸载该软件包。(在我们进行测试时,两台机器都有用户登录到图形会话,如果这很重要的话。)
\n编辑 2022 年 12 月 12 日:候选版本 49 没有修复当您 ssh 到安装了 snapd-desktop-integration 的计算机时出现的重复“atk-bridge”消息,尽管它可能修复来自 GDM 会话的消息:
\nhttps://github.com/snapcore/snapd-desktop-integration/pull/41#issuecomment-1344603344
\n2022 年 12 月 9 日编辑:以下是候选版本 49 的测试结果:
\nhttps://github.com/snapcore/snapd-desktop-integration/pull/41#issuecomment-1344589269
\n2022 年 12 月 7 日编辑:这是提交:
\n\n2022 年 12 月 6 日编辑:以下是拉取请求:
\nhttps://github.com/snapcore/snapd-desktop-integration/pull/41
\n软件包作者的建议是:
\n\n\n...遵循拉取请求,合并后它将在几个小时内自动发布到候选通道。
\n
他们还补充道:
\n\n\n这是一个相当复杂的修复,有点冒险,所以需要几天的时间才能得到适当的审查。但一旦经过彻底审查,我们将立即开始测试过程。
\n
编辑 2022 年 12 月 4 日:我给包作者之一发了电子邮件。他们有专人处理这个问题,希望本周能得到解决。
\n====
\n该问题肯定是由 2022 年 11 月 29 日左右的某个时候的错误快照升级引起的。
\n不幸的是,其中的信息snap changes已经被覆盖。
2022 年 12 月 2 日格林尼治标准时间 2100 点左右,我们所有机器上的重复消息都停止了,但今天(12 月 3 日)又重新启动。
\n我们注意到,一旦我们 ssh 到任何机器,“atk-bridge...请尝试不加载它”消息就会再次启动。
\n我们在用户树视图中使用 htop 来终止任务,直到我们看到它是“systemd --user”重复启动 atk-bridge。如果我们终止该 systemd 任务,atk-bridge 将停止重生,并且 atk-bridge 系统日志消息将停止(但其他消息不会停止)。
\n与此同时,我们应用了 Dan Christensen 的旁路(这也消除了 atk-bridge 消息),因此无需在 ssh 之后终止任何任务。
\n| 归档时间: |
|
| 查看次数: |
10369 次 |
| 最近记录: |