Skip to content

Commit

Permalink
Add changes for f70da45
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 29, 2024
1 parent 865224b commit d24cdc2
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Example for UNSM_VP
# Add new Specify instance to Specify Cloud

## Example for UNSM_VP

1. Create Database
1. look through the sql file for issues and do test upload to local database
Expand Down Expand Up @@ -45,21 +47,29 @@ Example for UNSM_VP
1. Add url: unsm-vp.specifycloud.org/context/system_info.json
2. Add alias: unsm-vp

# Misc

Restarting the Database droplet, handle mariadb failing to restart:
- mysqld --tc-heuristic-recover=ROLLBACK
- systemctl start mariadb.service
* Add ssh key:

```bash
vim .ssh/authorized_keys
sudo systemctl reload sshd
```

# Troubleshooting

* Handle mariadb failing to restart after restarting the Database droplet:

```bash
mysqld --tc-heuristic-recover=ROLLBACK
systemctl start mariadb.service
```

* Fix an instance by restarting it:

Fixing an instance by restarting it:
```bash
sudo docker exec -it specifycloud_nginx_1 nginx -s reload;
sudo docker stop client client-worker;
sudo docker compose up -d;
sudo docker exec -it specifycloud_nginx_1 nginx -s reload;
```

Add ssh key:
```bash
vim .ssh/authorized_keys
sudo systemctl reload sshd
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>&lt;no title&gt; &mdash; Specify Developer Documentation documentation</title>
<title>Add new Specify instance to Specify Cloud &mdash; Specify Developer Documentation documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -43,7 +43,13 @@
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<!-- Local TOC -->
<div class="local-toc"><ul class="simple">
<div class="local-toc"><ul>
<li><a class="reference internal" href="#">Add new Specify instance to Specify Cloud</a><ul>
<li><a class="reference internal" href="#example-for-unsm-vp">Example for UNSM_VP</a></li>
</ul>
</li>
<li><a class="reference internal" href="#misc">Misc</a></li>
<li><a class="reference internal" href="#troubleshooting">Troubleshooting</a></li>
</ul>
</div>
</div>
Expand All @@ -60,17 +66,20 @@
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">&lt;no title&gt;</li>
<li class="breadcrumb-item active">Add new Specify instance to Specify Cloud</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/aws/Add New User Insance to Specify Cloud.md.txt" rel="nofollow"> View page source</a>
<a href="../_sources/aws/add_new_instance_to_specify_cloud.md.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<p>Example for UNSM_VP</p>
<section id="add-new-specify-instance-to-specify-cloud">
<h1>Add new Specify instance to Specify Cloud<a class="headerlink" href="#add-new-specify-instance-to-specify-cloud" title="Link to this heading"></a></h1>
<section id="example-for-unsm-vp">
<h2>Example for UNSM_VP<a class="headerlink" href="#example-for-unsm-vp" title="Link to this heading"></a></h2>
<ol class="arabic simple">
<li><p>Create Database</p>
<ol class="arabic simple">
Expand Down Expand Up @@ -141,23 +150,37 @@
</ol>
</li>
</ol>
<p>Restarting the Database droplet, handle mariadb failing to restart:</p>
</section>
</section>
<section id="misc">
<h1>Misc<a class="headerlink" href="#misc" title="Link to this heading"></a></h1>
<ul class="simple">
<li><p>Add ssh key:</p></li>
</ul>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>vim<span class="w"> </span>.ssh/authorized_keys
sudo<span class="w"> </span>systemctl<span class="w"> </span>reload<span class="w"> </span>sshd
</pre></div>
</div>
</section>
<section id="troubleshooting">
<h1>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Link to this heading"></a></h1>
<ul class="simple">
<li><p>mysqld –tc-heuristic-recover=ROLLBACK</p></li>
<li><p>systemctl start mariadb.service</p></li>
<li><p>Handle mariadb failing to restart after restarting the Database droplet:</p></li>
</ul>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>mysqld<span class="w"> </span>--tc-heuristic-recover<span class="o">=</span>ROLLBACK
systemctl<span class="w"> </span>start<span class="w"> </span>mariadb.service
</pre></div>
</div>
<ul class="simple">
<li><p>Fix an instance by restarting it:</p></li>
</ul>
<p>Fixing an instance by restarting it:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>docker<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>-it<span class="w"> </span>specifycloud_nginx_1<span class="w"> </span>nginx<span class="w"> </span>-s<span class="w"> </span>reload<span class="p">;</span>
sudo<span class="w"> </span>docker<span class="w"> </span>stop<span class="w"> </span>client<span class="w"> </span>client-worker<span class="p">;</span>
sudo<span class="w"> </span>docker<span class="w"> </span>compose<span class="w"> </span>up<span class="w"> </span>-d<span class="p">;</span>
sudo<span class="w"> </span>docker<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>-it<span class="w"> </span>specifycloud_nginx_1<span class="w"> </span>nginx<span class="w"> </span>-s<span class="w"> </span>reload<span class="p">;</span>
</pre></div>
</div>
<p>Add ssh key:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>vim<span class="w"> </span>.ssh/authorized_keys
sudo<span class="w"> </span>systemctl<span class="w"> </span>reload<span class="w"> </span>sshd
</pre></div>
</div>
</section>


</div>
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit d24cdc2

Please sign in to comment.