public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] SDDM tmp file goes missing?
@ 2024-01-05  1:49 Spackman, Chris
  2024-01-05  7:04 ` Arve Barsnes
  0 siblings, 1 reply; 6+ messages in thread
From: Spackman, Chris @ 2024-01-05  1:49 UTC (permalink / raw
  To: gentoo-user

Good evening,

I few times (like maybe 3 or 4) over the last 4 or 5 months or so, I've
woken up to a slightly broken X11 session. Nothing GUI has permission to
access, starting in a terminal gives this message:

> Authorization required, but no authorization protocol specified

I originally thought it was caused by an xscreensaver crash, but I've
not been using it, and still woke up to this problem this morning. I've
no idea the cause, and I'm sure everything was okay when I went to bed
last night.

The biggest hint came from rkhunter and anacron - rkhunter runs during
the night, and when this issue happens, I get an email that includes
something like:

> run-parts: /etc/cron.daily/rkhunter exited with return code 1                                            
> Opening file "/tmp/keepassxc-chris.socket" failed, ignoring: No such device or address                   
> Opening file "/tmp/sddm-:0-NpHoUj" failed, ignoring: No such device or address 

I've not checked keepassxc (running, in the system tray) after this, but
everything GUI (that I have tried) that was already running continues to
run okay, but nothing new can start. Not sure if SDDM is a cause or a
symptom, but /tmp/ should usually have something like this:

> chris:~$ ll /tmp/ | grep sddm
> srwxrwxrwx 1 sddm    sddm          0 Jan  4 06:56 dbus-blahblah
> srwx------ 1 sddm    sddm          0 Jan  4 06:56 sddm-:0-blahblah
> srwxr-xr-x 1 root    root          0 Dec 24 13:15 sddm-auth-blah-blah-blah

Best guess, this seems to happen after 10 days to 3 weeks of uptime, but
only recently. In the past, I've had as much as a month or so of uptime
(usually logged into Fluxbox on X11) without issues.

When this happens, I log out of Fluxbox, log back in, and all is well
again. 

I've not updated in the last few days, so that doesn't seem likely as a
cause for the most recent occurrence.

Any thoughts on possible causes or fixes?

Thanks.

-- 
Chris Spackman (he / him)

ESOL Coordinator, The Graham Family of Schools
ESL Educator, Columbus State Community College

Japan Exchange and Teaching Program (Wajima, Ishikawa 1995-1998)
Linux user since 1998
Linux User #137532


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] SDDM tmp file goes missing?
  2024-01-05  1:49 [gentoo-user] SDDM tmp file goes missing? Spackman, Chris
@ 2024-01-05  7:04 ` Arve Barsnes
  2024-01-05  9:57   ` Andreas Fink
  0 siblings, 1 reply; 6+ messages in thread
From: Arve Barsnes @ 2024-01-05  7:04 UTC (permalink / raw
  To: gentoo-user

On Fri, 5 Jan 2024 at 02:49, Spackman, Chris <chris@osugisakae.com> wrote:
> Any thoughts on possible causes or fixes?

I've also had this happen a few times over the last months, with error
mails about SDDM tmp files from cron. Just wanted to pipe in and say
that I don't have either rkhunter or keepassxc, so they must be
unrelated. Running on openbox.

I also have the 'unable to open new GUI apps' problem on a Plasma
machine now and then. I had not connected the two, but maybe the same
root cause.

Regards,
Arve


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] SDDM tmp file goes missing?
  2024-01-05  7:04 ` Arve Barsnes
@ 2024-01-05  9:57   ` Andreas Fink
  2024-01-05 10:46     ` Arve Barsnes
  2024-01-05 21:57     ` Spackman, Chris
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Fink @ 2024-01-05  9:57 UTC (permalink / raw
  To: gentoo-user

On Fri, 5 Jan 2024 08:04:49 +0100
Arve Barsnes <arve.barsnes@gmail.com> wrote:

> On Fri, 5 Jan 2024 at 02:49, Spackman, Chris <chris@osugisakae.com> wrote:
> > Any thoughts on possible causes or fixes?
>
> I've also had this happen a few times over the last months, with error
> mails about SDDM tmp files from cron. Just wanted to pipe in and say
> that I don't have either rkhunter or keepassxc, so they must be
> unrelated. Running on openbox.
>
> I also have the 'unable to open new GUI apps' problem on a Plasma
> machine now and then. I had not connected the two, but maybe the same
> root cause.
>
> Regards,
> Arve
>

It's the anacron job in /etc/cron.daily/systemd-tmpfiles-clean that
cleans files in the tmp folder.
There has also been a news item about the change on November 21st 2022.

You might have to adapt the files that should not be cleaned by the
automatic cleanup (or disable automatic cleanup).

Cheers
Andreas


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] SDDM tmp file goes missing?
  2024-01-05  9:57   ` Andreas Fink
