BitShares Forum

Main => General Discussion => Topic started by: merockstar on July 25, 2014, 03:49:59 am

Title: RPC server errors in wine
Post by: merockstar on July 25, 2014, 03:49:59 am
since (painstakingly) upgrading to 14.04 I was able to get bitsharesx running in wine.

I'm currently downloading the blockchain, have connections to the network. but I'm getting "RPC server errors" at the botton of the gui in all kinds of different methods. when the server error pops up it kicks me back to the main screen.

is this client safe to use?
Title: Re: RPC server errors in wine
Post by: toast on July 25, 2014, 04:06:10 am
It's always safe if you don't put any well-funded wallets in it

edit:  that means no, by the way
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 04:28:04 am
It's always safe if you don't put any well-funded wallets in it

edit:  that means no, by the way

damn. foiled again.
Title: Re: RPC server errors in wine
Post by: 38PTSWarrior on July 25, 2014, 04:35:47 am
I tried tu build but I made a mistake witgh cmake . There is a dot behind cmake, maybe you didn't see this merockstar. I tried to use wine, but it always had a different problem. After it was not loading blocks anymore, i took all my power together and boom, i build it.. on a single core atom netbook. But the git ubuntu build is also wrong somewhere. It says "make BitSharesXT, i tried, it wasn't possible. I tried make BitSharesX and it worked. Then here:

For the Qt Wallet, some extra steps are required:

sudo apt-get install npm qt5-default libqt5webkit5-dev
cd bitshares-toolkit
cmake -DINCLUDE_QT_WALLET=ON .

You have to make cd bitsharesx instead of bitshares-toolkit.

Title: Re: RPC server errors in wine
Post by: 38PTSWarrior on July 25, 2014, 04:37:58 am
It's always safe if you don't put any well-funded wallets in it

edit:  that means no, by the way

damn. foiled again.

I also hope nothing happened..
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 04:40:27 am
I tried tu build but I made a mistake witgh cmake . There is a dot behind cmake, maybe you didn't see this merockstar. I tried to use wine, but it always had a different problem. After it was not loading blocks anymore, i took all my power together and boom, i build it.. on a single core atom netbook. But the git ubuntu build is also wrong somewhere. It says "make BitSharesXT, i tried, it wasn't possible. I tried make BitSharesX and it worked. Then here:

For the Qt Wallet, some extra steps are required:

sudo apt-get install npm qt5-default libqt5webkit5-dev
cd bitshares-toolkit
cmake -DINCLUDE_QT_WALLET=ON .

You have to make cd bitsharesx instead of bitshares-toolkit.

good looking out. but I've caught all those nuances.

here's the problem i had this time:

Code: [Select]
[ 92%] Built target BitSharesX_automoc
[ 92%] Generating qrc_bitshares.cpp
make[2]: *** No rule to make target `programs/qt_wallet/htdocs/locale-zh-CN.json', needed by `programs/qt_wallet/qrc_htdocs.cpp'.  Stop.
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/all] Error 2
make: *** [all] Error 2


lineman wouldn't run when I tried to do it, so I tried using puppies ht_docs folder that he uploaded to dropbox. i think it has something to do with that.

edit: also, nope nothing happened. my btsx is still on bter.

edit: I reproduced the error I got with lineman:

npm install -g lineman went without a hitch

but npm install produced this:

Code: [Select]
> lineman-less@0.0.1 postinstall /home/merockstar/bitsharesx/programs/web_wallet/node_modules/lineman-less
> node script/postinstall.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm ERR! weird error 127
npm ERR! not ok code 0
Title: Re: RPC server errors in wine
Post by: gamey on July 25, 2014, 07:52:35 pm
http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04

That might be pertinent.  node was renamed nodejs, seems like perhaps you have the older version node? 

I dunno, just my guess..
Title: Re: RPC server errors in wine
Post by: toast on July 25, 2014, 07:54:45 pm
symlink /usr/bin/node to /usr/bin/nodejs
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 07:57:31 pm
http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04

That might be pertinent.  node was renamed nodejs, seems like perhaps you have the older version node? 

I dunno, just my guess..

I took it from this thread: https://bitsharestalk.org/index.php?topic=5951.0

looking there it looks like i'm wgetting 10.29, which according to http://nodejs.org/ is current.
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 07:59:24 pm
symlink /usr/bin/node to /usr/bin/nodejs

Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/bitsharesx-build$ symlink /usr/bin/node /usr/bin/nodejs
No command 'symlink' found, did you mean:
 Command 'symlinks' from package 'symlinks' (main)
symlink: command not found


do I mean symlinks?
Title: Re: RPC server errors in wine
Post by: gamey on July 25, 2014, 08:02:41 pm
symlink /usr/bin/node to /usr/bin/nodejs

Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/bitsharesx-build$ symlink /usr/bin/node /usr/bin/nodejs
No command 'symlink' found, did you mean:
 Command 'symlinks' from package 'symlinks' (main)
symlink: command not found


do I mean symlinks?

Yes,
ln -s dest source   
so ln -s nodejs node   (but with full paths)
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 08:09:25 pm
symlink /usr/bin/node to /usr/bin/nodejs

Code: [Select]
merockstar@merockstar-HP-Pavilion-dv6-Notebook-PC:~/bitsharesx/bitsharesx-build$ symlink /usr/bin/node /usr/bin/nodejs
No command 'symlink' found, did you mean:
 Command 'symlinks' from package 'symlinks' (main)
symlink: command not found


do I mean symlinks?

Yes,
ln -s dest source   
so ln -s nodejs node   (but with full paths)

cool. that did something. recompiling now *fingers crossed*

edit, for reasons of my personal understanding: did that just make an executable whose sole purpose in life is to run the other executable with the same parameters?

https://www.youtube.com/watch?v=FFvXvfUF-Co
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 08:40:15 pm
same error.

but, since I created that symlink, maybe puppies little tutorial will work now. https://bitsharestalk.org/index.php?topic=6008.msg80548#msg80548

gonna delete everything and start over following that.

edit wait, I never ran lineman again, i just recompiled, so maybe this did fix it! doh! trying again
Title: Re: RPC server errors in wine
Post by: merockstar on July 25, 2014, 10:02:46 pm
Finally! I'm so happy! Thanks so much guys!

(http://i.imgur.com/jjnrQVK.png)
Title: Re: RPC server errors in wine
Post by: merockstar on July 26, 2014, 06:00:06 am
one last question.

when an upgrade comes out, what's the easiest way to recompile?

should I just delete the entire bitshares directory and do everything I just did again (it will be easier with my symlink and dependencies all set up)? or is there some git command for upgrading the source so I can just do another cmake>make afterwards?