nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.52k stars 4.08k forks source link

Cant upload files on sharing page #28113

Closed DasCanard closed 3 years ago

DasCanard commented 3 years ago

How to use GitHub

Notes

Normal interface when i am logged in just works fine Im am using Cloudflare (used it a few months ago with NC 21 and it was working)

Steps to reproduce

  1. Create Folder
  2. Share with read & write permissions
  3. Upload File

Expected behaviour

The File should upload in 80 MB Chunks

Actual behaviour

When I try to upload the File it is stuck at 363KB image

Server configuration

Operating system: Ubuntu 18.04 Web server: nginx Database: MariaDB PHP version: 8.0 Nextcloud version: (see Nextcloud admin page) 22.0.0 Updated from an older Nextcloud/ownCloud or fresh install: fresh install Where did you install Nextcloud from: c-rieger.de install script Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.7.0 - activity: 2.15.0 - admin_audit: 1.11.0 - calendar: 2.3.1 - circles: 22.0.0 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contacts: 4.0.0 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.18.0 - deck: 1.5.0 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_external: 1.12.1 - files_pdfviewer: 2.3.0 - files_rightclick: 1.1.0 - files_sharing: 1.13.2 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.11.0 - logreader: 2.7.0 - lookup_server_connector: 1.9.0 - mail: 1.10.1 - nextcloud_announcements: 1.11.0 - notes: 4.1.0 - notifications: 2.10.1 - oauth2: 1.9.0 - password_policy: 1.12.0 - photos: 1.4.0 - privacy: 1.6.0 - provisioning_api: 1.11.0 - recommendations: 1.1.0 - richdocuments: 4.2.0 - richdocumentscode: 6.4.1004 - serverinfo: 1.12.0 - settings: 1.3.0 - sharebymail: 1.11.0 - spreed: 12.0.1 - support: 1.5.0 - systemtags: 1.11.0 - text: 3.3.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.1 - twofactor_totp: 6.1.0 - updatenotification: 1.11.0 - user_status: 1.1.1 - viewer: 1.6.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - encryption - firstrunwizard - survey_client - user_ldap ```

Nextcloud configuration:

Config report ``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud", "cloud.dascanard.me" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "22.0.0.11", "simpleSignUpLink.shown": false, "overwrite.cli.url": "https:\/\/cloud.dascanard.me", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "activity_expire_days": 14, "auth.bruteforce.protection.enabled": true, "blacklisted_files": [ ".htaccess", "Thumbs.db", "thumbs.db" ], "cron_log": true, "default_phone_region": "DE", "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\Movie", "OC\\Preview\\PDF", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "filesystem_check_changes": 0, "filelocking.enabled": "true", "htaccess.RewriteBase": "\/", "integrity.check.disabled": false, "knowledgebaseenabled": false, "log_rotate_size": 104857600, "logfile": "\/daten\/nextcloud.log", "loglevel": 2, "logtimezone": "Europe\/Berlin", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "preview_max_x": 1920, "preview_max_y": 1080, "preview_max_scale_factor": 1, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 }, "quota_include_external_storage": false, "share_folder": "\/Freigaben", "skeletondirectory": "", "trashbin_retention_obligation": "auto, 7", "maintenance": false, "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_sendmailmode": "smtp", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "tls" } } ```

Are you using external storage, if yes which one: no

Are you using encryption: no

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

Client configuration

Browser: Edge (91.0.864.71)

