Cyrix126 / gupaxx

Fork of Gupax integrating the XMRvsBeast Raffle
https://xmrvsbeast.com
GNU General Public License v3.0
31 stars 5 forks source link

Windows: Size of Node DB at 0B #19

Open Cyrix126 opened 1 month ago

Cyrix126 commented 1 month ago

Originally reported by @MKRajan29 in https://github.com/Cyrix126/gupaxx/issues/18

OS & Version:

Windows 10 & Windows 11

Bug

In the Status tab on Process sub-menu, the size of the DB will stay at 0B

Steps

Steps to reproduce the behavior:

  1. Start Monerod
  2. Click on Status Tab process submenu
  3. See error on column "Node".

Screenshots

image

Additional context

Linux is not affected.

Note to myself

Need to see what's the output of /json_rpc with method get_info on Windows. Tried with curl but I'm getting parse output error when the same arguments works on Linux. The http client in Gupaxx seems to be doing fine since the rest of the stats are available. Need to run the monerod on Windows and try to get a response from Linux.

EDIT: on Windows, you need to escape the quotes. curl -d "{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"get_info\"}" http://127.0.0.1:18081/json_rpc

Cyrix126 commented 1 month ago

https://github.com/monero-project/monero/issues/9513

Cyrix126 commented 1 month ago

fixed in https://github.com/Cyrix126/gupaxx/releases by reading the size of the DB directly from the filesystem.

MKRajan29 commented 1 month ago

The issue seems to be existing even after updating Gupaxx to 1.5.1

Cyrix126 commented 1 month ago

The issue seems to be existing even after updating Gupaxx to 1.5.1

Please post a screenshot of the column Node of Tab Status including the version of Gupaxx at the bottom left. Please also tell if you are using a custom directory or not and which version of Windows. When the Node start, the path of the DB will be displayed in the console. Could you post it (removing any necessary private info) ?.

MKRajan29 commented 1 month ago

Sure

image

Please also tell if you are using a custom directory or not and which version of Windows. When the Node start, the path of the DB will be displayed in the console. Could you post it (removing any necessary private info) ?.

Indeed a custom directory. Win 11 Ver 23H2

image

Cyrix126 commented 1 month ago

Strangely, I can't reproduce the 0B, but it is stuck at 4.096 KB on a W10 VM. Will investigate.

Cyrix126 commented 1 month ago

ok it must be surely because I made it look at the directory instead of the file when I wanted to make it work also for simple mode, didn't check after this change apparently.

Cyrix126 commented 1 month ago

fixed in https://github.com/Cyrix126/gupaxx/commit/044526abd3199f2d4ee00f68feefda2007c1c858 Will let open until included in a release. Thanks @MKRajan29 !

MKRajan29 commented 1 month ago

Hey bud,

In the Status Tab, in the XMRig Column, the Pool Heading is still 'XvB European Node' even though I have no shares and no hash is being sent to the XvB Node and it is only hashing on the local node. It seems either it is not refreshing the said status or it thinks otherwise.

The XvB Raffle is always on the Round Type = "Mega Donor", maybe am seeing it only when it is the case or is there something broken there.

Also I don't know what is the purpose of [0.00, 0.00, 0.00] in the XMRig Uptime.

Cyrix126 commented 1 month ago

Hey bud,

In the Status Tab, in the XMRig Column, the Pool Heading is still 'XvB European Node' even though I have no shares and no hash is being sent to the XvB Node and it is only hashing on the local node. It seems either it is not refreshing the said status or it thinks otherwise.

The XvB Raffle is always on the Round Type = "Mega Donor", maybe am seeing it only when it is the case or is there something broken there.

Also I don't know what is the purpose of [0.00, 0.00, 0.00] in the XMRig Uptime.

Please open other issues to keep things separate.

Cyrix126 commented 3 weeks ago

closed by release v1.5.2

MKRajan29 commented 1 week ago

The issue still persists even in ver 1.5.3

Cyrix126 commented 1 week ago

The issue still persists even in ver 1.5.3

Thanks for reporting. Indeed there was still an issue for custom db path. It should be fixed with https://github.com/Cyrix126/gupaxx/commit/0bf41fde586c96b7a89259178138014354dcf9d9 Could you test the binary produced for windows here ? https://github.com/Cyrix126/gupaxx/actions/runs/11893193482