Skip to content
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

Nextcloud 14.0.3: Error with uploading files larger than 64Kb to a SMB Share or syncing files with 0 size (destroying the previous one). #12217

Closed
upmferraz opened this issue Nov 2, 2018 · 15 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage

Comments

@upmferraz
Copy link

upmferraz commented Nov 2, 2018

Hi, we're getting the following error when uploading certain filetypes to a smb share after upgrading to Nextcloud 14.0.3
-->

Steps to reproduce

  1. Upload a file larger than 60Kb to a Nextcloud SMB Share

Expected behaviour

Should upload the file

Actual behaviour

We're getting the following error:
File in use exception

Server configuration

**Operating System **:
Debian 9

Webserver:
Apache 2.4.25

Database :
Mariadb 10.1.26-MariaDB-0+deb9u1

PHP version :
7.0.30-0+deb9u1

Nextcloud version:
14.0.3

Updated from an older Nextcloud/ownCloud or fresh install:
14.0.2

Where did you install Nextcloud from:
Stable channel

Signing status:

Signing status

No errors have been found.

List of activated apps:

App list

Enabled:

  • accessibility: 1.0.1
  • activity: 2.7.0
  • admin_audit: 1.4.0
  • apporder: 0.5.0
  • audioplayer: 2.4.1
  • bruteforcesettings: 1.1.0
  • calendar: 1.6.3
  • checksum: 0.4.1
  • cloud_federation_api: 0.0.1
  • comments: 1.4.0
  • contacts: 2.1.6
  • dav: 1.6.0
  • federatedfilesharing: 1.4.0
  • federation: 1.4.0
  • files: 1.9.0
  • files_external: 1.5.0
  • files_markdown: 2.0.4
  • files_pdfviewer: 1.3.2
  • files_sharing: 1.6.2
  • files_texteditor: 2.6.0
  • files_trashbin: 1.4.1
  • files_versions: 1.7.1
  • files_videoplayer: 1.3.0
  • firstrunwizard: 2.3.0
  • gallery: 18.1.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.2.0
  • metadata: 0.7.0
  • nextcloud_announcements: 1.3.0
  • notes: 2.4.2
  • notifications: 2.2.1
  • oauth2: 1.2.1
  • ownpad: 0.6.8
  • password_policy: 1.4.0
  • provisioning_api: 1.4.0
  • richdocuments: 3.0.3
  • serverinfo: 1.4.0
  • sharebymail: 1.4.0
  • socialsharing_email: 1.0.4
  • support: 1.0.0
  • survey_client: 1.2.0
  • systemtags: 1.4.0
  • tasks: 0.9.7
  • theming: 1.5.0
  • theming_customcss: 1.1.0
  • twofactor_backupcodes: 1.3.1
  • twofactor_u2f: 1.6.1
  • updatenotification: 1.4.1
  • user_external: 0.4
  • user_ldap: 1.4.0
  • workflowengine: 1.4.0

Nextcloud configuration:

Config report

{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"drive.up.pt",
"box.up.pt",
"owncloud.up.pt",
"drive01.up.pt",
"drive02.up.pt",
"193.137.29.5"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "https://drive.up.pt",
"dbtype": "mysql",
"version": "14.0.3.0",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"logtimezone": "UTC",
"installed": true,
"ldapIgnoreNamingRules": false,
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "sendmail",
"mail_domain": "REMOVED SENSITIVE VALUE",
"maintenance": false,
"loglevel": 1,
"log_type": "syslog",
"ldapProviderFactory": "\OCA\User_LDAP\LDAPProviderFactory",
"memcache.local": "\OC\Memcache\APCu",
"auth.bruteforce.protection.enabled": false,
"singleuser": false,
"filelocking.enabled": false,
"trashbin_retention_obligation": "30,31",
"updater.release.channel": "stable",
"updater.secret": "REMOVED SENSITIVE VALUE"
},
"apps": {
"accessibility": {
"enabled": "yes",
"installed_version": "1.0.1",
"types": ""
},
"activity": {
"enabled": "yes",
"installed_version": "2.7.0",
"types": "filesystem"
},
"activitylog": {
"enabled": "no",
"installed_version": "0.0.1",
"types": ""
},
"admin_audit": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "logging"
},
"admin_notifications": {
"enabled": "no",
"installed_version": "1.0.2",
"types": "logging"
},
"announcementcenter": {
"enabled": "no",
"installed_version": "3.3.1",
"types": "logging"
},
"apporder": {
"enabled": "yes",
"installed_version": "0.5.0",
"ocsid": "174715",
"order": "["/index.php/apps/files/","/index.php/apps/bookmarks/","/index.php/apps/calendar/","/index.php/apps/notes/","/index.php/apps/activity/","/index.php/apps/contacts/","/index.php/apps/spreed/","/index.php/apps/audioplayer/","/index.php/apps/deck/","/index.php/apps/gallery/","/index.php/apps/tasks/","/index.php/apps/announcementcenter/","/index.php/apps/external/1"]",
"types": ""
},
"audioplayer": {
"enabled": "yes",
"installed_version": "2.4.1",
"signed": "true",
"types": "filesystem"
},
"backgroundjob": {
"lastjob": "37271"
},
"bookmarks": {
"enabled": "no",
"installed_version": "0.13.1",
"types": ""
},
"bruteForce": {
"whitelist_1": "193.136.0.0/15",
"whitelist_2": "10.3.3.0/24",
"whitelist_3": "192.168.0.0/15",
"whitelist_4": "69.46.36.0/24"
},
"bruteforcesettings": {
"enabled": "yes",
"installed_version": "1.1.0",
"types": ""
},
"calendar": {
"enabled": "yes",
"installed_version": "1.6.3",
"signed": "true",
"types": ""
},
"checksum": {
"enabled": "yes",
"installed_version": "0.4.1",
"types": "filesystem"
},
"circles": {
"allow_federated": "0",
"allow_linked_groups": "1",
"enabled": "no",
"installed_version": "0.13.6",
"test_async_count": "121",
"test_async_hand": "0",
"test_async_init": "1513343223",
"test_async_lock": "ff1d9fdd0fc1cdfe776f85ae77d78d4299cb87ba74a71a34",
"types": ""
},
"cloud_federation_api": {
"enabled": "yes",
"installed_version": "0.0.1",
"types": "filesystem"
},
"comments": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "logging"
},
"contacts": {
"enabled": "yes",
"installed_version": "2.1.6",
"signed": "true",
"types": ""
},
"core": {
"OC_Channel": "stable",
"default_encryption_module": "OC_DEFAULT_MODULE",
"installed.bundles": "["CoreBundle"]",
"installedat": "1459963020.8058",
"lastcron": "1541168959",
"lastupdateResult": "[]",
"lastupdatedat": "1541167379",
"moveavatarsdone": "yes",
"oc.integritycheck.checker": "[]",
"previewsCleanedUp": "1",
"public_documents": "documents/public.php",
"public_files": "files_sharing/public.php",
"public_webdav": "dav/appinfo/v1/publicwebdav.php",
"remote_caldav": "dav/appinfo/v1/caldav.php",
"remote_calendar": "dav/appinfo/v1/caldav.php",
"remote_carddav": "dav/appinfo/v1/carddav.php",
"remote_contacts": "dav/appinfo/v1/carddav.php",
"remote_dav": "dav/appinfo/v2/remote.php",
"remote_files": "dav/appinfo/v1/webdav.php",
"remote_webdav": "dav/appinfo/v1/webdav.php",
"repairlegacystoragesdone": "yes",
"scss.variables": "eb1b67f2751f7df619ea822d46dc6197",
"shareapi_allow_mail_notification": "yes",
"shareapi_allow_public_notification": "yes",
"shareapi_allow_public_upload": "yes",
"shareapi_default_expire_date": "yes",
"shareapi_enforce_expire_date": "no",
"shareapi_expire_after_n_days": "90",
"umgmt_show_backend": "true",
"umgmt_show_email": "true",
"umgmt_show_last_login": "true",
"umgmt_show_storage_location": "true",
"updater.secret.created": "1536657619",
"vendor": "nextcloud"
},
"data_request": {
"enabled": "no",
"installed_version": "1.1.0",
"types": ""
},
"dav": {
"OCA\DAV\Migration\ValueFixInsert_ran": "true",
"buildCalendarSearchIndex": "yes",
"enabled": "yes",
"installed_version": "1.6.0",
"types": "filesystem"
},
"deck": {
"enabled": "no",
"installed_version": "0.2.3",
"types": ""
},
"direct_menu": {
"enabled": "no",
"installed_version": "0.10.0",
"types": ""
},
"documents": {
"converter": "local",
"enabled": "no",
"installed_version": "0",
"ocsid": "168711",
"types": ""
},
"encryption": {
"enabled": "no",
"installed_version": "1.6.0",
"masterKeyId": "master_14a09354",
"publicShareKeyId": "pubShare_14a09354",
"recoveryKeyId": "recoveryKey_14a09354",
"types": "filesystem"
},
"external": {
"enabled": "no",
"installed_version": "3.1.0",
"max_site": "1",
"sites": "[]",
"types": ""
},
"federatedfilesharing": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": ""
},
"federation": {
"autoAddServers": "0",
"enabled": "yes",
"installed_version": "1.4.0",
"types": "authentication"
},
"files": {
"cronjob_scan_files": "4500",
"default_quota": "20 GB",
"enabled": "yes",
"installed_version": "1.9.0",
"types": "filesystem"
},
"files_accesscontrol": {
"enabled": "no",
"installed_version": "1.4.0",
"types": "filesystem"
},
"files_antivirus": {
"av_chunk_size": "1024",
"av_cmd_options": "",
"av_host": "",
"av_infected_action": "only_log",
"av_mode": "executable",
"av_path": "/usr/bin/clamscan",
"av_port": "0",
"av_socket": "/var/run/clamav/clamd.ctl",
"enabled": "no",
"installed_version": "0.9.0.0",
"ocsid": "157439",
"types": "filesystem"
},
"files_automatedtagging": {
"enabled": "no",
"installed_version": "1.4.0",
"types": "filesystem"
},
"files_clipboard": {
"enabled": "no",
"installed_version": "0.7.1",
"types": ""
},
"files_downloadactivity": {
"enabled": "no",
"installed_version": "1.2.0",
"types": "filesystem"
},
"files_external": {
"allow_user_mounting": "yes",
"enabled": "yes",
"google::335914344946-3ssru0o7m29vhi3ok1460113569cId": "90654",
"installed_version": "1.5.0",
"types": "filesystem",
"user_mounting_backends": "ftp,sftp,dropbox,googledrive,\OC\Files\Storage\SFTP_Key"
},
"files_markdown": {
"enabled": "yes",
"installed_version": "2.0.4",
"types": ""
},
"files_pdfviewer": {
"enabled": "yes",
"installed_version": "1.3.2",
"types": ""
},
"files_reader": {
"enabled": "no",
"installed_version": "1.2.3",
"ocsid": "167127",
"types": "filesystem"
},
"files_retention": {
"enabled": "no",
"installed_version": "1.3.0",
"types": "filesystem"
},
"files_sharing": {
"enabled": "yes",
"installed_version": "1.6.2",
"types": "filesystem"
},
"files_texteditor": {
"enabled": "yes",
"installed_version": "2.6.0",
"types": ""
},
"files_trashbin": {
"enabled": "yes",
"installed_version": "1.4.1",
"types": "filesystem,dav"
},
"files_versions": {
"enabled": "yes",
"installed_version": "1.7.1",
"types": "filesystem,dav"
},
"files_videoplayer": {
"enabled": "yes",
"installed_version": "1.3.0",
"types": ""
},
"firstrunwizard": {
"enabled": "yes",
"installed_version": "2.3.0",
"types": "logging"
},
"flowupload": {
"enabled": "no",
"installed_version": "0.0.5",
"types": ""
},
"gallery": {
"enabled": "yes",
"installed_version": "18.1.0",
"types": ""
},
"galleryplus": {
"enabled": "no",
"installed_version": "15.0.0",
"ocsid": "169116",
"types": ""
},
"impersonate": {
"enabled": "no",
"installed_version": "1.1.0",
"types": ""
},
"logreader": {
"enabled": "yes",
"installed_version": "2.0.0",
"levels": "01111",
"ocsid": "170871",
"relativedates": "1",
"types": ""
},
"lookup_server_connector": {
"enabled": "yes",
"installed_version": "1.2.0",
"types": "authentication"
},
"mail": {
"enabled": "no",
"installed_version": "0.7.3",
"types": ""
},
"metadata": {
"enabled": "yes",
"installed_version": "0.7.0",
"types": ""
},
"mindmaps": {
"enabled": "no",
"installed_version": "0.1.0",
"types": ""
},
"mood": {
"enabled": "no",
"installed_version": "0.3.3",
"types": ""
},
"nextcloud_announcements": {
"enabled": "yes",
"installed_version": "1.3.0",
"pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
"types": "logging"
},
"notes": {
"enabled": "yes",
"installed_version": "2.4.2",
"types": ""
},
"notifications": {
"enabled": "yes",
"installed_version": "2.2.1",
"types": "logging"
},
"oauth2": {
"enabled": "yes",
"installed_version": "1.2.1",
"types": "authentication"
},
"ocsms": {
"enabled": "no",
"installed_version": "1.11.5",
"types": ""
},
"ojsxc": {
"apiSecret": "zCvqVXO+K2sMwarI2MfufND",
"boshUrl": "",
"chromeExtension": "",
"enabled": "no",
"externalServices": "",
"firefoxExtension": "",
"iceCredential": "",
"iceSecret": "",
"iceTtl": "",
"iceUrl": "",
"iceUsername": "",
"installed_version": "3.3.0",
"ocsid": "162257",
"serverType": "internal",
"types": "prelogin",
"xmppDomain": "",
"xmppOverwrite": "false",
"xmppPreferMail": "false",
"xmppResource": "",
"xmppStartMinimized": "true"
},
"orcid": {
"enabled": "no",
"installed_version": "0.9.1",
"types": ""
},
"ownbackup": {
"enabled": "no",
"installed_version": "0",
"ocsid": "170674",
"signed": "true",
"types": ""
},
"ownnote": {
"enabled": "no",
"folder": "",
"installed_version": "0",
"ocsid": "168512",
"types": ""
},
"ownpad": {
"enabled": "yes",
"installed_version": "0.6.8",
"ocsid": "174679",
"ownpad_ethercalc_enable": "yes",
"ownpad_ethercalc_host": "https://drive.up.pt",
"ownpad_etherpad_enable": "yes",
"ownpad_etherpad_host": "https://drive.up.pt",
"types": ""
},
"passman": {
"enabled": "no",
"installed_version": "2.1.4",
"types": ""
},
"password_policy": {
"enabled": "yes",
"enforceHaveIBeenPwned": "1",
"installed_version": "1.4.0",
"types": ""
},
"pdflintview": {
"enabled": "no",
"installed_version": "1.0",
"ocsid": "169202",
"types": "type"
},
"provisioning_api": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "prevent_group_restriction"
},
"quota_warning": {
"alert_email": "yes",
"enabled": "no",
"info_email": "yes",
"installed_version": "1.3.0",
"plan_management_url": "https://drive.up.pt",
"repeat_warning": "30",
"types": "filesystem",
"warning_email": "yes"
},
"ransomware_protection": {
"enabled": "no",
"installed_version": "1.1.0",
"types": "logging"
},
"richdocuments": {
"doc_format": "odf",
"enabled": "yes",
"installed_version": "3.0.3",
"types": "filesystem,dav,prevent_group_restriction",
"wopi_url": "https://drive.up.pt"
},
"serverinfo": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": ""
},
"sharebymail": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "filesystem"
},
"shorten": {
"enabled": "no",
"installed_version": "0",
"ocsid": "168591",
"type": "internal",
"types": "filesystem"
},
"socialsharing_email": {
"enabled": "yes",
"installed_version": "1.0.4",
"types": ""
},
"spreed": {
"enabled": "no",
"installed_version": "4.0.0",
"stun_servers": "["stun.nextcloud.com:443"]",
"types": "prevent_group_restriction"
},
"support": {
"enabled": "yes",
"installed_version": "1.0.0",
"types": ""
},
"survey_client": {
"enabled": "yes",
"installed_version": "1.2.0",
"last_report": "{"id":"oc1gen9phsut","items":[["server","version","13.0.1.1"],["server","code","other"],["server","enable_avatars","yes"],["server","enable_previews","yes"],["server","memcache.local","\\OC\\Memcache\\APCu"],["server","memcache.distributed","none"],["server","asset-pipeline.enabled","no"],["server","filelocking.enabled","no"],["server","memcache.locking","none"],["server","debug","no"],["server","cron","ajax"],["php","version","7.0.27"],["php","memory_limit",536870912],["php","max_execution_time",3600],["php","upload_max_filesize",535822336],["database","type","mysql"],["database","version","10.1.26"],["database","size",2947825664],["apps",164016,"disabled"],["apps","activity","2.6.1"],["apps","activitylog","disabled"],["apps","admin_audit","1.3.0"],["apps","admin_notifications","1.0.1"],["apps","announcementcenter","3.2.1"],["apps","apporder","0.4.1"],["apps","audioplayer","2.3.0"],["apps","bookmarks","0.11.0"],["apps","bruteforcesettings","1.0.3"],["apps","calendar","1.6.1"],["apps","checksum","disabled"],["apps","circles","disabled"],["apps","comments","1.3.0"],["apps","contacts","2.1.3"],["apps","dav","1.4.6"],["apps","deck","disabled"],["apps","direct_menu","disabled"],["apps","documents","disabled"],["apps","encryption","disabled"],["apps","external","disabled"],["apps","federatedfilesharing","1.3.1"],["apps","federation","1.3.0"],["apps","files","1.8.0"],["apps","files_accesscontrol","1.3.0"],["apps","files_antivirus","disabled"],["apps","files_automatedtagging","1.3.0"],["apps","files_clipboard","disabled"],["apps","files_downloadactivity","disabled"],["apps","files_external","1.4.1"],["apps","files_markdown","2.0.4"],["apps","files_pdfviewer","1.2.1"],["apps","files_reader","1.2.3"],["apps","files_retention","1.2.0"],["apps","files_sharing","1.5.0"],["apps","files_texteditor","2.5.1"],["apps","files_trashbin","1.3.0"],["apps","files_versions","1.6.0"],["apps","files_videoplayer","1.2.0"],["apps","firstrunwizard","2.2.1"],["apps","flowupload","disabled"],["apps","gallery","18.0.0"],["apps","galleryplus","disabled"],["apps","logreader","2.0.0"],["apps","lookup_server_connector","1.1.0"],["apps","mail","disabled"],["apps","metadata","0.6.0"],["apps","mood","disabled"],["apps","nextcloud_announcements","1.2.0"],["apps","notes","2.3.2"],["apps","notifications","2.1.2"],["apps","oauth2","1.1.0"],["apps","ocsms","disabled"],["apps","ojsxc","disabled"],["apps","orcid","0.9.1"],["apps","ownbackup","disabled"],["apps","ownnote","disabled"],["apps","ownpad","0.6.6"],["apps","passman","2.1.4"],["apps","password_policy","1.3.0"],["apps","pdflintview","disabled"],["apps","provisioning_api","1.3.0"],["apps","quota_warning","1.2.0"],["apps","ransomware_protection","disabled"],["apps","richdocuments","2.0.8"],["apps","serverinfo","1.3.0"],["apps","sharebymail","1.3.0"],["apps","shorten","disabled"],["apps","socialsharing_email","1.0.3"],["apps","spreed","3.2.1"],["apps","survey_client","1.1.0"],["apps","systemtags","1.3.0"],["apps","tasks","0.9.6"],["apps","templateeditor","0.2"],["apps","theming","1.4.5"],["apps","theming_customcss","1.0.0"],["apps","twofactor_backupcodes","1.2.3"],["apps","twofactor_totp","1.4.1"],["apps","twofactor_u2f","disabled"],["apps","updatenotification","1.3.0"],["apps","user_external","0.4"],["apps","user_ldap","1.3.1"],["apps","user_saml","disabled"],["apps","workflowengine","1.3.0"],["apps","workin2gether","disabled"],["stats","num_files",2944026],["stats","num_users",507],["stats","num_storages",14301],["stats","num_storages_local",14],["stats","num_storages_home",13824],["stats","num_storages_other",463],["stats","num_comments",5],["stats","num_comment_markers",6],["stats","num_systemtags",7],["stats","num_systemtags_mappings",7],["files_sharing","num_shares",1036],["files_sharing","num_shares_user",447],["files_sharing","num_shares_groups",2],["files_sharing","num_shares_link",538],["files_sharing","num_shares_link_no_password",538],["files_sharing","num_fed_shares_sent",0],["files_sharing","num_fed_shares_received",0],["files_sharing","permissions_0_1","10"],["files_sharing","permissions_3_1","490"],["files_sharing","permissions_4_1","20"],["files_sharing","permissions_3_3","14"],["files_sharing","permissions_4_3","11"],["files_sharing","permissions_3_4","1"],["files_sharing","permissions_0_5","1"],["files_sharing","permissions_0_15","1"],["files_sharing","permissions_3_15","33"],["files_sharing","permissions_4_15","17"],["files_sharing","permissions_0_17","26"],["files_sharing","permissions_1_17","1"],["files_sharing","permissions_0_19","143"],["files_sharing","permissions_0_23","14"],["files_sharing","permissions_0_31","252"],["files_sharing","permissions_1_31","1"],["files_sharing","permissions_2_31","1"],["encryption","enabled","no"],["encryption","default_module","yes"]]}",
"last_sent": "1527864839",
"types": ""
},
"systemtags": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "logging"
},
"tasks": {
"enabled": "yes",
"installed_version": "0.9.7",
"ocsid": "164356",
"signed": "true",
"types": ""
},
"templateeditor": {
"enabled": "no",
"installed_version": "0.2",
"types": ""
},
"theming": {
"backgroundMime": "image/jpeg",
"cachebuster": "69",
"color": "#007ABD",
"enabled": "yes",
"installed_version": "1.5.0",
"logoMime": "image/png",
"name": "drive.up.pt",
"slogan": "",
"types": "logging",
"url": "https://www.up.pt/updigital"
},
"theming_customcss": {
"enabled": "yes",
"installed_version": "1.1.0",
"types": ""
},
"twofactor_backupcodes": {
"enabled": "yes",
"installed_version": "1.3.1",
"types": ""
},
"twofactor_totp": {
"enabled": "no",
"installed_version": "1.5.0",
"types": ""
},
"twofactor_u2f": {
"enabled": "yes",
"installed_version": "1.6.1",
"types": ""
},
"updatenotification": {
"enabled": "["admin"]",
"installed_version": "1.4.1",
"types": "",
"update_check_errors": "0"
},
"user_external": {
"enabled": "yes",
"installed_version": "0.4",
"ocsid": "166060",
"types": "authentication,prelogin"
},
"user_ldap": {
"cleanUpJobOffset": "650",
"enabled": "yes",
"installed_version": "1.4.0",
"s01_lastChange": "1537173466",
"s01has_memberof_filter_support": "0",
"s01home_folder_naming_rule": "",
"s01last_jpegPhoto_lookup": "0",
"s01ldap_agent_password": "SENqckFBaXo1c0ZmSnZS",
"s01ldap_attributes_for_group_search": "o=up,c=pt",
"s01ldap_attributes_for_user_search": "eduPersonPrincipalName\nmail",
"s01ldap_backup_host": "artemis.up.pt",
"s01ldap_backup_port": "389",
"s01ldap_base": "o=up,c=pt",
"s01ldap_base_groups": "ou",
"s01ldap_base_users": "o=up,c=pt",
"s01ldap_cache_ttl": "900",
"s01ldap_configuration_active": "1",
"s01ldap_default_ppolicy_dn": "",
"s01ldap_display_name": "edupersonnickname",
"s01ldap_dn": "cn=drive,cn=managers,ou=spup,o=up,c=pt",
"s01ldap_dynamic_group_member_url": "",
"s01ldap_email_attr": "mail",
"s01ldap_experienced_admin": "1",
"s01ldap_expert_username_attr": "UPortoNMec",
"s01ldap_expert_uuid_group_attr": "",
"s01ldap_expert_uuid_user_attr": "UPortoNMec",
"s01ldap_gid_number": "gidNumber",
"s01ldap_group_display_name": "cn",
"s01ldap_group_filter": "",
"s01ldap_group_filter_mode": "0",
"s01ldap_group_member_assoc_attribute": "uniqueMember",
"s01ldap_groupfilter_groups": "",
"s01ldap_groupfilter_objectclass": "",
"s01ldap_host": "arya.up.pt",
"s01ldap_login_filter": "(&(&(objectClass=)(&(eduPersonPrincipalName=)(mail=)(UPortoUserStatus=A)(eduPersonPrimaryAffiliation=affiliate)))(|(eduPersonPrincipalName=%uid)))",
"s01ldap_login_filter_mode": "1",
"s01ldap_loginfilter_attributes": "",
"s01ldap_loginfilter_email": "0",
"s01ldap_loginfilter_username": "1",
"s01ldap_nested_groups": "0",
"s01ldap_override_main_server": "",
"s01ldap_paging_size": "100",
"s01ldap_port": "389",
"s01ldap_quota_attr": "",
"s01ldap_quota_def": "",
"s01ldap_tls": "0",
"s01ldap_turn_off_cert_check": "1",
"s01ldap_turn_on_pwd_change": "0",
"s01ldap_user_display_name_2": "",
"s01ldap_user_filter_mode": "1",
"s01ldap_userfilter_groups": "",
"s01ldap_userfilter_objectclass": "",
"s01ldap_userlist_filter": "(&(objectClass=
)(&(eduPersonPrincipalName=)(mail=)(UPortoUserStatus=A)(eduPersonPrimaryAffiliation=affiliate)))",
"s01use_memberof_to_detect_membership": "1",
"types": "authentication"
},
"user_saml": {
"enabled": "no",
"installed_version": "1.2.2",
"type": "environment-variable",
"types": "authentication"
},
"workflowengine": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "filesystem"
},
"workin2gether": {
"enabled": "no",
"installed_version": "0.9.6",
"types": ""
},
"164016": {
"enabled": "no"
}
}
}

Are you using external storage, if yes which one: local/smb/

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

LDAP configuration (delete this part if not used)

LDAP config

+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration | s01 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | 0 |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | cn=,cn=,ou=**,o=up,c=pt |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | o=up,c=pt |
| ldapAttributesForUserSearch | eduPersonPrincipalName;mail |
| ldapBackupHost | .up.pt |
| ldapBackupPort | 389 |
| ldapBase | o=up,c=pt |
| ldapBaseGroups | ou |
| ldapBaseUsers | o=up,c=pt |
| ldapCacheTTL | 900 |
| ldapConfigurationActive | 1 |
| ldapDefaultPPolicyDN | |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 1 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | UPortoNMec |
| ldapExpertUsernameAttr | UPortoNMec |
| ldapGidNumber | gidNumber |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | uniqueMember |
| ldapHost | **.up.pt |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(objectClass=
)(&(eduPersonPrincipalName=
)(mail=
)(UPortoUserStatus=A)(eduPersonPrimaryAffiliation=affiliate)))(|(eduPersonPrincipalName=%uid))) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 1 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 100 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserAvatarRule | default |
| ldapUserDisplayName | edupersonnickname |
| ldapUserDisplayName2 | |
| ldapUserFilter | (&(objectClass=)(&(eduPersonPrincipalName=)(mail=*)(UPortoUserStatus=A)(eduPersonPrimaryAffiliation=affiliate))) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 1 |
| ldapUserFilterObjectclass | |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 1 |
| turnOnPasswordChange | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log Nov 2 14:08:40 drive.up.pt Nextcloud[28890]: {webdav} {"Exception":"Icewind\\SMB\\Exception\\FileInUseException","Message":"Invalid request for \/UPDIGITAL_ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe.ocTransferId1077213857.part (FileInUseException)","Code":16,"Trace":[{"file":"\/ocdata\/html\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":61,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::","args":[{"1":"Icewind\\SMB\\Exception\\ForbiddenException","2":"Icewind\\SMB\\Exception\\NotFoundException","13":"Icewind\\SMB\\Exception\\ForbiddenException","16":"Icewind\\SMB\\Exception\\FileInUseException","17":"Icewind\\SMB\\Exception\\AlreadyExistsException","20":"Icewind\\SMB\\Exception\\InvalidTypeException","21":"Icewind\\SMB\\Exception\\InvalidTypeException","22":"Icewind\\SMB\\Exception\\InvalidArgumentException","28":"Icewind\\SMB\\Exception\\OutOfSpaceException","39":"Icewind\\SMB\\Exception\\NotEmptyException","110":"Icewind\\SMB\\Exception\\TimedOutException","111":"Icewind\\SMB\\Exception\\ConnectionRefusedException","112":"Icewind\\SMB\\Exception\\HostDownException","113":"Icewind\\SMB\\Exception\\NoRouteToHostException"},16,"\/UPDIGITAL_ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":73,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["\/UPDIGITAL_ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":147,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":[false,"smb:\/\/fserver.campus.up.pt\/groups_geral$\/UPDIGITAL_ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php","line":152,"function":"unlink","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["smb:\/\/fserver.campus.up.pt\/groups_geral$\/UPDIGITAL_ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":336,"function":"del","class":"Icewind\\SMB\\Native\\NativeShare","type":"->","args":["\/UPDIGITAL_ASU\/Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":265,"function":"unlink","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":["\/UPDIGITAL_ASU\/Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/lib\/private\/Files\/Storage\/Wrapper\/PermissionsMask.php","line":112,"function":"unlink","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":265,"function":"unlink","class":"OC\\Files\\Storage\\Wrapper\\PermissionsMask","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/lib\/private\/Files\/Storage\/Wrapper\/Availability.php","line":288,"function":"unlink","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"function":"unlink","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/files_trashbin\/lib\/Storage.php","line":275,"function":"call_user_func_array","args":[[{"cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null,"__class__":"OC\\Files\\Storage\\Wrapper\\Availability"},"unlink"],["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]]},{"file":"\/ocdata\/html\/apps\/files_trashbin\/lib\/Storage.php","line":185,"function":"doDelete","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part","unlink"]},{"file":"\/ocdata\/html\/apps\/dav\/lib\/Connector\/Sabre\/File.php","line":198,"function":"unlink","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["Meltdown_Spectre\/New folder\/PsExec.exe.ocTransferId1077213857.part"]},{"file":"\/ocdata\/html\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"\/ocdata\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["PsExec.exe",null]},{"file":"\/ocdata\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":529,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["Groups\/ASU\/Meltdown_Spectre\/New folder\/PsExec.exe",null,null]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/drive.up.pt\/remote.php\/webdav\/Groups\/ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/ocdata\/html\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/drive.up.pt\/remote.php\/webdav\/Groups\/ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/ocdata\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/drive.up.pt\/remote.php\/webdav\/Groups\/ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/ocdata\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/drive.up.pt\/remote.php\/webdav\/Groups\/ASU\/Meltdown_Spectre\/New%20folder\/PsExec.exe","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/ocdata\/html\/apps\/dav\/appinfo\/v1\/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/ocdata\/html\/remote.php","line":163,"args":["\/ocdata\/html\/apps\/dav\/appinfo\/v1\/webdav.php"],"function":"require_once"}],"File":"\/ocdata\/html\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Exception\/Exception.php","Line":30,"CustomMessage":"--"}
@upmferraz
Copy link
Author

We had a similar issue in the previous versions, but we could workaround it by using a older version of the icewind smb, we can't do in this version because it's incompatible.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #11784 (14.0.3), #11821 (Nextcloud 14.0.3 dont start after Update postgresql 10), #11205 ([Nextcloud 14] Internal Server Error), #8912 (Upgrade from 12.0.6 to 13.0.1 failed), and #2632 (Apps are missing icons).

@upmferraz
Copy link
Author

upmferraz commented Nov 5, 2018

Hi

We've found that's nothing to do with the filetype but with the filesize, when we upload files until about 60kb it uploads without any difficulty. When the file is larger we get the "FileInUse" exception.

I got something different in the logfile:
Nov 5 18:46:16 drive.up.pt Nextcloud[17682]: {webdav} {"Exception":"Icewind\SMB\Exception\FileInUseException","Message":"Invalid request for /UPDIGITAL_ASU/1%20%281%29.jpg.ocTransferId1918672569.part (FileInUseException)","Code":16,"Trace":[{"file":"/ocdata/html/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":61,"function":"fromMap","class":"Icewind\SMB\Exception\Exception","type":"::","args":[{"1":"Icewind\SMB\Exception\ForbiddenException","2":"Icewind\SMB\Exception\NotFoundException","13":"Icewind\SMB\Exception\ForbiddenException","16":"Icewind\SMB\Exception\FileInUseException","17":"Icewind\SMB\Exception\AlreadyExistsException","20":"Icewind\SMB\Exception\InvalidTypeException","21":"Icewind\SMB\Exception\InvalidTypeException","22":"Icewind\SMB\Exception\InvalidArgumentException","28":"Icewind\SMB\Exception\OutOfSpaceException","39":"Icewind\SMB\Exception\NotEmptyException","110":"Icewind\SMB\Exception\TimedOutException","111":"Icewind\SMB\Exception\ConnectionRefusedException","112":"Icewind\SMB\Exception\HostDownException","113":"Icewind\SMB\Exception\NoRouteToHostException"},16,"/UPDIGITAL_ASU/1%20%281%29.jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":73,"function":"handleError","class":"Icewind\SMB\Native\NativeState","type":"->","args":["/UPDIGITAL_ASU/1%20%281%29.jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":147,"function":"testResult","class":"Icewind\SMB\Native\NativeState","type":"->","args":[false,"smb://fserver.campus.up.pt/groups_geral$/UPDIGITAL_ASU/1%20%281%29.jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":152,"function":"unlink","class":"Icewind\SMB\Native\NativeState","type":"->","args":["smb://fserver.campus.up.pt/groups_geral$/UPDIGITAL_ASU/1%20%281%29.jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_external/lib/Lib/Storage/SMB.php","line":336,"function":"del","class":"Icewind\SMB\Native\NativeShare","type":"->","args":["/UPDIGITAL_ASU/1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":265,"function":"unlink","class":"OCA\Files_External\Lib\Storage\SMB","type":"->","args":["/UPDIGITAL_ASU/1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/lib/private/Files/Storage/Wrapper/PermissionsMask.php","line":112,"function":"unlink","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":265,"function":"unlink","class":"OC\Files\Storage\Wrapper\PermissionsMask","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/lib/private/Files/Storage/Wrapper/Availability.php","line":288,"function":"unlink","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"function":"unlink","class":"OC\Files\Storage\Wrapper\Availability","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_trashbin/lib/Storage.php","line":275,"function":"call_user_func_array","args":[[{"cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null,"class":"OC\Files\Storage\Wrapper\Availability"},"unlink"],["1 (1).jpg.ocTransferId1918672569.part"]]},{"file":"/ocdata/html/apps/files_trashbin/lib/Storage.php","line":185,"function":"doDelete","class":"OCA\Files_Trashbin\Storage","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part","unlink"]},{"file":"/ocdata/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":265,"function":"unlink","class":"OCA\Files_Trashbin\Storage","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/files_accesscontrol/lib/StorageWrapper.php","line":272,"function":"unlink","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/dav/lib/Connector/Sabre/File.php","line":198,"function":"unlink","class":"OCA\FilesAccessControl\StorageWrapper","type":"->","args":["1 (1).jpg.ocTransferId1918672569.part"]},{"file":"/ocdata/html/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\DAV\Connector\Sabre\File","type":"->","args":[null]},{"file":"/ocdata/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1096,"function":"createFile","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":["1 (1).jpg",null]},{"file":"/ocdata/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":529,"function":"createFile","class":"Sabre\DAV\Server","type":"->","args":["Groups/ASU/1 (1).jpg",null,null]},{"function":"httpPut","class":"Sabre\DAV\CorePlugin","type":"->","args":[{"absoluteUrl":"https://drive.up.pt/remote.php/webdav/Groups/ASU/1%20(1).jpg","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/ocdata/html/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpPut"],[{"absoluteUrl":"https://drive.up.pt/remote.php/webdav/Groups/ASU/1%20(1).jpg","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/ocdata/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https://drive.up.pt/remote.php/webdav/Groups/ASU/1%20(1).jpg","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/ocdata/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://drive.up.pt/remote.php/webdav/Groups/ASU/1%20(1).jpg","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/ocdata/html/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/ocdata/html/remote.php","line":163,"args":["/ocdata/html/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/ocdata/html/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php","Line":30,"CustomMessage":"--"}
@icewind1991

@upmferraz upmferraz changed the title Nextcloud 14.0.3: Error with SMB Icewind with certain filetypes like docx, exe Nextcloud 14.0.3: Error with uploading files larger than 60Kb to a SMB Share Nov 8, 2018
@upmferraz upmferraz changed the title Nextcloud 14.0.3: Error with uploading files larger than 60Kb to a SMB Share Nextcloud 14.0.3: Error with uploading files larger than 64Kb to a SMB Share Nov 9, 2018
@upmferraz
Copy link
Author

After removing php-smbclient the problem was solved.

@upmferraz upmferraz reopened this Nov 20, 2018
@upmferraz
Copy link
Author

upmferraz commented Nov 20, 2018

Hi.

I've reopened this issue because I've found that the problem relies on using Netapp foi SMB sharing, but this happen when using Windows Shares. The previous workaround didn't solve the problem because the problem reappeared after a while but this time we had some files synced with a size of 0 Kb .

After a while I've tested the connection directly by using the native smbclient but I got the error NT_STATUS_OBJECT_PATH_NOT_FOUND when using the rename comand.
This is probably related with this bug https://bugzilla.samba.org/show_bug.cgi?id=13599

As a workaround I've configured NextCloud to use the home folder for the part files, on this way the put command is used instead of the rename, and forced the client to use SMB2, but now we can't rename any file, and the connection is slower than before when we where using Nextcloud 11, and 12 with the older version of the icewind smb library.

@upmferraz upmferraz changed the title Nextcloud 14.0.3: Error with uploading files larger than 64Kb to a SMB Share Nextcloud 14.0.3: Error with uploading files larger than 64Kb to a SMB Share or syncing files with 0 size (destroying the previous one). Nov 20, 2018
@upmferraz
Copy link
Author

I think you can look at this @icewind1991
TalAloni/SMBLibrary#11

The rename command changed from smb1 to smb2

@upmferraz
Copy link
Author

upmferraz commented Dec 12, 2018

I think I've found a workaround

Just change the client max protocol to NT1 after adding the NETBIOS name in /etc/samba/lmhosts of the SMB Server. After that I could rename files. BUT I get again the 64Kb limit to send files resulting on a 0 sized file on server:

smb: \UPDIGITAL_ASU\teste> put 1.mp4
dos_clean_name [\UPDIGITAL_ASU\teste\1.mp4]
unix_clean_name [\UPDIGITAL_ASU\teste\1.mp4]
num_setup=1, max_setup=0, param_total=104, this_param=104, max_param=2, data_total=0, this_data=0, max_data=65535, param_offset=68, param_pad=0, param_disp=0, data_offset=172, data_pad=0, data_disp=0
map_open_params_to_ntcreate: fname = \FSERVER\Groups_Geral$\UPDIGITAL_ASU\teste\1.mp4, deny_mode = 0x42, open_func = 0x12
map_open_params_to_ntcreate: file \FSERVER\Groups_Geral$\UPDIGITAL_ASU\teste\1.mp4, access_mask = 0x12019f, share_mode = 0x3, create_disposition = 0x5, create_options = 0x40 private_flags = 0x0
cli_push returned NT_STATUS_INVALID_PARAMETER
NT_STATUS_CONNECTION_DISCONNECTED closing remote file \UPDIGITAL_ASU\teste\1.mp4
smb: \UPDIGITAL_ASU\teste> putting file 1.mp4 as \UPDIGITAL_ASU\teste\1.mp4 SMBecho failed (NT_STATUS_CONNECTION_DISCONNECTED). The connection is disconnected now

@upmferraz
Copy link
Author

New workaround.

By removing the $ char from the share path, this issue doesn't happen

@necarnot
Copy link

NOP!
By removing the $ char from the share path, this issue is still happening!

@upmferraz
Copy link
Author

upmferraz commented Feb 20, 2019

You have also to set 'part_file_in_storage' => false, in the config file, on other hand, after doing this when you try to upload a file with same name by using the web interface, it asks what you want to do with the file, but the file is never replaced.

After so many months I thought I was the only one with this issue :)

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@skjnldsv
Copy link
Member

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

@cheun38
Copy link

cheun38 commented May 24, 2020

Hello,
I have exactly the same problem with Pydio : users cannot upload files larger than 64kb.
Did you manage to fix this problem?
Thank you

@upmferraz
Copy link
Author

Hi, if I can recall, this is normally related if you're using smbclient and if the protocol version negotiated to smb v1, we couldn't use the smbclient php lib on this version at this time, but now we're on 16.x version with smbclient php lib, still having some issues on some file renaming but all this is related with Netapp compatibility.

@cheun38
Copy link

cheun38 commented May 25, 2020

Thank you upmferraz.
It was the trick. I put max-protocol=SMB3 and now uploads are Ok.
(good memory ;-)

@upmferraz
Copy link
Author

Nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage
Projects
None yet
Development

No branches or pull requests

5 participants