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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

I downloaded UGminer and it does not start downloading the individual miners. #1

Open
MotikaParva opened this issue Jun 5, 2024 · 11 comments

Comments

@MotikaParva
Copy link

I start the bat, the code runs gets the available pools, but it does not start downloading the actual miners. I can download them myself and save them to a folder, but I am certain it is not how it is supposed to work. 馃槂

Are you still working on this project @UselessGuru?

@UselessGuru
Copy link
Owner

UselessGuru commented Jun 8, 2024

Are you still working on this project

Yes. I was just a away for a while.

I am certain it is not how it is supposed to work.

You are right. It should automatically download all required binaries - which it does here :-)

To troubleshoot I recommend you enable debug logging in the configuration editor:
image

Do you get any messages like
2024-06-08 09:28:47 INFO: Downloader: Initiated download of 'https://github.com/develsoftware/GMinerRelease/releases/download/3.44/gminer_3_44_windows64.zip'.
???

Are you running UG-Miner as admin? See if runing as local admin helps. I am interested to find out what is wrong in your case.

@MotikaParva
Copy link
Author

When I run the UG-miner.bat file by double clicking it runs and it gets stuck at:

2024-06-10 12:12:34 DEBUG: Brain 'ZergPool': End loop (Duration 6.7678968 sec. / Avg. loop duration: 6.7678968 sec.); Price history 181 objects; found 181 valid pools.
It does not start downloading any miners at all.

When I right click and Run as Administrator it opens PowerShell and it closes immediately.
I added '-NoExit' to the .bat file so I can see why it errors.

I got this:
Screenshot 2024-06-10 182033
I updated PowerShell to the latest version 7.4.2, but I still get the same error. I am sure its something I miss.
Just to test things out I downloaded last version of Nemos and ran it without issues. Both miner.bat and miner_AsAdmin.bat run normally.
Any ideas would be greatly appreciated!

@UselessGuru
Copy link
Owner

UselessGuru commented Jun 10, 2024

I updated PowerShell to the latest version 7.4.2

I recommend NOT to use 7.4.2 - it has a memory leak. It is better to stick with 7.2.19.

When I right click and Run as Administrator it opens PowerShell and it closes immediately.

I have seen this before, but it is not caused by the UG-Miner code itself, much more i believe it is a local config issue (path set correctly?). Try uncommenting the first line (@echo off -> #@echo off) in UG-Miner_asAdmin.bat. So you can see each commend as it gets executed. Please upload a complete screen shot - thank you!

As a workaround to find the cause of the non-download please try this:

Open a CMD window as admin. Then change to the UG-Miner directory. Now run 'UG-Miner.cmd'.

2024-06-10 12:12:34 DEBUG: Brain 'ZergPool': End loop (Duration 6.7678968 sec. / Avg. loop duration: 6.7678968 sec.); Price > history 181 objects; found 181 valid pools.
It does not start downloading any miners at all.

What is the next line AFTER 'found 181 valid pools.'?

@MotikaParva
Copy link
Author

MotikaParva commented Jun 15, 2024

I recommend NOT to use 7.4.2 - it has a memory leak. It is better to stick with 7.2.19.

OK the first thing I did is I reverted back to 7.2.19. Just wanted to make sure its not something weird due to not being up to date and this is why I tested 7.4.2...

What is the next line AFTER 'found 181 valid pools.'?

There is nothing afterwards. It just stops there. I waited 5-10 min just to make sure, but nothing is happening.

Now I downloaded UG-Miner - 6.2.9
My first attempt without changing anything produced the same result. I open UG-Miner.bat as Admin and it opens PowerShell window for 1 or 2 seconds and immediately closes it.

Adding the #@echo off and -noexit:

Screenshot 2024-06-15 102646

As a workaround to find the cause of the non-download please try this:
Open a CMD window as admin. Then change to the UG-Miner directory. Now run 'UG-Miner.cmd'.

I tried the workaround you recommended. The UG-Miner.cmd did not work, but I tested UG-Miner.bat and it ran:

Screenshot 2024-06-15 104258
Screenshot 2024-06-15 104517

I waited about 5 minutes again, but to me it looks like it just stops there again.
Instead of sending screenshots of SnakeTrail I am adding this file:

UG-Miner_2024-06-15.log

Any help would be greatly appreciated. Meanwhile I will reinstall Visual C+ RunTimes and Windows Nvidia driver 537.42 just in case.
Thank for your time!

@MotikaParva
Copy link
Author

Just FYI when I tried downloading the Visual C+ RunTimes it says Not Found for some reason.

@UselessGuru
Copy link
Owner

UselessGuru commented Jun 16, 2024

I think I have ideas for the causes of your issues:
a) UG-Miner not starting
Windows 11 defaults to use WindowsTerminal for PWSH sessions. This is causing issues with UG-Miner (I am investigating).
As a workaround try:
Edit UG-Miner.bat
and change
PWSH -executionpolicy bypass -windowstyle maximized -command ".\UG-Miner.ps1 -ConfigFile '.\Config\config.json'"
to
PWSH -executionpolicy bypass -windowstyle maximized -command "%~dp0UG-Miner.ps1" -ConfigFile "%~dp0Config\config.json"

You can also try to set 'Windows Console Host' as default in Windows Terminal settings.

b) UG-Miner stopping
Have you saved your config in the configuration editor? It needs applying 'Save config' at least once (a fix for this is in the works)

@UselessGuru
Copy link
Owner

Just FYI when I tried downloading the Visual C+ RunTimes it says Not Found for some reason.

Try this:
https://github.com/UselessGuru/UG-Miner-Extras/releases/download/Visual-C-Runtimes-All-in-One-Sep-2019/Visual-C-Runtimes-All-in-One-Sep-2019.zip

The link will be updated in the next version

@MotikaParva
Copy link
Author

MotikaParva commented Jun 19, 2024

As a workaround try:
Edit UG-Miner.bat
and change
PWSH -executionpolicy bypass -windowstyle maximized -command ".\UG-Miner.ps1 -ConfigFile '.\Config\config.json'"
to
PWSH -executionpolicy bypass -windowstyle maximized -command "%~dp0UG-Miner.ps1" -ConfigFile "%~dp0Config\config.json"

This helped. It gave me an error it does not recognize the name of the folder as a command. I am assuming it was the space in the naming of the folder.
I renamed the folder to UGM and it is now downloading the binaries. 馃挭
After it is done downloading and benchmarks them all I will report back. Thanks a lot!

Have you saved your config in the configuration editor? It needs applying 'Save config' at least once (a fix for this is in the works)

I did. It would not let me Start Mining without setting Main currency and afterwards I need to Save Configuration.

@UselessGuru
Copy link
Owner

I did. It would not let me Start Mining without setting Main currency

That is intentional. Main currency is mandatory.
Wasn't there your local currency already filled in?

@MotikaParva
Copy link
Author

MotikaParva commented Jun 30, 2024

When I try to start the UG-Miner_AsAdmin.bat I am getting the following error since the last update. FYI
Screenshot 2024-06-30 200536

@UselessGuru
Copy link
Owner

UselessGuru commented Jun 30, 2024

Where did you get 6.2.9 from? Current version is 6.2.13 (released today).

The issue you are seeing is actually caused by a very old windows problem. Internally a lot of commands still rely on the old 8.3 file naming requirement. This is not a UG-Miner issue per se. Unfortunately the only was to get around this problem is to only use file and folder names matching the old 8.3 naming scheme or to disable 8.3 filenames. For more infomation see here:
https://schneegans.de/windows/no-8.3/

I suggest you rename your 'UGM' folder to something else. Then create 'UGM' folder again (do not use a folder with version number - this would no longer match after an automatic update), install the latest version 6.2.13 directly to this folder. You can copy the 'Config', 'Logs' and 'Stats' folder from the renamed folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants