!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

325 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena111 Servers

Load older messages


SenderMessageTime
17 Jul 2022
@winterqt:nixos.devWinter (she/her)

oh wow that's weird

i assume the vhost names don't have anything weird about them?

04:30:46
@winterqt:nixos.devWinter (she/her)like any weird characters or something04:30:53
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namenope, just normal ascii urls04:31:00
@winterqt:nixos.devWinter (she/her)if you run with --verbose, where is it segfaulting? eval?04:31:30
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameis there a way I can tell what the child process is?04:31:31
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namedoes colmena have a verbose option?04:31:54
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name I'm specifically running nix-shell -p colmena --run 'colmena apply -f my-hive.nix' 04:32:19
@winterqt:nixos.devWinter (she/her)
In reply to @winterqt:nixos.dev
if you run with --verbose, where is it segfaulting? eval?
^^, it won't show what command is being run but it'll at least show if the failure is eval or apply related
04:34:13
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameok I'll try that04:36:39
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name

didn't help, just prints out:

    (...) | Evaluation failed: Child process was killed by signal 11
          | Failed: Child process was killed by signal 11
04:37:15
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name this is nix-shell -p colmena --run 'colmena apply -f my-hive.nix --verbose' 04:37:54
@winterqt:nixos.devWinter (she/her)

okay at least we know it's eval related... somehow.

to be clear, you can reliably reproduce this by making a single change, right?

04:38:26
@winterqt:nixos.devWinter (she/her)like if you revert the renaming of the vhost it works completely fine?04:38:37
@winterqt:nixos.devWinter (she/her)and if you do it again it segfaults consistently?04:38:47
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namelet me try reverting the rename04:40:12
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameok that seems to work fine04:40:27
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameso it's just getting rid of the block that fails04:40:35
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name this is a block in services.nginx.virtualHosts 04:41:22
@winterqt:nixos.devWinter (she/her)god that's so weird, nix should never segfault, and this isn't even some complex or weird change or anything, it's just a key name...04:42:13
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namewhen colmena applies config to a host, it's not touching /etc/nixos on that host right?04:42:52
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI seem to have some kind of config there, but that might date back from before I started using colmena for this host04:43:04
@winterqt:nixos.devWinter (she/her)this isn't even getting to the apple stage04:43:51
@winterqt:nixos.devWinter (she/her)it's only evaluating the configuration04:44:00
@winterqt:nixos.devWinter (she/her) * (null) 04:44:09
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namehm04:48:13
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameif I move the block around in the file, that seems to still work04:48:25
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI'm using a kinda-complicated helper function to actually create the block04:48:37
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namenginx configs have a lot of options04:48:45
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namebut I'm still just deleting the whole thing04:48:50
@winterqt:nixos.devWinter (she/her)

hmm

can you share that function?

04:49:02

Show newer messages


Back to Room ListRoom Version: 6