keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.89k stars 1.23k forks source link

Why does Keybase client download user avatars to my local filesystem? #17989

Open sbsomuncuoglu opened 5 years ago

sbsomuncuoglu commented 5 years ago

I've just noticed that there is a folder called avatars under ~/.cache/keybase (on Ubuntu 18.04) which is currently 265 MB and has avatars of 4,623 users. Is there any reason for doing it this way?

Keybase version is 3.2.2-20190412141809+5262f90fd9

edmundlaugasson commented 5 years ago

Same problem and question here... Using 64-bit Keybase Debian package.

$ keybase version
Client:  4.1.0-20190612201656+952fee6c59
Service: 4.1.0-20190612201656+952fee6c59

$ ls -l ~/.cache/keybase/avatars/ | wc -l
2223

$ du -sh ~/.cache/keybase/avatars/
149M

When using ncdu (there are also precompiled binary for x86 and ARM available), it shows quite nicely used storage - also enormously large log files - can we configure log level (e.g. critical errors only, it means minimal or even turn it off) - would expect to configure it through GUI as well but certainly in CLI.

$ ncdu --color dark ~/.cache/keybase

~/.cache/keybase -----------------------------------------------------------------------
  148.2 MiB [##########] /avatars
  128.0 MiB [########  ]  keybase.service.log-20190618T140601+0300-20190618T221948+0300
  128.0 MiB [########  ]  keybase.service.log-20190618T221948+0300-20190619T105606+0300
   99.0 MiB [######    ]  keybase.service.log
   18.7 MiB [#         ] /attachments
   17.0 MiB [#         ]  keybase.kbfs.log
    4.8 MiB [          ]  Keybase.app.log.1
  696.0 KiB [          ]  Keybase.app.log
   64.0 KiB [          ] /uploadedpreviews
   64.0 KiB [          ] /uploadedfulls
    4.0 KiB [          ] /pendingpreviews
    4.0 KiB [          ]  keybase.ek.log
    4.0 KiB [          ]  keybase.app.serverConfig