| 22 Oct 2024 |
nzbr (they/it) | I have the same behavior
NixOS nzbr@pulsar
ZS ~> journalctl --disk-usage
Archived and active journals take up 16.0M in the file system.
NixOS nzbr@pulsar
ZS ~> journalctl --disk-usage --directory /var/log/journal
Archived and active journals take up 3.8G in the file system.
| 02:37:19 |
nzbr (they/it) | Seems to work as intended on Ubuntu | 02:38:57 |
nzbr (they/it) | I don't see anything related to journald in mount though | 02:39:30 |
bumperboat | if i do journalctl --firectory /var/log/journal --vacuum-size 3G it goes through the files that it wants to delete or rewrite, but it doesnt do anything to them | 02:57:46 |
bumperboat | * if i do journalctl --directory /var/log/journal --vacuum-size 3G it goes through the files that it wants to delete or rewrite, but it doesnt do anything to them | 02:58:00 |
bumperboat | and my ubuntu wsl does have the right behaviour as well | 02:59:26 |
nzbr (they/it) | I looked through the systemd derivation and the patches it applies, but I didn't find anything that would explain this | 03:06:34 |
bumperboat | why does /etc/machine-id change on every boot? | 03:46:02 |
bumperboat | all the dirs in my /var/log/journal are from the various machine-id's ever since i created it | 03:47:25 |
bumperboat | and if i do journalctl --list-boots it will only show the one boot because the machine-id changed | 03:48:02 |
bumperboat | oh its tmpfs thats fun | 03:53:43 |
bumperboat | yeah so journalctl only looks at directories in /var/log/journal/$(cat /etc/machine-id) so it is disregarding the logs from all the previous boots when vacuuming, or anything really | 04:09:44 |
bumperboat | * yeah so journalctl only looks at files in /var/log/journal/$(cat /etc/machine-id) so it is disregarding the logs from all the previous boots when vacuuming, or anything really | 04:11:11 |
K900 | Hmm | 05:58:40 |
K900 | I wonder if that's an us problem | 05:58:47 |
K900 | Or a WSL problem | 05:58:54 |
bumperboat | is a static file on my ubuntu wsl | 06:10:52 |
bumperboat | from reading machine-id (5) systemd will create a random id when /etc is RO for live systems | 06:12:04 |
bumperboat | so thats my hunch | 06:15:29 |
bumperboat | running systemd-machine-id-setup --commit manually resolves. but this should be ran by systemd-machine-id-commit.service (8) once /etc is writable - dunno why it isnt starting | 08:10:33 |
common16 | Hey folks, I'm jumping back into this and I'm noticing my SSH agent is timing out when trying to push / pull from GH. I'm not quite sure how this should be configured but my goal is to completely remove everything from the Windows side and lean into doing everything in WSL | 17:10:28 |
common16 | Here's what my flake currently looks like: http://pastie.org/p/3N2t6Kw1PGAZ6QXtemPcXB | 17:10:41 |
common16 | Every time I start WSL I'm using ssh-add to manually add my GH creds but I'm not sure if it's being added to the wrong(?) ssh-agent or what's going on | 17:11:16 |
common16 | I also removed git completely from the Windows side of my machine so I'm not even sure if the .gitconfig is still valid to "inject" into my WSL(?) | 17:12:16 |
bumperboat | without seeing an error - my guess since I do not see any configuration to start and configure a user ssh-agent within your user environment that the ssh-add will fail | 22:08:38 |
bumperboat | i would suggest look at using home-manager for your user it can be configured to start the agent for you and manage all the things (tm) | 22:10:22 |
bumperboat | interesting, i didnt know nixos proper had these systemd.user.services - and has programs.ssh.startAgent - it uses environment.extraInit to set the ssh-agent environment variables - but i dunno how fish works as its not posix if that works -- you will have to see if ssh-agent is running for your user and make sure the environment variables are being set correctly | 22:43:17 |
common16 | I think I'm getting a bit confused as to how ssh-agent works. The actual error I'm receiving is a generic "ssh: connect to host github.com port 22: Connection timed out" | 23:32:00 |
common16 | When I update the ssh-add line to be "ssh-add ~/.ssh/id_ed25519_no_passkey" I can see that it successfully adds the identity but I'm not sure if it's adding it for a stale agent(?) | 23:32:41 |
common16 | In my fish.shellInit I've also tried doing:
if test -z "$SSH_AUTH_SOCK"
set -l latest_socket (ls -t /tmp/ssh-*/agent.* | head -n 1)
set -gx SSH_AUTH_SOCK $latest_socket
end
and eval $(ssh-agent -c)
| 23:33:43 |