Hallo zusammen,
hat jemand von Euch die Freigaben des LMN Servers in die Nextcloud via SMB eingebunden? Ich stelle fest, daß man mit der aktuellen Version 24.x, vielleicht auch schon vorher, keine größeren Dateien, z.B. ein CD-Image mehr von einem LMN Storage auf das andere verschieben/kopieren kann. Das Verschieben bricht reproduzierbar bei einer bestimmten Dateigröße ab.
Würde mich freuen, wenn das jemand testen könnte.
Hier mein Bugreport auf Github mit der Beschreibung:
opened 05:56PM - 07 May 22 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, … not a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on Github _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
When I move a file from one SMB mount(external storage) to another SMB mount(external storage), only 507912 KB of this file is moved. The process then hangs and does not finish.
Both SMB mounts are on the same server. It is not a timeout because these 507912 KB are moved quickly. But just not the complete, larger file.
Files smaller than 507912 KB are moved completely without errors.
### Steps to reproduce
1. Upload a file, e.g. a CD ISO image with 700 MB to an SMB external storage.
2. Move this file to another SMB external storage. The process does not end.
3. Check the file in the destination directory on the fileserver. The file has only a size of 507912 KB
### Expected behavior
The whole file should be moved.
### Installation method
Manual installation
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 7.4
### Web server
Apache (supported)
### Database engine version
MariaDB
### Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [ ] Default user-backend _(database)_
- [X] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
```shell
# sudo -u www-data php occ config:list system
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "24.0.0.12",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"default_phone_region": "DE",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"skeletondirectory": "",
"ldapUserCleanupInterval": 30,
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"maintenance": false
}
}
```
### List of activated Apps
```shell
Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- bruteforcesettings: 2.4.0
- calendar: 3.3.0
- circles: 24.0.0
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contactsinteraction: 1.5.0
- dav: 1.22.0
- deck: 1.7.0
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_external: 1.16.1
- files_pdfviewer: 2.5.0
- files_rightclick: 1.3.0
- files_sharing: 1.16.2
- files_versions: 1.17.0
- files_videoplayer: 1.13.0
- firstrunwizard: 2.13.0
- forms: 2.5.0
- logreader: 2.9.0
- lookup_server_connector: 1.12.0
- nextcloud_announcements: 1.13.0
- notifications: 2.12.0
- oauth2: 1.12.0
- password_policy: 1.14.0
- photos: 1.6.0
- polls: 3.6.1
- privacy: 1.8.0
- provisioning_api: 1.14.0
- recommendations: 1.3.0
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- spreed: 14.0.1
- support: 1.7.0
- survey_client: 1.12.0
- systemtags: 1.14.0
- text: 3.5.1
- theming: 1.15.0
- twofactor_backupcodes: 1.13.0
- updatenotification: 1.14.0
- user_ldap: 1.14.1
- user_status: 1.4.0
- viewer: 1.8.0
- weather_status: 1.4.0
- workflowengine: 2.6.0
Disabled:
- admin_audit
- dashboard: 7.4.0
- encryption
- files_trashbin: 1.14.0
```
### Nextcloud Signing status
_No response_
### Nextcloud Logs
_No response_
### Additional info
_No response_
Danke und viele Grüße
Klaus
jochen
15. Mai 2022 um 17:11
2
Hallo Klaus,
habe ich gerade getestet und kann ich bestätigen:
ich habe eine 1GB große .img Datei zuerst auf mein Home hochgeladen. Das Verschieben in Lehrer-Tausch hat nicht geklappt. Nach ein paar Minuten kam die Fehlermeldung, dass die Datei nicht verschoben werden konnte. Im Zielverzeichnis kam aber im Gegensatz zu Dir gar nichts an.
Schau mer mal, was die Entwickler dazu sagen…
Viele Grüße,
Jochen
Hallo Klaus, hallo Jochen,
schlägt hier vielleicht ein PHP-Limit zu? Es sind ja ca. 500 MB.
Beste Grüße
Jörg
Hallo Jochen,
danke für’s Testen und die Bestätigung!
In der Nextcloud sehe ich die verschobene Datei im Zielverzeichnis auch nicht. Auf dem Server sehe ich das Fragment der Datei im Zielverzeichnis allerdings schon. Vielleicht könntest Du nochmal nachsehen?
Wenn Du auch eine Github Account hast, wäre es natürlich für den Nextcloud Bugreport das Beste, wenn dieser dort bestätigt werden würde. Ich habe die Erfahrung gemacht, daß sich auf unbestätigte Bugs dort nicht viel bewegt. Wenn Du keine Zeit, Lust oder die Möglichkeit hast, gib bitte nochmal Bescheid, dann schreibe ich dort noch einen Kommentar hinterher.
Viele Grüße
Klaus
Hallo Jörg,
danke für’s Mitdenken!
Ich kann mir nicht vorstellen welches Limit. Bei mir sind alle möglichen PHP/Apache Einstellungen, welche in der Nextcloud Doku stehen, auf große Dateien hin überprüft. Und der erstmalige Upload der Datei in die Nextcloud klappt ja auch.
Viele Grüße
Klaus
jochen
16. Mai 2022 um 17:05
6
Hallo Klaus,
Kann ich morgen in der Schule versuchen.
Kann ich erstellen.
Viele Grüße,
Jochen
Hallo Jochen,
vielen Dank erstmal. Ich habe in Nextcloud Github etwas weiter gesucht und bin fündig geworden. Hier hat jemand die Ursache gefunden, welche auch mit der 24.0.0 noch weiter besteht:
opened 05:23PM - 21 Feb 22 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no… t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on Github _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
When I try to download files larger than 512 MB from SMB/CIFS shares (attached via the "External storage support" Nextcloud), the download fails (downloading starts then stops at 512 MB and finally results in failure).
This is on a NC 23.0.2. / External Storage app version 1.15.0 (latest). When I copy the directory /var/www/html/apps/files_external/3rdparty/icewind from the backup of NC 23.0.0 than it works again.
Therefore there is an issue at least with the combination of the external storage app with the used icewind 3rdparty app.
### Steps to reproduce
1. Upgrade to NC 23.0.2 with external storage app 1.15.0 (most likely fresh install will have the same issue)
2. Try to download a file larger than 512 MB from a via SMB connected share
3.
### Expected behavior
Download without issue
### Installation method
Manual installation
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 8.0
### Web server
Apache (supported)
### Database engine version
PostgreSQL
### Is this bug present after an update or on a fresh install?
_No response_
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [X] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
_No response_
### List of activated Apps
```shell
Enabled:
- accessibility: 1.9.0
- activity: 2.15.0
- admin_audit: 1.13.0
- announcementcenter: 6.1.1
- apporder: 0.14.0
- bookmarks: 10.0.3
- breezedark: 23.2.0
- bruteforcesettings: 2.3.0
- calendar: 3.0.6
- cloud_federation_api: 1.6.0
- comments: 1.13.0
- contacts: 4.0.8
- contactsinteraction: 1.4.0
- cospend: 1.4.3
- dav: 1.21.0
- dicomviewer: 1.2.3
- epubreader: 1.4.7
- event_update_notification: 1.4.0
- federatedfilesharing: 1.13.0
- files: 1.18.0
- files_downloadactivity: 1.12.0
- files_external: 1.15.0
- files_markdown: 2.3.5
- files_pdfviewer: 2.4.0
- files_readmemd: 1.2.1
- files_rightclick: 1.2.0
- files_sharing: 1.15.0
- files_versions: 1.16.0
- files_videoplayer: 1.12.0
- firstrunwizard: 2.12.0
- forms: 2.4.0
- gpoddersync: 3.2.0
- health: 1.5.0
- impersonate: 1.10.0
- joplin: 0.0.25
- logreader: 2.8.0
- lookup_server_connector: 1.11.0
- mail: 1.11.6
- maps: 0.1.10
- metadata: 0.15.0
- news: 17.0.1
- nextcloud_announcements: 1.12.0
- notes: 4.3.0
- notifications: 2.11.1
- oauth2: 1.11.0
- occweb: 0.0.7
- onlyoffice: 7.3.0
- password_policy: 1.13.0
- phonetrack: 0.7.0
- photos: 1.5.0
- polls: 3.5.4
- privacy: 1.7.0
- provisioning_api: 1.13.0
- quota_warning: 1.13.0
- rainloop: 7.1.3
- ransomware_protection: 1.12.0
- serverinfo: 1.13.0
- settings: 1.5.0
- sharebymail: 1.13.0
- suspicious_login: 4.1.0
- systemtags: 1.13.0
- tasks: 0.14.2
- text: 3.4.0
- theming: 1.14.0
- twofactor_backupcodes: 1.12.0
- twofactor_nextcloud_notification: 3.3.1
- twofactor_totp: 6.2.0
- twofactor_webauthn: 0.2.15
- updatenotification: 1.13.0
- user_status: 1.3.1
- viewer: 1.7.0
- weather_status: 1.3.0
- welcome: 1.0.1
- workflowengine: 2.5.0
Disabled:
- circles: 0.20.2
- cms_pico: 1.0.17
- dashboard: 7.2.0
- encryption
- extract: 1.3.3
- federation: 1.7.0
- files_antivirus: 3.2.2
- files_texteditor: 2.14.0
- files_trackdownloads: 1.11.0
- files_trashbin: 1.7.0
- flowupload: 1.1.3
- gpxedit: 0.0.14
- gpxmotion: 0.1.0
- gpxpod: 4.3.0
- groupfolders: 11.1.2
- guests: 2.1.0
- integration_discourse: 1.0.2
- integration_github: 1.0.2
- integration_gitlab: 1.0.3
- integration_twitter: 1.0.2
- integration_whiteboard: 0.0.14
- music: 1.5.1
- ncdownloader: 0.7.1
- ocsms: 2.2.0
- previewgenerator: 4.0.0
- quickaccesssorting: 1.1.3
- radio: 1.0.3
- ransomware_detection: 0.10.0
- recommendations: 0.8.0
- richdocuments: 5.0.2
- richdocumentscode: 21.11.103
- smb_test: 0.3.3
- support: 1.3.0
- survey_client: 1.5.0
- terms_of_service: 1.9.2
- twofactor_u2f: 6.3.0
- unsplash: 1.2.4
- user_ldap
```
### Nextcloud Signing status
_No response_
### Nextcloud Logs
_No response_
### Additional info
_No response_
Deshalb klappt auch das verschieben/kopieren nicht. Ich habe meinen Nextcloud Bugreport also geschlossen und in obigem erwähnt.
Für mich funktioniert jetzt die Lösung statt smbclient, php-smbclient zu verwenden:
apt install php7.4-dev libsmbclient-dev
pecl install smbclient
/etc/php/7.4/apache2|cli/php.ini:
extension=smbclient.so
Nochmal danke, viele Grüße
Klaus
Noch ein Nachtrag:
Statt smblclient.so selber mit pecl zu bauen kann man auch das Repository von sury.org einbinden:
https://packages.sury.org/php/README.txt
Danach installieren mit
apt install php7.4-smbclient
Bzw. für die verwendete PHP Version. Mehr muß man nicht machen, außer den Webserver neu starten.
Viele Grüße
Klaus