Closed justinwaltrip closed 5 months ago
The journalctl
log is quite large. What are you experiencing when trying to install?
@dustinlyons it appears to be restarting from reboot and starting system services, then it appears to hang for a minute or two before giving me the option to drop to shell to view logs or reboot again due to failure
Here are some (potentially) relevant logs:
Jun 10 12:46:07 nixos dhcpcd[132364]: dhcpcd-10.0.6 starting
Jun 10 12:46:07 nixos dhcpcd[132379]: dev: loaded udev
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Inserted module 'uinput'
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Failed to find module 'v4l2loopback'
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Inserted module 'veth'
Jun 10 12:46:07 nixos kernel: 8021q: 802.1Q VLAN Support v1.8
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Inserted module 'br_netfilter'
Jun 10 12:46:07 nixos kernel: Bridge firewalling registered
Jun 10 12:46:07 nixos systemd[1]: Finished Store Sound Card State.
░░ Subject: A start job for unit alsa-store.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit alsa-store.service has finished successfully.
░░
░░ The job identifier is 4416.
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Inserted module 'xt_nat'
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Failed to find module 'nvidia'
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Failed to find module 'nvidia_modeset'
Jun 10 12:46:07 nixos systemd-modules-load[132370]: Failed to find module 'nvidia_drm'
Jun 10 12:46:07 nixos systemd[1]: Finished Address configuration of eno1.
░░ The unit display-manager.service has entered the 'failed' state with result 'exit-code'.
Jun 10 12:44:42 nixos systemd[1]: display-manager.service: Triggering OnFailure= dependencies.
Jun 10 12:44:42 nixos systemd[1]: display-manager.service: Failed to enqueue OnFailure= job, ignoring: Unit plymouth-quit.service not found.
Jun 10 12:44:42 nixos systemd[1]: display-manager.service: Scheduled restart job, restart counter is at 2.
Jun 10 12:35:36 nixos rtkit-daemon[1577]: Successfully made thread 1576 of process 1558 owned by '132' RT at priority 20.
Jun 10 12:35:36 nixos .gnome-shell-wr[1558]: Made thread 'KMS thread' realtime scheduled
Jun 10 12:35:36 nixos .gnome-shell-wr[1558]: Device '/dev/dri/card0' prefers shadow buffer
Jun 10 12:35:36 nixos .gnome-shell-wr[1558]: Added device '/dev/dri/card0' (nouveau) using non-atomic mode setting.
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: g_close(fd:0) failed with EBADF. The tracking of file descriptors got messed up
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: Failed to open gpu '/dev/dri/card1': No suitable mode setting backend found
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: Created gbm renderer for '/dev/dri/card0'
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: Boot VGA GPU /dev/dri/card0 selected as primary
Jun 10 12:35:37 nixos /nix/store/yfqcil25q7n8nv5ci9bf2c80rrnjzy4j-gdm-46.2/libexec/gdm-wayland-session[1545]: dbus-daemon[1545]: [session uid=132 pid=1545] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=132 pid=1558 comm="/nix/store/hxqdl71a8jakvzxxz26rrj18va3w9mzn-gnome-" label="kernel")
Jun 10 12:35:37 nixos /nix/store/yfqcil25q7n8nv5ci9bf2c80rrnjzy4j-gdm-46.2/libexec/gdm-wayland-session[1545]: dbus-daemon[1545]: [session uid=132 pid=1545] Successfully activated service 'org.a11y.Bus'
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: Using public X11 display :1024, (using :1025 for managed services)
Jun 10 12:35:37 nixos .gnome-shell-wr[1558]: Using Wayland display name 'wayland-0'
Jun 10 12:35:37 nixos /nix/store/yfqcil25q7n8nv5ci9bf2c80rrnjzy4j-gdm-46.2/libexec/gdm-wayland-session[1610]: dbus-daemon[1610]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=132 pid=1558 comm="/nix/store/hxqdl71a8jakvzxxz26rrj18va3w9mzn-gnome-" label="kernel")
Jun 10 12:35:37 nixos dbus-daemon[1258]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.33' (uid=132 pid=1558 comm="/nix/store/hxqdl71a8jakvzxxz26rrj18va3w9mzn-gnome-" label="kernel")
Jun 10 12:35:37 nixos /nix/store/yfqcil25q7n8nv5ci9bf2c80rrnjzy4j-gdm-46.2/libexec/gdm-wayland-session[1610]: dbus-daemon[1610]: Successfully activated service 'org.a11y.atspi.Registry'
Jun 10 12:35:37 nixos /nix/store/yfqcil25q7n8nv5ci9bf2c80rrnjzy4j-gdm-46.2/libexec/gdm-wayland-session[1614]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jun 10 12:35:37 nixos systemd[1]: Starting Manage, Install and Generate Color Profiles...
Jun 10 12:38:35 nixos systemd[2066]: Failed to start Application launched by gnome-session-binary.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 121 and the job result is failed.
Jun 10 12:38:35 nixos systemd[2066]: app-gnome-gnome\x2dkeyring\x2dsecrets-2158.scope: PID 2158 vanished before we could move it to target cgroup '/user.slice/user-0.slice/user@0.service/app.slice/app-gnome-gnome\x2dkeyring\x2dsecrets-2158.scope', skipping: No such process
Jun 10 12:38:35 nixos systemd[2066]: app-gnome-gnome\x2dkeyring\x2dsecrets-2158.scope: No PIDs left to attach to the scope's control group, refusing.
Jun 10 12:38:35 nixos systemd[2066]: app-gnome-gnome\x2dkeyring\x2dsecrets-2158.scope: Failed with result 'resources'.
I was able to get nvidia working with a standard configuration.nix
setup, so I think the problem is something else
Also this line looks interesting:
39:33 nixos systemd-coredump[4375]: Process 4287 (gst-plugin-scan) of user 1000 dumped core.
and
Jun 10 12:39:33 nixos kernel: nouveau 0000:05:00.0: gst-plugin-scan[4287]: channel 1 killed!
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_va_filter_new: assertion 'GST_IS_VA_DISPLAY (display)' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_va_filter_open: assertion 'GST_IS_VA_FILTER (self)' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_va_filter_install_deinterlace_properties: assertion 'GST_IS_VA_FILTER (self)' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_object_unref: assertion 'object != NULL' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_object_unref: assertion 'object != NULL' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_va_filter_new: assertion 'GST_IS_VA_DISPLAY (display)' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_va_filter_open: assertion 'GST_IS_VA_FILTER (self)' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_object_unref: assertion 'object != NULL' failed
Jun 10 12:39:33 nixos gst-plugin-scan[4287]: gst_object_unref: assertion 'object != NULL' failed
The kernel then stops all jobs after that core dump.
This is part of gstreamer. I would comment out packages in the modules/nixos/packages.nix file and modules/shared/packages.nix that have anything to do with image or video, like ffmpeg
and vlc
.
If that doesn't work, if you have the time, try to get something without many packages or services enabled working first, then turn things on one by one. Unfortunately, it's hard for me to debug Nix errors on different hardware than my own.
And flake.nix
vs configuration.nix
shouldn't matter much, as it's Nix all the way down. So if you get it working there you could try to enable the same packages/services and see what breaks.
I'll try that and report back. Thanks for your help!
I was able to get the flake setup working after commenting out most of the imports, but I'm not quite sure which one was causing the boot issues. I don't have enough time to keep playing with this setup for my daily driver, so I'm going to dual boot and experiment with this as a secondary system. I'll try to update here if I figure out the issue
It's also possible by the time you figure out the package, it's fixed upstream. But glad you're able to get this configuration working, albeit with less software 😃
I have been using this config on my Mac without issue for the last few months. Now I am trying to use the same configuration on NixOS, but I am running into issues during build-switch command. I have two Nvidia 3090 GPU's, which I think may be part of the problem.
Here is my
hosts/nixos/default.nix
:Here are the logs from
journalctl -xb
: https://gist.github.com/justinwaltrip/b0136e48eae1703e8ae4a6973244979ePlease let me know if you would need more information.