summaryrefslogtreecommitdiff
path: root/topics/systems
diff options
context:
space:
mode:
authorPjotr Prins2024-04-05 12:41:19 +0200
committerPjotr Prins2024-04-05 12:41:19 +0200
commit4f3da9cddc6064d6fd4e60612ae7dd0d1f552602 (patch)
treec2b8595fdcc8ad1d5d1f8c89094044b7619be97e /topics/systems
parent1ef47f9a42a00a6edb038c9595902a7c091796a9 (diff)
downloadgn-gemtext-4f3da9cddc6064d6fd4e60612ae7dd0d1f552602.tar.gz
Fallback and debugging
Diffstat (limited to 'topics/systems')
-rw-r--r--topics/systems/debug-and-developing-code-with-genenetwork-system-container.gmi38
1 files changed, 37 insertions, 1 deletions
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 ;)