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

Can not upload file to 32-bit host #17485

Closed
delfer opened this issue Oct 9, 2019 · 4 comments
Closed

Can not upload file to 32-bit host #17485

delfer opened this issue Oct 9, 2019 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@delfer
Copy link

delfer commented Oct 9, 2019

Steps to reproduce

  1. Install latest Nexcloud onto 32-bit system
  2. Upload file > 2 GiB

Expected behaviour

File uploaded.

Actual behaviour

Upload filed on moving phase.

Server configuration

Operating system: Ubuntu 18.04.1 LTS

Web server: Apache 2 embedded in Nexcloud docker container

Database: PostgreSQL 10.5 (postgres:10-alpine)

PHP version: 7.3.10

Nextcloud version: 17.0.0 - 17.0.0.9

Updated from an older Nextcloud/ownCloud or fresh install: Updated over time from v13

Where did you install Nextcloud from: Docker image nextcloud:17-apache = nextcloud@sha256:7e29d888c5272f267eba1d85d9215c5c8736f71578bd6d2616d997471e8acbdb

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - bruteforcesettings: 1.4.0
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_external: 1.8.0
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - firstrunwizard: 2.6.0
  - gallery: 18.4.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - ocdownloader: 1.7.2
  - password_policy: 1.7.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - recommendations: 0.5.0
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - text: 1.1.0
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - viewer: 1.1.0
  - workflowengine: 1.7.0
Disabled:
  - admin_audit
  - encryption
  - user_ldap

Nextcloud configuration:

Config report
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.delfer.ru",
            "cloud.lan",
            "10.236.200.2"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "17.0.0.9",
        "overwrite.cli.url": "https:\/\/cloud.delfer.ru",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "loglevel": 2,
        "maintenance": false,
        "theme": ""
    }
}

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

Are you using encryption: no

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

Client configuration

Browser: Firefox 69.0.2

Operating system: Mac OS X 10.14

Logs

Web server error log

Web server error log
172.18.0.2 - - [09/Oct/2019:10:03:59 +0000] "MOVE /remote.php/dav/uploads/delfer/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052/.file HTTP/1.1" 500 857 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0"

Nextcloud log (data/nextcloud.log)

Nextcloud log
{
   "reqId":"sHnVM1rTCTdQvYS0b0V9",
   "level":4,
   "time":"2019-10-09T10:07:03+00:00",
   "remoteAddr":"192.168.200.1",
   "user":"delfer",
   "app":"webdav",
   "method":"MOVE",
   "url":"\/remote.php\/dav\/uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
   "message":{
      "Exception":"Sabre\\DAV\\Exception",
      "Message":"Error while copying file to target location (copied bytes: 0, expected filesize: -1 )",
      "Code":0,
      "Trace":[
         {
            "file":"\/var\/www\/html\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php",
            "line":156,
            "function":"put",
            "class":"OCA\\DAV\\Connector\\Sabre\\File",
            "type":"->",
            "args":[
               null
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php",
            "line":316,
            "function":"createFile",
            "class":"OCA\\DAV\\Connector\\Sabre\\Directory",
            "type":"->",
            "args":[
               "disk-s009.vmdk",
               null
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php",
            "line":130,
            "function":"copyNode",
            "class":"Sabre\\DAV\\Tree",
            "type":"->",
            "args":[
               {
                  "__class__":"OCA\\DAV\\Upload\\FutureFile"
               },
               {
                  "__class__":"OCA\\DAV\\Files\\FilesHome"
               },
               "disk-s009.vmdk"
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php",
            "line":161,
            "function":"copy",
            "class":"Sabre\\DAV\\Tree",
            "type":"->",
            "args":[
               "uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
               "files\/delfer\/disk-s009.vmdk"
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php",
            "line":642,
            "function":"move",
            "class":"Sabre\\DAV\\Tree",
            "type":"->",
            "args":[
               "uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
               "files\/delfer\/disk-s009.vmdk"
            ]
         },
         {
            "function":"httpMove",
            "class":"Sabre\\DAV\\CorePlugin",
            "type":"->",
            "args":[
               {
                  "absoluteUrl":"http:\/\/***REMOVED SENSITIVE VALUE***\/remote.php\/dav\/uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
                  "__class__":"Sabre\\HTTP\\Request"
               },
               {
                  "__class__":"Sabre\\HTTP\\Response"
               }
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php",
            "line":105,
            "function":"call_user_func_array",
            "args":[
               [
                  {
                     "__class__":"Sabre\\DAV\\CorePlugin"
                  },
                  "httpMove"
               ],
               [
                  {
                     "absoluteUrl":"http:\/\/cloud.delfer.ru\/remote.php\/dav\/uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
                     "__class__":"Sabre\\HTTP\\Request"
                  },
                  {
                     "__class__":"Sabre\\HTTP\\Response"
                  }
               ]
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php",
            "line":479,
            "function":"emit",
            "class":"Sabre\\Event\\EventEmitter",
            "type":"->",
            "args":[
               "method:MOVE",
               [
                  {
                     "absoluteUrl":"http:\/\/***REMOVED SENSITIVE VALUE***\/remote.php\/dav\/uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
                     "__class__":"Sabre\\HTTP\\Request"
                  },
                  {
                     "__class__":"Sabre\\HTTP\\Response"
                  }
               ]
            ]
         },
         {
            "file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php",
            "line":254,
            "function":"invokeMethod",
            "class":"Sabre\\DAV\\Server",
            "type":"->",
            "args":[
               {
                  "absoluteUrl":"http:\/\/***REMOVED SENSITIVE VALUE***\/remote.php\/dav\/uploads\/delfer\/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570614969052\/.file",
                  "__class__":"Sabre\\HTTP\\Request"
               },
               {
                  "__class__":"Sabre\\HTTP\\Response"
               }
            ]
         },
         {
            "file":"\/var\/www\/html\/apps\/dav\/lib\/Server.php",
            "line":317,
            "function":"exec",
            "class":"Sabre\\DAV\\Server",
            "type":"->",
            "args":[

            ]
         },
         {
            "file":"\/var\/www\/html\/apps\/dav\/appinfo\/v2\/remote.php",
            "line":35,
            "function":"exec",
            "class":"OCA\\DAV\\Server",
            "type":"->",
            "args":[

            ]
         },
         {
            "file":"\/var\/www\/html\/remote.php",
            "line":163,
            "args":[
               "\/var\/www\/html\/apps\/dav\/appinfo\/v2\/remote.php"
            ],
            "function":"require_once"
         }
      ],
      "File":"\/var\/www\/html\/apps\/dav\/lib\/Connector\/Sabre\/File.php",
      "Line":218,
      "CustomMessage":"--"
   },
   "userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko\/20100101 Firefox\/69.0",
   "version":"17.0.0.9"
}

Browser log

Browser log
URL: https://****/remote.php/dav/uploads/delfer/web-file-upload-935045d97d80ad3561e714b4e01e369b-1570631801158/.file
Method: MOVE
Response: 500 Internal Server Error
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception</s:exception>
  <s:message>Error while copying file to target location (copied bytes: 0, expected filesize: -1 )</s:message>
</d:error>
@delfer delfer added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Oct 9, 2019
@delfer
Copy link
Author

delfer commented Oct 9, 2019

Relate to #16431
Issue was fixed in NC 13 Beta: nextcloud/nextcloudpi#158

@kesselb
Copy link
Contributor

kesselb commented Oct 9, 2019

Okay with you to close this as duplicate of #16431?

@delfer
Copy link
Author

delfer commented Oct 9, 2019

#16431 is out of date as for v16

@kesselb
Copy link
Contributor

kesselb commented Oct 9, 2019

Closed as duplicate of #16431.

There is no need to have two reports for the same problem. That's not how an issue tracker works.

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 needs info
Projects
None yet
Development

No branches or pull requests

2 participants