!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
14 Jul 2022
@buckley310:matrix.orgBuckleyi have 10 servers and I felt it was enough overhead to change it. 22:37:06
@ty:tjll.nettylerjlHm, some of my hosts are aarch64 so I could very well end up with a lot of overhead if I keep building them through binfmt. I'll keep that in mind22:37:51
@buckley310:matrix.orgBuckley nixpkgs.lib.nixosSystem ? 22:38:12
@ty:tjll.nettylerjl Oh, wait, yeah, nixosSystem is the "type" that you feed into a nixosConfiguration (I think). Makes sense 22:39:17
@buckley310:matrix.orgBuckley nixosSystem is a function that generates what goes in nixosConfigurations 22:39:53
15 Jul 2022
@garionion:entr0py.de@garionion:entr0py.dehi, is there a way to upload single files or whole directories with colmena?07:44:22
@schnecfk:ruhr-uni-bochum.de@schnecfk:ruhr-uni-bochum.de
In reply to @garionion:entr0py.de
hi, is there a way to upload single files or whole directories with colmena?
This is more nix-like, but you can generally add files and directories to the nix store and copy them over by referencing them in your config. The easiest target is /etc/, but you are generally free to do as you wish by e.g. linking with systemd.tmpfiles.rules or writing a custom systemd service. Note that this approach is not suitable for secrets, as they're in the world-readable store. For these, use colmena's deployment.keys.
08:36:34
@schnecfk:ruhr-uni-bochum.de@schnecfk:ruhr-uni-bochum.de
In reply to @garionion:entr0py.de
hi, is there a way to upload single files or whole directories with colmena?
* This is more nix-related, but you can generally add files and directories to the nix store and copy them over by referencing them in your config. The easiest target is /etc/, but you are generally free to do as you wish by e.g. linking with systemd.tmpfiles.rules or writing a custom systemd service. Note that this approach is not suitable for secrets, as they're in the world-readable store. For these, use colmena's deployment.keys.
08:36:56
@garionion:entr0py.de@garionion:entr0py.deuhh, your right, i totally forgot about that (i already use it on my laptop ^^)08:37:50
@garionion:entr0py.de@garionion:entr0py.dethank you ^-^08:37:55
@schnecfk:ruhr-uni-bochum.de@schnecfk:ruhr-uni-bochum.deNo problem 🙂08:38:04
17 Jul 2022
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name joined the room.04:28:23
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI'm getting a "child process was killled by signal 11" error when I try to use colmena to remove a specific piece of configuration from a remote machine, not sure how to debug04:29:16
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namespecifically this happens when I try to remove a vhost from an nginx config04:29:45
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameliterally deleting the block because I don't need that vhost anymore04:29:57
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI tried renaming the vhost and that seemed to apply without a problem04:30:12
@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

Show newer messages


Back to Room ListRoom Version: 6