Pages:
Author

Topic: sx command line utilities - Empower The Sysadmin With Bitcoin Tools - page 6. (Read 240156 times)

legendary
Activity: 1232
Merit: 1076
I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy.


WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found


Nope it looks fine. Those errors aren't a problem. Example: memory pool isn't full yet and there's txs depending on other txs in the mempool that aren't yours. It's normal. I'll make the wording sound less extreme.

Important is that you're able to run 'sx fetch-last-height' and the block height matches blockchain.info or somewhere else.

I need to document these tools better. Sorry about that. I'll be making efforts towards that goal as documentation is important.
member
Activity: 81
Merit: 1002
It was only the wind.
WARNING: I just upgraded libbitcoin to new style compressed public keys. This will produce incompatibility with generating addresses on old-style Electrum deterministic wallets. Generating private keys is still fine, but the addresses will look different. I suggest moving funds off your wallet before upgrading and then moving them back after.

Anyone who needs the old style uncompressed keys, can use the latest libbitcoin tarball release off the website rather than the Git repo.

Would this cause sx to tell me my existing privkey is invalid?

Never mind, fixed in latest git.
newbie
Activity: 50
Merit: 0
I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy.


WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found
legendary
Activity: 1232
Merit: 1076
Hey everyone,

 The new Obelisk has support for server-client encryption and
signing using ed25519 crypto. The client can specify a key, and the
server can specify which client pubkeys it will accept (or all) and a
whitelist of IP addresses.

See this config file for reference:

https://github.com/spesmilo/obelisk/blob/master/src/worker/worker.cfg#L24

The install-sx.sh script will be broken because of new dependencies .etc so I will fix it now. Sorry for any difficulties.
legendary
Activity: 1232
Merit: 1076
Sorry about this. The install script should install those packages but the build stuff for sx and the rest of the libbitcoin-related tools need some work.
full member
Activity: 408
Merit: 101
🦜| Save Smart & Win 🦜
I did not realize it.

Because it is echo-ed right at the beginning it quickly gets lost after a lot of building and compilation output. Perhaps it would be better to just issue a apt-get command to install all the required packages when ubuntu type linux is detected?

Better yet, why not just make a dpkg

for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script

Code:
sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git

It will satisfy many dependencies needed to build sx though probably not all.
you do realize a full list of dependencies is in the installation script, right?

Code:
echo "Ubuntu/Debian users require the following packages:"
echo "git build-essential autoconf libtool libboost-all-dev"
echo "pkg-config libcurl4-openssl-dev libleveldb-dev"
echo "libzmq-dev libconfig++-dev libncurses5-dev"
echo
echo "Fedora/Redhat users require the following packages:"
echo "gcc-c++ git autoconf libtool boost-devel pkgconfig"
echo "libcurl-devel openssl-devel leveldb-devel zeromq"
echo "zeromq3 zeromq-devel libconfig libconfig-devel"
echo "ncurses-devel"
echo "and a package group called 'Development Tools'."

tl;dr
Code:
sudo apt-get git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev
hero member
Activity: 793
Merit: 1026
I also always get errors about ecdsa and some other python stuff when I install SX on a new Ubunutu.  So I'd add

Code:
sudo apt-get install python-pip
sudo pip install ecdsa

