Why is the
last command failing on my fresh install of Alpine 3.12?
$ last couldn't open file '/dev/null/wtmp': Not a directory wtmp begins Thu Jan 1 00:00
(on a Linode server if that matters)
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
That's a long known issue. Alpine uses libmusl instead of glibc. It seems that
musl does not use or even support
/dev/null/wtmp(and nothing appears to get written to
/var/log/wtmp); so I guess there might not be a way to fix this.
There is an open issue for it on the Alpine Linux page and apparently it is a milestone for the 3.14.0 release of Alpine Linux. Until than there is probably no workaround for this.