!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

902 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
1 Oct 2024
@puck:puck.moepuck
In reply to @joerg:thalheim.io
I will change it directly to the commit, but having the command that reproduces the error still seems useful to me.
right, i just meant the spurious nix-output-monitor output, as it's caused by running with a non-standard store path
02:18:18
@puck:puck.moepuckand makes reading the actual error way harder02:18:31
@puck:puck.moepuck
In reply to @puck:puck.moe
right, i just meant the spurious nix-output-monitor output, as it's caused by running with a non-standard store path
(nix-output-monitor error: DerivationReadError /nix/store/4qljhy0jj2b0abjzpsbyarpia1bqylwc-google.com.drv: openFile: does not exist (No such file or directory) etc)
02:19:53
@joerg:thalheim.ioMic92got it.09:40:23
@bjth:matrix.orgBryan Honof joined the room.20:11:39
@-_o:matrix.org-_o joined the room.20:55:51
2 Oct 2024
@bjth:matrix.orgBryan Honof

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
00:48:05
@k900:0upti.meK900Random backoffs are generally a good idea05:36:57
@joerg:thalheim.ioMic92
In reply to @bjth:matrix.org

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
Having clients DDOS the server after a downtime.
07:14:48
@joerg:thalheim.ioMic92
In reply to @bjth:matrix.org

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
* Having clients DDOS the server after a downtime can be slightly mitigated by that.
07:15:04
@bjth:matrix.orgBryan HonofOkay, didn't know that. Thanks for the explanation. 😊11:27:31
3 Oct 2024
@midirhee12:tchncs.de@midirhee12:tchncs.de joined the room.02:05:20
@renato-trevisan:matrix.orgRenato Trevisan joined the room.09:17:44
@zm94zgv2:private.coffeeZm94ZGV2 changed their profile picture.09:57:09
4 Oct 2024
@mightyiam:matrix.org@mightyiam:matrix.org Is nix eval .#foo supposed to benefit from eval cache? I have a case here where it doesn't. 07:48:32
@mightyiam:matrix.org@mightyiam:matrix.org * Is nix eval .#nixosConfigurations.john.config.system.build.toplevel supposed to benefit from eval cache? I have a case here where it doesn't. 07:49:47
@mightyiam:matrix.org@mightyiam:matrix.org
$ , sqlite3 ~/.cache/nix/eval-cache-v5/fe647c02b237098e3a474c6fbc5b8ad9e30c79afa4ae52c3d2457c9100df4887.sqlite .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE Attributes (
    parent      integer not null,
    name        text,
    type        integer not null,
    value       text,
    context     text,
    primary key (parent, name)
);
INSERT INTO Attributes VALUES(0,'',0,NULL,NULL);
INSERT INTO Attributes VALUES(1,'packages',0,NULL,NULL);
INSERT INTO Attributes VALUES(3,'nixosConfigurations',3,NULL,NULL);
INSERT INTO Attributes VALUES(2,'x86_64-linux',1,NULL,NULL);
INSERT INTO Attributes VALUES(5,'nixf-tidy-nice',0,NULL,NULL);
INSERT INTO Attributes VALUES(1,'legacyPackages',0,NULL,NULL);
INSERT INTO Attributes VALUES(8,'nixosConfigurations',3,NULL,NULL);
INSERT INTO Attributes VALUES(7,'x86_64-linux',1,NULL,NULL);
INSERT INTO Attributes VALUES(1,'nixosConfigurations',0,NULL,NULL);
INSERT INTO Attributes VALUES(11,'john',0,NULL,NULL);
INSERT INTO Attributes VALUES(12,'config',0,NULL,NULL);
INSERT INTO Attributes VALUES(13,'system',0,NULL,NULL);
INSERT INTO Attributes VALUES(14,'build',0,NULL,NULL);
INSERT INTO Attributes VALUES(15,'toplevel',0,NULL,NULL);
COMMIT;
07:50:03
@mightyiam:matrix.org@mightyiam:matrix.orgThe cache seems to get populated with nulls... 07:50:54
5 Oct 2024
@ashley_:matrix.orgAshley joined the room.07:58:33
@ashley_:matrix.orgAshleyHello, I've been looking into https://github.com/NixOS/nix/issues/11636 recently which I think could enable some cool possibilities. I'd really appreciate any ideas on whether it makes sense or not though!08:00:03
@zgcarvalho:matrix.orgzgcarvalho joined the room.14:36:19
@9hp71n:matrix.orgghpzin (moved to @ghpzin:envs.net) joined the room.15:44:40
@magic_rb:matrix.redalder.orgmagic_rb changed their profile picture.22:16:52
6 Oct 2024
@cafkafk:fem.gg@cafkafk:fem.gg joined the room.08:48:00
@bytebandit:tac.lolDerivationDingus changed their display name from bytebandit to DerivationDingus.19:44:13
@rasmus:fricloud.dk@rasmus:fricloud.dk joined the room.22:08:12
7 Oct 2024
@memegames99:matrix.org@memegames99:matrix.org removed their profile picture.00:05:39
@memegames99:matrix.org@memegames99:matrix.org removed their display name memegames99.00:05:50
@memegames99:matrix.org@memegames99:matrix.org left the room.00:06:07
@lehmanator:tchncs.deSam Lehman changed their profile picture.14:24:48

Show newer messages


Back to Room ListRoom Version: 6