Upgrade failed from 18.09 to 19.03

#1

I found version 19.03 has been released.
I run command like this:

# under root
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
nixos-rebuild switch --upgrade --show-trace

and then get error:

error: while evaluating the attribute 'config.system.build.toplevel' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:276:5:
while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:39:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:140:12:
while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:42:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:46:8:
while evaluating 'showWarnings' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:133:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:137:10:
while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:39:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:133:23:
while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:42:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:46:8:
while evaluating the attribute 'warnings' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `warnings':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:234:44:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:10, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:752:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:234:16:
while evaluating 'optional' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:241:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:753:7:
while evaluating the attribute 'serviceConfig.Type' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `systemd.services.prlfsmountd.serviceConfig':
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:370:5:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:370:32, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:370:19:
while evaluating 'merge' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:282:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:373:8:
while evaluating 'filterAttrs' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:124:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:283:35:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:125:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:125:18:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:283:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:125:62:
while evaluating the attribute 'ExecStart' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:344:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:283:86, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:344:15:
while evaluating the attribute 'optionalValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:377:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:458:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:350:17:
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:417:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:351:62:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:287:60:
while evaluating the attribute 'hardware.parallels.package' at undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:338:9:
while evaluating the option `hardware.parallels.package':
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:375:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:364:9:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:360:19, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:360:14:
while evaluating the attribute 'value._type' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:456:73:
while evaluating the attribute 'value.content' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:517:14:
while evaluating the attribute 'default' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/virtualisation/parallels-guest.nix:36:9:
while evaluating the attribute 'boot.kernelPackages.prl-tools' at /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/pkgs/top-level/all-packages.nix:14802:5:
while evaluating 'callPackageWith' at /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/lib/customisation.nix:108:35, called from /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/pkgs/top-level/all-packages.nix:14802:17:
while evaluating 'makeOverridable' at /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/lib/customisation.nix:67:24, called from /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/lib/customisation.nix:112:8:
while evaluating anonymous function at /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/pkgs/os-specific/linux/prl-tools/default.nix:1:1, called from /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/lib/customisation.nix:69:12:
assertion failed at /nix/store/aaphwhi9l652n8kksq0jap8njzjibp4g-nixos-19.03.172138.5c52b25283a/nixos/pkgs/os-specific/linux/prl-tools/default.nix:9:1

What do I miss when upgrading system?

I also tried to edit system.stateVersion to 19.03, but nothing was changed.

0 Likes

#2

What kernel version are you trying to use it with?
Does boot.kernelPackages = pkgs.linuxPackages_latest; help?

0 Likes

#3

My current kernel version is 4.14. I found both 18.09 and 19.03 need it smaller than 4.15.

The linuxPackages_latest kernel version is 4.19.34 .

It returns false when running true -> pkgs.stdenv.lib.versionOlder pkgs.linuxPackages_latest.kernel.version "4.15 in nix repl.

It returns true when running true -> pkgs.stdenv.lib.versionOlder pkgs.linuxPackages.kernel.version "4.15" in nix repl.

The kernel version should before 4.15. My version 4.14 is correct.

If I add boot.kernelPackages = pkgs.linuxPackages_latest;, both 18.09 and 19.03 cannot be built.

0 Likes

#4

Sorry, then you could try boot.kernelPackages = pkgs.linuxPackages_4_14.

My version 4.14 is correct.

If you mean ‘my currently booted kernel version’, then it doesn’t matter in this context. The check rightfully verifies the kernel version that would be included in the next generation, and this is, presumably, 4.19.

0 Likes

#5

It returns true when running true -> pkgs.stdenv.lib.versionOlder pkgs.linuxPackages.kernel.version "4.15" in nix repl .

That doesn’t seem right to me, it should be false as it should be 4.19.

0 Likes

#6

Thanks. It can be built, but many packages are signed with broken, I decide to delay upgrading.

I find linuxPackages is 4.19 on channel nixos-19.03, but it has an assert assert kernel != null -> stdenv.lib.versionOlder kernel.version "4.15";. Is this a bug or feature?

Sorry, prl-tools is a package what I used, not in the basic nixos.

0 Likes

#7

Marking packages with meta.broken = true (if that’s what you meant) is typically a relatively long-term thing, so waiting probably won’t help. But it depends on each case, too.

0 Likes