-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
df (and other commands) fail on /root/.cache/doc #512
Comments
Don't log in as root, I'd say. If you are using the root account for a normal user session, you'll get typical session components running. I don't think that is surprising, or a bug. |
@matthiasclasen This bug is not about running something as root, just example given in first post is misleading. This issue should be reopened or new created IMHO. The problem occurs with |
@matthiasclasen I just ran into this issue on my Fedora 32 box. I don't use root as a normal user session, so I have no idea why this exists. |
@rocketraman This problem is not related to be using root account at all. That's just confusing example in original issue. |
@TomaszGasior Thanks. I can't pretend to understand what is happening here, as I know very little about flatpak (and to my knowledge, have never used it) but some more information. Like the OP, I get the error on
Doing a
|
Given that information above that the xdg-document-portal process that is causing the issue belongs to a user session, not a root session, should this issue be re-opened @matthiasclasen ? |
Ubuntu 20.10 upgrades / installs are now seeing this with the flatpak package. |
Just a random user here, and I can confirm. I got this error when I tried running my script which uses |
This seems to be low-level, to do with xdg-desktop-portal (ex xdg-document-portal), in particular "portal" mounts, and possibly to do with the display-manager running things as wrong user(?), or a zombie dbus-session that should never have been run - perhaps launched unnecessarily by a tty-login as root(?) - see below. I encountered this because I started receiving the following daily email from anacron on my Debian system:
The "checksecurity" package (in particular the check-diskfree plugin) is configured by default to test for & alert if >70% usage on any mounted disks, as follows:
When I run From what I briefly read it seems there are three problems (or at least two problems, and one non-obvious "non-problem"). The first is when In my output of
and output of
FYI: I am very careful to never run any graphical desktop environments or window-managers as root though, and only very rarely run a graphical app as root (mapping DESKTOP= to my user's desktop) when necessary for obscure things like packet-inspection when there isn't time to mess around with tweaking posix capabilities the "right way" (or if I need to compare/edit root-owned config-files with I guess other users on this thread might see similar outputs to the above for other users in addition to/instead of root(?). I just found the following messages in a thread where Fedora users are in the same position as me:
...and regarding the --user systemd services listed in that second email, I don't even have any of them on my system (now). I remember I pruned a lot of stuff during my big update, and there is a chance that something I pruned had previously caused flatpak to be autoinstalled, and it was consequently uninstalled by pruning that. I ran
So my personal solution is simple - to just kill those processes which are no longer even present or needed on my system. Note that I had to run |
This comment describes that the error for
|
This was affecting my Fedora Server box, that I use as a server and not as a destop. Not sure why xdg-desktop-portal comes with it. Therefore, even monitoring of partitions was seeing this error. |
I would guess that the document portal fuse implementation doesn't implement some operation that df needs, or doesn't implement it in the right way. I think that is very common with fuse implementations... |
The document portal is a fuse mount, so it is denied access to by any uid other than the owning uid, including root. So, I expect the regular However, if The main issue though is that people seem to be getting an xdg-document-portal running as root, which isn't right. The document portal is automatically started by dbus when something tries to talk to it. The primary user of this is |
Also, people seem to be getting full gnome dbus sessions, including daemons like gvfs, dconf and gnome-keyring, so this isn't really purely a portal issue. |
I can confirm this is right:
I note that all of these running as root were started on Nov12th.
|
Please reopen this issue. |
Just to note, a huge number of other fuse file systems don't show: I have mounted:
but:
Looking at some of them, they do implement statfs, and return 0 for all things.
Heck This is the only FUSE filesystem using fusermount. So maybe that's the issue? |
Issue remains (debian unstable). I removed your software as a consequence of thus bug. |
See the comments above: this had been reported and fixed via a gnulib commit (see the comments above), so once the fixed version of |
I can confirm this is no longer an issue on Fedora 35. |
while the issue has been worked around in |
This is still an issue on Linux Mint 20.3 ... from a fresh install on a VM https://imgur.com/a/KcjsIPc |
Ubuntu-based LTS-es tend to offer outdated software. When reporting the issue to upstream developers, to reproduce the issue it's better to use distros like Fedora or at least non-LTS Ubuntu. On my up-to-date Fedora 35 I am not able to reproduce the issue with |
The correct place to fix a FUSE filesystem failing to implement a system call is that fuse filesystem, not every binary that tries to stat filesystems as part of their job. Every other fuse filesystem has no problem with this. sshfs?
But to somehow consider stat() of my own filesystem an error and return EPERM breaking every single piece of user space code out there, is... a bit poor:
|
This is still an issue in elementary OS 6.1 Jólnir Although im not sure why, This cause firefox to repeatedly crash and freeze the system on saving downloaded file. By default firefox tries to download all file to The issue was fixed by running |
This commit addresses the issue documented in flatpak/xdg-desktop-portal#512 by using `df -x fuse.portal` as opposed to just `df`. Fix sourced from: https://www.mail-archive.com/desktop-packages%40lists.launchpad.net/msg651194.html This appears to have come about because of an issue introduced when upgrading to Linux Mint 20.3. Signed-off-by: AKP <tom@tdpain.net>
… permission to see Really, a workaround for: flatpak/xdg-desktop-portal#512
df fails on /root/.cache/doc. Various system automation scripts break down as the result (scripts relying on df returning code 0).
Commands to pinpoint the issue
Software versions
The same issue has been reported in Ubuntu 20.04 -
df
command throws error on /run/user/1000/doc ...The text was updated successfully, but these errors were encountered: