[tech] Eggman losing /mp3s
David Adam
zanchey at ucc.gu.uwa.edu.au
Tue Apr 9 16:56:17 AWST 2019
On Tue, 9 Apr 2019, jimbo wrote:
> When I arrived at UCC today, Grace metioned to me that eggman was no
> longer displaying any music to play in the web interface.
>
> I logged in and discovered that /mp3s was unmounted. This unfortunately
> means that after remounting, mpd has to do a database update which is
> quite slow.
>
> Has anyone rebooted eggman recently?
Looks like it got rebooted recently:
# uptime --since
2019-04-05 19:14:42
# last -x
root pts/0 motsugo.ucc.gu.u Tue Apr 9 16:23 still logged in
runlevel (to lvl 5) 3.18.0-trunk-rpi Fri Apr 5 19:14 - 16:27 (3+21:12)
reboot system boot 3.18.0-trunk-rpi Thu Jan 1 08:00 - 16:27 (17995+08:27
shutdown system down 3.18.0-trunk-rpi Fri Apr 5 19:14 - 08:00 (-17991+-11:
root pts/0 motsugo.ucc.gu.u Fri Apr 5 18:10 - down (01:03)
(edited for brevity)
>From /var/log/auth.log:
Apr 5 18:10:23 eggman sshd[592]: Accepted publickey for root from
130.95.13.7 port 48916 ssh2: ED25519 <REDACTED>
Finding the key from the fingerprint is a bit of a pain (though
StackOverflow is helpful <https://unix.stackexchange.com/questions/2116/>)
but anyway, [FVP] is the person you want to ask.
--
I suppose the real question is "why doesn't /mp3s mount on boot", and I
*think* the answer is that none of the systemd "wait" services is enabled
<https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#cutthecraphowdoimakesurethatmyservicestartsafterthenetworkisreallyonline>
I've turned on systemd-networkd-wait-online.service with
# systemctl enable systemd-networkd-wait-online.service
# systemctl start systemd-networkd-wait-online.service
So hopefully that should do the job.
[DAA]
zanchey@
More information about the tech
mailing list