Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nextcloud 3.14 stopped working from task scheduler on Windows Server2022 (Qt6Gui.dll error) #7384

Open
5 of 8 tasks
kamilko opened this issue Oct 22, 2024 · 0 comments

Comments

@kamilko
Copy link

kamilko commented Oct 22, 2024

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

Bug description

On windows server 2022 (but 2019 probably also) synchronization can't be used with task scheduler.
Even if I use --background option, still application trying to start some gui.

Information from eventviewer:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
  <Provider Name="Application Error" /> 
  <EventID Qualifiers="0">1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2024-10-22T11:14:26.3344954Z" /> 
  <EventRecordID>18511</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="0" ThreadID="0" /> 
  <Channel>Application</Channel> 
  <Computer>cloud-sync</Computer> 
  <Security /> 
  </System>
<EventData>
  <Data>nextcloud.exe</Data> 
  <Data>3.14.1.55839</Data> 
  <Data>66f6776f</Data> 
  <Data>Qt6Gui.dll</Data> 
  <Data>6.7.2.0</Data> 
  <Data>66bfcecf</Data> 
  <Data>c0000005</Data> 
  <Data>00000000003a4f99</Data> 
  <Data>474</Data> 
  <Data>01db24738d23bc9a</Data> 
  <Data>C:\Program Files\Nextcloud\nextcloud.exe</Data> 
  <Data>C:\Program Files\Nextcloud\Qt6Gui.dll</Data> 
  <Data>2a074633-e180-4d2a-8d93-48038780459d</Data> 
  <Data /> 
  <Data /> 
  </EventData>
  </Event>

Steps to reproduce

  1. Configure nextcloud on windows user as usual (get for this account application password).
  2. Exit nextcloud
  3. Create new task scheduler with options "User must be logged in" off
  4. As action choose nextcloud with options: --background --confdir %APPDATA%\Nextcloud\ --userid background_sync --apppassword xxx-yyy-zzz-aaa-bbb
  5. Try to start this task.

Expected behavior

Earlier versions were working fine, nextcloud was working in the background without any user logged in. Right now, if I run command ind cmd: nextcloud.exe --background --confdir %APPDATA%\Nextcloud\ --userid background_sync there still appear nextcloud icon in task bar.

And nextcloudcmd.exe isn't option here, as it is one shot app.

Which files are affected by this bug

C:\Program Files\Nextcloud\Qt6Gui.dll

Operating system

Windows

Which version of the operating system you are running.

Windows Server 2022

Package

Official Windows MSI

Nextcloud Server version

Nextcloud Hub 8 (29.0.8)

Nextcloud Desktop Client version

3.14.1.55839

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

