Shut down the laptop FAILED message

Good day everyone!

After the update I have this weird message that appear extremely quick ( I can barely see it) But i think it’s saying
[FAILED] failed unmounting Temporary directory /tmp.

I have 0 clue of what this actually mean and wonder what it’s! I will try to shut down my laptop to actually be sure that is this message! Thanks everyone!

1 Like

A quick search on:

gives quite some hits on www. The top one is a [SOLVED] thread from Arch forum. Perhaps it could give some ideas for further investigation.

Click here for the search result

I did had a good search at it… None fixed it or explained to me why this appear

From the Arch Forum thread:

Some process is using tmp for writing, and it is not responding to systemd

Did you try what the OP in that thread did to see if there are some such processes in your system still using /tmp at shutdown?

to be honest with you is that part that I don’t understand:

Turns out that handling ssh-agent isn’t always straightforward! I run a script from a taskbar icon that checks to see if an agent is already running and then if not it starts a new one and asks for the passhrase - however starting a new konsole window usually gets a new agent PID so handling a shutdown needs some thought and careful coding to make it work (and to avoid duplicate agents and other problems!). However the scripts I use check for duplicTurns out that handling ssh-agent isn’t always straightforward! I run a script from a taskbar icon that checks to see if an agent is already running and then if not it starts a new one and asks for the passhrase - however starting a new konsole window usually gets a new agent PID so handling a shutdown needs some thought and careful coding to make it work (and to avoid duplicate agents and other problems!). However the scripts I use check for duplicate processes and kill any except the one originally started and share it. I will need to look at this carefully when I have a block of time.
Edit: I did a quick fiddle and found a simple solution that does seem to work:

$ cat ssh-agent-kill.sh
#!/bin/bash
#

# Place in .config/plasma-workspace/shutdown/ to terminate the agent at plasma shutdown

pkill ssh-agent

Does I put that script inside TMP folders?!?!

That might not be the solution in your case since it could be any other things in your case.

I would do what the OP in that thread did to find out what is using /tmp.

My apologies for the late reply,
I try to unmount the TMP but I get this error which I got no clue of what it is…

journalctl -xe
Oct 17 07:11:09 hsdredgun-20t6000cau sudo[5421]: hsdredgun : TTY=pts/0 ; PWD=/home/hsdredgun ; USER=root ; COMMAND=/usr/bin/systemctl stop tmp.mount
Oct 17 07:11:09 hsdredgun-20t6000cau audit[5421]: CRED_REFR pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct=“root” exe=“/usr/bin/su>
Oct 17 07:11:09 hsdredgun-20t6000cau audit[5421]: USER_START pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct=“root”>
Oct 17 07:11:09 hsdredgun-20t6000cau sudo[5421]: pam_unix(sudo:session): session opened for user root(uid=0) by hsdredgun(uid=1000)
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1100 audit(1665951069.887:135): pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_f>
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1101 audit(1665951069.887:136): pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct>
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1110 audit(1665951069.887:137): pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock>
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1105 audit(1665951069.887:138): pid=5421 uid=1000 auid=1000 ses=3 msg=‘op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam>
Oct 17 07:11:09 hsdredgun-20t6000cau systemd[1]: Unmounting Temporary Directory /tmp…
░░ Subject: A stop job for unit tmp.mount has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit tmp.mount has begun execution.
░░
░░ The job identifier is 2051.
Oct 17 07:11:09 hsdredgun-20t6000cau umount[5428]: umount: /tmp: target is busy.
Oct 17 07:11:09 hsdredgun-20t6000cau systemd[1]: tmp.mount: Mount process exited, code=exited, status=32/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An n/a= process belonging to unit tmp.mount has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 32.
Oct 17 07:11:09 hsdredgun-20t6000cau systemd[1]: Failed unmounting Temporary Directory /tmp.
░░ Subject: A stop job for unit tmp.mount has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit tmp.mount has finished.
░░
░░ The job identifier is 2051 and the job result is failed.
Oct 17 07:11:09 hsdredgun-20t6000cau sudo[5421]: pam_unix(sudo:session): session closed for user root
Oct 17 07:11:09 hsdredgun-20t6000cau audit[5421]: USER_END pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct=“root” >
Oct 17 07:11:09 hsdredgun-20t6000cau audit[5421]: CRED_DISP pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct=“root” exe=”/usr/bin/su>
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1106 audit(1665951069.951:139): pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pa>
Oct 17 07:11:09 hsdredgun-20t6000cau kernel: audit: type=1104 audit(1665951069.951:140): pid=5421 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock>
Oct 17 07:11:10 hsdredgun-20t6000cau NetworkManager[585]: [1665951070.8963] ipv6ll[77e129dcc20dd22b,ifindex=3]: changed: no IPv6 link local address to retry after Duplicate Address>
Oct 17 07:11:20 hsdredgun-20t6000cau NetworkManager[585]: [1665951080.8979] platform-linux: do-add-ip6-address[3: fe80::d217:1cc9:1beb:f11d]: failure 13 (Permission denied)
Oct 17 07:11:22 hsdredgun-20t6000cau NetworkManager[585]: [1665951082.9007] platform-linux: do-add-ip6-address[3: fe80::1105:d399:6b87:68a1]: failure 13 (Permission denied)

1 Like