From 4f3da9cddc6064d6fd4e60612ae7dd0d1f552602 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 5 Apr 2024 12:41:19 +0200 Subject: Fallback and debugging --- ...ping-code-with-genenetwork-system-container.gmi | 38 +++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'topics/systems') diff --git a/topics/systems/debug-and-developing-code-with-genenetwork-system-container.gmi b/topics/systems/debug-and-developing-code-with-genenetwork-system-container.gmi index 2e3a83c..131474c 100644 --- a/topics/systems/debug-and-developing-code-with-genenetwork-system-container.gmi +++ b/topics/systems/debug-and-developing-code-with-genenetwork-system-container.gmi @@ -226,4 +226,40 @@ Now we can use guix bioinformatics with and it should show the genenetwork stack. Now you can build a machine using -L. See for example: -=> gndev-deploy +=> https://git.genenetwork.org/gn-machines/tree/specials/gndev-deploy.sh + +# Scripts + +## Get a login on the VM + +e.g. guix-vm-login $pid + +``` +guix-vm-login: + #! /bin/bash + echo "Login to guix container" + pid=$1 + shift + cmd="nsenter -at $pid /run/current-system/profile/bin/bash --login $*" + echo $cmd + $cmd +``` + +e.g. guix-vm-run $pid tail -f /var/log/gunicorn-genenetwork3.log + +``` +guix-vm-run: + #! /bin/bash + echo "Login to guix container" + pid=$1 + shift + cmd="nsenter -at $pid /run/current-system/profile/bin/$*" + echo $cmd + $cmd +``` + +# Troubleshooting + +## Updating the VM does not show latest fixes + +It may be another service is using the port(s) of your VM. Check /var/log/gunicorn-$name.log. Another possibility is that you are checking the wrong URL - both things happened to me ;) -- cgit v1.2.3