Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Manual Reboot #1461

Closed
saki2fifty opened this issue Mar 3, 2021 · 22 comments
Closed

Feature Request - Manual Reboot #1461

saki2fifty opened this issue Mar 3, 2021 · 22 comments
Assignees
Labels
enhancement New feature or request implemented an enhancement has been implemented

Comments

@saki2fifty
Copy link

Can we get a manual "Reboot Server" button added to our web consoles?

This will help if we're tied up with other things and need to do a simple reboot, without having to putty / remote in.

@RainbowMiner
Copy link
Owner

Sure - I'll add that button.

@RainbowMiner RainbowMiner self-assigned this Mar 3, 2021
@RainbowMiner RainbowMiner added the enhancement New feature or request label Mar 3, 2021
RainbowMiner added a commit that referenced this issue Mar 3, 2021
- add Reboot button to localhost. To be able to reboot, you must set `"EnableRestartComputer": "1",` in config.txt first. This is a security measure,- make sure the web-access to your machine is protected (set a `"APIUser"` and `"APIPassword`" in config.txt). Otherwise everybody with knowledge to your IP can reboot your rig. (issue #1461)
@RainbowMiner
Copy link
Owner

Ok, added:

  • add Reboot button to localhost. To be able to reboot, you must set "EnableRestartComputer": "1", in config.txt first. This is a security measure - make sure the web-access to your machine is protected (set some "APIUser" and "APIPassword" in config.txt). Otherwise everybody with knowledge to your IP can reboot your rig. (issue Feature Request - Manual Reboot #1461)

@RainbowMiner RainbowMiner added the implemented an enhancement has been implemented label Mar 3, 2021
@saki2fifty
Copy link
Author

Thx!

@astronyu
Copy link

astronyu commented Mar 4, 2021

@RainbowMiner , about "RestartComputerHours": 0.0" what does that means. Does it means I can set it to 120 and it will reboot my rig every 5 days?

@RainbowMiner
Copy link
Owner

RainbowMiner commented Mar 4, 2021

@astronyu exactly. 120h / 24h = 5 days

Remember: for reboots to happen, you need to set "EnableRestartComputer": "1", in config.txt

@astronyu
Copy link

astronyu commented Mar 4, 2021

@astronyu exactly. 120h / 24h = 5 days

Remember: for reboots to happen, you need to set "EnableRestartComputer": "1", in config.txt

Thanks for confirming that. Weird enough, I've already have "EnableRestartComputer": "1" in config.txt and "RestartComputerHours": 0.0".

Where is this button located exactly?

@RainbowMiner
Copy link
Owner

It's on the Dashboard on http://localhost:4000 - I will add reboot to rbminer.net, too. But therefor we need some kind of PIN or Password to protect us from malicious reboots from people, who know our rbminer.net status report key.

@astronyu
Copy link

astronyu commented Mar 4, 2021

I honestly don't see any button apart from the usual Pause and Lock buttons. I do have user name and password set for the API. Is the button hidden if I set to auto reboot in X hours? If so, maybe good idea to still show the button for on demand reboot.

@RainbowMiner
Copy link
Owner

RainbowMiner commented Mar 4, 2021

You need to update to v4.6.9.8
image

@astronyu
Copy link

astronyu commented Mar 4, 2021

Thank you! I did a manual update and the button is there.

@saki2fifty
Copy link
Author

saki2fifty commented Mar 4, 2021

Confirmed this morning, button is there!

@saki2fifty
Copy link
Author

Well, after attempting to reboot my rigs multiple times, they did not reboot. (Going off the Uptime status, constant ping, and putty session). Gave it about an hour.

Linux server. Launching RBM screen as a service upon boot if that makes a diff. (RBM.service).

@RainbowMiner
Copy link
Owner

Linux server. Launching RBM screen as a service upon boot if that makes a diff. (RBM.service).

Which Linux distro are you running?

RainbowMiner added a commit that referenced this issue Mar 4, 2021
- eventually fix reboot not happening with some Linux distros (issue #1461)
@saki2fifty
Copy link
Author

Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

@RainbowMiner
Copy link
Owner

Ok, I'll look into it. I have some 18.04 machines, as well.

@saki2fifty
Copy link
Author

Thx!

My exact service:

[Unit]
Description=RainbowMiner
After=network.target
StartLimitIntervalSec=0
[Service]
Type=forking
Restart=always
RestartSec=1
User=root
ExecStart=/usr/bin/screen -S RainbowMiner -d -m /home/[user]/RainbowMiner/start.sh
#ExecStart=/home/[user]/RainbowMiner/start-nohup.sh

RainbowMiner added a commit that referenced this issue Mar 4, 2021
- fix: reboot on Linux (issue #1461)
@RainbowMiner
Copy link
Owner

Ok, that last commit 2aa9c84 should solve the Linux reboot issue.

@saki2fifty
Copy link
Author

Still does not reboot, but... Noticed Include.psm1 did not get the code change.

How do I properly pull recent commits?

@RainbowMiner
Copy link
Owner

RainbowMiner commented Mar 6, 2021

Two ways are possible for an update:

  • either wait for a release and use the update function of RainbowMiner
  • or download the current master.zip and extract it right into your RainbowMiner folder with overwrite all files. Your configuration will not be touched.

Just in case, could you please create a Debug file and upload it here? Just open http://localhost:4000 in your browser and click "Debug file". It will create a zip file containing the logs of the past three days plus a condensed configuration record. All sensible data (like wallets, passwords, api data) will be XXXed out.

@saki2fifty
Copy link
Author

I was actually about to manually download and extract, then had to head out. I assumed you queue up your fixes before you release... was going to wait for it, but thought I'd ask.

Attached. One rig:
debug_2021-03-06.zip

@saki2fifty
Copy link
Author

Confirmed to work on v.4.6.9.9.

Thx,

@astronyu
Copy link

@RainbowMiner , is it possible to also have this feature enabled for remote miners? Instead of having to open a separate dashboard for other miner, can we instead reboot that particular rig from server/main rig? Don't know where the best place to put this additional button but maybe an extra button in console tab would do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request implemented an enhancement has been implemented
Projects
None yet
Development

No branches or pull requests

3 participants