-
-
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
Samba external storage not working for some files #9937
Comments
UPDATE: I tried removing and readding, but the same specific files still fail. The files work using my file manager normally. If I try to copy the file from the external storage to just the root nextcloud folder. The file shows up as 0KB. But it has a size in the external storage folder. Mounting through SFTP the files work |
I can confirm I have the same problem, I migrated from OC 13.0.X (not sure anymore) from Ubuntu Server 14.x to a Debian Server 9 reusing both the existing data folder and database (upgraded on first use of the new NC installation). I have tried everything and I can't find out why this won't work for the majority of files but some. Can't preview the images nor download them from the web interface. I have SMB shares on Windows Server 2016 with Data Deduplication activated (tried to disable it but no change). Some files show Size On Disk 0KB using file explorer, those are the files that won't work in NC... @dali99 Could you check if it's the same with your files that won't work? |
I just found out that those files with 0KB are pointers and NC can't get to the files that are really stored in the V:\System Volume Information\Dedup\ Folder. I'm trying to run a dedup job that's supposed to undo the Deduplication (here at full speed to test it, maybe stop after "-Type Unoptimization"-part if your server is in production): UPDATE: it works.... somehow the smbclient or php checks the file size on disk and decides not to open an empty file... this is strange. I just tried opening the share with smbclient and the size of each files on a depuped file is correct and not 0kb. |
That seems like a different issue, my files have sizes and are just raw files being served by samba on top of ZFS. And I dont think samba dedupes by default. |
OK, maybe it's a different setup, but just to be clear, my file sizes are OK in NC. Maybe I should start a new issue if you are certain that your setup doesn't dedupe. |
As the version of the software you've reported this for has reached end of life, I will close this ticket. If this is still happening after an upgrade to the latest version, feel free to reopen. |
Steps to reproduce
Expected behaviour
The file should open, and be able to download
Actual behaviour
A page with Service Unavailable shows up on Download
Error message with "Could not generate preview for this file"
Server configuration
Operating system:
Ubuntu (Docker)
Web server:
Apache (Docker)
Database:
mariadb
PHP version:
7.1.18 (Docker)
Nextcloud version: (see Nextcloud admin page)
13.0.4
Updated from an older Nextcloud/ownCloud or fresh install:
Done docker pull for a one minor version
Where did you install Nextcloud from:
Docker image https://github.com/nextcloud/docker
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
SMB
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Tried Android Nextcloud app, and Firefox
Operating system:
Android, and Archlinux
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: