Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1261026 > unrolled thread

Bug#1114860: systemd: Confusing error message about missing "/etc/machine-id" upon setup

Started byLuca Boccassi <bluca@debian.org>
First post2025-09-11 22:30 +0200
Last post2025-09-12 13:10 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1114860: systemd: Confusing error message about missing "/etc/machine-id" upon setup Luca Boccassi <bluca@debian.org> - 2025-09-11 22:30 +0200
    Bug#1114860: systemd: Confusing error message about missing "/etc/machine-id" upon setup Luca Boccassi <bluca@debian.org> - 2025-09-12 13:10 +0200

#1261026 — Bug#1114860: systemd: Confusing error message about missing "/etc/machine-id" upon setup

FromLuca Boccassi <bluca@debian.org>
Date2025-09-11 22:30 +0200
SubjectBug#1114860: systemd: Confusing error message about missing "/etc/machine-id" upon setup
Message-ID<LtW5z-eB3k-3@gated-at.bofh.it>
Control: tags -1 wontfix
Control: close -1

On Wed, 10 Sep 2025 22:38:50 +0200 Hilmar Preusse <hille42@web.de>
wrote:
> Package: systemd
> Version: 258~rc4-1
> Severity: minor
> 
> Dear Maintainer,
> 
> recently I noticed that setting up systemd failed to setup in one of
my
> chroots. The error message was:
> 
> <snip>
> root@rasppi3:~# apt build-dep texlive-bin
> Summary:
>   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
>   4 not fully installed or removed.
>   Space needed: 0 B / 58.3 GB available
> 
> Continue? [Y/n] y
> Error: Can not write log (Is /dev/pts mounted?) - posix_openpt (19:
No such device)
> Setting up systemd (258~rc4-1) ...
> Cannot open '/etc/machine-id' in neither writable nor read-only mode:
Function not implemented
> dpkg: error processing package systemd (--configure):
>  installed systemd package post-installation script subprocess
returned error exit status 1
> Errors were encountered while processing:
>  systemd
> Error: Sub-process /usr/libexec/apt-eatmydata/dpkg returned an error
code (1)
> Error: Failed to process build dependencies
> <snip>
> 
> The root cause turned out to be a not mounted /proc filesystem, the
setup
> worked fine after it was mounted. However I found that error message
quite
> confusing: the file /etc/machine-id is there and is readable.

It's accurate, but not helpful, as the file can't be read as file
descriptors can't be used without procfs. This is not a supported
setup, sadly procfs is a hard runtime requirement.

[toc] | [next] | [standalone]


#1261096

FromLuca Boccassi <bluca@debian.org>
Date2025-09-12 13:10 +0200
Message-ID<Lu9Pb-eKBC-11@gated-at.bofh.it>
In reply to#1261026
On Fri, 12 Sep 2025 09:09:32 +0800 Josh Triplett
<josh@joshtriplett.org> wrote:
> On Thu, 11 Sep 2025 21:23:00 +0100 Luca Boccassi <bluca@debian.org>
wrote:
> > On Wed, 10 Sep 2025 22:38:50 +0200 Hilmar Preusse <hille42@web.de>
> > wrote:
> > > recently I noticed that setting up systemd failed to setup in one
of
> > my
> > > chroots. The error message was:
> > > 
> > > <snip>
> > > root@rasppi3:~# apt build-dep texlive-bin
> > > Summary:
> > >   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 
0
> > >   4 not fully installed or removed.
> > >   Space needed: 0 B / 58.3 GB available
> > > 
> > > Continue? [Y/n] y
> > > Error: Can not write log (Is /dev/pts mounted?) - posix_openpt
(19:
> > No such device)
> > > Setting up systemd (258~rc4-1) ...
> > > Cannot open '/etc/machine-id' in neither writable nor read-only
mode:
> > Function not implemented
> > > dpkg: error processing package systemd (--configure):
> > >  installed systemd package post-installation script subprocess
> > returned error exit status 1
> > > Errors were encountered while processing:
> > >  systemd
> > > Error: Sub-process /usr/libexec/apt-eatmydata/dpkg returned an
error
> > code (1)
> > > Error: Failed to process build dependencies
> > > <snip>
> > > 
> > > The root cause turned out to be a not mounted /proc filesystem,
the
> > setup
> > > worked fine after it was mounted. However I found that error
message
> > quite
> > > confusing: the file /etc/machine-id is there and is readable.
> > 
> > It's accurate, but not helpful, as the file can't be read as file
> > descriptors can't be used without procfs. This is not a supported
> > setup, sadly procfs is a hard runtime requirement.
> 
> Nobody is claiming that this should work without procfs mounted. The
bug
> report here is about a confusing error message. It would be helpful
if
> something in this error message mentioned /proc and led the user to
> realize it wasn't mounted.

Not really possible unfortunately. At debug level that would be
visible, but because of intentional design decisions only the lowest
level in the stack logs at >= info, but the real issue is in the top
layers, where only debug is allowed. The lowest level of the call stack
only knows that some operation failed and the errno-equivalent, it
doesn't know why it failed. So here the operation is trying to open
that file, and it can't, so it tells you that and the errno that
percolated down the call stack.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web