-
Notifications
You must be signed in to change notification settings - Fork 173
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
CPID Stuck on INVESTOR Due to invalid BOINC Data Path Detection #242
Comments
Ok, there seems to be a bug when the wallet tries to detect where the data dir is located. The source code reveals that this is decided on compile time (see https://github.com/gridcoin/Gridcoin-Research/blob/master/src/main.cpp#L8960), so if the target Windows is different than the build Windows this will always fail and the use has to enter it in the config even if it's installed in a standard path. Mercosity suggested we could extract the path from the registry instead. I agree and we should probably do it in the following order:
The former two are already done today (I think) so we only have to replace the ifdefs for the latter ones. |
When you create a fresh Windows install, there is a pop up that informs you if your BOINC directory is not in its traditional path however, it states only one \ not two. Users should make a manual entry in .conf of boincdatadir=C:\ \ProgramData\ \BOINC\ \ using the two backslashes (please see NB: below). If you uninstall and then reinstall the pop up informer does not show. If one has already created a 'known good state' set up the .conf file can simply be copied to overwrite the existing one, keys an all. I presume there are no unique identifiers, apart from the Cross Project I Dentifier, so this should be acceptable? |
@philipswift Sounds like a second issue, right? |
Possibly, yes, there is a statement of instruction on gridcoin.us (see here http://pasteboard.co/Mrqt8uI2C.png) a) It's backslash for Windows not forward slash (as in GNU/Linux) Apologies of you think I am just stating the obvious however, it should really be to be a 'fool's guide' level with everything explicitly stated. |
Do you think it would be better if we can get this to work without any user interaction? If the BOINC registry key is always in the same place on all versions of Windows then picking it up from there will prevent the user from ever needing to set it. On Windows 10 this is at:
Not sure about Linux and OSX though. |
@tonemackay Indeed, that's what I suggested :) We should use the registry to try to find the folder, and if that fails we start checking the fallback folders. |
Why does gridcoin even need the boinc folder? The only thing that seems relevant is user CPID.
|
@tomasbrod It also needs to check which projects the user is crunching. |
Back in the day I think Rob intended it to be automated. We were on testnet for a long time so manual entry systems seemed acceptable. If you can code to make Windoze install idiot proof then great. Time invested early on will pay dividends later down the line. I try other wallets to see what the 'user experience' is and we are not really up there yet. There no rush to get this right and streamlined. Maybe take the time to get it right first time with endless testing before it goes Beta. Damn good work though, keep it up :) |
Fixed with #275. |
It looks like the BOINC data directory is not being detected for some Windows users. This is preventing the wallet from locating the CPID.
Steps to reproduce:
Work around:
Edit the
gridcoin.conf
file and add the following lines:The text was updated successfully, but these errors were encountered: