maralorn / nix-output-monitor

Pipe your nix-build output through the nix-output-monitor a.k.a nom to get additional information while building.
GNU Affero General Public License v3.0
935 stars 28 forks source link

ParseNixJSONMessageError during `nh os switch` #160

Closed JohnRTitor closed 3 days ago

JohnRTitor commented 2 weeks ago

Hi, I was using nh os switch to rebuild the system and during the initial fetchPhase I saw some errors like these.

copying path '/nix/store/134v1qhd8hcw02xymd2759a2x2y8yls4-source' from 'https://nix-community.cachix.org'
unpacking 'https://api.flakehub.com/f/pinned/DeterminateSystems/nix/2.24.10/0192e251-cc5a-7b3c-8339-faf088a24136/source.tar.gz' into the Git cache
copying path '/nix/store/vpzg5qjqwl76ichhjwwgmwc8v3j369q5-source' from 'https://cache.nixos.org'
copying path '/nix/store/n41ic7p1zsjir4ra9g7khrdlgyb4jgvl-source' from 'https://cache.nixos.org'
copying path '/nix/store/7sprarsdfz9qcd7859phvr9nvhi14mri-source' from 'https://cache.nixos.org'
copying path '/nix/store/sh0v21n9zc03b94qjj4jkkg5mbsjkpzr-source' from 'https://cache.nixos.org'
nix-output-monitor error: ParseNixJSONMessageError "InternalException (DocumentError {path = \"/type\", errorMsg = \"invalid activity result type: 112\"})" "{\"action\":\"start\",\"id\":86466281603348,\"level\":4,\"parent\":0,\"text\":\"fetching Git repository 'https://github.com/hyprwm/Hyprland'\",\"type\":112}"
nix-output-monitor error: ParseNixJSONMessageError "InternalException (DocumentError {path = \"/type\", errorMsg = \"invalid activity result type: 112\"})" "{\"action\":\"start\",\"id\":86466281603349,\"level\":4,\"parent\":0,\"text\":\"fetching Git repository 'https://github.com/hyprwm/hyprland-protocols'\",\"type\":112}"
nix-output-monitor error: ParseNixJSONMessageError "InternalException (DocumentError {path = \"/type\", errorMsg = \"invalid activity result type: 112\"})" "{\"action\":\"start\",\"id\":86466281603351,\"level\":4,\"parent\":0,\"text\":\"fetching Git repository 'https://github.com/wolfpld/tracy'\",\"type\":112}"
nix-output-monitor error: ParseNixJSONMessageError "InternalException (DocumentError {path = \"/type\", errorMsg = \"invalid activity result type: 112\"})" "{\"action\":\"start\",\"id\":86466281603353,\"level\":4,\"parent\":0,\"text\":\"fetching Git repository 'https://github.com/canihavesomecoffee/udis86'\",\"type\":112}"
copying path '/nix/store/ka839ivm6bhhwwfq7sf1d9abwc462dqq-source' from 'https://nix-community.cachix.org'
unpacking 'github:hyprwm/aquamarine/a49bc3583ff223f426cb3526fdaa4bcaa247ec14?narHash=sha256-NocDjINsh6ismkhb0Xr6xPRksmhuB2WGf8ZmXMhxu7Y%3D' into the Git cache

I am using Determinate Nix with NixOS-unstable, if that helps.

$ nix-info -m      
maralorn commented 2 weeks ago

Thanks for the report. Seems like a new constructor in nix.