Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jezen committed Feb 14, 2025
1 parent d55bf3b commit 1f65684
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ testers.nixosTest {
server.start()
server.wait_for_unit("keter-ng.service")
# Verify keter is running
server.wait_until_succeeds("curl -fs http://localhost", timeout = 10)
# Check if something is listening on port 80
server.succeed("ss -tlnp | grep ':80 ' || netstat -tlnp | grep ':80 '")
# Wait for keter to respond (try 127.0.0.1 to avoid IPv6 issues)
server.wait_until_succeeds("curl -fs http://127.0.0.1", timeout=30)
# Show logs if something goes wrong
server.succeed("journalctl -u keter-ng.service --no-pager --lines=50")
'';
}

0 comments on commit 1f65684

Please sign in to comment.