to the "do before you install SX" guide.  I also had trouble with zmq and I don't remember which thing I had to install to stop getting that error.  It may have been "pip install zeroqm" but I honestly don't remember.  I know that that zmq error took me a few minutes to solve.  (I'm new to Linux, so I have to look up literally everything.)  I just know the default libzmq-dev package wasn't enough and I had to install some other zmq thing.

As always, Google is your friend, and other people have had similar errors.  Even if there's no SX-specific posts about it, somebody has had that module missing for something else and posted about it.
legendary
Activity: 2058
Merit: 1452
for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script

Code:
sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git

It will satisfy many dependencies needed to build sx though probably not all.
you do realize a full list of dependencies is in the installation script, right?

Code:
echo "Ubuntu/Debian users require the following packages:"
echo "git build-essential autoconf libtool libboost-all-dev"
echo "pkg-config libcurl4-openssl-dev libleveldb-dev"
echo "libzmq-dev libconfig++-dev libncurses5-dev"
echo
echo "Fedora/Redhat users require the following packages:"
echo "gcc-c++ git autoconf libtool boost-devel pkgconfig"
echo "libcurl-devel openssl-devel leveldb-devel zeromq"
echo "zeromq3 zeromq-devel libconfig libconfig-devel"
echo "ncurses-devel"
echo "and a package group called 'Development Tools'."

tl;dr
Code:
sudo apt-get git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev
member
Activity: 81
Merit: 1002
It was only the wind.
I'd just like to announce that I'm running an Obelisk server with the publisher enabled on ottrbutt.com, default ports.
full member
Activity: 408
Merit: 101
🦜| Save Smart & Win 🦜
for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script

Code:
sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git

It will satisfy many dependencies needed to build sx though probably not all.
legendary
Activity: 1232
Merit: 1076
I've implemented some changes to stealth from Peter Todd.

The nonce is now called 'ephemeral public key'.

The stealth address format has changed slightly too.

If needed, I can provide a conversion utility for old-style stealth addresses.

This page is updated to reflect latest changes: https://wiki.unsystem.net/index.php/Sx/Stealth

Developer documentation about stealth: https://wiki.unsystem.net/index.php/DarkWallet/Stealth
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo
btw sx supports new stealth address payments:

https://wiki.unsystem.net/index.php/Sx/Stealth

still waiting for others to finalise the address scheme, but the basic kit is there.

many thanks jeremy spillman, peter todd and others!

nice work genjix
legendary
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
btw sx supports new stealth address payments:

https://wiki.unsystem.net/index.php/Sx/Stealth

This page has invalid SSL certificate. Can you copy/paste the certificate fingerprint, so I can add it to permanent exceptions ?
legendary
Activity: 1232
Merit: 1076
WARNING: I just upgraded libbitcoin to new style compressed public keys. This will produce incompatibility with generating addresses on old-style Electrum deterministic wallets. Generating private keys is still fine, but the addresses will look different. I suggest moving funds off your wallet before upgrading and then moving them back after.

Anyone who needs the old style uncompressed keys, can use the latest libbitcoin tarball release off the website rather than the Git repo.
legendary
Activity: 1232
Merit: 1076
btw sx supports new stealth address payments:

https://wiki.unsystem.net/index.php/Sx/Stealth

still waiting for others to finalise the address scheme, but the basic kit is there.

many thanks jeremy spillman, peter todd and others!
legendary
Activity: 1232
Merit: 1076
I'd just like to announce that I'm running an Obelisk server with the publisher enabled on ottrbutt.com, default ports.

added to wiki

feel free to make an account and let me know username
newbie
Activity: 37
Merit: 0
Yes, but if you point to a Testnet obelisk server in your sx.cfg file, it should fix that. The list of servers is at https://wiki.unsystem.net/index.php/Obelisk/Servers. There is one Testnet server listed and it appears to not be working for me.

Thanks jbis1 tried to guesswork and compile obelisk wih -DENABLE_TESTNET. No chance. And this is all the documentation I have:
cat /usr/local/share/doc/obelisk/* | grep testnet
https://wiki.unsystem.net/index.php/Obelisk
At this point I consider moving to bitcoinj - after all I'm looking for the easiest way to work with transactions.

thx, malefice
newbie
Activity: 50
Merit: 0
Yes, but if you point to a Testnet obelisk server in your sx.cfg file, it should fix that. The list of servers is at https://wiki.unsystem.net/index.php/Obelisk/Servers. There is one Testnet server listed and it appears to not be working for me.
newbie
Activity: 37
Merit: 0
@jbs1

truth is that it still operates on the main block chain, e.g. sx history
member
Activity: 81
Merit: 1002
It was only the wind.
Pages:
Jump to: