Skip to content

Error redirect to login page #343

@sufu777

Description

@sufu777

When using console after login, the expire time was suppose to be 12h, but about 1 min later, any request will redirect to login page.

Steps to reproduce the behavior:

  1. Go to console and login
  2. wait 2 minutes
  3. refresh page or new bucker or any other request to RustFs server
  4. the page is redirected to login Page

the expire time was suppose to be 12h, but redirected to login Page.

Image

Desktop (please complete the following information):

  • OS: windows
  • Browser: chrome
  • Version: latest version, master branch

I notice that when new IamCache, a new background_task was started since no RUSTFS_SKIP_BACKGROUND_TASK env variable was set. The backgroundtask load all iamconfig from internal bucket .rustfs.sys every 2minutes, then COVER the memory Cache like this:

cache.users.store(Arc::new(user_items_cache.update_load_time()));
cache.sts_accounts.store(Arc::new(sts_items_cache.update_load_time()));
cache.sts_policies.store(Arc::new(sts_policies_cache.update_load_time()));

when login with key, the sts_accounts was created and store in cache.sts_accounts(maybe should write to internal bucket .rustfs.sys), this background task cover it. Maybe write to internal bucket failed?

Metadata

Metadata

Assignees

Labels

S-reproducingStatus: Reproducing a bug reportbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions