mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 990 forks source link

When run_tui is set to false it does not return to the cmd line once started #3784

Closed transatoshi-mw closed 6 months ago

transatoshi-mw commented 6 months ago

Describe the bug When you set the "run_tui" option to false in grin-server.toml it runs and displays lines of info but does not return back to the prompt so it's not fully running in the background.

To Reproduce Steps to reproduce the behavior:

  1. Open editor with grin-server.toml and change run_tui value to run_tui = false
  2. Expect the process to go in to the background when run
  3. Execute command grin server run
  4. The process fails to return to prompt and stays in foreground

Relevant Information 20240404 02:55:24.763 WARN grin::cmd::server - Starting GRIN w/o UI...

There is no mention of errors or being run as daemon past that line.

Screenshots Screenshot from 2024-04-04 02-57-50

Desktop (please complete the following information):

transatoshi-mw commented 6 months ago

So I found this article which explains you have to manually install grin to /usr/local/bin, create a grin.service file, and reload systemctl. Seems like every other wallet doesn't require all that and is able to do it in a few seconds without intervention.

https://privatepayments1.medium.com/grin-full-node-and-wallet-installation-linux-9025684802fa

aglkm commented 6 months ago

run_tui option has nothing to do with running grin node in background, as comment states:

whether to run the ncurses TUI (Ncurses must be installed)

Simple command to run the node in background: nohup ./grin &