flysystem icon indicating copy to clipboard operation
flysystem copied to clipboard

SFTP on Laravel 9, UnableToListContents 1230197504 bytes needed; 452 bytes available (can get individual file but not list files/directories)

Open coryrose1 opened this issue 1 year ago • 0 comments

Question

Q A
Flysystem Version 3.12.0
Adapter Name sftp
Adapter version 3.10.3

We recently upgraded to Laravel 9 and replaced our custom SFTP adapter with the default.

We're successfully connecting to an SFTP server, but calling $disk->files() results in the following:

   League\Flysystem\UnableToListContents

  Unable to list contents for '', shallow listing

Reason: 1230197504 bytes needed; 452 bytes available

I have no idea why listing the files of a directory would need over a gigabyte.. We CAN get files by passing the exact filename, but cannot list directories or files. There's only three files on this server which are under 50kb total.

Has anyone run into this, or can anyone point me in the right direction for troubleshooting?

coryrose1 avatar Jan 26 '23 15:01 coryrose1