# Cannot Stat Root / Cannot list ancestors list for

**URL:** <https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067>\
**Category:** Pydio Cells\
**Tags:** s3\
**Created:** [September 22, 2021, 2:39pm UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067 "2021-09-22T14:39:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [September 22, 2021, 2:39pm UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067/1 "2021-09-22T14:39:11Z")

</div>

These are my bucket’s user policies

```auto
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:::ae-pydio/*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "s3:ListAllMyBuckets",
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "s3:GetBucketLocation",
            "Resource": "arn:aws:s3:::ae-pydio"
        },
        {
            "Sid": "VisualEditor3",
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::ae-pydio"
        }
    ]
}

```

(Got hard time to discover the right set)

When resynchronizing the storage, I see `Error: {"id":"","code":0,"detail":"Cannot Stat Root: {\"id\":\"bucket.not.found\",\"code\":404,\"detail\":\"cannot find bucket ae-pydio\",\"status\":\"Not Found\"}","status":""}` (I only enabled `Native etags`)

In the workspace, the bucket is listed (and selected).

Anyway, upload and file create fails.  
In the logs I see random `The specified bucket does not exist` but also

- `Cannot list ancestors list for`
- `Cannot Stat Root`

I don’t want to give Pydio read/write access to all my bucket. Isn’t my policy correct?

Thank you

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [September 22, 2021, 5:19pm UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067/2 "2021-09-22T17:19:32Z")

</div>

I added multiple other permissions to the policy and, when re-syncing, I’m still getting:  
`Cannot Stat Root / bucket.not.found / cannot find bucket ae-pydio`.  
Why ?  
NB: This bucket is clearly visible (along some others) in the list when I edit the storage

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [September 29, 2021, 6:33pm UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067/3 "2021-09-29T18:33:43Z")

</div>

Small ping since it’s a blocking issue to pursue my setup and I’ve no other hints and looked around both forum, web and sourcecode.

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [October 13, 2021, 11:05am UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067/4 "2021-10-13T11:05:50Z")

</div>

hi,  
Sorry for the delay.  
1 - To put things out of the way: testing with a user that would have full s3 access, does this work?  
2 - How do you set up the S3 datasource : by clicking on this specific bucket name or with a regexp ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [December 12, 2021, 11:06am UTC](https://forum.pydio.com/t/cannot-stat-root-cannot-list-ancestors-list-for/4067/5 "2021-12-12T11:06:12Z")

</div>

Closed on December 12, 2021, 11:06am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
