scala-network / scala-v7

A cryptocurrency aiming to use blockchain technologies to globally distribute wealth.
Other
83 stars 27 forks source link

simplewallet cannot open 1GB+ wallet #3

Closed sebseb7 closed 6 years ago

sebseb7 commented 6 years ago
2018-02-28 06:20:12.066     7f49722ca6c0        INFO    logging contrib/epee/src/mlog.cpp:148   New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2018-02-28 06:20:12.066     7f49722ca6c0        INFO    logging contrib/epee/src/mlog.cpp:156   New log categories: *:TRACE
2018-02-28 06:20:12.067     7f49722ca6c0        INFO    msgwriter       src/common/scoped_message_writer.h:102  Monero 'Chromium' (v1.2.0.0-release)
2018-02-28 06:20:12.067     7f49722ca6c0        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:171  Setting log level = 4
2018-02-28 06:20:12.067     7f49722ca6c0        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:174  Logging to: ./stellite-wallet-cli.log
2018-02-28 06:20:12.067     7f49722ca6c0        INFO    msgwriter       src/common/scoped_message_writer.h:102  Logging to ./stellite-wallet-cli.log
2018-02-28 06:20:12.147     7f49722ca6c0        WARN    wallet.wallet2  src/wallet/wallet2.cpp:2497     Loaded wallet keys file, with public address: Se2.......................S
2018-02-28 06:20:12.147     7f49722ca6c0        ERROR   wallet.wallet2  src/wallet/wallet2.cpp:2511     !r. THROW EXCEPTION: error::file_read_error
2018-02-28 06:20:12.147     7f49722ca6c0        WARN    net.http        src/wallet/wallet_errors.h:707  /opt/Stellite/src/wallet/wallet2.cpp:2511:N5tools5error15file_error_baseILi2EEE: failed to read file "pool"
2018-02-28 06:20:12.148     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:120  Exception: tools::error::file_error_base<2>
2018-02-28 06:20:12.148     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:121  Unwound call stack:
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [1] ./stellite-wallet-cli:__cxa_throw+0xfe [0x56255915a44e]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [2] ./stellite-wallet-cli:void tools::error::throw_wallet_ex<tools::error::file_error_base<2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x1a7 [0x5625590d68b7]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [3] ./stellite-wallet-cli:tools::wallet2::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x5d8 [0x56255908ae78]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [4] ./stellite-wallet-cli:tools::wallet2::make_from_file(boost::program_options::variables_map const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0xdb [0x56255908c4eb]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [5] ./stellite-wallet-cli:cryptonote::simple_wallet::open_wallet(boost::program_options::variables_map const&)+0xba [0x562558fbf62a]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [6] ./stellite-wallet-cli:cryptonote::simple_wallet::init(boost::program_options::variables_map const&)+0x138 [0x562558fc9d38]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [7] ./stellite-wallet-cli:main+0x255 [0x562558f9e0b5]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [8] /lib/x86_64-linux-gnu/libc.so.6:__libc_start_main+0xf1 [0x7f496ee852b1]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159      [9] ./stellite-wallet-cli:_start+0x2a [0x562558fa5bba]
2018-02-28 06:20:12.149     7f49722ca6c0        INFO    stacktrace      src/common/stack_trace.cpp:159
2018-02-28 06:20:12.149     7f49722ca6c0        ERROR   msgwriter       src/common/scoped_message_writer.h:102  Error: failed to load wallet: failed to read file "pool"
2018-02-28 06:20:12.149     7f49722ca6c0        ERROR   wallet.simplewallet     src/simplewallet/simplewallet.cpp:1374  failed to open account
2018-02-28 06:20:12.149     7f49722ca6c0        ERROR   wallet.simplewallet     src/simplewallet/simplewallet.cpp:4956  Failed to initialize wallet

(I was able to import the seed to the gui and sweep this wallet)

scala-network commented 6 years ago

Can you give me some more information about the server the wallet is running on ?

Thanks for the detailed report

sebseb7 commented 6 years ago

debian 9 on intel xeon, ext4

scala-network commented 6 years ago

How about the drive space and available memory?

sebseb7 commented 6 years ago

plenty :-D

GreenCandlePrinter commented 6 years ago

It seems like these lines of codes are causing the issue :

// In /contrib/epee/include/file_io_utils.h
if(file_size > 1000000000)
    return false;//don't go crazy

Your file is really big, also, we would advise you to use tx_split in the future if you handle thousands of txs in order prevent your file from becoming so big. We will still increase just a little bit the maximum file size in a next release but this will only be a temporary workaround for you if you don't change your practises.

sebseb7 commented 6 years ago

"Your file is really big"

others say it's still tiny.

"if you don't change your practises."

it's a pool, can't change "practice". But do rotate the wallet now.

GreenCandlePrinter commented 6 years ago

We'll anyway increase the file size limit to 2gb in a next update