2024-10-22 13:14:24:959 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:721 ]: ################## "Nextcloud" locale: "pl_PL" ui_lang: QVariant(Invalid) version: "3.14.13.14-Win64 (build 20240927)" os: "Windows Server 2022 Version 21H2"
2024-10-22 13:14:24:959 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:726 ]: Arguments: QList("C:\Program Files\Nextcloud\nextcloud.exe", "--background", "--confdir", "C:\Users\Administrator\AppData\Roaming\Nextcloud\", "--userid", "background_sync", "--apppassword", "xxx-yyy-zzz-aaa-bbb")
2024-10-22 13:14:24:959 [ debug nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:1007 ] [ OCC::Application::setupTranslations ]: trying to load "pl" in "client_pl" from "C:/Program Files/Nextcloud/i18n/"
2024-10-22 13:14:24:959 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:1014 ]: Using "pl" translation
2024-10-22 13:14:24:959 [ debug nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:1031 ] [ OCC::Application::setupTranslations ]: impossible to load QtKeychain translation catalog "qtkeychain_pl"
2024-10-22 13:14:24:990 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:375 ]: VFS windows plugin is available
2024-10-22 13:14:24:990 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:379 ]: VFS suffix plugin is available
2024-10-22 13:14:24:990 [ debug nextcloud.gui.socketapi C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\socketapi\socketapi.cpp:300 ] [ OCC::SocketApi::SocketApi ]: creating "//./pipe" true
2024-10-22 13:14:25:007 [ info nextcloud.gui.socketapi C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\socketapi\socketapi.cpp:310 ]: server started, listening at "\\.\pipe\nextcloud-Administrator"
2024-10-22 13:14:25:008 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folderman.cpp:67 ]: setting remote poll timer interval to 30000 msec
2024-10-22 13:14:25:131 [ debug nextcloud.gui.ocsuserstatusconnector C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\ocsuserstatusconnector.cpp:226 ] [ OCC::OcsUserStatusConnector::fetchUserStatus ]: Try to fetch user status
2024-10-22 13:14:25:131 [ debug nextcloud.gui.ocsuserstatusconnector C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\ocsuserstatusconnector.cpp:229 ] [ OCC::OcsUserStatusConnector::fetchUserStatus ]: User status not supported
2024-10-22 13:14:25:131 [ info nextcloud.gui.account.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\accountmanager.cpp:485 ]: Account for QUrl("https://cloud.secreturl.xxx") using auth type "webflow"
2024-10-22 13:14:25:131 [ info nextcloud.sync.credentials.webflow C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\creds\webflowcredentials.cpp:117 ]: Get QNAM
2024-10-22 13:14:25:131 [ info nextcloud.gui.account.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\accountmanager.cpp:544 ]: Restored: 0 unknown certs.
2024-10-22 13:14:25:147 [ debug nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\tray\usermodel.cpp:281 ] [ OCC::User::setNotificationRefreshInterval ]: Starting Notification refresh timer with 60 sec interval
2024-10-22 13:14:25:147 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folderman.cpp:186 ]: Setup folders from settings file
2024-10-22 13:14:25:147 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:89 ]: Detected filesystem "NTFS" for "D:/CLOUD-SYNC/.sync_6bc324ff6d2e.db"
2024-10-22 13:14:25:147 [ debug nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folder.cpp:182 ] [ OCC::Folder::checkLocalPath ]: Checked local path ok
2024-10-22 13:14:25:147 [ info nextcloud.sync.configfile C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\configfile.cpp:1258 ]: Adding user defined ignore list to csync: "C:/Users/Administrator/AppData/Roaming/Nextcloud/sync-exclude.lst"
2024-10-22 13:14:25:178 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:339 ]: sqlite3 version "3.42.0"
2024-10-22 13:14:25:178 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:351 ]: sqlite3 locking_mode= "exclusive"
2024-10-22 13:14:25:178 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:359 ]: sqlite3 journal_mode= "wal"
2024-10-22 13:14:25:178 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:381 ]: sqlite3 synchronous= "NORMAL"
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "checkConnect" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:919 ] [ OCC::SyncJournalDb::tableColumns ]: Columns in the current journal: QList("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid", "remotePerm", "filesize", "ignoredChildrenRemote", "contentChecksum", "contentChecksumTypeId", "e2eMangledName", "isE2eEncrypted", "isShared", "lastShareStateFetchedTimestmap", "sharedByMe", "lock", "lockType", "lockOwnerDisplayName", "lockOwnerId", "lockOwnerEditor", "lockTime", "lockTimeout", "lockToken")
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add inode index" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add path index" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add parent index" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:919 ] [ OCC::SyncJournalDb::tableColumns ]: Columns in the current journal: QList("path", "chunk", "transferid", "errorcount", "size", "modtime", "contentChecksum")
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:919 ] [ OCC::SyncJournalDb::tableColumns ]: Columns in the current journal: QList("path", "baseFileId", "baseEtag", "baseModtime", "basePath")
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add e2eMangledName index" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add basePath index" and starting new transaction
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:919 ] [ OCC::SyncJournalDb::tableColumns ]: Columns in the current journal: QList("path", "lastTryEtag", "lastTryModtime", "retrycount", "errorstring", "lastTryTime", "ignoreDuration", "renameTarget", "errorCategory", "requestId")
2024-10-22 13:14:25:178 [ debug nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\common\syncjournaldb.cpp:3062 ] [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "checkConnect End"
2024-10-22 13:14:25:178 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folderman.cpp:1237 ]: Adding folder to Folder Map OCC::Folder(0x1eb077e4cc0) "1"
2024-10-22 13:14:25:194 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folderman.cpp:702 ]: Schedule folder "1" to sync!
2024-10-22 13:14:25:194 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\folderman.cpp:706 ]: Folder is not ready to sync, not scheduled!
2024-10-22 13:14:25:194 [ warning nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:516 ]: Migration result AccountManager::AccountsRestoreResult: OCC::AccountManager::AccountsRestoreSuccess
2024-10-22 13:14:25:194 [ warning nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:517 ]: Folders migrated: 1
2024-10-22 13:14:25:194 [ warning nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\application.cpp:518 ]: No accounts were migrated, prompting user to set up accounts and folders from scratch.
2024-10-22 13:14:25:238 [ warning qt.qml.typeregistration unknown:0 ]: Invalid QML element name "Activity"; value type names should begin with a lowercase letter
2024-10-22 13:14:25:238 [ warning qt.qml.typeregistration unknown:0 ]: Invalid QML element name "TalkNotificationData"; value type names should begin with a lowercase letter
2024-10-22 13:14:25:240 [ warning qt.qml.typeregistration unknown:0 ]: Invalid QML element name "UserStatus"; value type names should begin with a lowercase letter
2024-10-22 13:14:25:240 [ warning qt.qml.typeregistration unknown:0 ]: Invalid QML element name "Sharee"; value type names should begin with a lowercase letter
2024-10-22 13:14:25:240 [ info nextcloud.sync.clientproxy C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\clientproxy.cpp:103 ]: Set proxy configuration to use the preferred system proxy for http tcp connections
2024-10-22 13:14:25:255 [ warning qt.core.qobject.connect unknown:0 ]: QObject::connect(QNetworkInformation, OCC::Application): invalid nullptr parameter
2024-10-22 13:14:25:256 [ warning nextcloud.sync.configfile C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\configfile.cpp:718 ]: Enforcing default update channel "stable"
2024-10-22 13:14:25:256 [ warning nextcloud.sync.configfile C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\configfile.cpp:728 ]: Config file has a valid update channel: "stable"
2024-10-22 13:14:25:257 [ debug nextcloud.gui.updater C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\updater\updater.cpp:128 ] [ OCC::Updater::create ]: QUrl("https://updates.nextcloud.org/client/?version=3.14.1.20240927&platform=win32&osRelease=windows&osVersion=server2022&kernelVersion=10.0.20348&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=3.14-Win64&channel=stable&msi=true")
2024-10-22 13:14:25:735 [ warning default qrc:/qml/src/gui/tray/UnifiedSearchInputContainer.qml:48 ]: qrc:/qml/src/gui/tray/UnifiedSearchInputContainer.qml:48:17: QML QQuickRectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x1eb07a5dc00, parent=0x0, geometry=0,0 0x0)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference
2024-10-22 13:14:25:749 [ warning default qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:27 ]: qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:27:9: TypeError: Cannot read property 'height' of null
2024-10-22 13:14:25:749 [ warning default qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:26 ]: qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:26:9: TypeError: Cannot read property 'width' of null
2024-10-22 13:14:25:749 [ warning default qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:25 ]: qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:25:9: TypeError: Cannot read property 'y' of null
2024-10-22 13:14:25:749 [ warning default qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:24 ]: qrc:/qt-project.org/imports/QtQuick/Controls/Windows/Button.qml:24:9: TypeError: Cannot read property 'x' of null
2024-10-22 13:14:25:840 [ warning qt.qml.context unknown:0 ]: qrc:/qml/src/gui/tray/MainWindow.qml:313:29 Parameter "index" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
2024-10-22 13:14:25:845 [ warning qt.qml.context unknown:0 ]: qrc:/qml/src/gui/tray/MainWindow.qml:314:29 Parameter "object" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
2024-10-22 13:14:25:893 [ debug nextcloud.gui.socketapi C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\socketapi\socketapi.cpp:335 ] [ OCC::SocketApi::slotNewConnection ]: New connection QLocalSocket(0x1eb09b84cd0)
2024-10-22 13:14:25:895 [ warning nextcloud.gui.account.manager C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\accountmanager.cpp:536 ]: Failed to read proxy password to keychain "Password entry not found"
2024-10-22 13:14:25:895 [ info nextcloud.gui.account.state C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\accountstate.cpp:268 ]: check connectivity
2024-10-22 13:14:25:895 [ info nextcloud.sync.credentials.webflow C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\gui\creds\webflowcredentials.cpp:139 ]: Fetch from keychain!
2024-10-22 13:14:25:930 [ warning default unknown:0 ]: Failed to create Direct Composition device: COM error 0x80070005: Odmowa dost�pu.

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant