Closed dacmot closed 1 year ago
Hi @dacmot - Thanks for the report.
This doesn't look like a previewgenerator
issue. It's an issue either in an upstream dependency used by NC server or with your SMB server (maybe). The code being triggered is after a simulated stat()
call to get information like file modification time, mode, and size from your SMB share. The error suggests the output being received from the SMB host doesn't contain the attributes / look at all like NC expects.
Since there is no PHP smbclient in Ubuntu 20.04, I installed 1.0.6 from pecl. However, I could not tell the difference as I still got the error. I also can't tell which client is being used.
Wrapped
means it's using the smbclient
binary. Native
means it's using php-smbclient
.
If you're still experiencing this problem, I suggest closing this one and reporting it against NC Server since that's the more appropriate place for this Issue (nothing can be done about it in previewgenerator
).
But if you're ambitious - and to get a head start on isolating the cause - capture the output of running this from the command-line of your NC server:
smbclient '\\<Target IP>\<Target Dir>' -U <Username>
You should get prompted for a password (if any) and go ahead and enter it.
Then at the smb: \>
prompt try running a few iterations of the command that things are failing on which is an allinfo
query to your SMB host:
allinfo Pictures/cats
allinfo Pictures/cats/somefile.jpg
etc
The output should look a little like this:
But don't post the results here - send it in with your report to the NC Server repository. :-)
P.S. There have been some upstream changes in the SMB module so it's entirely possible this is resolved in a newer NC version - https://github.com/icewind1991/SMB/commits/master
Thanks a lot for checking this out!
Since I'm still on v25 because of Debian Bulleye's php 7.4, I'll keep it in mind when I upgrade.
I'm having many difficulties when running preview:generate-all. The main one being an error when scanning a folder. The other is folders just being skipped over, even if they don't have .nomedia (see also https://github.com/nextcloud/previewgenerator/issues/77#issuecomment-354364318)
The error is:
This error always happens on that folder. If I put
--path=/mo/files/Pictures/dogs
, I get the error right away. I tried to see what could be strange about that folder but I can't figure it out. It has a couple hundred pictures in it, no bigger than 10M, some more pictures in sub-folders, two videos around 30M. Similar to other folders that have no issues. All permissions look fine. No hidden file or folder.My setup is:
Since there is no PHP smbclient in Ubuntu 20.04, I installed 1.0.6 from pecl. However, I could not tell the difference as I still got the error. I also can't tell which client is being used.
All of my pictures are stored on a samba share (Helios4 NAS running OpenMediaVault). The NAS and nextcloud servers are both wired on GbE. I have no issues accessing the pictures from nextcloud either from the web, or the android app, whether on my home wi-fi or remotely.
Let me know if I'm missing any info.