Unable to register .bit domain

https://bit.namecoin.org/
virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Thu Aug 24, 2017 7:36 am

cassini wrote:Just out of curiosity, could you try this little experiment:
Thanks. It worked. Prev. error is gone.

But my happiness was not so long... now new error:

Code: Select all

gmake[2]: Entering directory '/namecoin-core-nc0.13.0rc1/src'
 CXXLD    namecoind
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `SetupEnvironment()':
/namecoin-core-nc0.13.0rc1/src/util.cpp:777: undefined reference to `boost::filesystem::path::imbue(std::locale const&)'
/namecoin-core-nc0.13.0rc1/src/util.cpp:778: undefined reference to `boost::filesystem::path::imbue(std::locale const&)'
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::getline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/local/include/boost/program_options/detail/config_file.hpp:171: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::basic_config_file_iterator(std::istream&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)':
/usr/local/include/boost/program_options/detail/config_file.hpp:155: undefined reference to `boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)'
libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Verify(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool (*)(CDBEnv&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))':
/namecoin-core-nc0.13.0rc1/src/wallet/db.cpp:157: undefined reference to `Db::verify(char const*, char const*, std::ostream*, unsigned int)'
libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Salvage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::vector<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >, std::vector<unsigned char, std::allocator<unsigned char> > >, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >, std::vector<unsigned char, std::allocator<unsigned char> > > > >&)':
/namecoin-core-nc0.13.0rc1/src/wallet/db.cpp:185: undefined reference to `Db::verify(char const*, char const*, std::ostream*, unsigned int)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:3386: namecoind] Error 1
gmake[2]: Leaving directory '/namecoin-core-nc0.13.0rc1/src'
gmake[1]: *** [Makefile:8562: all-recursive] Error 1
For now I don`t have any idea how to handle it.
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

biolizard89
Posts: 1971
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Unable to register .bit domain

Post by biolizard89 » Fri Aug 25, 2017 6:18 am

virus_net wrote:
cassini wrote:Just out of curiosity, could you try this little experiment:
Thanks. It worked. Prev. error is gone.

But my happiness was not so long... now new error:

[snip]

For now I don`t have any idea how to handle it.
I'm not sure. I'm curious whether the 0.14 branch (when using the FreeBSD instructions for the 0.14 branch that I linked) has the same issue.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Fri Aug 25, 2017 6:53 am

Yes, you right. On 0.14 branch same error.
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Fri Aug 25, 2017 10:29 am

For tests quick install Debian GNU/Linux 9 (stretch).
And error again:

Code: Select all

 CXX      test/test_test_namecoin-util_tests.o
 CXX      wallet/test/test_test_namecoin-wallet_test_fixture.o
 CXX      wallet/test/test_test_namecoin-accounting_tests.o
 CXX      wallet/test/test_test_namecoin-wallet_tests.o
 CXX      wallet/test/test_test_namecoin-crypto_tests.o
wallet/test/crypto_tests.cpp: In function â&#x80;&#x98;bool wallet_crypto::OldEncrypt(const CKeyingMaterial&, std::vector<unsigned char>&, const unsigned char*, const unsigned char*)â&#x80;&#x99;:
wallet/test/crypto_tests.cpp:45:20: error: aggregate â&#x80;&#x98;EVP_CIPHER_CTX ctxâ&#x80;&#x99; has incomplete type and cannot be defined
    EVP_CIPHER_CTX ctx;
                   ^~~
wallet/test/crypto_tests.cpp: In function â&#x80;&#x98;bool wallet_crypto::OldDecrypt(const std::vector<unsigned char>&, CKeyingMaterial&, const unsigned char*, const unsigned char*)â&#x80;&#x99;:
wallet/test/crypto_tests.cpp:69:20: error: aggregate â&#x80;&#x98;EVP_CIPHER_CTX ctxâ&#x80;&#x99; has incomplete type and cannot be defined
    EVP_CIPHER_CTX ctx;
                   ^~~
