GithubHelp home page GithubHelp logo

Unable to read cache information: ("Connection broken: PermissionError(13, 'Permission denied')", PermissionError(13, 'Permission denied')) about informant HOT 6 CLOSED

bradford-smith94 avatar bradford-smith94 commented on June 2, 2024
Unable to read cache information: ("Connection broken: PermissionError(13, 'Permission denied')", PermissionError(13, 'Permission denied'))

from informant.

Comments (6)

bradford-smith94 avatar bradford-smith94 commented on June 2, 2024 2

New update should take care of the issue, but you might need to run informant --clear-cache check to clear out the permission error.

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 2, 2024 1

The file correctly has the informant group, just wrong permissions...

I'll try to see if there's a CacheControl option for that, if not hopefully setting the correct umask in python before CacheControl runs will do the trick.

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 2, 2024

It seems like the news feed itself might be having issues? Maybe with command line clients only? The web page seemed to load, but trying to curl the feed gave me a "too many requests" error.

from informant.

bradford-smith94 avatar bradford-smith94 commented on June 2, 2024

I found it, there's a new redirect from https://archlinux.org/feeds/news to https://archlinux.org/feeds/news/ (notice trailing slash).

I'll have an update together to fix this a little later.

from informant.

R8s6 avatar R8s6 commented on June 2, 2024

Awesome, thank you so much!

from informant.

Nickwiz avatar Nickwiz commented on June 2, 2024

New update should take care of the issue, but you might need to run informant --clear-cache check to clear out the permission error.

My scenario: Installed informant and added myself to the informant group – as per post-install message; but as I dread rebooting I used it with root some times before system reload. The result was that I had a lock file in /var/cache/informant/... that only had read permissions by informant after reboot. Resulting in (as shown by strace - only mentioning as that was how I found the culprit):

openat(AT_FDCWD, "/var/cache/informant/6/c/0/1/e/012fbc....lock", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = -1 EACCES (Permission denied)
ERROR: Unable to read cache information: ("Connection broken: PermissionError(13, 'Permission denied')", PermissionError(13, 'Permission denied'))

or by ls -la /var/cache/informant/6/c/0/1/e/:

-rw-r--r-- 1 root informant 0 Oct  2 15:09 012abc....lock

Tested a sudo informant read after boot and then I get:

-rw-rw-r-- 1 root informant 20K Oct  6 11:13 0123abc...
-rw-r--r-- 1 me informant   0 Oct  6 11:13 0123abc....lock

Not sure; but one could perhaps tweak the permission hierarchy or give a message saying one need to do a clearing of cache on reboot if used with root (yes, that is wonky to explain). Or perhaps a note in the manual on --clear-cache ... not sure .... as one can clear the cache as the directory itself has proper rights for informant.

from informant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.