error 13

23 views
Skip to first unread message

Nico

unread,
Jul 20, 2023, 9:34:50 PM7/20/23
to newsboat
Hi,

I am getting this error.  I definitely have urls in the file.  Seems to be a permission error.  Does anyone know how to fix it?

Thanks.

Opening cache...done.
Loading URLs from /home/ena/snap/newsboat/6828/.newsboat/urls...Failed to open file: Permission denied (os error 13)

Error: no URLs configured. Please fill the file /home/ena/snap/newsboat/6828/.newsboat/urls with RSS feed URLs or import an OPML file.

Saku Laesvuori

unread,
Jul 21, 2023, 3:08:49 AM7/21/23
to Nico, newsboat
> I am getting this error. I definitely have urls in the file. Seems to be
> a permission error. Does anyone know how to fix it?
>
> Opening cache...done.
> Loading URLs from /home/ena/snap/newsboat/6828/.newsboat/urls...Failed to
> open file: Permission denied (os error 13)
>
> Error: no URLs configured. Please fill the file
> /home/ena/snap/newsboat/6828/.newsboat/urls with RSS feed URLs or import an
> OPML file.

Looks like the os user running newsboat doesn't have read permissions to
the urls file (or a directory in it's path). Normally you would fix that
with `chmod` and `chown`, but I'm not sure if snap does something funny
there (I assume you are using snap because the file is in a snap
directory).
signature.asc

Nico

unread,
Jul 21, 2023, 3:36:45 PM7/21/23
to newsboat
Yes, got it from the snap store.  I verified the permissions are read and write for this user.

Saku Laesvuori

unread,
Jul 21, 2023, 4:42:57 PM7/21/23
to Nico, newsboat
> Yes, got it from the snap store. I verified the permissions are read and
> write for this user.

Does the user also have execution permissions on the parent directories?

If that doesn't help, then the only idea I have left is that it's some
sort of a problem with snap sandboxing. I don't know anything about
troubleshooting snaps, so I can't help there. Maybe you could try
installing newsboat from a traditional package?
signature.asc

Dennis van der Schagt

unread,
Jul 23, 2023, 8:11:06 AM7/23/23
to newsboat
Hi Nico,

I think I have seen a similar issue before where a Newsboat user ran into permission issues because of a symlink which pointed outside of the directories allowed by Snap.
Could you check if your urls file is a regular file, or if it is a symlink to outside `/home/ena/snap/newsboat/6828/`? (e.g. using `ls -l /home/ena/snap/newsboat/6828/.newsboat/urls` or `readlink -f /home/ena/snap/newsboat/6828/.newsboat/urls`)

Nico

unread,
Aug 11, 2023, 10:58:48 AM8/11/23
to newsboat
Hi Dennis and Saku,

Thanks for your help.  I got it to work.  I installed with the command "sudo apt install newsboat" but still had the same issue.  Had to delete the urls file and recreate then it was no longer locked.

Thanks.
Reply all
Reply to author
Forward
0 new messages