@ 2024-01-05 10:46     ` Arve Barsnes
  2024-01-05 21:58       ` Spackman, Chris
  2024-01-05 21:57     ` Spackman, Chris
  1 sibling, 1 reply; 6+ messages in thread
From: Arve Barsnes @ 2024-01-05 10:46 UTC (permalink / raw
  To: gentoo-user

On Fri, 5 Jan 2024 at 10:57, Andreas Fink <finkandreas@web.de> wrote:
> It's the anacron job in /etc/cron.daily/systemd-tmpfiles-clean that
> cleans files in the tmp folder.
> There has also been a news item about the change on November 21st 2022.
>
> You might have to adapt the files that should not be cleaned by the
> automatic cleanup (or disable automatic cleanup).

Good shout. Upstream has created a fix, but it is not in a release (yet).

https://github.com/sddm/sddm/commit/b002d02bbe9281b8362fa549991b7581b7758668

I'll try that and see if my version of the problem appears again.

Cheers,
Arve


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] SDDM tmp file goes missing?
  2024-01-05  9:57   ` Andreas Fink
  2024-01-05 10:46     ` Arve Barsnes
@ 2024-01-05 21:57     ` Spackman, Chris
  1 sibling, 0 replies; 6+ messages in thread
From: Spackman, Chris @ 2024-01-05 21:57 UTC (permalink / raw
  To: gentoo-user

On 2024/01/05 at 10:57am, Andreas Fink wrote:
> On Fri, 5 Jan 2024 08:04:49 +0100
> Arve Barsnes <arve.barsnes@gmail.com> wrote:
> 
> > On Fri, 5 Jan 2024 at 02:49, Spackman, Chris <chris@osugisakae.com> wrote:
> > > Any thoughts on possible causes or fixes?
> >
> > I've also had this happen a few times over the last months, with error
> > mails about SDDM tmp files from cron. Just wanted to pipe in and say
> > that I don't have either rkhunter or keepassxc, so they must be
> > unrelated. Running on openbox.
> >
> > I also have the 'unable to open new GUI apps' problem on a Plasma
> > machine now and then. I had not connected the two, but maybe the same
> > root cause.
> >
> > Regards,
> > Arve
> >
> 
> It's the anacron job in /etc/cron.daily/systemd-tmpfiles-clean that
> cleans files in the tmp folder.
> There has also been a news item about the change on November 21st 2022.
> 
> You might have to adapt the files that should not be cleaned by the
> automatic cleanup (or disable automatic cleanup).

Thanks! That must be the issue. Applying the config files that Arve
suggested now.

-- 
Chris Spackman (he / him)

ESOL Coordinator, The Graham Family of Schools
ESL Educator, Columbus State Community College

Japan Exchange and Teaching Program (Wajima, Ishikawa 1995-1998)
Linux user since 1998
Linux User #137532


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] SDDM tmp file goes missing?
  2024-01-05 10:46     ` Arve Barsnes
@ 2024-01-05 21:58       ` Spackman, Chris
  0 siblings, 0 replies; 6+ messages in thread
From: Spackman, Chris @ 2024-01-05 21:58 UTC (permalink / raw
  To: gentoo-user

On 2024/01/05 at 11:46am, Arve Barsnes wrote:
> On Fri, 5 Jan 2024 at 10:57, Andreas Fink <finkandreas@web.de> wrote:
> > It's the anacron job in /etc/cron.daily/systemd-tmpfiles-clean that
> > cleans files in the tmp folder.
> > There has also been a news item about the change on November 21st 2022.
> >
> > You might have to adapt the files that should not be cleaned by the
> > automatic cleanup (or disable automatic cleanup).
> 
> Good shout. Upstream has created a fix, but it is not in a release (yet).
> 
> https://github.com/sddm/sddm/commit/b002d02bbe9281b8362fa549991b7581b7758668
> 
> I'll try that and see if my version of the problem appears again.

Thanks for finding that. I love patches that I can actually
understand. I've also applied the fix. 

-- 
Chris Spackman (he / him)

ESOL Coordinator, The Graham Family of Schools
ESL Educator, Columbus State Community College

Japan Exchange and Teaching Program (Wajima, Ishikawa 1995-1998)
Linux user since 1998
Linux User #137532


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-05 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05  1:49 [gentoo-user] SDDM tmp file goes missing? Spackman, Chris
2024-01-05  7:04 ` Arve Barsnes
2024-01-05  9:57   ` Andreas Fink
2024-01-05 10:46     ` Arve Barsnes
2024-01-05 21:58       ` Spackman, Chris
2024-01-05 21:57     ` Spackman, Chris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox