You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by guo-sj January 27, 2022
When I post a iam CreatePolicy request, I got the following error message:
$ aws --endpoint-url http://193.160.63.154:8111 iam create-policy --policy-name my-policy --policy-document file://my-policy.json
Error message from iam server:
E0127 18:49:50 27268 iamapi_management_handlers.go:413] CreatePolicy: filer: no entry is found in filer store
Then I found that the reason why the error occurred is that, when iam server gets a CreatePolicy request, the function GetPolicies() will be called to lookup file /etc/iam/policies.json in filer server; If not found policies.json, iam server will complain filer: no entry is found in filer store.
But after I uploaded a empty policies.json file to filer server, then send a iam CreatePolicy request again, I sadly got that the iam server was been killed with error message fatal error: runtime: out of memory.
weed/command/filer_cat.go: line 118:
If you upload an empty file /etc/iam/test and execute command ./weed filer.cat http:localhost:8888/etc/iam/test, then you will get no response in a very long time.
Discussed in #2622
Originally posted by guo-sj January 27, 2022
When I post a
iam CreatePolicy
request, I got the following error message:Error message from
iam server
:Then I found that the reason why the error occurred is that, when
iam server
gets aCreatePolicy
request, the functionGetPolicies()
will be called to lookup file/etc/iam/policies.json
in filer server; If not foundpolicies.json
,iam server
will complainfiler: no entry is found in filer store
.But after I uploaded a empty
policies.json
file to filer server, then send aiam CreatePolicy
request again, I sadly got that theiam server
was been killed with error messagefatal error: runtime: out of memory
.Complete logs of iam server:
Is that a bug? Or I did something incorrect?
I'm confused about this problem, and any help will be appreciated.
The text was updated successfully, but these errors were encountered: