Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903543 - mail-client/evolution does not start, gives "Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied"
Summary: mail-client/evolution does not start, gives "Failed to connect to socket /roo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 14:46 UTC by Mark-Joe
Modified: 2024-07-24 16:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark-Joe 2023-03-29 14:46:12 UTC
When attempting to start evolution (version mail-client/evolution-3.46.3-r1),
the mail client attempts to start and then quits with the message:

evolution:3204): dbind-WARNING **: 13:38:20.811: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
(evolution-alarm-notify:3211): dbind-WARNING **: 13:38:21.024: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
bwrap: Can't find source path /root/.cache/at-spi: Permission denied

When setting /root and /root/.cache/at-spi to a=xwr (which I obviously don't want to for long), then evolution starts.  

The behavior appears in kernel 4.19.277-gentoo and 6.1.19-gentoo
Comment 1 Mike Gilbert gentoo-dev 2023-03-29 20:29:35 UTC
Are you attempting to run evolution as root?
Comment 2 Mark-Joe 2023-03-29 20:54:23 UTC
No, I run evolution as a standard user, not as root. I tried it also with another user account, same thing. I have no idea why evolution wants to store data under /root/.cache/at-spi
Comment 3 Mike Gilbert gentoo-dev 2023-03-29 21:00:44 UTC
Is XDG_CACHE_HOME set in the environment?
Comment 4 Mark-Joe 2023-03-29 21:10:17 UTC
 XDG_CACHE_HOME has not been set. It also isn't in my older gentoo machines where evolution is running. 
 I tried to set XDG_CACHE_HOME to /home/username/.cache but it did not help
either.
Comment 5 Sviatoslav @webknjaz Sydorenko #StandWithUkraine 2024-07-24 15:13:50 UTC
I want to share that I'm seeing the same error with `inkscape`:

```
$ inkscape --export-background-opacity=0 --export-width=2999 --export-type=png --export-filename=aiohttp-old-logo.png old-logo.svg

(inkscape:1276735): dbind-WARNING **: 17:00:35.277: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
```

It does not crash, doing its job successfully (image conversion). But I think I've seen similar messages from other programs.

I'm not running it as root, and it's not clear where the root home dir is coming from and the obvious vars are empty:
```
$ echo $HOME
/home/<username>
$ echo $XDG_CACHE_HOME

$ echo $AT_SPI_BUS_ADDRESS

$ env | grep /root
$ gdbus call --session --dest org.a11y.Bus --object-path /org/a11y/bus --method org.a11y.Bus.GetAddress
('unix:path=/run/user/1000/at-spi/bus_0,guid=d19ee2620e74667254a461ae66a117ca',)
```

This suggests that the problem might be that either some apps invoke `sudo` internally (though, why would they?) or perhaps the problem is somewhere on the gtk/dbus level.. I'm not really familiar with these, so it's just a speculation that keeps me puzzled.
Comment 6 Sviatoslav @webknjaz Sydorenko #StandWithUkraine 2024-07-24 15:19:20 UTC
Interestingly, sticking `strace` in front of the command doesn't output that warning and makes it access the proper socket path:
```
connect(9, {sa_family=AF_UNIX, sun_path="/run/user/1000/at-spi/bus_0"}, 29) = 0
```
Comment 7 Sviatoslav @webknjaz Sydorenko #StandWithUkraine 2024-07-24 15:23:01 UTC
Weird… Now, running the same command without `strace` in the same terminal session does not emit said warning. Without any changes whatsoever. So it might be happening unpredictably, then.