<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 13, 2017 at 11:58 PM Reindl Harald <<a href="mailto:h.reindl@thelounge.net">h.reindl@thelounge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Am 13.07.2017 um 23:40 schrieb arnaud gaboury:<br>
> (no HTML crapps)<br>
<br>
still HTML and no meaningful quoting to distinct your "i respond to<br>
myself" answer with your initial post - no idea what you expect by<br>
sending a bunch of mails with the same content within a few hours nor<br>
why you think it's a good idea to upgrade to F26 a dy after release if<br>
the system is important and you have no testing environment<br></blockquote><div><br></div><div>I have been dealing for a while and worked hard on this issue. I don't need your sarcasm neither your advise on going or not Fedora 26. but best a few hints on how to solve my issues. <br></div><div><br></div><div>Your answer is worthless.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
additionally this is the upstzream mailing list and not the Fedora<br>
users-list nur the Fedora bugtracker - here you go:<br>
<a href="https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora</a><br>
<br>
> OS= Fedora 26<br>
> Linux container managed by machinectl<br>
><br>
> % systemctl --version<br>
> systemd 233<br>
> +PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP<br>
> +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS<br>
> +KMOD +IDN default-hierarchy=hybrid<br>
><br>
> % machinectl list<br>
> MACHINE CLASS SERVICE OS VERSION ADDRESSES<br>
> poppy container systemd-nspawn fedora 26 192.168.1.94...<br>
><br>
> % machinectl show poppy<br>
> Name=poppy<br>
> Id=59b720b533834a4eafe07a62c2482266<br>
> Timestamp=Wed 2017-07-12 22:07:15 CEST<br>
> TimestampMonotonic=6928076<br>
> Service=systemd-nspawn<br>
> Unit=systemd-nspawn@poppy.service<br>
> Leader=648<br>
> Class=container<br>
> RootDirectory=/var/lib/machines/poppy<br>
> State=running<br>
><br>
><br>
> -----------------------------------------------------------------------------------------------------<br>
><br>
> After upgrade from Fedora 25 to 26, some services are broken.<br>
> Below are some broken service status<br>
><br>
><br>
> % systemctl status user@1000.service<br>
> ● user@1000.service - User Manager for UID 1000<br>
> Loaded: loaded (/usr/lib/systemd/system/user@.service; static;<br>
> vendor preset: disabled)<br>
> Active: failed (Result: protocol) since Wed 2017-07-12 22:09:45<br>
> CEST; 15h ago<br>
> Main PID: 257 (code=exited, status=237/KEYRING)<br>
><br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[1]: Starting User Manager for UID 1000...<br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[257]: user@1000.service: Failed at step KEYRING spawning<br>
> /usr/lib/systemd/systemd: Permission denied<br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[1]: Failed to start User Manager for UID 1000.<br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[1]: user@1000.service: Unit entered failed state.<br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[1]: user@1000.service: Failed with result 'protocol'.<br>
><br>
><br>
> % systemctl status user.slice<br>
> ● user.slice - User and Session Slice<br>
> Loaded: loaded (/usr/lib/systemd/system/user.slice; static; vendor<br>
> preset: disabled)<br>
> Active: active since Wed 2017-07-12 22:07:15 CEST; 15h ago<br>
> Docs: man:systemd.special(7)<br>
> CGroup: /user.slice<br>
> └─user-1000.slice<br>
> ├─session-c1.scope<br>
> │ ├─ 256 login -- poisonivy<br>
> │ ├─ 258 -zsh<br>
> │ ├─ 356 su<br>
> │ ├─ 357 zsh<br>
> │ ├─1553 systemctl status user.slice<br>
> │ └─1554 less<br>
> └─session-c2.scope<br>
> ├─449 login -- poisonivy<br>
> ├─450 -zsh<br>
> ├─494 su<br>
> ├─495 zsh<br>
> └─526 /usr/bin/python3 -O /usr/bin/ranger<br>
><br>
> Jul 12 22:09:45 <a href="http://thetradinghall.com" rel="noreferrer" target="_blank">thetradinghall.com</a> <<a href="http://thetradinghall.com" rel="noreferrer" target="_blank">http://thetradinghall.com</a>><br>
> systemd[1]: user.slice: Failed to set invocation ID on control group<br>
> /user.slice, ignoring: Operation not permitted<br>
><br>
> % systemctl status opendkim.service<br>
> ● opendkim.service - DomainKeys Identified Mail (DKIM) Milter<br>
> Loaded: loaded (/usr/lib/systemd/system/opendkim.service; enabled;<br>
> vendor preset: disabled)<br>
> Drop-In: /etc/systemd/system/opendkim.service.d<br>
> └─override.conf<br>
> Active: failed (Result: exit-code) since Thu 2017-07-13 11:33:25<br>
> CEST; 2h 30min ago<br>
> Docs: man:opendkim(8)<br>
> man:opendkim.conf(5)<br>
> man:opendkim-genkey(8)<br>
> man:opendkim-genzone(8)<br>
><br>
><br>
> Jul 13 11:33:25 thetradinghall systemd[1]: Starting DomainKeys<br>
> Identified Mail (DKIM) Milter...<br>
> Jul 13 11:33:25 thetradinghall systemd[1243]: opendkim.service: Failed<br>
> at step KEYRING spawning /usr/sbin/opendkim: Permission denied<br>
><br>
> *N.B:* I can manually start opendkim as root<br>
><br>
><br>
> I have no ideas why these new issues. The only hint is the following<br>
> one. Hope below command outputs may help:<br>
><br>
> ------------------------------------------------------<br>
><br>
> # /usr/lib/systemd/systemd --user<br>
> Failed to create compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: Permission denied<br>
> Failed to attach 338 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: No such file or<br>
> directory<br>
> Failed to attach 247 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: No such file or<br>
> directory<br>
> Failed to attach 249 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: No such file or<br>
> directory<br>
> Failed to attach 305 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: No such file or<br>
> directory<br>
> Failed to attach 306 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/init.scope: No such file or<br>
> directory<br>
> Failed to create compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/dbus.socket: Permission denied<br>
> Failed to attach 342 to compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/dbus.socket: No such file<br>
> or directory<br>
> Failed to create compat systemd cgroup<br>
> /user.slice/user-1000.slice/session-c1.scope/sys-class.mount: Permission<br>
> denied<br>
><br>
> ---------------------------------------------------<br>
><br>
> # ls -al /sys/fs/cgroup/<br>
> total 0<br>
> drwxr-xr-x 13 root root 340 Jul 13 22:52 ./<br>
> drwxr-xr-x 4 root root 80 Jul 13 22:52 ../<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 blkio/<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 cpu,cpuacct/<br>
> dr-xr-xr-x 2 nobody nobody 0 Jul 12 22:07 cpuset/<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 devices/<br>
> dr-xr-xr-x 2 nobody nobody 0 Jul 12 22:07 freezer/<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 memory/<br>
> dr-xr-xr-x 2 nobody nobody 0 Jul 12 22:07 net_cls,net_prio/<br>
> dr-xr-xr-x 2 nobody nobody 0 Jul 12 22:07 perf_event/<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 pids/<br>
> drwxr-xr-x 2 nobody nobody 0 Jul 13 22:52 systemd/<br>
> *<br>
> *<br>
> # chown root:root /sys/fs/cgroup/blkio<br>
> chown: changing ownership of '/sys/fs/cgroup/blkio': Operation not permitted<br>
> *<br>
> *<br>
> On host<br>
> # ls -al $POPPY/sys/<br>
> total 0<br>
> dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 0 Aug 16 2014 ./<br>
> dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0 236 Jul 13 14:21 ../<br>
><br>
> -----------------------------------------<br>
><br>
> On container, one dbus session running:<br>
> % myps dbus<br>
> dbus 35 1 0 22:52 ? 00:00:00 /usr/bin/dbus-daemon<br>
> --system --address=systemd: --nofork --nopidfile --systemd-activation<br>
> --syslog-only<br>
><br>
> When on container I have 4 (when only 3 before). The one from vu-poppy<br>
> user (container) is new.<br>
><br>
> % myps dbus<br>
> 195:dbus 582 1 1 Jul12 ? 00:21:57 /usr/bin/dbus-daemon<br>
> --system --address=systemd: --nofork --nopidfile --systemd-activation<br>
> 204:gabx 614 602 0 Jul12 ? 00:00:00 /usr/bin/dbus-daemon<br>
> --session --address=systemd: --nofork --nopidfile --systemd-activation<br>
> 251:gabx 1593 1588 0 Jul12 ? 00:00:00 /usr/bin/dbus-daemon<br>
> --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork<br>
> --print-address 3<br>
> 333:vu-popp+ 16543 16502 0 22:52 ? 00:00:00 /usr/bin/dbus-daemon<br>
> --system --address=systemd: --nofork --nopidfile --systemd-activation<br>
> --syslog-only<br>
> -----------------------------------------------------------------------------------------------<br>
><br>
> I build my kernel with CONFIG_USER_NS=y since a while. I guess it is<br>
> this setting which cause the following trouble with UID/GID<br>
><br>
> From host<br>
> root@hortensia ➤➤ ~aur # ls -al $POPPY/var/log/journal<br>
> total 0<br>
> drwxr-xr-x+ 1 vu-poppy-0 systemd-journal 64 Oct 4 2016 ./<br>
> drwxr-xr-x 1 vu-poppy-0 vg-poppy-0 1.3K Jul 12 20:20 ../<br>
> drwxr-sr-x+ 1 root systemd-journal 7.8K Mar 11 15:25<br>
> 59b720b533834a4eafe07a62c2482266/<br>
><br>
> From container:<br>
> root@thetradinghall ➤➤ dovecot/conf.d # ls -al /var/log/journal<br>
> total 0<br>
> drwxr-xr-x+ 1 root nobody 64 Oct 4 2016 ./<br>
> drwxr-xr-x 1 root root 1.3K Jul 12 20:20 ../<br>
> drwxr-sr-x+ 1 nobody nobody 7.8K Mar 11 15:25<br>
> 59b720b533834a4eafe07a62c2482266/<br>
><br>
> As you can see, on host, root:root is by default vu-poppy-0 vg-poppy-0<br>
> On container, I am left with lots of files/folders owned by nobody.<br>
><br>
> ---------------------------<br>
> When looking at the output of systemctl --failed, and verifying status,<br>
> I can observe a commun failure, like the one below:<br>
><br>
> postgresql.service: Failed at step KEYRING spawning<br>
> /usr/libexec/postgresql-check-db-dir: Permission denied<br>
><br>
> -----------------------------<br>
><br>
> When upgrading some package, I have again a permission issue.<br>
><br>
> # dnf upgrade filesystem<br>
> ......................<br>
> error: unpacking of archive failed on file /proc: cpio: chown<br>
><br>
> # ls -al /proc/filesystems<br>
> .........<br>
> -r--r--r-- 1 nobody nobody 0 Jul 13 14:22 /proc/filesystems<br>
> .....................<br>
> # chown root:root /proc/filesystems<br>
> chown: changing ownership of '/proc/filesystems': Operation not permitted<br>
> -------------------------------------<br>
><br>
> Can anyone help me in debugging my system, as it starts to be difficult<br>
> to use the container. Thank you<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div></div>