Comments (8)
could you describe your problem in better details? Such as what files are in the bucket and what files do you see from ls
? I can ls directories with more than 1000 files fine.
from goofys.
OK, thank you for your reply.
I use goofys version 0.0.4
. I have 100 thousands files in my swift cluster.
And what I did to mount our swift service(with amazon-s3 compatible API) is:
/root/bin/goofys --endpoint=http://xxx.com bucket /bucket_dir
I used ls /bucket_dir
, it returns only 1000 files.
But with s3cmd, I can list all of the files.
Is there anything I did wrong with goofys
to get the full file list?
from goofys.
sorry for the late reply, this is a busy couple weeks for me. I don't have a working swift3 setup right now, could you try to get the debug log from goofys?
$ /root/bin/goofys -f --debug_s3 --endpoint=http://xxx.com bucket /bucket_dir >& goofys.log
$ # in another shell
$ ls /bucket_dir
Also, what version of swift3 are you using?
from goofys.
Thank you for your reply.
The following is the debug log I got while I ls /bucket_dir
.
We have been using a modified version of swift3 based on 1.7.0
. We have made a lot modification to it. For now I am not very sure if these modification affects goofys.
But In the log I can see there is a IsTruncated: true
attribute present. It seems like the response is correct. But goofys gave me only 1000 files.
Is it possible that goofys does not handle IsTruncated
correctly?
2016/03/03 10:29:19.649707 s3.DEBUG DEBUG: Request s3/HeadBucket Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD http://xxx.vip.xxx.com/allfilecontainer HTTP/1.1
Host: xxx.vip.xxx.com
User-Agent: aws-sdk-go/1.1.6 (go1.5.1; linux; amd64)
Authorization: AWS4-HMAC-SHA256 Credential=xxxxx/20160303/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=xxxxx
X-Amz-Content-Sha256: xxxxx
X-Amz-Date: 20160303T022919Z
-----------------------------------------------------
2016/03/03 10:29:19.656233 s3.DEBUG DEBUG: Response s3/HeadBucket Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Content-Length: 164
Connection: keep-alive
Content-Type: text/xml
Date: Thu, 03 Mar 2016 02:29:19 GMT
Server: Tengine
X-Trans-Id: tx5c5d11c64f1c4cd0acec2-0056d7a17f
-----------------------------------------------------
2016/03/03 10:29:19.656331 s3.DEBUG DEBUG: Validate Response s3/HeadBucket failed, not retrying, error :
status code: 400, request id:
2016/03/03 10:29:19.656349 s3.INFO Falling back to v2 signer
2016/03/03 10:29:19.656694 s3.DEBUG DEBUG: Request s3/HeadBucket Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD /allfilecontainer HTTP/1.1
Host: xxx.vip.xxx.com
User-Agent: aws-sdk-go/1.1.6 (go1.5.1; linux; amd64)
Authorization: AWS xxxxx:xxxxx
X-Amz-Date: Thu, 3 Mar 2016 02:29:19 +0000
-----------------------------------------------------
2016/03/03 10:29:19.672345 s3.DEBUG DEBUG: Response s3/HeadBucket Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
-----------------------------------------------------
2016/03/03 10:29:19.675434 main.INFO File system has been successfully mounted.
2016/03/03 10:29:26.648646 s3.DEBUG DEBUG: Request s3/ListObjects Details:
---[ REQUEST POST-SIGN ]-----------------------------
GET /allfilecontainer?delimiter=%2F&prefix= HTTP/1.1
Host: xxx.vip.xxx.com
User-Agent: aws-sdk-go/1.1.6 (go1.5.1; linux; amd64)
Authorization: AWS xxxxx:xxxxx
X-Amz-Date: Thu, 3 Mar 2016 02:29:26 +0000
Accept-Encoding: gzip
-----------------------------------------------------
2016/03/03 10:29:26.720938 s3.DEBUG DEBUG: Response s3/ListObjects Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Content-Length: 369469
Cache-Control: max-age=86400
Connection: keep-alive
Content-Type: application/xml
Date: Thu, 03 Mar 2016 02:29:26 GMT
Server: Tengine
X-Trans-Id: tx139aa8e839e844eea2d8d-0056d7a186
-----------------------------------------------------
2016/03/03 10:29:26.794436 s3.DEBUG {
Contents: [
{
ETag: "34ddd6128cc4739519b6ba7b8da27d71",
Key: "00001356-e5e1-44d1-b698-0bb91d1413f2_b6c065e6055e06fd012a2ad7d1cc60d0",
LastModified: 2015-10-03 14:12:01.43402 +0000 UTC,
Owner: {
DisplayName: "fbf878000cb9405cb12589b39fc4965a",
ID: "fbf878000cb9405cb12589b39fc4965a"
},
Size: 70,
StorageClass: "STANDARD"
},
………
{
ETag: "ab9ee1d898662acaa4d6b1cdfb083836",
Key: "003e8039-69dd-4950-975b-7c8d5360fdfa_7a623c05a65d7550c69282fc257f6d68",
LastModified: 2015-10-08 05:18:51.47499 +0000 UTC,
Owner: {
DisplayName: "fbf878000cb9405cb12589b39fc4965a",
ID: "fbf878000cb9405cb12589b39fc4965a"
},
Size: 9071,
StorageClass: "STANDARD"
}
],
Delimiter: "/",
IsTruncated: true,
Marker: "",
MaxKeys: 1000,
Name: "allfilecontainer",
Prefix: ""
}
from goofys.
goofys does handle IsTruncated. Can you verify that the response does not contain NextMarker
? According to aws docs the response is supposed to contain that field: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html .
from goofys.
swift3 1.7.0 looks quite old and predated openstack-archive/swift3@c03a1b5 which added NextMarker
. Is it possible for you to upgrade?
from goofys.
Sorry for my late reply. I have been busy week. We have solved the problem. Thank you very much.
from goofys.
Great! For future reference, how did you solve the problem?
from goofys.
Related Issues (20)
- Support for CloudFlare R2 HOT 1
- Can't access subdir from top dir even as a root user
- Deprecated Azure API
- main.ERROR Unable to access '<bucket_name>': permission denied HOT 3
- Feature Request: Support s3 new checksums crc32/crc32c/sha1/sha256
- Goofys work with contabo object-storage HOT 2
- Operation to mounted Goofys S3 does not respond
- ReadDir inode leak causes memory leak
- mount with ceph rgw got error ,ceph version is 18.2.1
- Improvement request: set op.Handle as point to FileHandle/DirHandle
- can not compile with go1.16
- Building leads to [email protected]: retracted by module author
- certificate has expired or is not yet valid HOT 3
- Goofys mount is not reloading inside container
- Disable multipart upload HOT 1
- mounting, listing and reading file works, writing doesn't HOT 1
- In kubernetes when killing pod with goffys container, pod stuck in terminating. exit code 137. HOT 2
- Process exits with error during copy of file under goofys mount point
- Failed deleting files HOT 1
- Any luck building this on mac osx? Brew and go have both moved on HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goofys.