summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--issues/genenetwork2/broken-collections-features.gmi44
-rw-r--r--issues/genenetwork2/fix-display-for-time-consumed-for-correlations.gmi15
-rw-r--r--issues/genenetwork3/01828928-26e6-4cad-bbc8-59fd7a7977de.json.zipbin0 -> 143152 bytes
-rw-r--r--issues/genenetwork3/ctl-maps-error.gmi46
-rw-r--r--issues/genenetwork3/generate-heatmaps-failing.gmi34
-rw-r--r--issues/genenetwork3/rqtl2-mapping-error.gmi42
-rw-r--r--issues/gn-uploader/AuthorisationError-gn-uploader.gmi66
-rw-r--r--issues/gn-uploader/replace-redis-with-sqlite3.gmi17
-rw-r--r--issues/gnqa/implement-no-login-requirement-for-gnqa.gmi20
-rw-r--r--issues/production-container-mechanical-rob-failure.gmi2
-rw-r--r--issues/systems/apps.gmi22
-rw-r--r--issues/systems/octoraid-storage.gmi18
-rw-r--r--issues/systems/penguin2-raid5.gmi61
-rw-r--r--issues/systems/tux02-production.gmi4
-rw-r--r--issues/systems/tux04-disk-issues.gmi277
-rw-r--r--issues/systems/tux04-production.gmi4
-rw-r--r--tasks/alexm.gmi69
-rw-r--r--tasks/bonfacem.gmi88
-rw-r--r--tasks/felixl.gmi114
-rw-r--r--tasks/fredm.gmi9
-rw-r--r--tasks/machine-room.gmi8
-rw-r--r--tasks/octopus.gmi3
-rw-r--r--tasks/pjotrp.gmi47
-rw-r--r--tasks/roadmap.gmi65
-rw-r--r--topics/deploy/genecup.gmi69
-rw-r--r--topics/deploy/machines.gmi7
-rw-r--r--topics/deploy/setting-up-or-migrating-production-across-machines.gmi58
-rw-r--r--topics/deploy/uthsc-vpn-with-free-software.gmi11
-rw-r--r--topics/deploy/uthsc-vpn.scm2
-rw-r--r--topics/genenetwork/starting_gn1.gmi4
-rw-r--r--topics/gn-learning-team/next-steps.gmi48
-rw-r--r--topics/octopus/maintenance.gmi98
-rw-r--r--topics/octopus/recent-rust.gmi76
-rw-r--r--topics/programming/autossh-for-keeping-ssh-tunnels.gmi65
-rw-r--r--topics/systems/backup-drops.gmi15
-rw-r--r--topics/systems/backups-with-borg.gmi18
-rw-r--r--topics/systems/mariadb/mariadb.gmi11
-rw-r--r--topics/systems/mariadb/precompute-mapping-input-data.gmi23
-rw-r--r--topics/systems/migrate-p2.gmi12
-rw-r--r--topics/systems/synchronising-the-different-environments.gmi68
-rw-r--r--topics/systems/update-production-checklist.gmi182
41 files changed, 1765 insertions, 77 deletions
diff --git a/issues/genenetwork2/broken-collections-features.gmi b/issues/genenetwork2/broken-collections-features.gmi
new file mode 100644
index 0000000..4239929
--- /dev/null
+++ b/issues/genenetwork2/broken-collections-features.gmi
@@ -0,0 +1,44 @@
+# Broken Collections Features
+
+## Tags
+
+* type: bug
+* status: open
+* priority: high
+* assigned: zachs, fredm
+* keywords: gn2, genenetwork2, genenetwork 2, collections
+
+## Descriptions
+
+There are some features in the search results page, and/or the collections page that are broken — these are:
+
+* "CTL" feature
+* "MultiMap" feature
+* "Partial Correlations" feature
+* "Generate Heatmap" feature
+
+### Reproduce Issue
+
+* Go to https://genenetwork.org
+* Select "Mouse (Mus musculus, mm10) for "Species"
+* Select "BXD Family" for "Group"
+* Select "Traits and Cofactors" for "Type"
+* Select "BXD Published Phenotypes" for "Dataset"
+* Type "locomotion" in the "Get Any" field (without the quotes)
+* Click "Search"
+* In the results page, select the traits with the following "Record" values: "BXD_10050", "BXD_10051", "BXD_10088", "BXD_10091", "BXD_10092", "BXD_10455", "BXD_10569", "BXD_10570", "BXD_11316", "BXD_11317"
+* Click the "Add" button and add them to a new collection
+* In the resulting collections page, click the button for any of the listed failing features above
+
+### Failure modes
+
+* The "CTL" and "WCGNA" features have a failure mode that might have been caused by recent changes making use of AJAX calls, rather than submitting the form manually.
+* The "MultiMap" and "Generate Heatmap" features raise exceptions that need to be investigated and resolved
+* The "Partial Correlations" feature seems to run forever
+
+## Break-out Issues
+
+We break-out the issues above into separate pages to track the progress of the fixes for each feature separately.
+
+=> /issues/genenetwork3/ctl-maps-error
+=> /issues/genenetwork3/generate-heatmaps-failing
diff --git a/issues/genenetwork2/fix-display-for-time-consumed-for-correlations.gmi b/issues/genenetwork2/fix-display-for-time-consumed-for-correlations.gmi
new file mode 100644
index 0000000..0c8e9c8
--- /dev/null
+++ b/issues/genenetwork2/fix-display-for-time-consumed-for-correlations.gmi
@@ -0,0 +1,15 @@
+# Fix Display for the Time Consumed for Correlations
+
+## Tags
+
+* type: bug
+* status: closed, completed
+* priority: low
+* assigned: @alexm, @bonz
+* keywords: gn2, genenetwork2, genenetwork 2, gn3, genenetwork3 genenetwork 3, correlations, time display
+
+## Description
+
+The breakdown of the time consumed for the correlations computations, displayed at the bottom of the page, is not representative of reality. The time that GeneNetwork3 (or background process) takes for the computations is not actually represented in the breakdown, leading to wildly inaccurate displays of total time.
+
+This will need to be fixed.
diff --git a/issues/genenetwork3/01828928-26e6-4cad-bbc8-59fd7a7977de.json.zip b/issues/genenetwork3/01828928-26e6-4cad-bbc8-59fd7a7977de.json.zip
new file mode 100644
index 0000000..7681b88
--- /dev/null
+++ b/issues/genenetwork3/01828928-26e6-4cad-bbc8-59fd7a7977de.json.zip
Binary files differ
diff --git a/issues/genenetwork3/ctl-maps-error.gmi b/issues/genenetwork3/ctl-maps-error.gmi
new file mode 100644
index 0000000..6726357
--- /dev/null
+++ b/issues/genenetwork3/ctl-maps-error.gmi
@@ -0,0 +1,46 @@
+# CTL Maps Error
+
+## Tags
+
+* type: bug
+* status: open
+* priority: high
+* assigned: alexm, zachs, fredm
+* keywords: CTL, CTL Maps, gn3, genetwork3, genenetwork 3
+
+## Description
+
+Trying to run the CTL Maps feature in the collections page as described in
+=> /issues/genenetwork2/broken-collections-feature
+
+We get an error in the results page of the form:
+
+```
+{'error': '{\'code\': 1, \'output\': \'Loading required package: MASS\\nLoading required package: parallel\\nLoading required package: qtl\\nThere were 13 warnings (use warnings() to see them)\\nError in xspline(x, y, shape = 0, lwd = lwd, border = col, lty = lty, : \\n invalid value specified for graphical parameter "lwd"\\nCalls: ctl.lineplot -> draw.spline -> xspline\\nExecution halted\\n\'}'}
+```
+
+on the CLI the same error is rendered:
+```
+Loading required package: MASS
+Loading required package: parallel
+Loading required package: qtl
+There were 13 warnings (use warnings() to see them)
+Error in xspline(x, y, shape = 0, lwd = lwd, border = col, lty = lty, :
+ invalid value specified for graphical parameter "lwd"
+Calls: ctl.lineplot -> draw.spline -> xspline
+Execution halted
+```
+
+On my local development machine, the command run was
+```
+Rscript /home/frederick/genenetwork/genenetwork3/scripts/ctl_analysis.R /tmp/01828928-26e6-4cad-bbc8-59fd7a7977de.json
+```
+
+Here is a zipped version of the json file (follow the link and click download):
+=> https://github.com/genenetwork/gn-gemtext-threads/blob/main/issues/genenetwork3/01828928-26e6-4cad-bbc8-59fd7a7977de.json.zip
+
+Troubleshooting a while, I suspect
+=> https://github.com/genenetwork/genenetwork3/blob/27d9c9d6ef7f37066fc63af3d6585bf18aeec925/scripts/ctl_analysis.R#L79-L80 this is the offending code.
+
+=> https://cran.r-project.org/web/packages/ctl/ctl.pdf The manual for the ctl library
+indicates that our call above might be okay, which might mean something changed in the dependencies that the ctl library used.
diff --git a/issues/genenetwork3/generate-heatmaps-failing.gmi b/issues/genenetwork3/generate-heatmaps-failing.gmi
index 03256e6..522dc27 100644
--- a/issues/genenetwork3/generate-heatmaps-failing.gmi
+++ b/issues/genenetwork3/generate-heatmaps-failing.gmi
@@ -28,3 +28,37 @@ On https://gn2-fred.genenetwork.org the heatmaps fails with a note ("ERROR: unde
=> https://github.com/scipy/scipy/issues/19972
This issue should not be present with python-plotly@5.20.0 but since guix-bioinformatics pins the guix version to `b0b988c41c9e0e591274495a1b2d6f27fcdae15a`, we are not able to pull in newer versions of packages from guix.
+
+
+### Update 2025-04-08T10:59CDT
+
+Got the following error when I ran the background command manually:
+
+```
+$ export RUST_BACKTRACE=full
+$ /gnu/store/dp4zq4xiap6rp7h6vslwl1n52bd8gnwm-profile/bin/qtlreaper --geno /home/frederick/genotype_files/genotype/genotype/BXD.geno --n_permutations 1000 --traits /tmp/traits_test_file_n2E7V06Cx7.txt --main_output /tmp/qtlreaper/main_output_NGVW4sfYha.txt --permu_output /tmp/qtlreaper/permu_output_MJnzLbrsrC.txt
+thread 'main' panicked at src/regression.rs:216:25:
+index out of bounds: the len is 20 but the index is 20
+stack backtrace:
+ 0: 0x61399d77d46d - <unknown>
+ 1: 0x61399d7b5e13 - <unknown>
+ 2: 0x61399d78b649 - <unknown>
+ 3: 0x61399d78f26f - <unknown>
+ 4: 0x61399d78ee98 - <unknown>
+ 5: 0x61399d78f815 - <unknown>
+ 6: 0x61399d77d859 - <unknown>
+ 7: 0x61399d77d679 - <unknown>
+ 8: 0x61399d78f3f4 - <unknown>
+ 9: 0x61399d6f4063 - <unknown>
+ 10: 0x61399d6f41f7 - <unknown>
+ 11: 0x61399d708f18 - <unknown>
+ 12: 0x61399d6f6e4e - <unknown>
+ 13: 0x61399d6f9e93 - <unknown>
+ 14: 0x61399d6f9e89 - <unknown>
+ 15: 0x61399d78e505 - <unknown>
+ 16: 0x61399d6f8d55 - <unknown>
+ 17: 0x75ee2b945bf7 - __libc_start_call_main
+ 18: 0x75ee2b945cac - __libc_start_main@GLIBC_2.2.5
+ 19: 0x61399d6f4861 - <unknown>
+ 20: 0x0 - <unknown>
+```
diff --git a/issues/genenetwork3/rqtl2-mapping-error.gmi b/issues/genenetwork3/rqtl2-mapping-error.gmi
new file mode 100644
index 0000000..480c7c6
--- /dev/null
+++ b/issues/genenetwork3/rqtl2-mapping-error.gmi
@@ -0,0 +1,42 @@
+# R/qtl2 Maps Error
+
+## Tags
+
+* type: bug
+* status: open
+* priority: high
+* assigned: alexm, zachs, fredm
+* keywords: R/qtl2, R/qtl2 Maps, gn3, genetwork3, genenetwork 3
+
+## Reproduce
+
+* Go to https://genenetwork.org/
+* In the "Get Any" field, enter "synap*" and press the "Enter" key
+* In the search results, click on the "1435464_at" trait
+* Expand the "Mapping Tools" accordion section
+* Select the "R/qtl2" option
+* Click "Compute"
+* In the "Computing the Maps" page that results, click on "Display System Log"
+
+### Observed
+
+A traceback is observed, with an error of the following form:
+
+```
+⋮
+FileNotFoundError: [Errno 2] No such file or directory: '/opt/gn/tmp/gn3-tmpdir/JL9PvKm3OyKk.txt'
+```
+
+### Expected
+
+The mapping runs successfully and the results are presented in the form of a mapping chart/graph and a table of values.
+
+### Debug Notes
+
+The directory "/opt/gn/tmp/gn3-tmpdir/" exists, and is actually used by other mappings (i.e. The "R/qtl" and "Pair Scan" mappings) successfully.
+
+This might imply a code issue: Perhaps
+* a path is hardcoded, or
+* the wrong path value is passed
+
+The same error occurs on https://cd.genenetwork.org but does not seem to prevent CD from running the mapping to completion. Maybe something is missing on production — what, though?
diff --git a/issues/gn-uploader/AuthorisationError-gn-uploader.gmi b/issues/gn-uploader/AuthorisationError-gn-uploader.gmi
new file mode 100644
index 0000000..50a236d
--- /dev/null
+++ b/issues/gn-uploader/AuthorisationError-gn-uploader.gmi
@@ -0,0 +1,66 @@
+# AuthorisationError in gn uploader
+
+## Tags
+* assigned: fredm
+* status: open
+* priority: critical
+* type: error
+* key words: authorisation, permission
+
+## Description
+
+Trying to create population for Kilifish dataset in the gn-uploader webpage,
+then encountered the following error:
+```sh
+Traceback (most recent call last):
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/flask/app.py", line 917, in full_dispatch_request
+ rv = self.dispatch_request()
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/flask/app.py", line 902, in dispatch_request
+ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/uploader/authorisation.py", line 23, in __is_session_valid__
+ return session.user_token().either(
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/pymonad/either.py", line 89, in either
+ return right_function(self.value)
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/uploader/authorisation.py", line 25, in <lambda>
+ lambda token: function(*args, **kwargs))
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/uploader/population/views.py", line 185, in create_population
+ ).either(
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/pymonad/either.py", line 91, in either
+ return left_function(self.monoid[0])
+ File "/gnu/store/wxb6rqf7125sb6xqd4kng44zf9yzsm5p-profile/lib/python3.10/site-packages/uploader/monadic_requests.py", line 99, in __fail__
+ raise Exception(_data)
+Exception: {'error': 'AuthorisationError', 'error-trace': 'Traceback (most recent call last):
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/flask/app.py", line 917, in full_dispatch_request
+ rv = self.dispatch_request()
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/flask/app.py", line 902, in dispatch_request
+ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/authlib/integrations/flask_oauth2/resource_protector.py", line 110, in decorated
+ return f(*args, **kwargs)
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/gn_auth/auth/authorisation/resources/inbredset/views.py", line 95, in create_population_resource
+ ).then(
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/pymonad/monad.py", line 152, in then
+ result = self.map(function)
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/pymonad/either.py", line 106, in map
+ return self.__class__(function(self.value), (None, True))
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/gn_auth/auth/authorisation/resources/inbredset/views.py", line 98, in <lambda>
+ "resource": create_resource(
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/gn_auth/auth/authorisation/resources/inbredset/models.py", line 25, in create_resource
+ return _create_resource(cursor,
+ File "/gnu/store/38iayxz7dgm86f2x76kfaa6gwicnnjg4-profile/lib/python3.10/site-packages/gn_auth/auth/authorisation/checks.py", line 56, in __authoriser__
+ raise AuthorisationError(error_description)
+gn_auth.auth.errors.AuthorisationError: Insufficient privileges to create a resource
+', 'error_description': 'Insufficient privileges to create a resource'}
+
+```
+The error above resulted from the attempt to upload the following information on the gn-uploader-`create population section`
+Input details are as follows:
+Full Name: Kilifish F2 Intercross Lines
+Name: KF2_Lines
+Population code: KF2
+Description: Kilifish second generation population
+Family: Crosses, AIL, HS
+Mapping Methods: GEMMA, QTLReaper, R/qtl
+Genetic type: intercross
+
+And when pressed the `Create Population` icon, it led to the error above.
+
diff --git a/issues/gn-uploader/replace-redis-with-sqlite3.gmi b/issues/gn-uploader/replace-redis-with-sqlite3.gmi
new file mode 100644
index 0000000..3e5020a
--- /dev/null
+++ b/issues/gn-uploader/replace-redis-with-sqlite3.gmi
@@ -0,0 +1,17 @@
+# Replace Redis with SQL
+
+## Tags
+
+* status: open
+* priority: low
+* assigned: fredm
+* type: feature, feature-request, feature request
+* keywords: gn-uploader, uploader, redis, sqlite, sqlite3
+
+## Description
+
+We currently (as of 2024-06-27) use Redis for tracking any asynchronous jobs (e.g. QC on uploaded files).
+
+A lot of what we use redis for, we can do in one of the many SQL databases (we'll probably use SQLite3 anyway), which are more standardised, and easier to migrate data from and to. It has the added advantage that we can open multiple connections to the database, enabling the different processes to update the status and metadata of the same job consistently.
+
+Changes done here can then be migrated to the other systems, i.e. GN2, GN3, and gn-auth, as necessary.
diff --git a/issues/gnqa/implement-no-login-requirement-for-gnqa.gmi b/issues/gnqa/implement-no-login-requirement-for-gnqa.gmi
new file mode 100644
index 0000000..9dcef53
--- /dev/null
+++ b/issues/gnqa/implement-no-login-requirement-for-gnqa.gmi
@@ -0,0 +1,20 @@
+# Implement No-Login Requirement for GNQA
+
+## Tags
+
+* type: feature
+* status: progress
+* priority: medium
+* assigned: alexm,
+* keywords: gnqa, user experience, authentication, login, llm
+
+## Description
+This feature will allow usage of LLM/GNQA features without requiring user authentication, while implementing measures to filter out bots
+
+
+## Tasks
+
+* [x] If logged in: perform AI search with zero penalty
+* [ ] Add caching lifetime to save on token usage
+* [ ] Routes: check for referrer headers — if the previous search was not from the homepage, perform AI search
+* [ ] If global search returns more than *n* results (*n = number*), perform an AI search
diff --git a/issues/production-container-mechanical-rob-failure.gmi b/issues/production-container-mechanical-rob-failure.gmi
index a32194e..ae6bae8 100644
--- a/issues/production-container-mechanical-rob-failure.gmi
+++ b/issues/production-container-mechanical-rob-failure.gmi
@@ -2,7 +2,7 @@
## Tags
-* status: open
+* status: closed, completed, fixed
* priority: high
* type: bug
* assigned: fredm
diff --git a/issues/systems/apps.gmi b/issues/systems/apps.gmi
index 51c9d24..b9d4155 100644
--- a/issues/systems/apps.gmi
+++ b/issues/systems/apps.gmi
@@ -153,7 +153,7 @@ downloading from http://cran.r-project.org/src/contrib/Archive/KernSmooth/KernSm
- 'configure' phasesha256 hash mismatch for /gnu/store/n05zjfhxl0iqx1jbw8i6vv1174zkj7ja-KernSmooth_2.23-17.tar.gz:
expected hash: 11g6b0q67vasxag6v9m4px33qqxpmnx47c73yv1dninv2pz76g9b
actual hash: 1ciaycyp79l5aj78gpmwsyx164zi5jc60mh84vxxzq4j7vlcdb5p
-hash mismatch for store item '/gnu/store/n05zjfhxl0iqx1jbw8i6vv1174zkj7ja-KernSmooth_2.23-17.tar.gz'
+ hash mismatch for store item '/gnu/store/n05zjfhxl0iqx1jbw8i6vv1174zkj7ja-KernSmooth_2.23-17.tar.gz'
```
Guix checks and it is not great CRAN allows for changing tarballs with the same version number!! Luckily building with a more recent version of Guix just worked (TM). Now we create a root too:
@@ -184,12 +184,24 @@ and it looks like lines like these need to be updated:
=> https://github.com/genenetwork/singleCellRshiny/blob/6b2a344dd0d02f65228ad8c350bac0ced5850d05/app.R#L167
-Let me ask the author Siamak Yousefi.
+Let me ask the author Siamak Yousefi. I think we'll drop it.
+
+## longevity
+
+Package definition is at
+
+=> https://git.genenetwork.org/guix-bioinformatics/tree/gn/packages/mouse-longevity.scm
+
+Container is at
+
+=> https://git.genenetwork.org/guix-bioinformatics/tree/gn/services/bxd-power-container.scm
## jumpshiny
+Jumpshiny is hosted on balg01. Scripts are in tux02 git.
+
```
-balg01:~/gn-machines$ guix system container --network -L . -L ../guix-bioinformatics/ -L ../guix-past/modules/ --substitute-urls='https:
-//ci.guix.gnu.org https://bordeaux.guix.gnu.org https://cuirass.genenetwork.org' test-r-container.scm -L ../guix-forge/guix/
-/gnu/store/xyks73sf6pk78rvrwf45ik181v0zw8rx-run-container
+root@balg01:/home/j*/gn-machines# . /usr/local/guix-profiles/guix-pull/etc/profile
+guix system container --network -L . -L ../guix-forge/guix/ -L ../guix-bioinformatics/ -L ../guix-past/modules/ --substitute-urls='https://ci.guix.gnu.org https://bordeaux.guix.gnu.org https://cuirass.genenetwork.org' test-r-container.scm -L ../guix-forge/guix/gnu/store/xyks73sf6pk78rvrwf45ik181v0zw8rx-run-container
+/gnu/store/6y65x5jk3lxy4yckssnl32yayjx9nwl5-run-container
```
diff --git a/issues/systems/octoraid-storage.gmi b/issues/systems/octoraid-storage.gmi
new file mode 100644
index 0000000..97e0e55
--- /dev/null
+++ b/issues/systems/octoraid-storage.gmi
@@ -0,0 +1,18 @@
+# OctoRAID
+
+We are building machines that can handle cheap drives.
+
+# octoraid01
+
+This is a jetson with 4 22TB seagate-ironwolf-pro-st22000nt001-22tb-enterprise-nas-hard-drives-7200-rpm.
+
+Unfortunately the stock kernel has no RAID support, so we simple mount the 4 drives (hosted on a USB-SATA bridge).
+
+Stress testing:
+
+```
+cd /export/nfs/lair01
+stress -v -d 1
+```
+
+Running on multiple disks the jetson is holding up well!
diff --git a/issues/systems/penguin2-raid5.gmi b/issues/systems/penguin2-raid5.gmi
new file mode 100644
index 0000000..f03075d
--- /dev/null
+++ b/issues/systems/penguin2-raid5.gmi
@@ -0,0 +1,61 @@
+# Penguin2 RAID 5
+
+# Tags
+
+* assigned: @fredm, @pjotrp
+* status: in progress
+
+# Description
+
+The current RAID contains 3 disks:
+
+```
+root@penguin2:~# cat /proc/mdstat
+md0 : active raid5 sdb1[1] sda1[0] sdg1[4]
+/dev/md0 33T 27T 4.2T 87% /export
+```
+
+using /dev/sda,sdb,sdg
+
+The current root and swap is on
+
+```
+# root
+/dev/sdd1 393G 121G 252G 33% /
+# swap
+/dev/sdd5 partition 976M 76.5M -2
+```
+
+We can therefore add four new disks in slots /dev/sdc,sde,sdf,sdh
+
+penguin2 has no out-of-band and no serial connector right now. That means any work needs to be done on the terminal.
+
+Boot loader menu:
+
+```
+menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7ff268df-cb90-4cbc-9d76-7fd6677b4964' {
+ load_video
+ insmod gzio
+ if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
+ insmod part_msdos
+ insmod ext2
+ set root='hd2,msdos1'
+ if [ x$feature_platform_search_hint = xy ]; then
+ search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7ff268df-cb90-4cbc-9d76-7fd6677b4964
+ else
+ search --no-floppy --fs-uuid --set=root 7ff268df-cb90-4cbc-9d76-7fd6677b4964
+ fi
+ echo 'Loading Linux 5.10.0-18-amd64 ...'
+ linux /boot/vmlinuz-5.10.0-18-amd64 root=UUID=7ff268df-cb90-4cbc-9d76-7fd6677b4964 ro quiet
+ echo 'Loading initial ramdisk ...'
+ initrd /boot/initrd.img-5.10.0-18-amd64
+}
+```
+
+Added to sdd MBR
+
+```
+root@penguin2:~# grub-install /dev/sdd
+Installing for i386-pc platform.
+Installation finished. No error reported.
+```
diff --git a/issues/systems/tux02-production.gmi b/issues/systems/tux02-production.gmi
index 7de911f..d811c5e 100644
--- a/issues/systems/tux02-production.gmi
+++ b/issues/systems/tux02-production.gmi
@@ -14,9 +14,9 @@ We are going to move production to tux02 - tux01 will be the staging machine. Th
* [X] update guix guix-1.3.0-9.f743f20
* [X] set up nginx (Debian)
-* [X] test ipmi console (172.23.30.40)
+* [X] test ipmi console
* [X] test ports (nginx)
-* [?] set up network for external tux02e.uthsc.edu (128.169.4.52)
+* [?] set up network for external tux02
* [X] set up deployment evironment
* [X] sheepdog copy database backup from tux01 on a daily basis using ibackup user
* [X] same for GN2 production environment
diff --git a/issues/systems/tux04-disk-issues.gmi b/issues/systems/tux04-disk-issues.gmi
index 9bba105..bc6e1db 100644
--- a/issues/systems/tux04-disk-issues.gmi
+++ b/issues/systems/tux04-disk-issues.gmi
@@ -101,3 +101,280 @@ and nothing ;). Megacli is actually the tool to use
```
megacli -AdpAllInfo -aAll
```
+
+# Database
+
+During a backup the DB shows this error:
+
+```
+2025-03-02 06:28:33 Database page corruption detected at page 1079428, retrying...\n[01] 2025-03-02 06:29:33 Database page corruption detected at page 1103108, retrying...
+```
+
+
+Interestingly the DB recovered on a second backup.
+
+The database is hosted on a solid /dev/sde Dell Ent NVMe FI. The log says
+
+```
+kernel: I/O error, dev sde, sector 2136655448 op 0x0:(READ) flags 0x80700 phys_seg 40 prio class 2
+```
+
+Suggests:
+
+=> https://stackoverflow.com/questions/50312219/blk-update-request-i-o-error-dev-sda-sector-xxxxxxxxxxx
+
+> The errors that you see are interface errors, they are not coming from the disk itself but rather from the connection to it. It can be the cable or any of the ports in the connection.
+> Since the CRC errors on the drive do not increase I can only assume that the problem is on the receive side of the machine you use. You should check the cable and try a different SATA port on the server.
+
+and someone wrote
+
+> analyzed that most of the reasons are caused by intensive reading and writing. This is a CDN cache node. Type reading NVME temperature is relatively high, if it continues, it will start to throttle and then slowly collapse.
+
+and temperature on that drive has been 70 C.
+
+Mariabd log is showing errors:
+
+```
+2025-03-02 6:54:47 0 [ERROR] InnoDB: Failed to read page 449925 from file './db_webqtl/SnpAll.ibd': Page read from tablespace is corrupted.
+2025-03-02 7:01:43 489015 [ERROR] Got error 180 when reading table './db_webqtl/ProbeSetXRef'
+2025-03-02 8:10:32 489143 [ERROR] Got error 180 when reading table './db_webqtl/ProbeSetXRef'
+```
+
+Let's try and dump those tables when the backup is done.
+
+```
+mariadb-dump -uwebqtlout db_webqtl SnpAll
+mariadb-dump: Error 1030: Got error 1877 "Unknown error 1877" from storage engine InnoDB when dumping table `SnpAll` at row: 0
+mariadb-dump -uwebqtlout db_webqtl ProbeSetXRef > ProbeSetXRef.sql
+```
+
+Eeep:
+
+```
+tux04:/etc$ mariadb-check -uwebqtlout -c db_webqtl ProbeSetXRef
+db_webqtl.ProbeSetXRef
+Warning : InnoDB: Index ProbeSetFreezeId is marked as corrupted
+Warning : InnoDB: Index ProbeSetId is marked as corrupted
+error : Corrupt
+tux04:/etc$ mariadb-check -uwebqtlout -c db_webqtl SnpAll
+db_webqtl.SnpAll
+Warning : InnoDB: Index PRIMARY is marked as corrupted
+Warning : InnoDB: Index SnpName is marked as corrupted
+Warning : InnoDB: Index Rs is marked as corrupted
+Warning : InnoDB: Index Position is marked as corrupted
+Warning : InnoDB: Index Source is marked as corrupted
+error : Corrupt
+```
+
+On tux01 we have a working database, we can test with
+
+```
+mysqldump --no-data --all-databases > table_schema.sql
+mysqldump -uwebqtlout db_webqtl SnpAll > SnpAll.sql
+```
+
+Running the backup with rate limiting from:
+
+```
+Mar 02 17:09:59 tux04 sudo[548058]: pam_unix(sudo:session): session opened for user root(uid=0) by wrk(uid=1000)
+Mar 02 17:09:59 tux04 sudo[548058]: wrk : TTY=pts/3 ; PWD=/export3/local/home/wrk/iwrk/deploy/gn-deploy-servers/scripts/tux04 ; USER=roo>
+Mar 02 17:09:55 tux04 sudo[548058]: pam_unix(sudo:auth): authentication failure; logname=wrk uid=1000 euid=0 tty=/dev/pts/3 ruser=wrk rhost= >
+Mar 02 17:04:26 tux04 su[548006]: pam_unix(su:session): session opened for user ibackup(uid=1003) by wrk(uid=0)
+```
+
+Oh oh
+
+Tux04 is showing errors on all disks. We have to bail out. I am copying the potentially corrupted files to tux01 right now. We have backups, so nothing serious I hope. I am only worried about the myisam files we have because they have no strong internal validation:
+
+```
+2025-03-04 8:32:45 502 [ERROR] db_webqtl.ProbeSetData: Record-count is not ok; is 5264578601 Should be: 5264580806
+2025-03-04 8:32:45 502 [Warning] db_webqtl.ProbeSetData: Found 28665 deleted space. Should be 0
+2025-03-04 8:32:45 502 [Warning] db_webqtl.ProbeSetData: Found 2205 deleted blocks Should be: 0
+2025-03-04 8:32:45 502 [ERROR] Got an error from thread_id=502, ./storage/myisam/ha_myisam.cc:1120
+2025-03-04 8:32:45 502 [ERROR] MariaDB thread id 502, OS thread handle 139625162532544, query id 837999 localhost webqtlout Checking table
+CHECK TABLE ProbeSetData
+2025-03-04 8:34:02 79695 [ERROR] mariadbd: Table './db_webqtl/ProbeSetData' is marked as crashed and should be repaired
+```
+
+See also
+
+=> https://dev.mysql.com/doc/refman/8.4/en/myisam-check.html
+
+Tux04 will require open heart 'disk controller' surgery and some severe testing before we move back. We'll also look at tux05-8 to see if they have similar problems.
+
+## Recovery
+
+According to the logs tux04 started showing serious errors on March 2nd - when I introduced sanitizing the mariadb backup:
+
+```
+Mar 02 05:00:42 tux04 kernel: I/O error, dev sde, sector 2071078320 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2
+Mar 02 05:00:58 tux04 kernel: I/O error, dev sde, sector 2083650928 op 0x0:(READ) flags 0x80700 phys_seg 59 prio class 2
+...
+```
+
+The log started on Feb 23 when we had our last reboot. It probably is a good idea to turn on persistent logging! Anyway, it is likely files were fine until March 2nd. Similarly the mariadb logs also show
+
+```
+2025-03-02 6:53:52 489007 [ERROR] mariadbd: Index for table './db_webqtl/ProbeSetData.MYI' is corrupt; try to repair it
+2025-03-02 6:53:52 489007 [ERROR] db_webqtl.ProbeSetData: Can't read key from filepos: 2269659136
+```
+
+So, if we can restore a backup from March 1st we should be reasonably confident it is sane.
+
+First is to backup the existing database(!) Next restore the new DB by changing the DB location (symlink in /var/lib/mysql as well as check /etc/mysql/mariadb.cnf).
+
+When upgrading it is an idea to switch on these in mariadb.cnf
+
+```
+# forcing recovery with these two lines:
+innodb_force_recovery=3
+innodb_purge_threads=0
+```
+
+Make sure to disable (and restart) once it is up and running!
+
+So the steps are:
+
+* [X] install updated guix version of mariadb in /usr/local/guix-profiles (don't use Debian!!)
+* [X] repair borg backup
+* [X] Stop old mariadb (on new host tux02)
+* [X] backup old mariadb database
+* [X] restore 'sane' version of DB from borg March 1st
+* [X] point to new DB in /var/lib/mysql and cnf file
+* [X] update systemd settings
+* [X] start mariadb new version with recovery setting in cnf
+* [X] check logs
+* [X] once running revert on recovery setting in cnf and restart
+
+OK, looks like we are in business again. In the next phase we need to validate files. Normal files can be checked with
+
+```
+find -type f \( -not -name "md5sum.txt" \) -exec md5sum '{}' \; > md5sum.txt
+```
+
+and compared with another set on a different server with
+
+```
+md5sum -c md5sum.txt
+```
+
+* [X] check genotype file directory - some MAGIC files missing on tux01
+
+gn-docs is a git repo, so that is easily checked
+
+* [X] check gn-docs and sync with master repo
+
+
+## Other servers
+
+```
+journalctl -r|grep -i "I/O error"|less
+# tux05
+Nov 18 02:19:55 tux05 kernel: XFS (sdc2): metadata I/O error in "xfs_da_read_buf+0xd9/0x130 [xfs]" at daddr 0x78 len 8 error 74
+Nov 05 14:36:32 tux05 kernel: blk_update_request: I/O error, dev sdb, sector 1993616 op 0x1:(WRITE) flags
+0x0 phys_seg 35 prio class 0
+Jul 27 11:56:22 tux05 kernel: blk_update_request: I/O error, dev sdc, sector 55676616 op 0x0:(READ) flags
+0x80700 phys_seg 26 prio class 0
+Jul 27 11:56:22 tux05 kernel: blk_update_request: I/O error, dev sdc, sector 55676616 op 0x0:(READ) flags
+0x80700 phys_seg 26 prio class 0
+# tux06
+Apr 15 08:10:57 tux06 kernel: I/O error, dev sda, sector 21740352 op 0x1:(WRITE) flags 0x1000 phys_seg 4 prio class 2
+Dec 13 12:56:14 tux06 kernel: I/O error, dev sdb, sector 3910157327 op 0x9:(WRITE_ZEROES) flags 0x8000000 phys_seg 0 prio class 2
+# tux07
+Mar 27 08:00:11 tux07 mfschunkserver[1927469]: replication error: failed to create chunk (No space left)
+# tux08
+Mar 27 08:12:11 tux08 mfschunkserver[464794]: replication error: failed to create chunk (No space left)
+```
+
+Tux04, 05 and 06 show disk errors. Tux07 and Tux08 are overloaded with a full disk, but no other errors. We need to babysit Lizard more!
+
+```
+stress -v -d 1
+```
+
+Write test:
+
+```
+dd if=/dev/zero of=./test bs=512k count=2048 oflag=direct
+```
+
+Read test:
+
+```
+/sbin/sysctl -w vm.drop_caches=3
+dd if=./test of=/dev/zero bs=512k count=2048
+```
+
+
+smartctl -a /dev/sdd -d megaraid,0
+
+RAID Controller in SL 3: Dell PERC H755N Front
+
+# The story continues
+
+I don't know what happened but the server gave a hard
+error in the logs:
+
+```
+racadm getsel # get system log
+Record: 340
+Date/Time: 05/31/2025 09:25:17
+Source: system
+Severity: Critical
+Description: A high-severity issue has occurred at the Power-On
+Self-Test (POST) phase which has resulted in the system BIOS to
+abruptly stop functioning.
+```
+
+Woops! I fixed it by resetting idrac and rebooting remotely. Nasty.
+
+Looking around I found this link
+
+=>
+https://tomaskalabis.com/wordpress/a-high-severity-issue-has-occurred-at-the-power-on-self-te
+st-post-phase-which-has-resulted-in-the-system-bios-to-abruptly-stop-functioning/
+
+suggesting we should upgrade idrac firmware. I am not going to do that
+without backups and a fully up-to-date fallback online. It may fix the
+other hardware issues we have been seeing (who knows?).
+
+Fred, the boot sequence is not perfect yet. Turned out the network
+interfaces do not come up in the right order and nginx failed because
+of a missing /var/run/nginx. The container would not restart because -
+missing above - it could not check the certificates.
+
+## A week later
+
+```
+[SMM] APIC 0x00 S00:C00:T00 > ASSERT [AmdPlatformRasRsSmm] u:\EDK2\MdePkg\Library\BasePciSegmentLibPci\PciSegmentLib.c(766): ((Address) & (0xfffffffff0000000ULL | (3))) == 0 !!!! X64 Exception Type - 03(#BP - Breakpoint) CPU Apic ID - 00000000 !!!!
+RIP - 0000000076DA4343, CS - 0000000000000038, RFLAGS - 0000000000000002
+RAX - 0000000000000010, RCX - 00000000770D5B58, RDX - 00000000000002F8
+RBX - 0000000000000000, RSP - 0000000077773278, RBP - 0000000000000000
+RSI - 0000000000000087, RDI - 00000000777733E0 R8 - 00000000777731F8, R9 - 0000000000000000, R10 - 0000000000000000
+R11 - 00000000000000A0, R12 - 0000000000000000, R13 - 0000000000000000
+R14 - FFFFFFFFA0C1A118, R15 - 000000000005B000
+DS - 0000000000000020, ES - 0000000000000020, FS - 0000000000000020
+GS - 0000000000000020, SS - 0000000000000020
+CR0 - 0000000080010033, CR2 - 0000000015502000, CR3 - 0000000077749000
+CR4 - 0000000000001668, CR8 - 0000000000000001
+DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
+GDTR - 000000007773C000 000000000000004F, LDTR - 0000000000000000 IDTR - 0000000077761000 00000000000001FF, TR - 0000000000000040
+FXSAVE_STATE - 0000000077772ED0
+!!!! Find image based on IP(0x76DA4343) u:\Build_Genoa\DellBrazosPkg\DEBUG_MYTOOLS\X64\DellPkgs\DellChipsetPkgs\AmdGenoaModulePkg\Override\AmdCpmPkg\Features\PlatformRas\Rs\Smm\AmdPlatformRasRsSmm\DEBUG\AmdPlatformRasRsSmm.pdb (ImageBase=0000000076D3E000, EntryPoint=0000000076D3E6C0) !!!!
+```
+
+New error in system log:
+
+```
+Record: 341 Date/Time: 06/04/2025 19:47:08
+Source: system
+Severity: Critical Description: A high-severity issue has occurred at the Power-On Self-Test (POST) phase which has resulted in the system BIOS to abruptly stop functioning.
+```
+
+The error appears to relate to AMD Brazos which is probably part of the on board APU/GPU.
+
+The code where it segfaulted is online at:
+
+=> https://github.com/tianocore/edk2/blame/master/MdePkg/Library/BasePciSegmentLibPci/PciSegmentLib.c
+
+and has to do with PCI registers and that can actually be caused by the new PCIe card we hosted.
diff --git a/issues/systems/tux04-production.gmi b/issues/systems/tux04-production.gmi
index 01e1638..58ff8c1 100644
--- a/issues/systems/tux04-production.gmi
+++ b/issues/systems/tux04-production.gmi
@@ -6,6 +6,10 @@ Lately we have been running production on tux04. Unfortunately Debian got broken
and that is alarming. We might as well try an upgrade. I created a new partition on /dev/sda4 using debootstrap.
+The hardware RAID has proven unreliable on this machine (and perhaps others).
+
+We added a drive on a PCIe raiser outside the RAID. Use this for bulk data copying. We still bootstrap from the RAID.
+
Luckily not too much is running on this machine and if we mount things again, most should work.
# Tasks
diff --git a/tasks/alexm.gmi b/tasks/alexm.gmi
index b3031d3..7ec8e87 100644
--- a/tasks/alexm.gmi
+++ b/tasks/alexm.gmi
@@ -18,22 +18,81 @@ You can refine the search by constraining the checks some more, e.g. to get high
## This week
-* [X] Rqtl2 - BXD output work on CD
-* [X] Rqtl2 - ITP output - 3K individuals - family file
-* [ ] Minor refactorings
-* [ ] Accelerate Xapian functionality
* [ ] Start application - Pwani
+* - [X] Got all transcripts
+* [+] Correlations - Fred is having issues - Rust updated on Guix
+* - also take a look at long running SQL statement and large LIMIT value (check prod!)
+* [ ] Friend of UTHSC - Pjotr needs to send forms
+* [+] Disable spinner on production (check prod!)
+* [+] Rqtl2 - BXD output work on CD
+* - [ ] should go to production w. fredm
+ Disable for Production
+* - [X] DO mice family file - children are heterozygous - family file contains parents->child
+* - [X] DO GN2 compatible by generating .geno files
+ Test on CD
+* [+ ] Minor refactorings - Rqtl2 is hacky
+* [ ] Work in development system container and document
+=> https://git.genenetwork.org/gn-machines/commit/?h=gn-local-development-container&id=589dcf32be90f5ec827cb6976d3cb5838d500ac0
* [+] Create terminal output for external processes on *PRODUCTION* (Rqtl1, Rqtl2, GEMMA, pair-scan are done --- WGCNA as a pilot, with @bonfacem and @pjotrp)
+
+## (14/4/25)
+
+* [x] Debug DO results for for genenetwork2
+ * [x] inspect results from gn3 and display mapping results
+ * [x] Debug db tunneling connection
+ * [x] Debug rendering huge datatables
+
+## (21/4/25)
+* [x] QTL computation for the DO dataset
+ * [x] Debug rendering large datasets using datatables
+ * [x] fix issue with qtl2 plot for DO dataset
+ * [x] Caching for qtl2 computations
+
+* [] Pwani Campus Application
+
+## 28/4/25
+
+* [x] Push changes to CD/Production
+* [x] Enable RQTL2 only for DO/bxd dataset
+* [] look at integrating QTL for HS dataset
+* [x] setup local container with bons
+
+## 5/05/25
+
+* [] Integrate hsrat dataset for rqtl2 mapping.
+* [] Pwani campus application.
+* [] Look at caching for genotype probabilities (rqtl2).
+* [] Add full logs on the mapping results page.
+* [x] Add test feature flag for rqtl2.
+
+## 2/06/2025
+
+* work onsubset for hs dataset;; define founder genotype files??
+* script to dump genotypes to db with bons
+* experiment with caching for Genotypic probabilities rds objects
+* work on genenetwork llms how to make search without login
+
+* masters ; submit documents
+
## Next week(s)
+* [ ] Accelerate Xapian functionality - needs Aider key from Pjotr
+* Check and fix CTL?
* [+] Create terminal output for external processes (Rqtl1, Rqtl2, pair-scan are done --- WGCNA as a pilot, with @bonfacem and @pjotrp)
-* [ ] GNQA says there are no results, but has them
+* [X] GNQA says there are no results, but has them
+* [X] Correlations are slow
## Done
+* [X] Rqtl1 - ITP output - 3K individuals - family file
+* [X] When bonz is ready wire up GNQA
+* + balg-qa.genenetwork.org
+* [X] Don't support new PIL - stick to the old one in guix-bioninformatics
* [X] Make GNQA reliable (with @fahamu)
* [X] Improve UX for GNQA (with @shelbys) -- Adrian wants to use our AI UX for their setup
* [X] GNQA add abstracts pubmed (with @shelbys)
=> ../issues/fetch-pubmed-references-to-gnqa
* [X] Edit markdown/gemtext pages through web UI (with @bonfacem)
+
+
diff --git a/tasks/bonfacem.gmi b/tasks/bonfacem.gmi
index 7514e5b..03848f1 100644
--- a/tasks/bonfacem.gmi
+++ b/tasks/bonfacem.gmi
@@ -8,17 +8,43 @@
## Tasks
+### Note
+- GN-auth dashboard fixes. Follow up with Fred.
+- Case-attributes used in co-variates.
+- Encourage FahamuAI to be open.
+
### This week
+* [+] Case Attributes (Do a diagnostic and delegate)
+* - Git blame. Add tests.
+* - Error when checking the history.
+* - Reach out to Zach.
+* - Disable diff in the UI.
+* [ ] Distinct admin and dev user.
+* [ ] Adapter to LMDB into a cross object.
+* - Try computations with R/qtl2.
+* - Look at R LMDB libraries.
+* - Look at functions that read the files.
+* - PJ: LMDB adapter in R and cross-type files.
+* [ ] Send Arun an e-mail on how to go about upgrading shepherd.
+* [ ] Dump all genotypes from production to LMDB.
+* - PJ sync tux01 genotypes with tux02/04.
+* [+] Correlations hash.
+* - Add dataset count to RDF.
+* [ ] Spam + LLMs
+* - RateLimiting for Rif Editing.
+* - Honep Pot approach.
+* [+] Help Alex with SSL certification container error.
+* - Put the changes in the actual scm files.
+* [X] Python Fahamu.
+* [X] Memvid - brief look.
-* [ ] Describe Generif/wikidata access for Rob in an email with test account on CD
-* 1. Send email to Rob
-* 2. Work on production
-* [ ] Migrate fahamuai RAG to VPS and switch tokens to GGI OpenAI account
-* 1. Running AI server using (our) VPS and our tokens
-* 2. Read the code base
-* 3. Try ingestion and prompt (REST API)
-* 4. Backup state from production Elixir
-* 5. Assess porting it to Guix (don't do any work) - minimum version Elixir
+### Later
+* [ ] Dockerise GN container. For Harm.
+* [ ] Send emails when job fail.
+* [ ] Look at updating gn-auth/gn-libs to PYTHONPATH for gn2/3.
+* [ ] Sample/individual/strain/genometype counts for PublishData only - ProbeSetData? https://github.com/genenetwork/genenetwork2/blob/testing/scripts/sample_count.py - mirror in RDF and use global search
+* - search for all traits that have more than X samples
+* [ ] Add case attributes to RDF and share with Felix (depends on @felixl)
* [ ] xapian search, add dataset size keys, as well as GN accession id, trait id, and date/year
* - Improve xapian markdown docs to show all used fields/keys with examples
* - genewiki search (link in table? check with Rob)
@@ -26,14 +52,6 @@
* - Fix missing search term for sh* - both menu search and global search
* - Use GN1 as a benchmark for search results (mechanical Rob?)
* - Xapian ranges for markers
-* [ ] With Alex get rqtl2 demo going in CD (for BXD)
-
-### Later
-
-* [ ] Sample/individual/strain/genometype counts for PublishData only - ProbeSetData? https://github.com/genenetwork/genenetwork2/blob/testing/scripts/sample_count.py - mirror in RDF and use global search
-* - search for all traits that have more than X samples
-* [+] Use aider - give a presentation in the coming weeks
-* [ ] Add case attributes to RDF and share with Felix (depends on @felixl)
### Even later
@@ -77,3 +95,39 @@ Currently closed issues are:
* [X] Add lmdb output hashes with index and export LMDB_DATA_DIRECTORY
* [X] Share small database with @pjotrp and @felixl
+* [X] With Alex get rqtl2 demo going in CD (for BXD)
+* [X] Set up meeting with ILRI
+* - Zasper https://news.ycombinator.com/item?id=42572057 - Alan
+* [X] Migrate fahamuai RAG to VPS and switch tokens to GGI OpenAI account
+* 1. Running AI server using (our) VPS and our tokens
+* + Pjotr gives API key - OpenAI - model?
+* 2. Read the code base - Elixir is plumbing incl. authentication, Python processing text etc.
+* 3. Try ingestion and prompt (REST API) - check out postgres tables
+* 4. Backup state from production Elixir
+* 5. Assess porting it to Guix (don't do any work) - minimum version Elixir
+* 6. Get docs from Shelby/Brian
+* [X] Set-up grobit on balg01
+* - guix docker/native
+* - recent breaking changes
+* [X] GeneRIF
+* - Merge recent changes first. Ping Rob.
+* - Brainstorm ideas around log-in.
+* - Unlimited tokens that don't expire.
+* - Sync prod with CD -- sqlite.
+* - Add deletion
+* [X] Describe Generif/wikidata access for Rob in an email with test account on CD
+* 1. Send email to Rob
+* 2. Work on production w. Fred
+* [X] Distinguish CD from production -- banners/buttons/colors.
+* [X] Use aider - give a presentation in the coming weeks
+* [X] gn-auth fixes
+* [X] Assess Brian's repo for deployment.
+* [X] Finish container work
+* - View diffs in BXD: Edit case attributes throws an error.
+* [X] Check small db from: https://files.genenetwork.org/database/
+* [X] Changes to Production + (Alex)
+* [X] File issue with syslog
+* [X] LMDB database.
+* - Simplify (focus on small files). Don't over-rely on Numpy.
+* [X] Assess adding GeneRIF to LLM.
+* [X] Referrer headers -- a way of preventing bots beyond rate-limiting.
diff --git a/tasks/felixl.gmi b/tasks/felixl.gmi
index b39ff7b..347f387 100644
--- a/tasks/felixl.gmi
+++ b/tasks/felixl.gmi
@@ -8,27 +8,127 @@
## Tasks
-#### This week
+### Goals
-* [ ] Finalize the slide deck - so it can be read on its own
-* [ ] Analyse and discuss BXD case attributes with Rob --- both group level and dataset level
+1. Write papers for PhD
+2. Load data into GN - serve the communities
+3. Get comfortable with programming
+
+#### Previous week(s)
+
+* [x] Restless Legs Syndrome (RLS) - 'Traditional Phewas' - AI aspect - Johannes
+* [+] Finalize the slide deck - so it can be read on its own
+* [.] Review paper: one-liners for @pjotrp - why is this important for GN and/or thesis
+* - [ ] list of relevant papers with one-liners - the WHY
+=> https://pmc.ncbi.nlm.nih.gov/articles/PMC3294237/
+* [+] Analyse and discuss BXD case attributes with Rob --- both group level and dataset level
* [ ] Sane representation of case attributes in RDF with @bonfacem
* [X] Present C.elegans protocol and example mappings with GEMMA/Rqtl
* [ ] Uploader - setting up code with @fredm
+* - [ ] Concrete improvement to work on
* - [X] run small database mysql locally
* - [X] aider with Sonnet + code fixes
* - [ ] document - add to code base - merge with Fred's tree - share changes with Pjotr & team
-* [ ] Review paper: one-liners for @pjotrp - why is this important for GN and/or thesis
-* - [ ] list of relevant papers with one-liners - the WHY
* [ ] Sort @alexm application with Pwani = this week
-### Later weeks
-
+### This week (07-04-2025 onwards)
+
+* GN2 tasks
+ * [ X ] Progress on Kilifish
+ - meet with Dennis (send him an email with all the queries needed)
+ - progress to format and upload data to gn2 (to be ready by latest Friday!)
+ * [ X ] Make a milestone with genotype smoothing
+
+* PhD tasks
+ * [ X ] Complete and share concept note and timeline to supervisors, have a meeting for progress
+ * [ ] Make a milestone on chapter one manuscript (deep dive into the selected papers){THE BIG PICTURE; a complete draft by early May}
+
+* Programming
+ * [ ] Make a milestone with the uploader (really push and learn!)
+ - documentation (use ai); add to the code base of the uploader
+ - utilise the hurdles to learn programming priniciples in action
+
+### This week (14-04-2025 onwards)
+
+* gn-uploader programming
+ * [X] - Resolve the config file issue with your local uploader
+ * [ ] - Run the uploader locally, then break the system, see how components connect to each other
+ * [ ] - document your findings
+
+* genotype smoothing
+ * [ ] - resolve errors with plotting, document your findings
+
+### This week (21-04-Onwards)
+
+* genotype smoothing
+ * [ ] - haplotyping tools for smoothing (plink,., etc)
+ - see what it can offer with smoothing. See what others say about this.
+
+* gn-uploader programming
+ * [ ] - Run the uploader locally, then break the system, see how components connect to each other (ask help from Bonz)
+ * [ ] - document your findings
+
+### This week (28-04-Onwards)
+* gn-uploader programming
+ * [X] - Run the uploader locally, then break the system, see how components connect to each other (ask help from Bonz)
+ * [X] - document your findings
+ {Get help from your teammates/AI to jump start this!, swallow your pride! :(}
+
+* genotype smoothing
+ * [X] Keep refining the following:
+ * [X] filtering power adapted from plink
+ * [X] the xsomes mix up in the plot (probably the phenotype data?)
+ * [X] Update findings and push to github
+
+### This week (05-05-Onwards)
+* programming (gn-uploader)
+ * [ ] - pick one file each day, review it, understand it
+ * [ ] - pair programming with Alex on test runs
+
+* HS rats scripts
+ * [ ] - prepare/refine scripts to quickly process HS rats file
+ * [ ] - assist alex with hs rats cross info
+
+* AOBs
+ * [ X ] Weekly meetings
+ * [ X ] follow up with Paul on his progress
+ * [ X ] follow up on the MSc bioinformatics project
+ * [ X ] follow up on Alex's application with Pwani
+
+### (12-05-onwards)
+ * [X] - HS genotypes scripting
+
+### (19-05-onwards)
+ * [X] - HS genotypes debugging (memory issue)
+ * [X] - pair programming with Bonz to improve the script
+
+### this week (26-05-onwards)
+ * [X] - process the genotype file for hs rats
+ * [X] - approach by tissues categories
+ * [X] - adipose and liver
+ - test by Xsomes for memory capture
+ - run the working commands
+ * [X] - the rest 10 other tissues (in progress)
+ * [X] - *.bed file vs the updated vcf files from the website?
+
+### this week (02-06-onwards)
+* [X] - process the genotypes for the rest of the 10 tissues for HS rats
+* [X] - document the new findings about smoothing using bcftools and plink
+
+* ## this week (09-06-onwards)
+* [ ] - identify start and end points for haplotypes in hs genotype files
+* [ ] - upload the final updates to gn2, test and see the results
+* [ ] - gn-uploader/uploader folder, explore
+
+### Later weeks (non-programming tasks)
+
+* [ ] Kilifish into GN
* [ ] Review paper on genotyping
* [ ] HS Rat
* [ ] Prepare others for C.elegans
* [ ] Upload Arabidopsis dataset
* [ ] Upload Medaka dataset
+* [ ] Work on improved DO and Ce genotyping
### Done
diff --git a/tasks/fredm.gmi b/tasks/fredm.gmi
index 3072c86..1cd3125 100644
--- a/tasks/fredm.gmi
+++ b/tasks/fredm.gmi
@@ -1,8 +1,15 @@
# Tasks for Fred
+# Tags
+
+* kanban: fredm
+* assigned: @fredm
+* status: in progress
+
# Tasks
-* [ ] Move production files from sdc to sde
+* [ ] Add drives to Penguin2, see issues/systems/penguin2-raid5
+* [X] Move production files from sdc to sde
* [ ] Fix password weakness
* [ ] Fix gn-docs and editing, e.g. facilities page by gn-guile in container
* [ ] Unifiy container dirs
diff --git a/tasks/machine-room.gmi b/tasks/machine-room.gmi
index badac82..77f7b8e 100644
--- a/tasks/machine-room.gmi
+++ b/tasks/machine-room.gmi
@@ -11,17 +11,19 @@
## GN
+* [ ] penguin2 has 90TB of space we can use on NFS/backups
+* [ ] Script to replace reaper with GEMMA
* [ ] Transfer nervenet.org to dnsimple
-* [ ] Trait vectors for Johannes
+* [+] Trait vectors for Johannes
+* [X] grub on tux04
* [ ] nft on tux04
* [ ] !!Organize pluto, update Julia and add apps to GN menu Jupyter notebooks
-* [ ] !!Xusheng jumpshiny services
+* [+] !!Xusheng jumpshiny services
* [ ] Fix apps and create system containers for herd services - see issues/systems/apps
* [ ] Slurm+ravanan on production for GEMMA speedup
* [ ] Embed R/qtl2 (Alex)
* [ ] Hoot in GN2 (Andrew)
* [ ] tux02 certbot failing (manual now)
-* [ ] penguin2 has 32TB of space we can use on NFS/backups
## Octopus:
diff --git a/tasks/octopus.gmi b/tasks/octopus.gmi
index 27232ec..61955ec 100644
--- a/tasks/octopus.gmi
+++ b/tasks/octopus.gmi
@@ -2,6 +2,9 @@
In this file we track tasks that need to be done.
+Tuxes still have some 30x 2.5" slots.
+Lambda has 18x 2.5" slots.
+
# Tasks
* [X] get lizardfs and NFS going on tuxes tux06-09
diff --git a/tasks/pjotrp.gmi b/tasks/pjotrp.gmi
index e5e25fe..57620aa 100644
--- a/tasks/pjotrp.gmi
+++ b/tasks/pjotrp.gmi
@@ -11,14 +11,17 @@
## 1U01HG013760
* Prefix-Free Parsing Compressed Suffix Tree (PFP) for tokenization
-* Mempig
+* Mempang
* [+] create backup server with @fredm
+* [+] RAG with Shelby and Bonz
* [+] Moni builds 1U01HG013760
* [+] test framework wfmash - vertebrate tree and HPC compute?
+* - wfmash - wgatools -> PAF + FASTA to VCF
+* - wfmash arch=native build
* [ ] gbam - data compression with Nick and Hasithak
-* [ ] accelerate wfmash with @santiago and team
-* [ ] package wfmash and Rust wfa2-lib
+* [X] accelerate wfmash with @santiago and team
+* [+] package wfmash and Rust wfa2-lib
* [ ] add Ceph for distributed network storage 1U01HG013760
* [ ] Work on pangenome genotyping 1U01HG013760
* [ ] update freebayes into Debian (version #)
@@ -27,29 +30,45 @@
* - [ ] static build and prepare for conda
* [ ] pangenome as a 1st class input for GEMMA
* kilifish pangenome with Paul and Dario
-* RAG with Shelby and Bonz
## Systems
+* [+] jumpshiny
+* [ ] pluto
* [ ] Backup production databases on Tux04
-* - [ ] Dump redis
-* - [ ] Dump sqlite
-* - [ ] Dump mariadb
+* - [+] Dump containers w. databases
+* - [X] Dump mariadb
+* - [ ] backup remote
+* - [ ] borg-borg
+* - [ ] fix root scripts
* [ ] make sure production is up to scratch (see stable below)
* [ ] synchronize git repos for public, CD, fallback and production using sheepdog and document
* [ ] drop tux02 backups on balg01
-* [ ] drop backups in NL
-* [ ] reintroduce borg-borg
* [X] Small database public
## Ongoing tasks (current/urgent)
-* [ ] Precompute
-* [+] Set up stable GeneNetwork server instance with new hardware (see below)
-=> /topics/systems/fire-up-genenetwork-system-container.gmi
+* [ ] ~Felix, Alex, Rahul as friends of UTHSC
+* [ ] Precompute with GEMMA
+ + [ ] Store N
+ + [ ] Store significance levels
+ + [ ] Check genotype input data
+ + [ ] Imputation
+ + [ ] Do same with bulkLMM
+ + [ ] Generate lmdb output
+ + [ ] Hook into Xapian
+ + [ ] Hook into correlations
+
* [ ] Check email setup tux04
-* [+] Julia as part of GN3 deployment
+* [ ] jbrowse plugin code - https://genenetwork.trop.in/mm10
+* [+] bulklmm Julia as part of GN3 deployment
+ - precompute & Julia
+=> https://github.com/GregFa/TestSysimage
+ Here the repo with BulkLMMSysimage:
+=> https://github.com/GregFa/BulkLMMSysimage
=> /topics/deploy/julia.gmi
+* [X] Set up stable GeneNetwork server instance with new hardware (see below)
+=> /topics/systems/fire-up-genenetwork-system-container.gmi
# Tasks
@@ -85,7 +104,7 @@ Longer term
Later
* [ ] Mempang25 1U01HG013760
- + [ ] Invites
+ + [X] Invites
+ [ ] Payments
+ [ ] Rooms
+ [ ] Catering
diff --git a/tasks/roadmap.gmi b/tasks/roadmap.gmi
new file mode 100644
index 0000000..9bed63d
--- /dev/null
+++ b/tasks/roadmap.gmi
@@ -0,0 +1,65 @@
+# GN Road map
+
+GN is a web service for complex traits. The main version is currently deployed in Memphis TN, mostly targetting mouse and rat.
+Here we define a road map to bring GN to more communities by providing federated services.
+The aim is to have plant.genenetwork.org, nematode.genenetwork.org, big.genenetwork.org running in the coming years.
+
+# Getting an instance up (step 1)
+
+## Deploy a new instance
+
+To test things we can use an existing database or a new one. We can deploy that as a (new) Guix service container.
+
+We'll need to run a few services including:
+
+* GN3
+* GN2
+* Auth (if required)
+* Uploader (if required)
+
+## Get database ready
+
+In the first step we have to upload data for the target community. This can be done by updating the databases with some example datasets. Care has to be taken that search etc. works and that we can do the mapping.
+
+* Add traits
+* Add genotype files
+* Add metadata
+
+# Branding and hosting (Step 2)
+
+Once we have a working database with a number of example use cases we can start rebranding the service and, ideally, host it on location.
+
+# Synchronization (Step 3)
+
+## Move traits into lmdb
+
+This is WIP. We need to adapt the GN3 code to work with lmdb when available.
+
+## Move genotypes into lmdb
+
+This is WIP. We need to adapt the GN3 code to work with lmdb when available.
+
+# Federated metadata (Step 4)
+
+## Move all metadata into RDF
+
+This is WIP and happening. We will need to document.
+
+# LLM Integration (Step 5)
+
+Provide an LLM that integrates well with the gn eco-system. Goals for the LLM:
+
+* Flexible data ingestion
+* Plug and play LLMS (local, OpenAI, Claude etc.)
+
+This is still a WIP.
+
+# Community (Step 6)
+
+## Uploading data examples
+
+## GN3 examples
+
+## UI examples
+
+## Provide programming examples
diff --git a/topics/deploy/genecup.gmi b/topics/deploy/genecup.gmi
index c5aec17..fc93d07 100644
--- a/topics/deploy/genecup.gmi
+++ b/topics/deploy/genecup.gmi
@@ -53,3 +53,72 @@ and port forward:
ssh -L 4200:127.0.0.1:4200 -f -N server
curl localhost:4200
```
+
+# Troubleshooting
+
+## Moving the PubMed dir
+
+After moving the PubMed dir GeneCup stopped displaying part of the connections. This can be reproduced by running the standard example on the home page - the result should look like the image on the right of the home page.
+
+After fixing the paths and restarting the service there still was no result.
+
+Genecup is currently managed by the shepherd as user shepherd. Stop the service as that user:
+
+```
+shepherd@tux02:~$ herd stop genecup
+guile: warning: failed to install locale
+Service genecup has been stopped.
+```
+
+Now the servic looks stopped, but it is still running and you need to kill by hand:
+
+```
+shepherd@tux02:~$ ps xau|grep genecup
+shepherd 89524 0.0 0.0 12780 944 pts/42 S+ 00:32 0:00 grep genecup
+shepherd 129334 0.0 0.7 42620944 2089640 ? Sl Mar05 66:30 /gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/bin/python3 /gnu/store/a6z0mmj6iq6grwynfvkzd0xbbr4zdm0l-genecup-latest-with-tensorflow-native-HEAD-of-master-branch/.server.py-real
+shepherd@tux02:~$ kill -9 129334
+shepherd@tux02:~$ ps xau|grep genecup
+shepherd 89747 0.0 0.0 12780 944 pts/42 S+ 00:32 0:00 grep genecup
+shepherd@tux02:~$
+```
+
+The log file lives in
+
+```
+shepherd@tux02:~/logs$ tail -f genecup.log
+```
+
+and we were getting errors on a reload and I had to fix
+
+```
+shepherd@tux02:~/shepherd-services$ grep export run_genecup.sh
+export EDIRECT_PUBMED_MASTER=/export3/PubMed
+export TMPDIR=/export/ratspub/tmp
+export NLTK_DATA=/export3/PubMed/nltk_data
+```
+
+See
+
+=> https://git.genenetwork.org/gn-shepherd-services/commit/?id=cd4512634ce1407b14b0842b0ef6a9cd35e6d46c
+
+The symlink from /export2 is not honoured by the guix container. Now the service works.
+
+Note we have deprecation warnings that need to be addressed in the future:
+
+```
+2025-04-22 00:40:07 /home/shepherd/services/genecup/guix-past/modules/past/packages/python.scm:740:19: warning: 'texlive-union' is deprecated,
+ use 'texlive-updmap.cfg' instead
+2025-04-22 00:40:07 guix build: warning: 'texlive-latex-base' is deprecated, use 'texlive-latex-bin' instead
+2025-04-22 00:40:15 updating checkout of 'https://git.genenetwork.org/genecup'...
+/gnu/store/9lbn1l04y0xciasv6zzigqrrk1bzz543-tensorflow-native-1.9.0/lib/python3.10/site-packages/tensorflow/python/framewo
+rk/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
+2025-04-22 00:40:38 _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
+2025-04-22 00:40:38 /gnu/store/9lbn1l04y0xciasv6zzigqrrk1bzz543-tensorflow-native-1.9.0/lib/python3.10/site-packages/tensorflow/python/framewo
+rk/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
+2025-04-22 00:40:38 _np_qint32 = np.dtype([("qint32", np.int32, 1)])
+2025-04-22 00:40:38 /gnu/store/9lbn1l04y0xciasv6zzigqrrk1bzz543-tensorflow-native-1.9.0/lib/python3.10/site-packages/tensorflow/python/framewo
+rk/dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
+2025-04-22 00:40:38 np_resource = np.dtype([("resource", np.ubyte, 1)])
+2025-04-22 00:40:39 /gnu/store/7sam0mr9kxrd4p7g1hlz9wrwag67a6x6-python-flask-sqlalchemy-2.5.1/lib/python3.10/site-packages/flask_sqlalchemy/__
+init__.py:872: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
+```
diff --git a/topics/deploy/machines.gmi b/topics/deploy/machines.gmi
index 9548e43..a7c197c 100644
--- a/topics/deploy/machines.gmi
+++ b/topics/deploy/machines.gmi
@@ -2,10 +2,11 @@
```
- [ ] bacchus 172.23.17.156 (00:11:32:ba:7f:17) - 1 Gbs
-- [X] lambda01 172.23.18.212 (7c:c2:55:11:9c:ac)
+- [ ] penguin2
+- [X] lambda01 172.23.18.212 (7c:c2:55:11:9c:ac) - currently 172.23.17.41
- [X] tux03i 172.23.17.181 (00:0a:f7:c1:00:8d) - 10 Gbs
[X] tux03 128.169.5.101 (00:0a:f7:c1:00:8b) - 1 Gbs
-- [ ] tux04i 172.23.17.170 (14:23:f2:4f:e6:10)
+- [X] tux04i 172.23.17.170 (14:23:f2:4f:e6:10)
- [X] tux04 128.169.5.119 (14:23:f2:4f:e6:11)
- [X] tux05 172.23.18.129 (14:23:f2:4f:35:00)
- [X] tux06 172.23.17.188 (14:23:f2:4e:29:10)
@@ -26,6 +27,8 @@ c for console or control
```
- [ ] DNS entries no longer visible
+- [X] penguin2-c 172.23.31.83
+- [ ] octolair01 172.23.16.228
- [X] lambda01-c 172.23.17.173 (3c:ec:ef:aa:e5:50)
- [X] tux01-c 172.23.31.85 (58:8A:5A:F9:3A:22)
- [X] tux02-c 172.23.30.40 (58:8A:5A:F0:E6:E4)
diff --git a/topics/deploy/setting-up-or-migrating-production-across-machines.gmi b/topics/deploy/setting-up-or-migrating-production-across-machines.gmi
new file mode 100644
index 0000000..1f35dae
--- /dev/null
+++ b/topics/deploy/setting-up-or-migrating-production-across-machines.gmi
@@ -0,0 +1,58 @@
+# Setting Up or Migrating Production Across Machines
+
+## Tags
+
+* type: documentation, docs, doc
+* status: in-progress
+* assigned: fredm
+* priority: undefined
+* keywords: migration, production, genenetwork
+* interested-parties: pjotrp, zachs
+
+## Introduction
+
+Recent events (Late 2024 and early 2025) have led to us needing to move the production system from one machine to the other several time, due to machine failures, disk space, security concerns, and the like.
+
+In this respect, a number of tasks rise to the front as necessary to accomplish for a successful migration. Each of the following sections will detail a task that's necessary for a successful migration.
+
+## Set Up the Database
+
+* Extract: detail this — link to existing document in this repo. Also, probably note that we symlink the extraction back to `/var/lib/mysql`?
+* Configure: detail this — link to existing document in this repo
+
+## Set Up the File System
+
+* TODO: List the necessary directories and describe what purpose each serves. This will be from the perspective of the container — actual paths on the host system are left to the builders choice, and can vary wildly.
+* TODO: Prefer explicit binding rather than implicit — makes the shell scripts longer, but no assumptions have to be made, everything is explicitly spelled out.
+
+## Redis
+
+We currently (2025-06-11) use Redis for:
+
+- Tracking user collection (this will be moved to SQLite database)
+- Tracking background jobs (this is being moved out to SQLite databases)
+- Tracking running-time (not sure what this is about)
+- Others?
+
+We do need to copy over the redis save file whenever we do a migration, at least until the user collections and background jobs features have been moved completely out of Redis.
+
+## Container Configurations: Secrets
+
+* TODO: Detail how to extract/restore the existing secrets configurations in the new machine
+
+## Build Production Container
+
+* TODO: Add notes on building
+* TODO: Add notes on setting up systemd
+
+## NGINX
+
+* TODO: Add notes on streaming and configuration of it thereof
+
+## SSL Certificates
+
+* TODO: Add notes on acquisition and setup of SSL certificates
+
+## DNS
+
+* TODO: Migrate DNS settings
diff --git a/topics/deploy/uthsc-vpn-with-free-software.gmi b/topics/deploy/uthsc-vpn-with-free-software.gmi
index 43f6944..95fd1cd 100644
--- a/topics/deploy/uthsc-vpn-with-free-software.gmi
+++ b/topics/deploy/uthsc-vpn-with-free-software.gmi
@@ -10,6 +10,11 @@ $ openconnect-sso --server uthscvpn1.uthsc.edu --authgroup UTHSC
```
Note that openconnect-sso should be run as a regular user, not as root. After passing Duo authentication, openconnect-sso will try to gain root priviliges to set up the network routes. At that point, it will prompt you for your password using sudo.
+## Recommended way
+
+The recommended way is to use Arun's g-expression setup using guix. See below. It should just work, provided you have the
+chained certificate that you can get from the browser or one of us.
+
## Avoid tunneling all your network traffic through the VPN (aka Split Tunneling)
openconnect, by default, tunnels all your traffic through the VPN. This is not good for your privacy. It is better to tunnel only the traffic destined to the specific hosts that you want to access. This can be done using the vpn-slice script.
@@ -72,6 +77,12 @@ Download it, download the UTHSC TLS certificate chain to uthsc-certificate.pem,
$(guix build -f uthsc-vpn.scm)
```
+to add a route by hand after you can do
+
+```
+ip route add 172.23.17.156 dev tun0
+```
+
# Troubleshooting
Older versions would not show a proper dialog for sign-in. Try
diff --git a/topics/deploy/uthsc-vpn.scm b/topics/deploy/uthsc-vpn.scm
index 73cb48b..82f67f5 100644
--- a/topics/deploy/uthsc-vpn.scm
+++ b/topics/deploy/uthsc-vpn.scm
@@ -9,7 +9,7 @@
;; Put in the hosts you are interested in here.
(define %hosts
(list "octopus01"
- "tux01.genenetwork.org"))
+ "spacex.uthsc.edu"))
(define (ini-file name scm)
"Return a file-like object representing INI file with @var{name} and
diff --git a/topics/genenetwork/starting_gn1.gmi b/topics/genenetwork/starting_gn1.gmi
index efbfd0f..e31061f 100644
--- a/topics/genenetwork/starting_gn1.gmi
+++ b/topics/genenetwork/starting_gn1.gmi
@@ -51,9 +51,7 @@ On an update of guix the build may fail. Try
#######################################'
# Environment Variables - private
#########################################
- # sql_host = '[1]tux02.uthsc.edu'
- # sql_host = '128.169.4.67'
- sql_host = '172.23.18.213'
+ sql_host = '170.23.18.213'
SERVERNAME = sql_host
MYSQL_SERVER = sql_host
DB_NAME = 'db_webqtl'
diff --git a/topics/gn-learning-team/next-steps.gmi b/topics/gn-learning-team/next-steps.gmi
new file mode 100644
index 0000000..b427923
--- /dev/null
+++ b/topics/gn-learning-team/next-steps.gmi
@@ -0,0 +1,48 @@
+# Next steps
+
+Wednesday we had a wrap-up meeting of the gn-learning efforts.
+
+## Data uploading
+
+The goal of these meetings was to learn how to upload data into GN. In the process Felix has become the de facto uploader, next to Arthur. A C. elegans dataset was uploaded and Felix is preparing
+
+* More C. elegans
+* HSRat
+* Kilifish
+* Medaka
+
+Updates are here:
+
+=> https://issues.genenetwork.org/tasks/felixl
+
+We'll keep focussing on that work and hopefully we'll get more parties interested in doing some actual work down the line.
+
+## Hosting GN in Wageningen
+
+Harm commented that he thought these meetings were valuable, particularly we learnt a lot about GN ins and outs. Harm suggests we focus on hosting GN in Wageningen for C. elegans and Arabidopsis.
+Pjotr says that is a priority this year, even if we start on a privately hosted machine in NL. Wageningen requires Docker images and Bonface says that is possible - with some work. So:
+
+* Host GN in NL
+* Make GN specific for C.elegans and Arabidopsis - both trim and add datasets
+* Create Docker container
+* Host Docker container in Wageningen
+* Present to other parties in Wageningen
+
+Having above datasets will help this effort succeed.
+
+## AI
+
+Harm is also very interested in the AI efforts and wants to pursue that in the context of above server - i.e., functionality arrives when it lands in GN.
+
+## Wormbase
+
+Jameson suggest we can work with Wormbase and the Caender folks once we have a running system. Interactive data analysis is very powerful and could run in conjunction with those sites.
+
+=> https://caendr.org/
+=> https://wormbase.org/
+
+Other efforts are Flybase and Arabidopsis Magic which we can host, in principle.
+
+## Mapping methods
+
+Jameson will continue with his work on risiduals.
diff --git a/topics/octopus/maintenance.gmi b/topics/octopus/maintenance.gmi
new file mode 100644
index 0000000..65ea52e
--- /dev/null
+++ b/topics/octopus/maintenance.gmi
@@ -0,0 +1,98 @@
+# Octopus/Tux maintenance
+
+## To remember
+
+`fdisk -l` to see disk models
+`lsblk -nd` to see mounted disks
+
+## Status
+
+octopus02
+- Devices: 2 3.7T SSDs + 2 894.3G SSDs + 2 4.6T HDDs
+- **Status: Slurm not OK, LizardFS not OK**
+- Notes:
+ - `octopus02 mfsmount[31909]: can't resolve master hostname and/or portname (octopus01:9421)`,
+ - **I don't see 2 drives that are physically mounted**
+
+octopus03
+- Devices: 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK
+- Notes: **I don't see 2 drives that are physically mounted**
+
+octopus04
+- Devices: 4 7.3 T SSDs (Neil) + 1 4.6T HDD + 1 3.7T SSD + 2 894.3G SSDs
+- Status: Slurm NO, LizardFS OK (we don't share the HDD)
+- Notes: no
+
+octopus05
+- Devices: 1 7.3 T SSDs (Neil) + 5 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK
+- Notes: no
+
+octopus06
+- Devices: 1 7.3 T SSDs (Neil) + 1 4.6T HDD + 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK (we don't share the HDD)
+- Notes: no
+
+octopus07
+- Devices: 1 7.3 T SSDs (Neil) + 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK
+- Notes: **I don't see 1 device that is physically mounted**
+
+octopus08
+- Devices: 1 7.3 T SSDs (Neil) + 1 4.6T HDD + 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK (we don't share the HDD)
+- Notes: no
+
+octopus09
+- Devices: 1 7.3 T SSDs (Neil) + 1 4.6T HDD + 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK (we don't share the HDD)
+- Notes: no
+
+octopus10
+- Devices: 1 7.3 T SSDs (Neil) + 4 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK (we don't share the HDD)
+- Notes: **I don't see 1 device that is physically mounted**
+
+octopus11
+- Devices: 1 7.3 T SSDs (Neil) + 5 3.7T SSDs + 2 894.3G SSDs
+- Status: Slurm OK, LizardFS OK
+- Notes: on
+
+tux05
+- Devices: 1 3.6 NVMe + 1 1.5T NVMe + 1 894.3G NVMe
+- Status: Slurm OK, LizardFS OK (we don't share anything)
+- Notes: **I don't have a picture to confirm physically mounted devices**
+
+tux06
+- Devices: 2 3.6 T SSDs (1 from Neil) + 1 1.5T NVMe + 1 894.3G NVMe
+- Status: Slurm OK, LizardFS (we don't share anything)
+- Notes:
+ - **Last picture reports 1 7.3 T SSD (Neil) that is missing**
+ - **Disk /dev/sdc: 3.64 TiB (Samsung SSD 990: free and usable for lizardfs**
+ - **Disk /dev/sdd: 3.64 TiB (Samsung SSD 990): free and usable for lizardfs**
+
+tux07
+- Devices: 3 3.6 T SSDs + 1 1.5T NVMe (Neil) + 1 894.3G NVMe
+- Status: Slurm OK, LizardFS
+- Notes:
+ - **Disk /dev/sdb: 3.64 TiB (Samsung SSD 990): free and usable for lizardfs**
+ - **Disk /dev/sdd: 3.64 TiB (Samsung SSD 990): mounted at /mnt/sdb and shared on LIZARDFS: TO CHECK BECAUSE IT HAS NO PARTITIONS**
+
+tux08
+- Devices: 3 3.6 T SSDs + 1 1.5T NVMe (Neil) + 1 894.3G NVMe
+- Status: Slurm OK, LizardFS
+- Notes: no
+
+tux09
+- Devices: 1 3.6 T SSDs + 1 1.5T NVMe + 1 894.3G NVMe
+- Status: Slurm OK, LizardFS
+- Notes: **I don't see 1 device that is physically mounted**
+
+## Neil disks
+- four 8TB SSDs on the right of octopus04
+- one 8TB SSD in the left slot of octopus05
+- six 8TB SSDs bottom-right slot of octopus06,07,08,09,10,11
+- one 4TB NVMe and one 8TB SSDs on tux06, NVME in the bottom-right of the group of 4 on the left, SSD on the bottom-left of the group of 4 on the right
+- one 4TB NVMe on tux07, on the top-left of the group of 4 on the right
+- one 4TB NVMe on tux08, on the top-left of the group of 4 on the right
diff --git a/topics/octopus/recent-rust.gmi b/topics/octopus/recent-rust.gmi
new file mode 100644
index 0000000..7ce8968
--- /dev/null
+++ b/topics/octopus/recent-rust.gmi
@@ -0,0 +1,76 @@
+# Use a recent Rust on Octopus
+
+
+For impg we currently need a rust that is more recent than what we have in Debian
+or Guix. No panic, because Rust has few requirements.
+
+Install latest rust using the script
+
+```
+curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+```
+
+Set path
+
+```
+. ~/.cargo/env
+```
+
+Update rust
+
+```
+rustup default stable
+```
+
+Next update Rust
+
+```
+octopus01:~/tmp/impg$ . ~/.cargo/env
+octopus01:~/tmp/impg$ rustup default stable
+info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
+info: latest update on 2025-05-15, rust version 1.87.0 (17067e9ac 2025-05-09)
+info: downloading component 'cargo'
+info: downloading component 'clippy'
+info: downloading component 'rust-docs'
+info: downloading component 'rust-std'
+info: downloading component 'rustc'
+(...)
+```
+
+and build the package
+
+```
+octopus01:~/tmp/impg$ cargo build
+```
+
+Since we are not in guix we get the local dependencies:
+
+```
+octopus01:~/tmp/impg$ ldd target/debug/impg
+ linux-vdso.so.1 (0x00007ffdb266a000)
+ libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe404001000)
+ librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe403ff7000)
+ libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe403fd6000)
+ libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe403fd1000)
+ libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe403e11000)
+ /lib64/ld-linux-x86-64.so.2 (0x00007fe404682000)
+```
+
+Login on another octopus - say 02 you can run impg from this directory:
+
+```
+octopus02:~$ ~/tmp/impg/target/debug/impg
+Command-line tool for querying overlaps in PAF files
+
+Usage: impg <COMMAND>
+
+Commands:
+ index Create an IMPG index
+ partition Partition the alignment
+ query Query overlaps in the alignment
+ stats Print alignment statistics
+
+Options:
+ -h, --help Print help
+ -V, --version Print version
+```
diff --git a/topics/programming/autossh-for-keeping-ssh-tunnels.gmi b/topics/programming/autossh-for-keeping-ssh-tunnels.gmi
new file mode 100644
index 0000000..a977232
--- /dev/null
+++ b/topics/programming/autossh-for-keeping-ssh-tunnels.gmi
@@ -0,0 +1,65 @@
+# Using autossh to Keep SSH Tunnels Alive
+
+## Tags
+* keywords: ssh, autossh, tunnel, alive
+
+
+## TL;DR
+
+```
+guix package -i autossh # Install autossh with Guix
+autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 5" -L 4000:127.0.0.1:3306 alexander@remoteserver.org
+```
+
+## Introduction
+
+Autossh is a utility for automatically restarting SSH sessions and tunnels if they drop or become inactive. It's particularly useful for long-lived tunnels in unstable network environments.
+
+See official docs:
+
+=> https://www.harding.motd.ca/autossh/
+
+## Installing autossh
+
+Install autossh using Guix:
+
+```
+guix package -i autossh
+```
+
+Basic usage:
+
+```
+autossh [-V] [-M monitor_port[:echo_port]] [-f] [SSH_OPTIONS]
+```
+
+## Examples
+
+### Keep a database tunnel alive with autossh
+
+Forward a remote MySQL port to your local machine:
+
+**Using plain SSH:**
+
+```
+ssh -L 5000:localhost:3306 alexander@remoteserver.org
+```
+
+**Using autossh:**
+
+```
+autossh -L 5000:localhost:3306 alexander@remoteserver.org
+```
+
+### Better option
+
+```
+autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -L 5000:localhost:3306 alexander@remoteserver.org
+```
+
+#### Option explanations:
+
+- `ServerAliveInterval`: Seconds between sending keepalive packets to the server (default: 0).
+- `ServerAliveCountMax`: Number of unanswered keepalive packets before SSH disconnects (default: 3).
+
+You can also configure these options in your `~/.ssh/config` file to simplify command-line usage.
diff --git a/topics/systems/backup-drops.gmi b/topics/systems/backup-drops.gmi
index a4677f7..3f81c5a 100644
--- a/topics/systems/backup-drops.gmi
+++ b/topics/systems/backup-drops.gmi
@@ -98,7 +98,7 @@ Next
ssh -v -i ~/.ssh/id_ecdsa_backup bacchus@dropserver
```
-should give a Broken pipe(!) or it says `This service allows sftp connections only`.
+should give a Broken pipe(!) or -- more recently -- it says `This service allows sftp connections only`.
When running sshd with a verbose switch you may see something like
fatal: bad ownership or modes for chroot directory component "/export/backup/"
@@ -121,6 +121,19 @@ chown bacchus.bacchus backup/bacchus/drop/
chmod 0700 backup/bacchus/drop/
```
+Another error may be:
+
+```
+fusermount3: mount failed: Operation not permitted
+```
+
+This means you need to set the suid on the fusermount3 command. Bit nasty in Guix.
+
+```
+apt-get install fuse(3) sshfs
+chmod 4755 /usr/bin/fusermount
+```
+
If auth.log says error: /dev/pts/11: No such file or directory on ssh, or received disconnect (...) disconnected by user we are good to go!
Note: at this stage it may pay to track the system log with
diff --git a/topics/systems/backups-with-borg.gmi b/topics/systems/backups-with-borg.gmi
index 5cdb2a3..1ad0112 100644
--- a/topics/systems/backups-with-borg.gmi
+++ b/topics/systems/backups-with-borg.gmi
@@ -8,6 +8,8 @@ Sheepdog also includes a web server for output:
=> http://sheepdog.genenetwork.org/sheepdog/status.html
+which I run on one of my machines.
+
# Tags
* assigned: pjotrp
@@ -200,3 +202,19 @@ Our production server runs databases and file stores that need to be backed up t
Once backups work it is useful to copy them to a remote server, so when the machine stops functioning we have another chance at recovery. See
=> ./backup-drops.gmi
+
+# Recovery
+
+With tux04 we ran into a problem where all disks were getting corrupted(!) Probably due to the RAID controller, but we still need to figure that one out.
+
+Anyway, we have to assume the DB is corrupt. Files are corrupt AND the backups are corrupt. Borg backup has checksums which you can
+
+```
+borg check repo
+```
+
+it has a --repair switch which we needed to remove some faults in the backup itself:
+
+```
+borg check --repair repo
+```
diff --git a/topics/systems/mariadb/mariadb.gmi b/topics/systems/mariadb/mariadb.gmi
index ae0ab19..ec8b739 100644
--- a/topics/systems/mariadb/mariadb.gmi
+++ b/topics/systems/mariadb/mariadb.gmi
@@ -16,6 +16,8 @@ To install Mariadb (as a container) see below and
Start the client and:
```
+mysql
+show databases
MariaDB [db_webqtl]> show binary logs;
+-----------------------+-----------+
| Log_name | File_size |
@@ -60,4 +62,11 @@ Stop the running mariadb-guix.service. Restore the latest backup archive and ove
=> https://www.borgbackup.org/ Borg
=> https://borgbackup.readthedocs.io/en/stable/ Borg documentation
-#
+# Upgrade mariadb
+
+It is wise to upgrade mariadb once in a while. In a disaster recovery it is better to move forward in versions too.
+Before upgrading make sure there is a decent backup of the current setup.
+
+See also
+
+=> issues/systems/tux04-disk-issues.gmi
diff --git a/topics/systems/mariadb/precompute-mapping-input-data.gmi b/topics/systems/mariadb/precompute-mapping-input-data.gmi
index 0c89fe5..977120d 100644
--- a/topics/systems/mariadb/precompute-mapping-input-data.gmi
+++ b/topics/systems/mariadb/precompute-mapping-input-data.gmi
@@ -49,10 +49,29 @@ The original reaper precompute lives in
=> https://github.com/genenetwork/genenetwork2/blob/testing/scripts/maintenance/QTL_Reaper_v6.py
-This script first fetches inbredsets
+More recent incarnations are at v8, including a PublishData version that can be found in
+
+=> https://github.com/genenetwork/genenetwork2/tree/testing/scripts/maintenance
+
+Note that the locations are on space:
+
+```
+cd /mount/space2/lily-clone/acenteno/GN-Data
+ls -l
+python QTL_Reaper_v8_space_good.py 116
+--
+python UPDATE_Mean_MySQL_tab.py
+cd /mount/space2/lily-clone/gnshare/gn/web/webqtl/maintainance
+ls -l
+python QTL_Reaper_cal_lrs.py 7
+```
+
+The first task is to prepare an update script that can run a set at a time and compute GEMMA output (instead of reaper).
+
+The script first fetches inbredsets
```
- select Id,InbredSetId,InbredSetName,Name,SpeciesId,FullName,public,MappingMethodId,GeneticType,Family,FamilyOrder,MenuOrderId,InbredSetCode from InbredSet LIMIT 5;
+select Id,InbredSetId,InbredSetName,Name,SpeciesId,FullName,public,MappingMethodId,GeneticType,Family,FamilyOrder,MenuOrderId,InbredSetCode from InbredSet LIMIT 5;
+----+-------------+-------------------+----------+-----------+-------------------+--------+-----------------+-------------+--------------------------------------------------+-------------+-------------+---------------+
| Id | InbredSetId | InbredSetName | Name | SpeciesId | FullName | public | MappingMethodId | GeneticType | Family | FamilyOrder | MenuOrderId | InbredSetCode |
+----+-------------+-------------------+----------+-----------+-------------------+--------+-----------------+-------------+--------------------------------------------------+-------------+-------------+---------------+
diff --git a/topics/systems/migrate-p2.gmi b/topics/systems/migrate-p2.gmi
deleted file mode 100644
index c7fcb90..0000000
--- a/topics/systems/migrate-p2.gmi
+++ /dev/null
@@ -1,12 +0,0 @@
-* Penguin2 crash
-
-This week the boot partition of P2 crashed. We have a few lessons here, not least having a fallback for all services ;)
-
-* Tasks
-
-- [ ] setup space.uthsc.edu for GN2 development
-- [ ] update DNS to tux02 128.169.4.52 and space 128.169.5.175
-- [ ] move CI/CD to tux02
-
-
-* Notes
diff --git a/topics/systems/synchronising-the-different-environments.gmi b/topics/systems/synchronising-the-different-environments.gmi
new file mode 100644
index 0000000..207b234
--- /dev/null
+++ b/topics/systems/synchronising-the-different-environments.gmi
@@ -0,0 +1,68 @@
+# Synchronising the Different Environments
+
+## Tags
+
+* status: open
+* priority:
+* type: documentation
+* assigned: fredm
+* keywords: doc, docs, documentation
+
+## Introduction
+
+We have different environments we run for various reasons, e.g.
+
+* Production: This is the user-facing environment. This is what GeneNetwork is about.
+* gn2-fred: production-adjacent. It is meant to test out changes before they get to production. It is **NOT** meant for users.
+* CI/CD: Used for development. The latest commits get auto-deployed here. It's the first place (outside of developer machines) where errors and breakages are caught and/or revealed. This will break a lot. Do not expose to users!
+* staging: Uploader environment. This is where Felix, Fred and Arthur flesh out the upload process, and tasks, and also test out the uploader.
+
+These different environments demand synchronisation, in order to have mostly similar results and failure modes.
+
+## Synchronisation of the Environments
+
+### Main Database: MariaDB
+
+* [ ] TODO: Describe process
+
+=> https://issues.genenetwork.org/topics/systems/restore-backups Extract borg archive
+* Automate? Will probably need some checks for data sanity.
+
+### Authorisation Database
+
+* [ ] TODO: Describe process
+
+* Copy backup from production
+* Update/replace GN2 client configs in database
+* What other things?
+
+### Virtuoso/RDF
+
+* [ ] TODO: Describe process
+
+* Copy TTL (Turtle) files from (where?). Production might not always be latest source of TTL files.
+=> https://issues.genenetwork.org/issues/set-up-virtuoso-on-production Run setup to "activate" database entries
+* Can we automate this? What checks are necessary?
+
+## Genotype Files
+
+* [ ] TODO: Describe process
+
+* Copy from source-of-truth (currently Zach's tux01 and/or production).
+* Rsync?
+
+### gn-docs
+
+* [ ] TODO: Describe process
+
+* Not sure changes from other environments should ever take
+
+### AI Summaries (aka. gnqna)
+
+* [ ] TODO: Describe process
+
+* Update configs (should be once, during container setup)
+
+### Others?
+
+* [ ] TODO: Describe process
diff --git a/topics/systems/update-production-checklist.gmi b/topics/systems/update-production-checklist.gmi
new file mode 100644
index 0000000..b17077b
--- /dev/null
+++ b/topics/systems/update-production-checklist.gmi
@@ -0,0 +1,182 @@
+# Update production checklist
+
+
+# Tasks
+
+* [X] Install underlying Debian
+* [X] Get guix going
+* [ ] Check database
+* [ ] Check gemma working
+* [ ] Check global search
+* [ ] Check authentication
+* [ ] Check sending E-mails
+* [ ] Make sure info.genenetwork.org can reach the DB
+* [ ] Backups
+
+The following are at the system level
+
+* [ ] Make journalctl presistent
+* [ ] Update certificates in CRON
+* [ ] Run trim in CRON
+
+# Install underlying Debian
+
+For our production systems we use Debian as a base install. Once installed:
+
+* [X] set up git in /etc and limit permissions to root user
+* [X] add ttyS0 support for grub and kernel - so out-of-band works
+* [X] start ssh server and configure not to use with passwords
+* [X] start nginx and check external networking
+* [ ] set up E-mail routing
+
+It may help to mount the old root if you have it. Now it is on
+
+```
+mount /dev/sdd2 /mnt/old-root/
+```
+
+# Get Guix going
+
+* [X] Install Guix daemon
+* [X] Move /gnu/store to larger partition
+* [X] Update Guix daemon and setup in systemd
+* [X] Make available in /usr/local/guix-profiles
+* [X] Clean up /etc/profile
+
+We can bootstrap with the Debian guix package. Next move the store to a large partion and hard mount it in /etc/fstab with
+
+```
+/export2/gnu /gnu none defaults,bind 0 0
+```
+
+Run guix pull
+
+```
+wrk@tux04:~$ guix pull -p ~/opt/guix-pull --url=https://codeberg.org/guix/guix-mirror.git
+```
+
+Use that to install guix in /usr/local/guix-profiles
+
+```
+guix package -i guix -p /usr/local/guix-profiles/guix
+```
+
+and update the daemon in systemd accordingly. After that I tend to remove /usr/bin/guix
+
+The Debian installer configures guix. I tend to remove the profiles from /etc/profile so people have a minimal profile.
+
+# Check database
+
+* [X] Install mariadb
+* [ ] Recover database
+* [ ] Test permissions
+* [ ] Mariadb update my.cnf
+
+Basically recover the database from a backup is the best start and set permissions. We usually take the default mariadb unless production is already on a newer version - so we move to guix deployment.
+
+On tux02 mariadb-10.5.8 is running. On Debian it is now 10.11.11-0+deb12u1, so we should be good. On Guix is 10.10 at this point.
+
+```
+apt-get install mariadb-server
+```
+
+Next unpack the database files and set permissions to the mysql user. And (don't forget) update the /etc/mysql config files.
+
+Restart mysql until you see:
+
+```
+mysql -u webqtlout -p -e "show databases"
++---------------------------+
+| Database |
++---------------------------+
+| 20081110_uthsc_dbdownload |
+| db_GeneOntology |
+| db_webqtl |
+| db_webqtl_s |
+| go |
+| information_schema |
+| kegg |
+| mysql |
+| performance_schema |
+| sys |
++---------------------------+
+```
+
+=> topics/systems/mariadb/mariadb.gmi
+
+## Recover database
+
+We use borg for backups. First restore the backup on the PCIe. Also a test for overheating!
+
+
+# Check sending E-mails
+
+The swaks package is quite useful to test for a valid receive host:
+
+```
+swaks --to testing-my-server@gmail.com --server smtp.uthsc.edu
+=== Trying smtp.uthsc.edu:25...
+=== Connected to smtp.uthsc.edu.
+<- 220 mailrouter8.uthsc.edu ESMTP NO UCE
+ -> EHLO tux04.uthsc.edu
+<- 250-mailrouter8.uthsc.edu
+<- 250-PIPELINING
+<- 250-SIZE 26214400
+<- 250-VRFY
+<- 250-ETRN
+<- 250-STARTTLS
+<- 250-ENHANCEDSTATUSCODES
+<- 250-8BITMIME
+<- 250-DSN
+<- 250 SMTPUTF8
+ -> MAIL FROM:<root@tux04.uthsc.edu>
+<- 250 2.1.0 Ok
+ -> RCPT TO:<pjotr2020@thebird.nl>
+<- 250 2.1.5 Ok
+ -> DATA
+<- 354 End data with <CR><LF>.<CR><LF>
+ -> Date: Thu, 06 Mar 2025 08:34:24 +0000
+ -> To: pjotr2020@thebird.nl
+ -> From: root@tux04.uthsc.edu
+ -> Subject: test Thu, 06 Mar 2025 08:34:24 +0000
+ -> Message-Id: <20250306083424.624509@tux04.uthsc.edu>
+ -> X-Mailer: swaks v20201014.0 jetmore.org/john/code/swaks/
+ ->
+ -> This is a test mailing
+ ->
+ ->
+ -> .
+<- 250 2.0.0 Ok: queued as 4157929DD
+ -> QUIT
+<- 221 2.0.0 Bye === Connection closed with remote host
+```
+
+An exim configuration can be
+
+```
+dc_eximconfig_configtype='smarthost'
+dc_other_hostnames='genenetwork.org'
+dc_local_interfaces='127.0.0.1 ; ::1'
+dc_readhost=''
+dc_relay_domains=''
+dc_minimaldns='false'
+dc_relay_nets=''
+dc_smarthost='smtp.uthsc.edu'
+CFILEMODE='644'
+dc_use_split_config='false'
+dc_hide_mailname='false'
+dc_mailname_in_oh='true'
+dc_localdelivery='maildir_home'
+```
+
+And this should work:
+
+```
+swaks --to myemailaddress --from john@uthsc.edu --server localhost
+```
+
+# Backups
+
+* [ ] Create an ibackup user.
+* [ ] Install borg (usually guix version)
+* [ ] Create a borg passphrase