# Grin Node freezes in TUI mode - v5.1.2

**URL:** https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546
**Category:** Tech Support
**Created:** [May 24, 2023, 11:06am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546 "2023-05-24T11:06:38Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 24, 2023, 11:06am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/1 "2023-05-24T11:06:38Z")

</div>

Hey,

I run a Grin Node in TUI mode using Ubuntu and screen.  
Installed is version 5.1.2 - Due to github release notes the TUI issue should be fixed.

The connected miners disconnect randomly after working a few hours.  
Have to restart the node several times until it is working properly.

TUI in combi with Ubuntu screen seems not to be a stable combo?

What if I would run Grin node without TUI - do I have to parse logs to get amount of shares and other mining infos?

---

<div class="post-metadata">

### Author: ![vegycslol](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/vegycslol/32/3340_2.png) [@vegycslol](https://forum.grin.mw/u/vegycslol)
#### Post date: [May 24, 2023, 11:10am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/2 "2023-05-24T11:10:22Z")

</div>

I would try running the latest version, v5.2.0-alpha.2. I think this issue is fixed there.

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 24, 2023, 11:12am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/3 "2023-05-24T11:12:19Z")

</div>

Thought of this option aswell, but the “alpha” tag, dont know does not sound clean.

---

<div class="post-metadata">

### Author: ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)
#### Post date: [May 24, 2023, 11:52am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/4 "2023-05-24T11:52:54Z")

</div>

> [@vegycslol](#):
>
> I would try running the latest version, v5.2.0-alpha.2. I think this issue is fixed there.

Agree, works much more stable in my experience.

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 24, 2023, 12:27pm UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/5 "2023-05-24T12:27:06Z")

</div>

Thanks will upgrade to latest node version.

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 26, 2023, 8:37am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/6 "2023-05-26T08:37:22Z")

</div>

Any xp how to update the node version on linux? I tried to remove the .grin folder but grin command instant restore it. Is there a way to update via command line?

---

<div class="post-metadata">

### Author: ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)
#### Post date: [May 26, 2023, 8:46am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/7 "2023-05-26T08:46:39Z")

</div>

As far as I understand, if you update, you only need to replace the binary. You do not even need to remove the ./grin folder.

So I think it is as simple as 1) removing the grin binary file/executable 2) going to the github page, downloading the .zip or .tar file and extracting it, in which you will find the grin binary.

> **[Release v5.2.0-alpha.2 · mimblewimble/grin](https://github.com/mimblewimble/grin/releases/tag/v5.2.0-alpha.2)**
>
> Things to test:
> 
> Syncing on scratch on testnet via PIBD.
> Leaving testnet node offline for over a week then starting again. PIBD should kick off from the last verified height.
> DNS seeds for mainnet ...

1. running the binary which is now the latest version means you updated. In case this gives you errors, just remove the ./grin folder and try again.

In case you need to compile your own version of the wallet and node for and ARM chip, read below

## On custom linux ARM chip, e.g. Raspberry Pi

### 1) Install rust

```auto

sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

```

-Restart command line to upload your path variabel, otherwise cargo build will not work

`sudo apt install build-essential git tor cmake git libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm`

(Credits: [Build - Grin Documentation](https://paouky.github.io/docs/getting-started/build/))

### 2) Install the grin node

```auto
git clone https://github.com/mimblewimble/grin
cd grin
cargo build

```

Look in /target/release to get the binary file (grin), copy it to a convenient place such as your home folder, this is the node binary, run via command line ./grin

### 3) Now install the grin-wallet

```auto
git clone https://github.com/mimblewimble/grin-wallet
cd grin-wallet
cargo build --release

```

Look in /target/release or in case of errors in /target/debug to get the binary file (gin-wallet), copy it to a convenience place, this is the wallet binary,  
-run in listening mode for incoming transactions with: _./grin-wallet listen_  
-Or if you do not have a wallet yet: _./grin-wallet init_  
-Or if you need to recover from seed: _./grin-wallet init -r_

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 26, 2023, 8:57am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/8 "2023-05-26T08:57:31Z")

</div>

Thanks for help. In my case it worked to download latest version from github and add it to  
tar -C /usr/local/bin -xzf grin-$VERSION-linux-amd64.tar.gz --strip-components=1

Updated the bin as you mentioned.

---

<div class="post-metadata">

### Author: ![ardocrat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ardocrat/32/5164_2.png) [@ardocrat](https://forum.grin.mw/u/ardocrat)
#### Post date: [May 26, 2023, 11:26am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/9 "2023-05-26T11:26:41Z")

</div>

> [@Anynomous](#):
>
> Look in /target/release

At this case you need to build it with:

```auto
cargo build --release

```

---

<div class="post-metadata">

### Author: ![ardocrat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ardocrat/32/5164_2.png) [@ardocrat](https://forum.grin.mw/u/ardocrat)
#### Post date: [May 26, 2023, 11:37am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/10 "2023-05-26T11:37:13Z")

</div>

A reason for TUI freeze is starting the server at main thread, I experienced same problem at my app, it can take up to 1 minute at debug release to start the server with finished sync state, problematic call is: `chain::setup_head`.  
At my app I just moved server creation to separate thread to avoid this, discussed this problem with @vegycslol also, I guess we can solve it by launching server at another thread or optimize `setup_head` function somehow.  
P.S. At my build I used 5.1.2 too as last available version from [crates.io](http://crates.io)

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [May 26, 2023, 1:30pm UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/11 "2023-05-26T13:30:45Z")

</div>

5.2.0-alpha.2 runs stable now with TUI

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [July 20, 2023, 7:50am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/12 "2023-07-20T07:50:54Z")

</div>

In the latest Linux tar.gz v5.2.0-beta.2 seem to be a HTML file corrupting the download.

Someone has an idea to fix this?

 ![v5.2.0](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/0/0e906a40b7f4205e115cc05b7f16aabdd7ca4304.png)

---

<div class="post-metadata">

### Author: ![EllipticCurve](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ellipticcurve/32/6230_2.png) [@EllipticCurve](https://forum.grin.mw/u/EllipticCurve)
#### Post date: [July 20, 2023, 8:11am UTC](https://forum.grin.mw/t/grin-node-freezes-in-tui-mode-v5-1-2/10546/13 "2023-07-20T08:11:32Z")

</div>

Yeah it was the wrong path replaced /tag with /download
