Skip to content

[Bug]: nextcloud background is started when ssh login to a remote system #9489

@keestux

Description

@keestux

⚠️ Before submitting, please verify the following: ⚠️

Bug description

On a remote Ubuntu 22 system there is nextcloud-desktop installed. If I ssh login to that system then the com.nextcloud.desktopclient.nextcloud.service is started on that remote system. Now that service is constantly trying to start nextcloud --background and failing (crashing) because it has no display to connect to.

The error message are somewhat confusing.

jan 26 14:35:54 yangtze systemd[2241]: Started Nextcloud desktop user service.
jan 26 14:35:54 yangtze nextcloud[303069]: qt.qpa.xcb: could not connect to display
jan 26 14:35:54 yangtze nextcloud[303069]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
jan 26 14:35:54 yangtze nextcloud[303069]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
jan 26 14:35:54 yangtze nextcloud[303069]: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.
jan 26 14:35:55 yangtze systemd[2241]: com.nextcloud.desktopclient.nextcloud.service: Main process exited, code=dumped, status=6/ABRT
jan 26 14:35:55 yangtze systemd[2241]: com.nextcloud.desktopclient.nextcloud.service: Failed with result 'core-dump'.
jan 26 14:36:00 yangtze systemd[2241]: com.nextcloud.desktopclient.nextcloud.service: Scheduled restart job, restart counter is at 7516.
jan 26 14:36:00 yangtze systemd[2241]: Stopped Nextcloud desktop user service.

This goes on and on, every 3-5 seconds, even after logging out.

Steps to reproduce

  1. install nextcloud-desktop on a remote system
  2. ssh to that system
  3. use journalctl --user -f
    ...

Expected behavior

When ssh logging in to a remote system the nextcloud background service should not be started.

Which files are affected by this bug

not-relevant

Operating system

Linux

Which version of the operating system you are running.

Ubuntu 22

Package

Official PPA

Nextcloud Server version

30

Nextcloud Desktop Client version

4.0.6

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions