Exception: Unable to send file
Steps to reproduce
- Set up SMB share with lots of files in it, 1 GB+ total, make public share link
- Web client via OSX, use public share link to view folder of files
- choose Download All as zip, see error on page.
Expected behaviour
Download zip like Windows
Actual behaviour
Error on screen, beleive is the same as this bug. https://github.com/owncloud/core/issues/21866
Server configuration
Operating system: CentOS 7 Web server: Apache Database: MySQL PHP version: 7.1.14 Nextcloud version: (see Nextcloud admin page) 12.0.5
Updated from an older Nextcloud/ownCloud or fresh install: 12.0.4
Where did you install Nextcloud from: Nextcloud website Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
- activity: 2.5.2
- admin_audit: 1.2.0
- announcementcenter: 3.1.1
- apporder: 0.4.1
- bruteforcesettings: 1.0.3
- calendar: 1.5.7
- comments: 1.2.0
- contacts: 2.0.1
- dashboard: 4.0.5
- dav: 1.3.1
- deck: 0.3.0
- external: 2.0.3
- federatedfilesharing: 1.2.0
- federation: 1.2.0
- files: 1.7.2
- files_accesscontrol: 1.2.5
- files_downloadactivity: 1.1.1
- files_external: 1.3.0
- files_markdown: 2.0.1
- files_pdfviewer: 1.1.1
- files_sharing: 1.4.0
- files_texteditor: 2.4.1
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- files_videoplayer: 1.1.0
- firstrunwizard: 2.1
- gallery: 17.0.0
- groupfolders: 1.2.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- nextcloud_announcements: 1.1
- notes: 2.3.2
- notifications: 2.0.0
- oauth2: 1.0.5
- ojsxc: 3.3.2
- onlyoffice: 1.2.0
- password_policy: 1.2.2
- provisioning_api: 1.2.0
- quota_warning: 1.1.1
- rainloop: 5.0.6
- serverinfo: 1.2.0
- sharebymail: 1.2.0
- socialsharing_email: 1.0.3
- spreed: 2.0.2
- survey_client: 1.0.0
- systemtags: 1.2.0
- tasks: 0.9.5
- telephoneprovider: 1.0.1
- theming: 1.3.0
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- workflowengine: 1.2.0
Disabled:
- admin_notifications
- encryption
- registration
- richdocuments
- user_external
- user_ldap
Nextcloud configuration:
Config report
I{
"system": {
"instanceid": "ocpg409lcymp",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"overwriteprotocol": "https",
"overwritewebroot": "",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "12.0.5.3",
"dbname": "office",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379
},
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "php",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "no_reply",
"default_language": "en_GB",
"maintenance": false,
"theme": "",
"trashbin_retention_obligation": "365, auto",
"versions_retention_obligation": "365, auto",
"loglevel": 2,
"onlyoffice": {
"verify_peer_off": true
}
}
}
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: Safari and Chrome Operating system: OSX
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
Error no app in context Exception: Unable to send file XXXXX%20Feb%202018.tar. HTML Headers have already been sent from /path/public_html/3rdparty/deepdiver1975/tarstreamer/src/TarStreamer.php in line 30
/path/public_html/lib/private/Streamer.php - line 55: ownCloud\TarStreamer\TarStreamer->sendHeaders('XXXXX...')
/path/public_html/lib/private/legacy/files.php - line 148: OC\Streamer->sendHeaders('XXXXX...')
/path/public_html/apps/files_sharing/lib/Controller/ShareController.php - line 535: OC_Files get('/Web/Pictures', 'XXXXX...', Array)
[internal function] OCA\Files_Sharing\Controller\ShareController->downloadShare('gMJF6RhlhqGRjcY', NULL, '/', '')
/path/public_html/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/path/public_html/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_Sharing\Controller\ShareController), 'downloadShare')
/path/public_html/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_Sharing\Controller\ShareController), 'downloadShare')
/path/public_html/lib/public/AppFramework/App.php - line 136: OC\AppFramework\App main('ShareController', 'downloadShare', Object(OC\AppFramework\DependencyInjection\DIContainer))
/path/public_html/core/routes.php - line 129: OCP\AppFramework\App->dispatch('ShareController', 'downloadShare')
[internal function] OC\Route\Router->{closure}(*** sensitive parameters replaced ***)
/path/public_html/lib/private/Route/Router.php - line 299: call_user_func(Object(Closure), Array)
/path/public_html/lib/base.php - line 1004: OC\Route\Router->match('/s/gMJF6RhlhqGR...')
/path/public_html/index.php - line 48: OC handleRequest()
{main}
2018-02-07T12:25:15+1100
Error no app in context Exception: Unable to send file XXXXX%20Feb%202018.tar. HTML Headers have already been sent from /path/public_html/3rdparty/deepdiver1975/tarstreamer/src/TarStreamer.php in line 30
/path/public_html/lib/private/Streamer.php - line 55: ownCloud\TarStreamer\TarStreamer->sendHeaders('XXXXX...')
/path/public_html/lib/private/legacy/files.php - line 148: OC\Streamer->sendHeaders('XXXXX...')
/path/public_html/apps/files_sharing/lib/Controller/ShareController.php - line 535: OC_Files get('/Web/Pictures', 'XXXXX...', Array)
[internal function] OCA\Files_Sharing\Controller\ShareController->downloadShare('gMJF6RhlhqGRjcY', NULL, '/', '')
/path/public_html/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/path/public_html/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_Sharing\Controller\ShareController), 'downloadShare')
/path/public_html/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_Sharing\Controller\ShareController), 'downloadShare')
/path/public_html/lib/public/AppFramework/App.php - line 136: OC\AppFramework\App main('ShareController', 'downloadShare', Object(OC\AppFramework\DependencyInjection\DIContainer))
/path/public_html/core/routes.php - line 129: OCP\AppFramework\App->dispatch('ShareController', 'downloadShare')
[internal function] OC\Route\Router->{closure}(*** sensitive parameters replaced ***)
/path/public_html/lib/private/Route/Router.php - line 299: call_user_func(Object(Closure), Array)
/path/public_html/lib/base.php - line 1004: OC\Route\Router->match('/s/gMJF6RhlhqGR...')
/path/public_html/index.php - line 48: OC handleRequest()
{main}
Can you try this again once 13.0.2 is out? I believe we updated the tar streamer stuff lately... (might already work in 13.0.1)
I don't have access to the same setup anymore, can't test a real OSX machine. I have a virtual OSX but not sure if that is a reliable test.
v12 v13 still not work for macos browser when try to download folder as zip
:"Exception: {"Exception":"Exception","Message":"Unable to send file ***.tar. HTML Headers have already been sent from ................
"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","version":"13.0.1.1"}
We improved the handling here a bit and I can't reproduce the issue anymore. Could you try again with a more recent version?
I will close the ticket for now. If it is still happening we can reopen the ticket.