2836
TestNet Discussion Archive / Re: TestNet Testing Thread - Test IPFS Integration (Decentralized IP File System)
« on: September 25, 2018, 06:35:00 PM »No worries!
Hmm so I have boinc and boinc-client installed,
the command has message "Boinc Installed: No"
I closed and reopened QT wallet and tried again, same
Server is Ubuntu 16.04 x64 with Lubuntu GUI installed hosted on Vultr
Poking at the code:
https://github.com/biblepay/biblepay/blob/f74f97ab5f04a20de770d80c40bb90eec1921aa2/src/rpcblockchain.cpp#L7313
https://github.com/biblepay/biblepay/blob/f74f97ab5f04a20de770d80c40bb90eec1921aa2/src/rpcblockchain.cpp#L7254
BoincCommand()
https://github.com/biblepay/biblepay/blob/f74f97ab5f04a20de770d80c40bb90eec1921aa2/src/rpcblockchain.cpp#L7238
GetSANDirectory2()
https://github.com/biblepay/biblepay/blob/87d751ea7eee9c97ded2b747b312253dc772f238/src/podc.cpp#L327
sOS
https://github.com/biblepay/biblepay/blob/8617e91c0d134c3300285bcf744e359688e49428/src/init.cpp#L1211
"LIN", "WIN" or "MAC"Code: [Select]std::string sPath = GetSANDirectory2() + "boinctemp";
// Boinc sends some output to stderr, some to stdout
std::string sEXEPath = sOS == "WIN" ? "\"c:\\program files\\BOINC\\boinccmd\"" : "boinccmd";
std::string sCmd = sEXEPath + " >" + sPath + " " + sCommand + " 2>&1";
Random question: if computer is Windows, boinccmd is looked for on the C: drive?
I still need to look into the GetSANDirectory2() some more and then test running the sCMD I build
Im able to run boinccmd command with no parameters, it gives help outputCode: [Select]std::string GetSANDirectory2()
{
boost::filesystem::path pathConfigFile(GetArg("-conf", "biblepay.conf"));
if (!pathConfigFile.is_complete()) pathConfigFile = GetDataDir(false) / pathConfigFile;
boost::filesystem::path dir = pathConfigFile.parent_path();
std::string sDir = dir.string() + "/SAN/";
boost::filesystem::path pathSAN(sDir);
if (!boost::filesystem::exists(pathSAN))
{
boost::filesystem::create_directory(pathSAN);
}
return sDir;
}
I cant find the function pathConfigFile() hmm
Is this weird C++ syntax for variable creation? lol
GetArg()
https://github.com/biblepay/biblepay/blob/082a12b0e4727c2df5363dfa14889b41b4957d3a/src/util.cpp#L473
Very good diagnosis, thanks.
So on the windows question: Yes, on windows boinc doesnt seem to be in the PATH by default, so we prefix the entire path in and use the default drive. I realize if a user puts boinc in another drive, we fail on windows for now. But it works on my windows machine for a good start. On linux and mac 'boinccmd' should be in the path.
Now that is strange your boinccmd is not working- we can diagnose this. First lets see if biblepay created your san directory.
cd ~/.biblepaycore/SAN
ls -l
You should see a 'boinctest' file. cat it to the screen, see if it has the boinc help output? Its supposed to have a timestamp of right when you typed 'exec rosettadiagnostics user pass'. See if it does get written to? Does it contain the text 'projectattach'? If it doesnt, let me know if you have a different version of boinc and Ill compare the output to mine. Yes, we should get this working on your ubuntu 64, so we can work across more platforms.
The pathConfigFile just returns the full path to : ~/.biblepaycore/, thats where the blocks directory is. (Other parts of the code add in 'testnet3' to actually respect the blocks directory testnet is using). We add the 'SAN' suffix for Sanctuary Quorum files and other temporary stuff used by IPFS.