Skip to content

503 or Requested Range Not Satisfiable with 0Kb file size #22029

@solracsf

Description

@solracsf
  • NC 19.0.1
  • Object Storage as primary

Issue

  • Upload this file to NC with the Browser to the root: https://hiberfile.com/d/Yza9WDIA
  • Try to sync with Nextcloud Desktop client (Win) or download (by clicking on it)move/copy it into another folder using the WebUI.

It will produce either:

fopen(urn%3Aoid%3A18377): failed to open stream: HTTP request failed! HTTP/1.1 416 Requested Range Not Satisfiable

on nextcloud.log or

503 Service Temporarily Unavailable

on Nextcloud Desktop client.

On browser, it can be downloaded by: Select it > Actions > Download

Logs

{
  "reqId":"8aBIAWaqMnQem77CAfpz",
  "level":3,
  "time":"2020-07-28T12:23:07+02:00",
  "remoteAddr":"1.2.3.4",
  "user":"testing",
  "app":"PHP",
  "method":"COPY",
  "url":"/remote.php/dav/files/testing/Dolphin%20Emulator/Logs/dolphin.log",
  "message":"fopen(httpseek://): failed to open stream: "OC\\Files\\Stream\\SeekableHttpStream::stream_open" call failed at /var/www/testing/lib/private/Files/Stream/SeekableHttpStream.php#67",
  "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version":"19.0.1.1"
}{ 
  "reqId":"8aBIAWaqMnQem77CAfpz",
  "level":4,
  "time":"2020-07-28T12:23:07+02:00",
  "remoteAddr":"1.2.3.4",
  "user":"testing",
  "app":"webdav",
  "method":"COPY",
  "url":"/remote.php/dav/files/testing/Dolphin%20Emulator/Logs/dolphin.log",
  "message":{
    "Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable",
    "Message":"Could not open file",
    "Code":0,
    "Trace":[      {
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line":302,
        "function":"get",
        "class":"OCA\\DAV\\Connector\\Sabre\\File",
        "type":"->",
        "args":[

        
]
      
},
      {       
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line":135,
        "function":"copyNode",
        "class":"Sabre\\DAV\\Tree",
        "type":"->",
        "args":[          {
            "__class__":"OCA\\DAV\\Connector\\Sabre\\File"
          
},
          {
            "__class__":"OCA\\DAV\\Files\\FilesHome"
          
},
          "dolphin.log"
        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line":687,
        "function":"copy",
        "class":"Sabre\\DAV\\Tree",
        "type":"->",
        "args":[
          "files/testing/Dolphin Emulator/Logs/dolphin.log",
          "files/testing/dolphin.log"
        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line":89,
        "function":"httpCopy",
        "class":"Sabre\\DAV\\CorePlugin",
        "type":"->",
        "args":[          {
            "__class__":"Sabre\\HTTP\\Request"
          
},
          {
            "__class__":"Sabre\\HTTP\\Response"
          
}
        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":474,
        "function":"emit",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[          "method:COPY",
          [            {
              "__class__":"Sabre\\HTTP\\Request"
            
},
            {
              "__class__":"Sabre\\HTTP\\Response"
            
}
          
]
        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":251,
        "function":"invokeMethod",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[          {
            "__class__":"Sabre\\HTTP\\Request"
          
},
          {
            "__class__":"Sabre\\HTTP\\Response"
          
}
        
]
      
},
      {       
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":319,
        "function":"start",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[

        
]
      
},
      {        
        "file":"/var/www/testing/apps/dav/lib/Server.php",
        "line":320,
        "function":"exec",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[

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

        
]
      
},
      {        
        "file":"/var/www/testing/remote.php",
        "line":167,
        "args":[
          "/var/www/testing/apps/dav/appinfo/v2/remote.php"
        
],
        "function":"require_once"
      
}
    
],
    "File":"/var/www/testing/apps/dav/lib/Connector/Sabre/File.php",
    "Line":428,
    "CustomMessage":"--"
  
},
  "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version":"19.0.1.1"
}{
  "reqId":"W8FdAz7LcfdgpPbAFuzd",
  "level":3,
  "time":"2020-07-28T12:23:07+02:00",
  "remoteAddr":"1.2.3.4",
  "user":"testing",
  "app":"PHP",
  "method":"COPY",
  "url":"/remote.php/dav/files/testing/Dolphin%20Emulator/Logs/dolphin.log",
  "message":"fopen(http://10.1.0.2:8082/bucket-testing/urn%3Aoid%3A18377): failed to open stream: HTTP request failed! HTTP/1.1 416 Requested Range Not Satisfiable\r\n at /var/www/testing/lib/private/Files/ObjectStore/S3ObjectTrait.php#73",
  "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version":"19.0.1.1"
}{
  "reqId":"W8FdAz7LcfdgpPbAFuzd",
  "level":3,
  "time":"2020-07-28T12:23:07+02:00",
  "remoteAddr":"1.2.3.4",
  "user":"testing",
  "app":"PHP",
  "method":"COPY",
  "url":"/remote.php/dav/files/testing/Dolphin%20Emulator/Logs/dolphin.log",
  "message":"fopen(httpseek://): failed to open stream: "OC\\Files\\Stream\\SeekableHttpStream::stream_open" call failed at /var/www/testing/lib/private/Files/Stream/SeekableHttpStream.php#67",
  "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version":"19.0.1.1"
}{  
  "reqId":"W8FdAz7LcfdgpPbAFuzd",
  "level":4,
  "time":"2020-07-28T12:23:07+02:00",
  "remoteAddr":"1.2.3.4",
  "user":"testing",
  "app":"webdav",
  "method":"COPY",
  "url":"/remote.php/dav/files/testing/Dolphin%20Emulator/Logs/dolphin.log",
  "message":{    
    "Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable",
    "Message":"Could not open file",
    "Code":0,
    "Trace":[      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line":302,
        "function":"get",
        "class":"OCA\\DAV\\Connector\\Sabre\\File",
        "type":"->",
        "args":[

        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line":135,
        "function":"copyNode",
        "class":"Sabre\\DAV\\Tree",
        "type":"->",
        "args":[          {
            "__class__":"OCA\\DAV\\Connector\\Sabre\\File"
          
},
          {
            "__class__":"OCA\\DAV\\Files\\FilesHome"
          
},
          "dolphin.log"
        
]
      
},
      {        
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line":687,
        "function":"copy",
        "class":"Sabre\\DAV\\Tree",
        "type":"->",
        "args":[
          "files/testing/Dolphin Emulator/Logs/dolphin.log",
          "files/testing/dolphin.log"
        
]
      
},
      {      
        "file":"/var/www/testing/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line":89,
        "function":"httpCopy",
        "class":"Sabre\\DAV\\CorePlugin",
        "type":"->",
        "args":[          {
            "__class__":"Sabre\\HTTP\\Request"
          
},
          {
            "__class__":"Sabre\\HTTP\\Response"
          
}
        
]
      
},
      {      
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":474,
        "function":"emit",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[          "method:COPY",
          [            {
              "__class__":"Sabre\\HTTP\\Request"
            
},
            {
              "__class__":"Sabre\\HTTP\\Response"
            
}
          
]
        
]
      
},
      {      
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":251,
        "function":"invokeMethod",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[          {
            "__class__":"Sabre\\HTTP\\Request"
          
},
          {
            "__class__":"Sabre\\HTTP\\Response"
          
}
        
]
      
},
      {      
        "file":"/var/www/testing/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line":319,
        "function":"start",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[

        
]
      
},
      {      
        "file":"/var/www/testing/apps/dav/lib/Server.php",
        "line":320,
        "function":"exec",
        "class":"Sabre\\DAV\\Server",
        "type":"->",
        "args":[

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

        
]
      
},
      {     
        "file":"/var/www/testing/remote.php",
        "line":167,
        "args":[
          "/var/www/testing/apps/dav/appinfo/v2/remote.php"
        
],
        "function":"require_once"
      
}
    
],
    "File":"/var/www/testing/apps/dav/lib/Connector/Sabre/File.php",
    "Line":428,
    "CustomMessage":"--"
  
},
  "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version":"19.0.1.1"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions