Folder "Talk", only owns files, someone

sorry, my english is very bad

my English is a bit, too

do not quite understandā€¦ is the error supposed to go away after running this command?
UPDATE oc_mounts SET mount_provider_class = 'OCA\Files_Sharing\MountProvider' ...

Nein-No-Not-ŠŃ–
Someone recommend this way. I try to say that itā€™s wrong (bad)
You will lose information after that.

1 Like

Hi XueSheng-NC
I do not know exactly what you meanā€¦ I have try to apply the patch as this but I do not understand the output:

root@nextcloud-clone:/var/www/nextcloud/apps/files_sharing/lib/Controller# patch -p 1 < ~/34840.patch

canā€™t find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|From ff653f4d762b03bbb1c6ede5b450133748adac7a Mon Sep 17 00:00:00 2001
|From: Carl Schwan carl@carlschwan.eu
|Date: Mon, 10 Oct 2022 16:09:14 +0200
|Subject: [PATCH 1/3] Propagate attributes when resharing
|
|When updating a share, load the node from the initiator instead of the
|owner similar to how this is done when creating the share.
|

Signed-off-by: Carl Schwan carl@carlschwan.eu
ā€¦/lib/Controller/ShareAPIController.php
1 file changed, 20 insertions(+), 27 deletions(-)
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 66b3153f0995ā€¦8ceb6318637f 100644
ā€” a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php

File to patch:

Can you find
ā€œhas no provider set, performing full setupā€
in nextcloud.log

Please take that patch with care. As mentioned in the issue tracker: backup your data first!
Regarding the patching, you used the wrong path. In your case it should be:

# cd /var/www/nextcloud
# patch -p 1 < ~/34840.patch

i have try this bevore, but this give this errors:

root@nextcloud-clone:/var/www/nextcloud# patch -p 1 < ~/34840.patch
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Hunk #1 FAILED at 525.
Hunk #2 FAILED at 685.
Hunk #3 FAILED at 1104.
Hunk #4 FAILED at 1253.
Hunk #5 FAILED at 1902.
Hunk #6 FAILED at 1916.
6 out of 6 hunks FAILED ā€“ saving rejects to file apps/files_sharing/lib/Controller/ShareAPIController.php.rej
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Reversed (or previously applied) patch detected! Assume -R? [n]

The patch you are trying to apply is not matching your Nextcloud version!
Btw. whatā€™s this patch ā€œ34840ā€ about? This is not the one which I referred to!

ohā€¦ i am so sorry :smiling_face:
now i have try this patch out of your link: https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/35155.patch
ist this ok? ich bin verwirrt
my Version
Nextcloud Hub 3 (25.0.1)

running this patch brings this:
root@nextcloud-clone:/var/www/nextcloud# patch -p 1 < 35155.patch
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Hunk #1 succeeded at 537 with fuzz 1 (offset 12 lines).
Hunk #2 FAILED at 679.
Hunk #3 succeeded at 1112 (offset 13 lines).
Hunk #4 succeeded at 1263 (offset 15 lines).
Hunk #5 FAILED at 1897.
Hunk #6 succeeded at 1932 (offset 12 lines).
2 out of 6 hunks FAILED ā€“ saving rejects to file apps/files_sharing/lib/Controller/ShareAPIController.php.rej

Patch was done for NC24 as you can see at the pull description [stable24] Revert "Propagate attributes when resharing" by szaimen Ā· Pull Request #35155 Ā· nextcloud/server Ā· GitHub

You could try check the required changes for NC25 and modify the files accordingly (manually). Or you just wait until something is ready to test for NC25.

Just to make one thing clear: I donā€™t know whether this patch does solve your issue anyways! I did just mention this issue, because it might (!) be related.

okā€¦ thank you very much, i will wait then,
itā€™s just strange that this problem only occurs with my user account, all other users have this not

no, this entry does not exist

no, this entry does not exist

be sure that
ā€˜loglevelā€™ => 0,
in your config.php

and try reload wrong file

it was ā€œloglevel 2ā€
i changed it, tried to load the file again and now i have the entries:
{ā€œreqIdā€:ā€œGEbC9NP1Aq0BDmByQS8Yā€,ā€œlevelā€:0,ā€œtimeā€:ā€œ2022-11-15T11:44:03+00:00ā€,ā€œremoteAddrā€:ā€œxxx.xxx.xxx.70ā€,ā€œuserā€:ā€œtrixiā€,ā€œappā€:ā€œno app in contextā€,ā€œmethodā€:ā€œPROPFINDā€,ā€œurlā€:ā€œ/remote.php/dav/files/trixi/Talk/20221025_132720%20(2).pngā€,ā€œmessageā€:ā€œmount at /trixi/files/Talk/Bild11.png/ has no provider set, performing full setupā€,ā€œuserAgentā€:ā€œMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0ā€,ā€œversionā€:ā€œ25.0.1.1ā€,ā€œdataā€:}

Discussion around [Bug]: Shares missing in web when 'mount_provider_class' is empty Ā· Issue #34752 Ā· nextcloud/server Ā· GitHub seems to get more precise now. Thus I assume thereā€™ll be a fix or at least solid workaround soon.

Could you find the file ā€œBild11.pngā€ in FileSystem
by MC or something as

find / -name Bild11.png

yes, but this file is in an other user-folder
i klick in Talk on a picture named ā€œ20220627_143248.jpgā€ and the error in the logfile says : ā€œmount at /trixi/files/Talk/Bild11.png/ has no provider set, performing full setupā€ ā€¦ and the file with the name Bild11.png i found in ā€œ/data/nextcloud/otherUser/files/Talk/Bild11.pngā€ :crazy_face:

OK! Good.
ā€œotherUserā€ inserted the file ā€œBild11.pngā€ in conversation with you.
ā€œTalk appā€ auto gives you permission on the file ( share ).
I had problems with these Shares.

If you can contact with ā€œotherUserā€, ask him to sure that the share is ok
or (simple)
ā€œotherUserā€ give (create) new share with you (grant permission to you).

If you cannot contact with ā€œotherUserā€, you can use Impersonate app and login as user ā€œotherUserā€ (without his password).

no problem, I have a clone our Nextcloud, there I can test everything without data loss in the real Nextcloud :slight_smile:
On the test system I have now implemented your suggestion and everything seems to run normally again. I have now contacted ā€œotherUserā€ ;-). If it also works on the productive system, Iā€™ll report back here immediately :slight_smile:

that was itā€¦ I canā€™t get my head around it :grinning: :hugs: :upside_down_face:, Iā€™ve been looking for it for weeksā€¦
Thanks everyone, especially rbm :slight_smile:

trixi
that was itā€¦ I canā€™t get my head around it :grinning: :hugs: :upside_down_face:, Iā€™ve been looking for it for weeksā€¦
Thanks everyone, especially rbm :slight_smile:

Youā€™re welcome.

For anyone having the problem, please take a look at this PR: delay updating setup providers untill we register the mounts by icewind1991 Ā· Pull Request #35218 Ā· nextcloud/server Ā· GitHub