question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to save read information in informant.dat

See original GitHub issue

On running informant read 0 on first use it returns the following error: ERROR: Unable to save read information, please re-run with correct permissions to access "/var/cache/informant.dat".

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
bradford-smith94commented, Jan 16, 2020

As of the latest AUR version 0.1.0-2 you should be able to add your user to the “informant” group in order to avoid using sudo.

2reactions
bradford-smith94commented, Jun 12, 2020

The reason I recommend the informant group instead of changing the default save location is because of the pacman hook functionality.

When the pacman runs the hook the script (unless I’m mistaken) will be executing as root (or at least as euid 0). It didn’t seem appropriate to me for a system utility to have it’s save data in a user directory.

Other than modifying the script after it’s installed to hard code the user folder I didn’t see a clean way to determine the user’s home directory (as the hook would evaluate ~/.cache/ to /root/.cache/ not the user’s home directory). Then when run standalone by the user informant would have a separate save data from when it’s run as a pacman hook, which in turn could cause pacman to prompt a user to re-read some news items.

It’s a bit weird trying to figure out the default behavior of something like this, as it can run as a system utility (pacman hook) or standalone by a user. Should multi-user systems be considered? Are all users that would use informant expected to have privileges to run pacman to update the system? Currently using the informant group I’m assuming that any user that will run informant standalone understands they will modify the system state and thus effect the behavior of the pacman hook, if users don’t want to modify the system state informant -f <file> should be used instead.

If anyone has better recommendations for default behaviors, or finds I’m incorrect about something I’m open to changing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Calendar Usage Limits — Pocket Informant Help Center
Unable to save event. This means you have reached the limit for the number of events you can edit. There was a problem...
Read more >
Winmail Viewer - Open dat file on the Mac App Store - Apple
This is a very simple yet useful tool to batch open and read windmail files, it works very smoothly, what's more, I can...
Read more >
Pepe - Informant - YouTube
Music video by Pepe performing Informant. (C) 2016 Eigen Makelij exclusively licensed to Sony Music Entertainment Belgium ...
Read more >
Folder FAQs for Scripted Data Cleanup - ITPro Today
Keep in mind that the code snippets and script in this article can ... The Rmdir command lets you delete empty folders, but...
Read more >
How We Diagnose Dementia: The Practical Basics to Know
I also try to get information from family members about any of the eight ... I have also occasionally documented that a patient...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found