ublue-os / toolboxes

Centralized repository of containers designed for Toolbox/Distrobox
Apache License 2.0
42 stars 10 forks source link

bluefin-cli container returns `zsh: permission denied: /var/spool/mail/$USER` randomly #108

Open johnrellim opened 2 weeks ago

johnrellim commented 2 weeks ago

Describe the bug

When using the bluefin-cli container, it will randomly return zsh: permission denied: /var/spool/mail/$USER (username replaced with variable by me) in addition to whatever command was executed.

What did you expect to happen?

The command to be executed without extra output.

Output of rpm-ostree status

State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:873c7cbda1b9fd92f502dc621bfbe806bb56b4c6a7bd54400a23fd4b01d0cba1
                  Version: 40.20240611.0 (2024-06-11T20:27:57Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:a6603d0a788b9735a14c86896dd9a3ddc389a7c82ba4372bd02dc9c46ee7f14d
                  Version: 40.20240605.0 (2024-06-05T19:49:09Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:70341ff0c83bfbfda1e1fd87ef0a1ab97f39647c5ff77087dc79faa47f520824
                  Version: 40.20240423.0 (2024-04-23T16:59:16Z)
                   Pinned: yes
zsh: permission denied: /var/spool/mail/jrellim

Output of groups

jrellim nobody nobody nobody nobody nobody

Extra information or context

This only happens in the bluefin-cli container. The host, ubuntu, and fedora containers all operate as expected.

The specific command does not matter, I've had it return this on everything from cd to ls to the rpm-ostree status command located in this issue.

<bluefin> # whoami
jrellim
zsh: permission denied: /var/spool/mail/jrellim

This has lasted throughout multiple container updates, OS updates, and re-downloading of the bluefin-cli container. It seems to happen at regular intervals, almost like something is attempting to access that location in the background. I don't have any mail programs installed, or anything I am aware of that would want to access that location.

m2Giles commented 2 weeks ago

Check what is being sourced by your zsh startup files.

This looks like an issue with a module trying to show if you have any mail in your prompt.

Zsh is definitely the shell (that we ship) that we have the least amount of coverage on right now.