!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1286 Members
NixOS Deployment tooling309 Servers

Load older messages


SenderMessageTime
31 May 2021
@rgrunbla:matrix.orgReventlovRedacted or Malformed Event19:29:06
@rgrunbla:matrix.orgReventlovRedacted or Malformed Event19:30:15
@rgrunbla:matrix.orgReventlovRedacted or Malformed Event19:31:15
@jez:petrichor.meJez (he/him) as a matter of good practice (or just preference) do you --target-host root@<hostname> or --target-host <hostname> --use-remote-sudo 20:23:01
@jez:petrichor.meJez (he/him) * as a matter of good practice (or just preference) do you --target-host root@<hostname> or --target-host <hostname> --use-remote-sudo when deploying with nixos-rebuild? 20:23:15
@bb010g:matrix.orgDusk changed their profile picture.20:27:26
@srhb:matrix.orgsrhb
In reply to @jez:petrichor.me
as a matter of good practice (or just preference) do you --target-host root@<hostname> or --target-host <hostname> --use-remote-sudo when deploying with nixos-rebuild?
I didn't know of the second switch, but for auditability, among other things, I'll never allow direct root logins where I can avoid it.
20:30:59
@reptarmigam:matrix.orgre-ptarmigan❄️🐦️ joined the room.21:43:11
@reptarmigam:matrix.orgre-ptarmigan❄️🐦️ changed their display name from reptarmigan to re-ptarmigan❄️🐦️.21:56:28
1 Jun 2021
@0x4a6f:matrix.org[0x4A6F] changed their display name from 0x4A6F to [0x4A6F].06:36:26
@nocent:matrix.orgili joined the room.10:15:01
@justinrestivo:matrix.orgjustinrestivoHas anyone hosted a s3 cache? I'm hosting one with minio and pulling from it. I've got ``` substituters = https://cache.nixos.org http://localhost:9000/nixbucket require-sigs = false ``` I created my bucket with mb like normal. It's empty. Now when I try and build a sample flake, I get error: NAR info file 'somehash' is corrupt. Anyone tried something similar? Is there something special I need to do when initializing the cache?13:37:06
@linus.heckemann:matrix.mayflower.deLinux Hackerman justinrestivo: can you share the content of the narinfo file? 13:38:07
@justinrestivo:matrix.orgjustinrestivoYes.13:39:05
@justinrestivo:matrix.orgjustinrestivo* Yes. Grabbing it.13:39:27
@justinrestivo:matrix.orgjustinrestivoThe narinfo file is stored under /nix/store right? I'm not seeing the hash under there.13:47:01
@linus.heckemann:matrix.mayflower.deLinux Hackermanno, it's stored in the bucket13:47:14
@linus.heckemann:matrix.mayflower.deLinux Hackerman the narinfo contains the information that's stored in the sqlite db at /nix/var/nix/db/db.sqlite in a "normal" store 13:47:49
@justinrestivo:matrix.orgjustinrestivoThe nix bucket is completely empty (no files)13:48:01
@linus.heckemann:matrix.mayflower.deLinux Hackermanhuh. Is minio not giving 404s for missing files, then?13:48:17
@justinrestivo:matrix.orgjustinrestivoHmm to test that I can just wget a url, right? Like wget localhost:9000/nixbucket/fakefile 13:49:46
@linus.heckemann:matrix.mayflower.deLinux Hackerman what does curl -i http://localhost:9000/nixbucket/nix-cache-info and curl -i http://localhost:9000/nixbucket/$hash.narinfo say? 13:50:00
@linus.heckemann:matrix.mayflower.deLinux Hackermanyeah13:50:06
@justinrestivo:matrix.orgjustinrestivoAhh it's a firewall problem. It's not returning a 404 it's returning a webpage saying it's forbidden.13:51:33
@justinrestivo:matrix.orgjustinrestivoThat helps a lot.13:51:39
@justinrestivo:matrix.orgjustinrestivoThank you 13:51:48
@linus.heckemann:matrix.mayflower.deLinux Hackermanbad error message for nix to give though13:51:51
@linus.heckemann:matrix.mayflower.deLinux Hackerman +1 weirdness, nix has treated 403 as equivalent to 404 since version 2.0. Which version are you on, justinrestivo ? 13:54:07
@linus.heckemann:matrix.mayflower.deLinux HackermanAlso it's probably not firewall-related, but that listing isn't enabled on your bucket.13:55:06
@linus.heckemann:matrix.mayflower.deLinux HackermanShould work fine with any nix newer than 2.0 though13:55:28

Show newer messages


Back to Room ListRoom Version: 6