Makefile:8424: recipe for target 'wallet/test/test_test_namecoin-crypto_tests.o' failed
make[2]: *** [wallet/test/test_test_namecoin-crypto_tests.o] Error 1
make[2]: Leaving directory '/namecoin-core-nc0.13.0rc1/src'
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Fri Aug 25, 2017 11:35 am

0.14 branch build from source is OK on Debian GNU/Linux 9 (stretch).

Code: Select all

# namecoin-cli getinfo
{
  "version": 140200,
  "protocolversion": 110015,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 341278,
  "timeoffset": 0,
  "connections": 8,
  "proxy": "",
  "difficulty": 244083894036.4896,
  "testnet": false,
  "keypoololdest": 1503658769,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00100000,
  "errors": ""
}
Is it OK now ? Can I start with registering names all over again ?

P.S. Now I use goole to find out how transfer my wallet to new location :)
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

biolizard89
Posts: 1971
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Unable to register .bit domain

Post by biolizard89 » Sat Aug 26, 2017 1:21 am

virus_net wrote:Yes, you right. On 0.14 branch same error.
Interesting. Any chance you could try on FreeBSD with both the "master" and "bitcoin" branches? If it gives the error in master but it works in bitcoin, then it's a bug in Namecoin Core and a GitHub issue should be filed for Namecoin Core. If the error shows up in both master and bitcoin, then it's probably a bug in upstream Bitcoin Core.
virus_net wrote:Is it OK now ? Can I start with registering names all over again ?
Block 341278 is from May 15, 2017, so it looks like your blockchain isn't yet fully synced, but other than that it looks fine. Once your blockchain is fully synced everything looks like it should work. :)
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Sat Aug 26, 2017 6:25 am

Yep, you right. All work fine now and I successully registered .bit domain from Debian. Now I can continue working on my DNS server.
But I still have many questions :) want full understanding.
cassini wrote:This shows you are using an outdated software version (Namecoin-Qt?).
How you understand this just see "fee" field ?
How monitor this situation ? When your version become outdated.
biolizard89 wrote:Any chance you could try on FreeBSD with both the "master" and "bitcoin" branches?
Ofc I can and will be glad if I can be useful.
For my complete understanding - you are talking about: Right ?
Also I can provide SSH access to the server if needed. Any help to fix this error.

P.S. 4History and othe people who find this topic throught google:
virus_net wrote:how transfer my wallet to new location
I used dumpprivkey command at old location (FreeBSD) and importprivkey at new location and I got my balance at new location (Debian).

Code: Select all

# namecoin-cli getinfo
{
  "version": 140200,
  "protocolversion": 110015,
  "walletversion": 130000,
  "balance": 0.97850000,
  "blocks": 357580,
  "timeoffset": 0,
  "connections": 12,
  "proxy": "",
  "difficulty": 627412945277.6316,
  "testnet": false,
  "keypoololdest": 1503658769,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00100000,
  "errors": ""
}
Also use namecoin-cli listreceivedbyaddress 0 true to see that yours old address now at new location.
Than delete all transactions at old location and create new transactions at new location.

