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

Allow update of program from CC server #4

Closed
rekonnected opened this issue Dec 5, 2017 · 5 comments
Closed

Allow update of program from CC server #4

rekonnected opened this issue Dec 5, 2017 · 5 comments

Comments

@rekonnected
Copy link

It would be a pain for a lot of miners, since you'd have to manually update each one and restart it. If you can update the config remotely, why not add a config switch that allows the exe to be updated on a restart?

@Bendr0id
Copy link
Owner

Bendr0id commented Dec 5, 2017

Good point, but it's not that easy to override an an running exe file. Additional virus scanners wouldn't be happy with that. And the xmrigCCServer server would have to know which binary to deploy. Could also be a Linux miner. But I'll keep that in mind an think about a suitable solution.

@Bendr0id Bendr0id closed this as completed Dec 5, 2017
@rekonnected
Copy link
Author

In response to the running EXE problem, you could use a solution mentioned like here (https://social.msdn.microsoft.com/Forums/vstudio/en-US/c9a95e66-58a3-49b0-9474-92a46dbe252c/how-to-download-and-replace-running-exe?forum=vbgeneral), which suggests using another program to download and subsequently run the new file. Since the CC server checks for updates, you could likely include something in the program that reports miner version back to the CC server, allowing remote update.

In the Miner/Daemon, you would have to add a new function which, on command reciept from the CC server, starts the updater program (which likely waits a few seconds), stops itself, and then once the updater program has completed the download and replacement, starts the newly downloaded program with existing configuration.

@Bendr0id
Copy link
Owner

Bendr0id commented Dec 5, 2017

Will have a look..

@Bendr0id Bendr0id reopened this Dec 5, 2017
@rekonnected
Copy link
Author

I've come up with a possible scheme for updating both miner and daemon. I've graphed it out for ya here.
xmrig update

@enricodias
Copy link

I've worked on a desktop app that automatically update itself and we had no issues with anti viruses, but the app was installed in the appdata folder on windows.

Another program (the updater) checks for a new version every few minutes in the background. When a new version is available, the server sends a link of a zip file containing the update. The updater downloads and unzip the zip contents in a temp folder, stops the app and moves the files from the temp folder to the app folder replacing existing files.

There are a few more things in our updater, like checking if the app is not doing anything important before stopping it, but I don't think this is needed here.

@Bendr0id Bendr0id mentioned this issue Mar 15, 2022
Bendr0id added a commit that referenced this issue Mar 31, 2022
# 3.2.0
* Rebase upstream 6.16.5-dev
  * **Dero HE (astrobwt/v2)** CPU/OpenCL/Cuda support #378
* **Finally!! Integrated remote miner upgrade via Dashboard** #4 #239
* Integrated Discord-Webhook push notifications #365
@Bendr0id Bendr0id closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants