首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >桌面-整合syslog垃圾邮件

桌面-整合syslog垃圾邮件
EN

Ask Ubuntu用户
提问于 2022-12-02 20:49:33
回答 4查看 6.7K关注 0票数 16

在过去的三天里,我们几乎每隔几秒钟就会收到来自我们所有机器的这些信息的日志:

代码语言:javascript
复制
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.

我们在启动这些消息的时间内应用的唯一更新是用于passwd和登录,因此我们将其退出:

代码语言:javascript
复制
====================================================================

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.

======================================================================

但没什么区别。

我们还看到这样重复的信息:

代码语言:javascript
复制
 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'.

所以我们猜测这可能是一些改变或更新的东西。

这也发生在另一个用户身上:

管理单元-桌面-集成淹没syslog

我们的系统都在运行Ubuntu22.04。

将非常感谢任何关于在哪里寻找解决这一问题的提示。

编辑:关于这个问题的一个有用的旁路,请参阅下面的答案。

编辑2023年3月2日:稳定版本2023-02-21 (57)似乎消除了重复的syslog消息,并解决了问题。(请见下面我的回答。)

EN

回答 4

Ask Ubuntu用户

回答已采纳

发布于 2022-12-03 23:15:59

编辑2023年2月28日:稳定版本2023-02-21 (57)似乎消除了重复的syslog消息。(请参阅Sergio答复中的所有评论。)

以下是修复后的版本信息:

代码语言:javascript
复制
~$ snap info snapd-desktop-integration
name:      snapd-desktop-integration
summary:   Desktop Integration for snapd
publisher: Canonical✓
store-url: https://snapcraft.io/snapd-desktop-integration
contact:   https://github.com/snapcore/snapd-desktop-integration
license:   unset
description: |
Provides a user session daemon used to provide a bridge between the user's session and snapd. 
Used for things like automatic theme installation.
services:
snapd-desktop-integration: simple, enabled, inactive
snap-id:      IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu
tracking:     latest/stable
refresh-date: today at 15:17 PST
channels:
latest/stable:    0.1 2023-02-21 (57) 438kB -
latest/candidate: 0.1 2023-02-23 (59) 442kB -
latest/beta:      ↑                         
latest/edge:      0.1 2023-02-23 (59) 442kB -
installed:          0.1            (57) 438kB -`

编辑2023年1月21日:候选版本57在ssh‘’ing安装到测试系统后生成这些重复的syslog消息:

21 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,您可以通过运行以下命令来停止重复消息:

sudo snap connect snapd-desktop-integration:login-session-observe

请参阅下面塞尔吉奥的评论。目标是消除对此步骤的需求,并使其自动连接。

编辑2022年12月17日:我们在两台ssh机器上测试候选版本55。它修复了atk桥消息,但每隔几秒钟产生一组不同的消息:

17 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=?'

这个序列每隔几秒钟重复一次,直到我们卸载软件包。(在我们进行测试时,这两台机器都让用户登录到图形化会话,如果这很重要的话)。

编辑2022年12月12日:候选版本49没有修复当ssh安装了快照桌面集成的机器时出现的重复“atk-桥”消息,尽管它可能修复来自GDM会话的消息:

https://github.com/snapcore/snapd-desktop-integration/pull/41#issuecomment-1344603344

编辑2022年12月9日:这是测试候选版本49的结果:

https://github.com/snapcore/snapd-desktop-integration/pull/41#issuecomment-1344589269

编辑2022年12月7日:以下是提交:

https://github.com/sergio-costas/snapd-desktop-integration/commit/a5652377cc5c8f20ea311a0dd28d44a63c4551c2

编辑2022年12月6日:以下是拉请求:

https://github.com/snapcore/snapd-desktop-integration/pull/41

对一揽子作者的建议是:

...follow拉请求,当该请求被合并时,它将在几个小时内自动发布到候选通道。

他们还补充说:

这是一个相当复杂的修复,这是有点风险,所以它将需要几天来得到适当的审查。但是,一旦对其进行了彻底的审查,我们将立即开始测试过程。

编辑2022年12月4日:我发电子邮件给包作者之一。他们已经有人在处理这个问题了,他们希望本周能有一个解决办法。

====

这个问题一定是由于在2022年11月29日前后某个时候出现故障而导致的。

不幸的是,snap changes中的信息已经被覆盖了。

重复的信息在2022年12月2日格林尼治标准时间2100左右在我们的机器上停止了,但是今天(12月3日)它们又重新开始了。

我们注意到,“atk-桥.请不要加载它”消息一到任何一台机器就会重新启动。

我们在用户树视图中使用htop来终止任务,直到我们看到它是反复启动atk桥的"systemd“。如果我们终止该系统任务,atk桥将停止呼吸,atk桥syslog消息将停止(但不会停止其他消息)。

同时,我们应用了的旁路(这也消除了atk桥消息),所以在ssh‘’ing之后不需要关闭任何任务。

票数 6
EN

Ask Ubuntu用户

发布于 2022-12-04 02:13:16

现在,我做了snap remove snapd-desktop-integration,日志垃圾邮件消失了。我不知道这个软件包有多重要,但是如果有什么需要的话,我可以在问题解决后重新安装它。

票数 9
EN

Ask Ubuntu用户

发布于 2022-12-04 16:35:14

这种情况发生在非图形模式下运行管理单元桌面集成时.

要解决这个问题,只需在图形模式(5级)下运行管理单元-桌面-集成。

查找已安装的还原(这里是43)

代码语言:javascript
复制
snap info snapd-desktop-integration 

然后编辑/etc/systemd/system/snap-snapd\x2ddesktop\x2dintegration-43.mount

代码语言:javascript
复制
[Install]
WantedBy=graphical.target  # changed

然后

代码语言:javascript
复制
systemctl daemon-reload
systemctl disable snap-snapd\\x2ddesktop\\x2dintegration-43.mount
systemctl enable snap-snapd\\x2ddesktop\\x2dintegration-43.mount 

snap stop snapd-desktop-integration
systemctl isolate graphical.target
systemctl isolate multi-user.target 

Ubuntu 22.04.1

票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1443676

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档