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

owncloudcmd v4.0.0.10896 results in Segmentation fault (Could not load plugin: not existant or bad metadata "owncloudsync_vfs_off") #10842

Closed
2 tasks done
Synthlight opened this issue May 12, 2023 · 5 comments · Fixed by #10881
Assignees
Labels
Linux p2-high Escalation, on top of current planning, release blocker type:bug
Milestone

Comments

@Synthlight
Copy link

Pre-submission Checks

  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

The command I'm running is:
owncloudcmd --trust $HOME/bin https://user@[email protected]/owncloud/remote.php/dav/files/username/bin
(I've redacted sensitive info.)

This results in a segmentation fault with Could not load plugin: not existant or bad metadata "owncloudsync_vfs_off". (Full log below.)

I was able to find an older closed issue for v3.0: #10185
I didn't see a "re-open" button and was unsure of the policy, so made a new one.

I can't tell you what version I had before since I don't see it in the repo anymore, but updates had been run on the VMs last week and it was working then.

Expected behavior

I expected the command to succeed and files to be synced.

Steps to reproduce the issue

Just run owncloudcmd --trust $HOME/bin https://user@[email protected]/owncloud/remote.php/dav/files/username/bin.
System info below as I presume that's related.

Screenshots

No response

Logs

23-05-12 18:52:38:994 [ info sync.checkserverjob ]:     status.php returns:  QJsonDocument({"edition":"Community","installed":true,"maintenance":false,"needsDbUpgrade":false,"product":"ownCloud","productname":"ownCloud","version":"10.12.1.3","versionstring":"10.12.1"})   QNetworkReply::NoError  Reply:  QNetworkReplyHttpImpl(0x5603dcd37ad0)
23-05-12 18:52:38:995 [ info sync.networkjob ]: Created OCC::JsonApiJob(OCC::Account("[email protected]"), "https://domain.local/owncloud/ocs/v1.php/cloud/capabilities?format=json", "GET", Original-Request-ID: "d2c49d51-3bfb-48d4-91f7-0adcaf5daab6", X-Request-ID: "d2c49d51-3bfb-48d4-91f7-0adcaf5daab6") for QObject(0x0)
23-05-12 18:52:39:312 [ debug default ] [ main(int, char**)::<lambda()>::<lambda ]:     Server capabilities QJsonObject({"checksums":{"preferredUploadType":"SHA1","supportedTypes":["SHA1"]},"core":{"pollinterval":30000,"status":{"edition":"Community","hostname":"domain.local","installed":true,"maintenance":false,"needsDbUpgrade":false,"product":"ownCloud","productname":"ownCloud","version":"10.12.1.3","versionstring":"10.12.1"},"support-url-signing":true,"webdav-root":"remote.php/webdav"},"dav":{"chunking":"1.0","propfind":{"depth_infinity":false},"reports":["search-files"],"trashbin":"1.0"},"files":{"bigfilechunking":true,"blacklisted_files":[".htaccess"],"blacklisted_files_regex":"\\.(part|filepart)$","favorites":true,"file_locking_enable_file_action":false,"file_locking_support":true,"privateLinks":true,"privateLinksDetailsParam":true,"undelete":true,"versioning":true},"files_sharing":{"api_enabled":true,"auto_accept_share":true,"can_share":true,"default_permissions":31,"federation":{"incoming":true,"outgoing":true},"group":{"expire_date":{"enabled":false}},"group_sharing":true,"providers_capabilities":{"ocFederatedSharing":{"remote":["shareExpiration"]},"ocinternal":{"group":["shareExpiration"],"link":["shareExpiration","passwordProtected"],"user":["shareExpiration"]}},"public":{"can_create_public_link":true,"defaultPublicLinkShareName":"Public link","enabled":true,"expire_date":{"enabled":false},"multiple":true,"password":{"enforced":false,"enforced_for":{"read_only":false,"read_write":false,"read_write_delete":false,"upload_only":false}},"roles_api":true,"send_mail":false,"social_share":true,"supports_upload_only":true,"upload":true},"remote":{"expire_date":{"enabled":false}},"resharing":true,"search_min_length":2,"share_with_group_members_only":true,"share_with_membership_groups_only":true,"user":{"expire_date":{"enabled":false},"profile_picture":true,"send_mail":false},"user_enumeration":{"enabled":true,"group_members_only":false}},"notifications":{"ocs-endpoints":["list","get","delete"]}})
23-05-12 18:52:39:313 [ info sync.networkjob ]: Created OCC::JsonApiJob(OCC::Account("[email protected]"), "https://domain.local/owncloud/ocs/v1.php/cloud/user?format=json", "GET", Original-Request-ID: "51f555ad-f2bd-42a8-abc5-4cbdebcd4cdd", X-Request-ID: "51f555ad-f2bd-42a8-abc5-4cbdebcd4cdd") for QObject(0x0)
23-05-12 18:52:39:608 [ critical plugins ]:     Could not load plugin: not existant or bad metadata "owncloudsync_vfs_off"
23-05-12 18:52:39:615 [ info sync.engine ]:     There are "8.7 GB" available at "/home/administrator/bin/"
23-05-12 18:52:39:615 [ info sync.engine ]:     Sync with existing sync journal
23-05-12 18:52:39:615 [ info sync.engine ]:     Using Qt  5.15.2  SSL library  "OpenSSL 1.1.1n  15 Mar 2022"  on  "Debian GNU/Linux 11 (bullseye)"
23-05-12 18:52:39:618 [ info sync.database ]:   sqlite3 version "3.34.1"
23-05-12 18:52:39:618 [ info sync.database ]:   sqlite3 locking_mode= "exclusive"
23-05-12 18:52:39:618 [ info sync.database ]:   sqlite3 journal_mode= "wal"
23-05-12 18:52:39:618 [ info sync.database ]:   sqlite3 synchronous= "NORMAL"
Segmentation fault

Client version number

owncloudcmd ownCloud 4.0.0.10896
https://github.com/owncloud/client/commit/74fef3a70c2c7bb95598574e31d30bcade9a4eb6
Libraries Qt 5.15.2, OpenSSL 1.1.1n  15 Mar 2022
Using virtual files plugin: off
debian-5.10.0-22-amd64

Desktop environment (Linux only)

Debian GNU/Linux 11 (bullseye)

Client package version and origin (Linux only)

Package version 4.0.0+oc-10896 from deb https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Debian_11/ /

Installation path (Windows only)

No response

Server information

10.12.1-1+9.2 on the same OS (Debian 11), PHP 7.4

Additional context

No response

@beatjoerg
Copy link

beatjoerg commented May 13, 2023

Same problem on Ubuntu 20.04.6 LTS

Coredump

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `owncloudcmd --non-interactive --uplimit 1048576 --server https://cloud.xxx.ch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f1907c01ffd in OCC::SyncEngine::startSync() () from /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0
[Current thread is 1 (Thread 0x7f190342ad80 (LWP 3185925))]
(gdb) bt
#0  0x00007f1907c01ffd in OCC::SyncEngine::startSync() () from /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0
#1  0x0000559d8fc0c3f4 in ?? ()
#2  0x00007f190762aa4e in ?? () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f1907b647b1 in OCC::AbstractNetworkJob::finishedSignal(OCC::AbstractNetworkJob::QPrivateSignal) () from /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0
#4  0x00007f1907bb3dc1 in OCC::AbstractNetworkJob::slotFinished() () from /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0
#5  0x00007f190762aa4e in ?? () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f19079a6cc6 in ?? () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Network.so.5
#7  0x00007f1907a4e96e in ?? () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Network.so.5
#8  0x00007f19076215c9 in QObject::event(QEvent*) () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f19075f39ff in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f19075f6331 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f190764ecd7 in ?? () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f190568117d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f1905681400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f19056814a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f190764e332 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f19075f253b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f19075fa6e4 in QCoreApplication::exec() () from /opt/ownCloud/qt-5.15.2/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x0000559d8fc06921 in ?? ()
#19 0x00007f1906f74083 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#20 0x0000559d8fc0740e in ?? ()

@richman1000000
Copy link

richman1000000 commented May 13, 2023

found error in "dmesg -H"

[May13 12:28] owncloudcmd[2725253]: segfault at 0 ip 00007efc91a47792 sp 00007ffcaea37a80 error 4 in libowncloudsync.so.4.0.0[7efc919c2000+d1000]
[  +0.000026] Code: ff 48 89 c7 e8 ff fe f7 ff 4c 89 f7 83 f0 01 0f b6 f0 e8 a1 b0 f7 ff 8b 85 b4 01 00 00 48 8b bd f8 00 00 00 89 85 b0 01 00 00 <48> 8b 07 ff 50 60 83 f8 01 0f 84 27 11 00 00 48 8d 44 24 2f 48 8b
[  +5.644506] owncloudcmd[2725295]: segfault at 0 ip 00007f8ea6ed7792 sp 00007ffec0da9790 error 4 in libowncloudsync.so.4.0.0[7f8ea6e52000+d1000]
[  +0.000026] Code: ff 48 89 c7 e8 ff fe f7 ff 4c 89 f7 83 f0 01 0f b6 f0 e8 a1 b0 f7 ff 8b 85 b4 01 00 00 48 8b bd f8 00 00 00 89 85 b0 01 00 00 <48> 8b 07 ff 50 60 83 f8 01 0f 84 27 11 00 00 48 8d 44 24 2f 48 8b
[May13 12:30] owncloudcmd[2725654]: segfault at 0 ip 00007f6117917792 sp 00007ffd0101fef0 error 4 in libowncloudsync.so.4.0.0[7f6117892000+d1000]
[  +0.000026] Code: ff 48 89 c7 e8 ff fe f7 ff 4c 89 f7 83 f0 01 0f b6 f0 e8 a1 b0 f7 ff 8b 85 b4 01 00 00 48 8b bd f8 00 00 00 89 85 b0 01 00 00 <48> 8b 07 ff 50 60 83 f8 01 0f 84 27 11 00 00 48 8d 44 24 2f 48 8b
[  +3.469511] owncloudcmd[2725687]: segfault at 0 ip 00007f101b79f792 sp 00007ffd427751f0 error 4 in libowncloudsync.so.4.0.0[7f101b71a000+d1000]
[  +0.000026] Code: ff 48 89 c7 e8 ff fe f7 ff 4c 89 f7 83 f0 01 0f b6 f0 e8 a1 b0 f7 ff 8b 85 b4 01 00 00 48 8b bd f8 00 00 00 89 85 b0 01 00 00 <48> 8b 07 ff 50 60 83 f8 01 0f 84 27 11 00 00 48 8d 44 24 2f 48 8b
[May13 12:31] owncloudcmd[2726215]: segfault at 0 ip 00007fbcbad37792 sp 00007fff7ea786a0 error 4 in libowncloudsync.so.4.0.0[7fbcbacb2000+d1000]
[  +0.000037] Code: ff 48 89 c7 e8 ff fe f7 ff 4c 89 f7 83 f0 01 0f b6 f0 e8 a1 b0 f7 ff 8b 85 b4 01 00 00 48 8b bd f8 00 00 00 89 85 b0 01 00 00 <48> 8b 07 ff 50 60 83 f8 01 0f 84 27 11 00 00 48 8d 44 24 2f 48 8

@TheOneRing TheOneRing added this to the Desktop Client 4.0 milestone May 16, 2023
@TheOneRing TheOneRing added the p2-high Escalation, on top of current planning, release blocker label May 16, 2023
@TheOneRing
Copy link
Contributor

TheOneRing commented May 17, 2023

@fmoc btw the about line does not mention the plugin dir because the define OC_PLUGIN_DIR is only set for the platform_unix.cpp

#if defined(OC_PLUGIN_DIR)
const QString pluginDirComment = QCoreApplication::translate("ownCloudTheme::pluginDir", "Plugin dir: %1%2").arg(QDir(QCoreApplication::applicationDirPath()).filePath(QStringLiteral(OC_PLUGIN_DIR)), br);
#else
const QString pluginDirComment = QString();
#endif

Meh ca3341b

@michaelstingl
Copy link
Contributor

@TheOneRing @fmoc 4.1 candidate? otherwise 5.0…

@TheOneRing TheOneRing linked a pull request May 30, 2023 that will close this issue
@saw-jan saw-jan self-assigned this Jun 1, 2023
@saw-jan
Copy link
Member

saw-jan commented Jun 1, 2023

Tested with ownCloud ownCloud 4.1.0.11119-daily20230531
Command works ✔️

owncloudcmd --trust $HOME/bin https://admin:[email protected]/core/remote.php/dav/files/admin/bin

@saw-jan saw-jan removed their assignment Jun 1, 2023
@richman1000000 richman1000000 mentioned this issue Jun 19, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux p2-high Escalation, on top of current planning, release blocker type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants