# Blab Servers & virtual machines Duke

{% hint style="warning" %}
blab-server will be (was) quarantined on June 2, 2023. The OS on it needs to be updated. Stephan doesn't need it anymore but Federica might in case reviewers want her to collect more data. Zhenya'll fix the quarantine thing in early June but might not be able to do that again after June because he won't be working at Duke anymore. Federica is aware of that risk.
{% endhint %}

{% hint style="info" %}
annotid VM was killed on May 26, 2023. The system for assigning new annotids using that VM didn't work great: it created duplicated annotids. Since there wasn't going to be a lot of Seedlings annotating going on after May 26, 2023, Zhenya decided to kill it and write a script for adding annotid when the need arises.

In case someone wants to resurrect the old way: the scripts are archived in the [annotid](https://github.com/SeedlingsBabylab/annotid) repo, the VM is archived in `Seedlings/archive_data/annotid-VM-backup`, and the passwords for the VM and the database on it are in 1Password.
{% endhint %}

We had two servers (currently just one) in the lab that we use for various purposes:

* (<mark style="background-color:red;">!!! quarantined starting June 2, 2023 !!!</mark>) A paid VM from Duke OIT's hosting (which we call **blab-server**) that hosts Federica's files for zooniverse. Since zooniverse has a storage limit, we decided to host the experiment files ourselves. Has out
* (<mark style="background-color:red;">!!! this VM was shut down !!!</mark>) A free VM that Sarp got (and anyone with a netid can) from here: [https://cmgr.oit.duke.edu](https://cmgr.oit.duke.edu/)/. This VM was used only to host the annotid (token ids in Seedlings annotations) database.

How to connect and other details:

* Blab-server:
  * Connect to it with `ssh <login>@blab.vm.duke.edu`
  * The root password is on 1Password.
  * Hosts Federica's files for zooniverse
  * Hosts Stephan's files for plearn. Stephan has sudo rights.
  * Contains the CMU files, which are in the process (as of the writing of this page) of being transferred to Fas-Phyc-PEB-Lab. (see [https://github.com/BergelsonLab/gitbook/blob/main/notes-for-the-research-tech-andrei-the-4th/transferring-the-cmu-files-to-blab-share/README.md](https://github.com/BergelsonLab/gitbook/blob/main/notes-for-the-research-tech-andrei-the-4th/transferring-the-cmu-files-to-blab-share/README.md "mention")).
  * apache2 is used as the http server.
* Annotid VM:
  * Hostname: `vcm-16703.vm.duke.edu`
  * Currently only used to host annotid database (which is MySQL).
  * Access the MySql database using the info store on 1Password.
  * Access the VM itself by logging in using your net id. You can find admin credentials [here](https://vcm.duke.edu/reservations/16464).

### One other VM:

There was also another VM running at [rapid-311.vm.duke.edu](http://rapid-311.vm.duke.edu/). Elika was listed as the owner but it could have been due to someone transferring it to her when leaving the lab or something like that. No one was able to remember what it was used for so I (Zhenya) took it down and saved a copy to `/Volumes/psych/BergelsonLab/virtual machines/rapid-311.ova`. The password is on 1Password.

<details>

<summary>Page Status: needs updating</summary>

Status details: Duke-related keywords found on the page.

Last updated by ?? on ??/??/??.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.bergelsonlab.com/archive/duke-archive/blab-servers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