P.S.S. It's a pity that it still don`t work on FreeBSD :( Update from 10.3-STABLE to 11.1-STABLE not worked also. Got same error.
I don`t like Linux, FreeBSD is better for me.
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

cassini
Posts: 331
Joined: Sun May 26, 2013 6:36 pm

Re: Unable to register .bit domain

Post by cassini » Sun Aug 27, 2017 12:27 am

virus_net wrote:
cassini wrote:This shows you are using an outdated software version (Namecoin-Qt?).
How you understand this just see "fee" field ?
The old 0.3.xx versions applied a fixed fee of 0.005 NMC.
Namecoin Core applies a fee based on the number of bytes necessary for the transaction and a few other factors. In most cases this is much lower than 0.005 NMC.
virus_net wrote:I used dumpprivkey command at old location (FreeBSD) and importprivkey at new location
Just make sure you do not use the old wallet for sending transactions to the network anymore.

biolizard89
Posts: 1971
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Unable to register .bit domain

Post by biolizard89 » Mon Aug 28, 2017 9:04 am

virus_net wrote:How monitor this situation ? When your version become outdated.
New releases of Namecoin Core will be announced on https://www.namecoin.org/ . It looks like our RSS feeds are temporarily broken, I should probably fix that....
virus_net wrote:
biolizard89 wrote:Any chance you could try on FreeBSD with both the "master" and "bitcoin" branches?
Ofc I can and will be glad if I can be useful.
For my complete understanding - you are talking about: Right ?
Yes, that's correct.
virus_net wrote:
virus_net wrote:how transfer my wallet to new location
I used dumpprivkey command at old location (FreeBSD) and importprivkey at new location and I got my balance at new location (Debian).

Code: Select all

# namecoin-cli getinfo
{
  "version": 140200,
  "protocolversion": 110015,
  "walletversion": 130000,
  "balance": 0.97850000,
  "blocks": 357580,
  "timeoffset": 0,
  "connections": 12,
  "proxy": "",
  "difficulty": 627412945277.6316,
  "testnet": false,
  "keypoololdest": 1503658769,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00100000,
  "errors": ""
}
Also use namecoin-cli listreceivedbyaddress 0 true to see that yours old address now at new location.
Than delete all transactions at old location and create new transactions at new location.
It should be noted that importing private keys won't give you the full benefits of HD (hierarchical deterministic) wallets, which are used by default in current Namecoin Core versions. If you want the benefits of HD wallets (in particular, being able to backup the wallet once and not need to do so again later), it's preferred to create a new wallet, and then send coins / transfer names from the old wallet to the new wallet. (This isn't a big deal, and you're probably fine either way, just wanted to make sure you're aware.)
virus_net wrote:P.S.S. It's a pity that it still don`t work on FreeBSD :( Update from 10.3-STABLE to 11.1-STABLE not worked also. Got same error.
I don`t like Linux, FreeBSD is better for me.
Yes, we're definitely interested in getting any FreeBSD-related bugs in Namecoin Core fixed.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Unable to register .bit domain

Post by virus_net » Mon Aug 28, 2017 9:56 am

biolizard89 wrote:Any chance you could try on FreeBSD with both the "master" and "bitcoin" branches?
Yes, we did it. We've tried to build master, bitcoin and 0.14 branches. All of them was built successfully on FreeBSD:
master:

Code: Select all

./namecoind -version
Namecoin Core Daemon version v0.15.99.0-gead838c64
bitcoin:

Code: Select all

./bitcoind -version
Bitcoin Core Daemon version v0.15.99.0-g262167393
0.14:

Code: Select all

./namecoind -version
Namecoin Core Daemon version v0.14.2.0-g13c27a71d
But it happened only when we had add some options and flags, which were taken from port net-p2p/bitcoin.

Code: Select all

1. ./autogen.sh
2. ./configure CPPFLAGS="-I/usr/local/include" \
CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include/db48" \
LDFLAGS="-Wl,-rpath,/usr/local/lib -fstack-protector" \
--without-gui --without-qrencode --disable-debug --enable-hardening --disable-tests --disable-bench --without-miniupnpc --enable-wallet \
--disable-zmq --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/info/ --build=amd64-portbld-freebsd11.1 \
BDB_CFLAGS="-I/usr/local/include/db48" BDB_LIBS="-L/usr/local/lib -ldb_cxx-4.8"
3. gmake
4. gmake install
We can't build 0.13 because it didn't respect BDB_CFLAGS and BDB_LIBS, but for us enough working 0.14 and we hadn't investiagate deeper in it :)

P.S. Probably some of flags can be deleted, but we're not so familiar with C/C++ ;(
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

Post Reply