Operating system: Windows 10

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` {"reqId":"qbKSeyKRVHtNWKySgU6E","level":3,"time":"2021-07-22T11:53:36+02:00","remoteAddr":"2003:c5:ef11:9d00:5d9a:2b6e:6f37:8b6a","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/notes/api/v1/notes?pruneBefore=1626874793","message":"session_start(): Ignoring session_start() because a session is already active at /var/www/nextcloud/lib/private/Session/Internal.php#206","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":"22.0.0.11","exception":{"Exception":"Error","Message":"session_start(): Ignoring session_start() because a session is already active at /var/www/nextcloud/lib/private/Session/Internal.php#206","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"function":"session_start"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":206,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":216,"function":"invoke","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":106,"function":"startSession","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/CryptoSessionData.php","line":149,"function":"clear","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":933,"function":"clear","class":"OC\\Session\\CryptoSessionData","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php","line":90,"function":"logout","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":97,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\CORSMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} {"reqId":"D6uO0xD1RucVNu7WiLqP","level":3,"time":"2021-07-22T11:54:23+02:00","remoteAddr":"2003:c5:ef11:9d00:e593:8e5c:ede7:8e01","user":"--","app":"PHP","method":"GET","url":"/s/y4to7yjdXeAZfBW/download?path=%2FAbleton%2FProjekte&files=Ableton&downloadStartSecret=39kdcya3jdg","message":"ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush at /var/www/nextcloud/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php#171","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.70","version":"22.0.0.11","exception":{"Exception":"Error","Message":"ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush at /var/www/nextcloud/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php#171","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php","line":171,"function":"ob_end_flush"},{"file":"/var/www/nextcloud/lib/private/Streamer.php","line":100,"function":"sendHeaders","class":"ZipStreamer\\ZipStreamer","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Files.php","line":167,"function":"sendHeaders","class":"OC\\Streamer","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":654,"function":"get","class":"OC_Files","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"downloadShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} {"reqId":"pjgJRuSmQiGp6kC5neY3","level":3,"time":"2021-07-22T12:20:02+02:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob, arguments: Array\n(\n [userId] => Canard\n [purgeBeforeGenerating] => 1\n)\n)","userAgent":"--","version":"22.0.0.11","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Deleted calendar object with uid already exists in this calendar collection.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/BirthdayService.php","line":405,"function":"createCalendarObject","class":"OCA\\DAV\\CalDAV\\CalDavBackend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/BirthdayService.php","line":127,"function":"updateCalendar","class":"OCA\\DAV\\CalDAV\\BirthdayService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/BirthdayService.php","line":324,"function":"onCardChanged","class":"OCA\\DAV\\CalDAV\\BirthdayService","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php","line":72,"function":"syncUser","class":"OCA\\DAV\\CalDAV\\BirthdayService","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/QueuedJob.php","line":45,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\QueuedJob","type":"->"}],"File":"/var/www/nextcloud/apps/dav/lib/CalDAV/CalDavBackend.php","Line":1286,"CustomMessage":"Error while running background job (class: OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob, arguments: Array\n(\n [userId] => Canard\n [purgeBeforeGenerating] => 1\n)\n)"}} {"reqId":"Lmbuh3MkOC2oxWhVdhlM","level":3,"time":"2021-07-22T12:24:10+02:00","remoteAddr":"91.3.222.36","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/notes/api/v1/notes?pruneBefore=1626874793","message":"session_start(): Ignoring session_start() because a session is already active at /var/www/nextcloud/lib/private/Session/Internal.php#206","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":"22.0.0.11","exception":{"Exception":"Error","Message":"session_start(): Ignoring session_start() because a session is already active at /var/www/nextcloud/lib/private/Session/Internal.php#206","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"function":"session_start"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":206,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":216,"function":"invoke","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":106,"function":"startSession","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/Session/CryptoSessionData.php","line":149,"function":"clear","class":"OC\\Session\\Internal","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":933,"function":"clear","class":"OC\\Session\\CryptoSessionData","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php","line":90,"function":"logout","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":97,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\CORSMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} ```

Browser log

Browser log ``` globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. re @ globals.js:62 get @ globals.js:93 _onClickAction @ newfilemenu.js?v=fdf35216-6:72 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. re @ globals.js:62 get @ globals.js:93 add @ file-upload.js?v=fdf35216-6:924 _trigger @ jquery-ui.js:697 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1040 each @ jquery.js:354 _onAdd @ jquery.fileupload.js?v=fdf35216-6:1033 (anonymous) @ jquery-ui.js:144 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1238 l @ jquery.js:3268 add @ jquery.js:3327 always @ jquery.js:3480 _onChange @ jquery.fileupload.js?v=fdf35216-6:1228 (anonymous) @ jquery-ui.js:144 s @ jquery-ui.js:606 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 globals.js:62 md5 is deprecated: please ship your own, this will be removed in Nextcloud 20 re @ globals.js:62 get @ globals.js:93 OC.FileUpload @ file-upload.js?v=fdf35216-6:42 add @ file-upload.js?v=fdf35216-6:926 _trigger @ jquery-ui.js:697 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1040 each @ jquery.js:354 _onAdd @ jquery.fileupload.js?v=fdf35216-6:1033 (anonymous) @ jquery-ui.js:144 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1238 l @ jquery.js:3268 add @ jquery.js:3327 always @ jquery.js:3480 _onChange @ jquery.fileupload.js?v=fdf35216-6:1228 (anonymous) @ jquery-ui.js:144 s @ jquery-ui.js:606 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. re @ globals.js:62 get @ globals.js:93 add @ file-upload.js?v=fdf35216-6:997 _trigger @ jquery-ui.js:697 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1040 each @ jquery.js:354 _onAdd @ jquery.fileupload.js?v=fdf35216-6:1033 (anonymous) @ jquery-ui.js:144 (anonymous) @ jquery.fileupload.js?v=fdf35216-6:1238 l @ jquery.js:3268 add @ jquery.js:3327 always @ jquery.js:3480 _onChange @ jquery.fileupload.js?v=fdf35216-6:1228 (anonymous) @ jquery-ui.js:144 s @ jquery-ui.js:606 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 richdocuments-files.js?v=fdf35216-6:2 Uncaught TypeError: Cannot read property 'style' of null at VisualViewport.y (richdocuments-files.js?v=fdf35216-6:2) y @ richdocuments-files.js?v=fdf35216-6:2 resize (async) p @ popper.js:201 m @ popper.js:278 I @ popper.js:755 onLoad @ popper.js:1204 (anonymous) @ popper.js:2521 e @ popper.js:2519 u.show @ tooltip.js:396 u._enter @ tooltip.js:676 (anonymous) @ tooltip.js:620 handle @ jquery.js:5536 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 7util.js:135 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment relativeModifiedDate @ util.js:135 (anonymous) @ init.js:101 each @ jquery.js:354 each @ jquery.js:189 (anonymous) @ init.js:100 Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für https://cloud.dascanard.me/apps/viewer/js/viewer-main.js.map?v=d9ec9c26a66a4c037c99 konnte nicht geladen werden: Laden wurde aufgrund eines Ladetimeouts abgebrochen. Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für https://cloud.dascanard.me/apps/richdocuments/js/richdocuments-viewer.js.map?v=bbf521eec6dce58d966d konnte nicht geladen werden: Laden wurde aufgrund eines Ladetimeouts abgebrochen. Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für https://cloud.dascanard.me/apps/text/js/public.js.map konnte nicht geladen werden: Laden wurde aufgrund eines Ladetimeouts abgebrochen. Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für https://cloud.dascanard.me/apps/richdocuments/js/richdocuments-files.js.map?v=75acd42a026df56ad6e7 konnte nicht geladen werden: Laden wurde aufgrund eines Ladetimeouts abgebrochen. Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für https://cloud.dascanard.me/apps/files_pdfviewer/js/files_pdfviewer-public.js.map?v=9c78035f0f6c8267668c konnte nicht geladen werden: Laden wurde aufgrund eines Ladetimeouts abgebrochen. richdocuments-files.js?v=fdf35216-6:2 Uncaught TypeError: Cannot read property 'style' of null at VisualViewport.y (richdocuments-files.js?v=fdf35216-6:2) y @ richdocuments-files.js?v=fdf35216-6:2 resize (async) p @ popper.js:201 m @ popper.js:278 I @ popper.js:755 onLoad @ popper.js:1204 (anonymous) @ popper.js:2521 e @ popper.js:2519 u.show @ tooltip.js:396 u._enter @ tooltip.js:676 (anonymous) @ tooltip.js:620 handle @ jquery.js:5536 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 richdocuments-files.js?v=fdf35216-6:2 Uncaught TypeError: Cannot read property 'style' of null at VisualViewport.y (richdocuments-files.js?v=fdf35216-6:2) y @ richdocuments-files.js?v=fdf35216-6:2 resize (async) p @ popper.js:201 m @ popper.js:278 I @ popper.js:755 onLoad @ popper.js:1204 (anonymous) @ popper.js:2521 e @ popper.js:2519 u.show @ tooltip.js:396 u._fixTransition @ tooltip.js:804 h @ tooltip.js:409 r @ jquery.js:4932 handle @ util.js:46 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 trigger @ jquery.js:8249 (anonymous) @ jquery.js:8327 each @ jquery.js:354 each @ jquery.js:189 trigger @ jquery.js:8326 triggerTransitionEnd @ util.js:127 (anonymous) @ util.js:63 setTimeout (async) i @ util.js:61 u.hide @ tooltip.js:475 u._leave @ tooltip.js:708 (anonymous) @ tooltip.js:622 handle @ jquery.js:5536 dispatch @ jquery.js:5183 g.handle @ jquery.js:4991 globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. ```
DasCanard commented 3 years ago

It can look like this too https://user-images.githubusercontent.com/17070204/126653580-04867a2a-52e5-480e-8813-e03e654b7da1.mp4

The 40 MB came out of nowhere

szaimen commented 3 years ago

https://user-images.githubusercontent.com/17070204/126653580-04867a2a-52e5-480e-8813-e03e654b7da1.mp4

Looks to me like everything works.