-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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]: Error while running background job OCA\\DAV\\Migration\\BuildSocialSearchIndexBackgroundJob
#46100
Comments
This is similar to #21696. The LONGTEXT column is apparently returned as string|resource but we expect it to always be string |
Is there a fix coming soon for this bug? |
I see a check next to nextcloud: increase to 29.0.3 #4886. Does that mean this issue is solved? |
This just completed the my collection of errors on a fresh upgrade to 29.0.6... tbh the other errors were on the 29.0.3... this is new ;-) Running Nextcloud AIO, thinking to nuke it and to install it anew.... :( |
I'm also having this issue with recent version:
|
Still actual for 30.0.2:
|
Looks like this should solve the problem. I'll wait for next cron job start. --- apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob-orig.php 2024-11-15 18:33:06.664205182 +0500
+++ apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php 2024-11-15 18:35:09.134761969 +0500
@@ -71,7 +71,11 @@
// refresh identified contacts in order to re-index
foreach ($social_cards as $contact) {
$offset = $contact['id'];
- $this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $contact['carddata']);
+ $data = $contact['carddata'];
+ if (is_resource($data) && (get_resource_type($data) == 'stream')) {
+ $data = stream_get_contents($data);
+ }
+ $this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $data);
// stop after 15sec (to be continued with next chunk)
if (($this->time->getTime() - $startTime) > 15) { |
Check if oc_cards.carddata has been read as resource and read it to string. Signed-off-by: Mikhail Kotelnikov <fox@woland.me>
Error while running background job OCA\\DAV\\Migration\\BuildSocialSearchIndexBackgroundJob
OCA\\DAV\\Migration\\BuildSocialSearchIndexBackgroundJob
Fixes #46100 Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com> Signed-off-by: Mikhail Kotelnikov <fox@woland.me>
Fixes #46100 Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com> Signed-off-by: Mikhail Kotelnikov <fox@woland.me>
Bug description
Error logged after upgrading to 29.0.3
Steps to reproduce
Expected behavior
should not log an error
Installation method
Official All-in-One appliance
Nextcloud Server version
29
Operating system
None
PHP engine version
None
Web server
None
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: