profile
viewpoint

Ask questionswallet-cli can't sign transfer without daemon

After recent software upgrade, I stuck at signing transfer operation:

The last output in stdin is

Loaded 1 transactions, for ???.000000000, fee 0.000053030000, sending ????.0000 to 84xxxxx, 0.418239360000 change to 43xx, with min ring size 11, dummy encrypted payment ID. 98 outputs to import. Is this okay? (Y/Yes/N/No): 

After I typed Yes, it won't complete this operation.

I also added --log-level=1 option and it shows sign transfer failed: no daemon ...etc but I want to sign transfer offline, is it must be connected to a daemon?

monero-project/monero

Answer questions xnum

Update: cli cold signing approach shows the same result when importing at master branch, its output is

Error: Failed to import outputs /tmp/xmr-10268665938960487708/outs: Failed to import outputsImported outputs omit more outputs that we know of
[wallet 9xttFd]:

but if I imports back to read-only wallet, it returns successful result.


I tried again at v0.14.1.0-5dbcceb6. When I imported output, it returns error, but it was working on v0.14.0.2 before.

request payload:

{"jsonrpc":"2.0","method":"import_outputs","params":{"outputs_data_hex":"4d6f6e65726f206f75747
07574206578706f7274040dbcd35a6e8076ddc27c7991a8ad91371d92172d84a88f40a33242b2ce8cc36ebce44d101eb5cc7d0fc728cb99e6ce6c03d68d2cf6b45550a338113bef1ca63b36e387f2e03033e79d2a96696794feb764253bc63735b4298de5310fc62c82c2f41c87bb61a8c537caf76b8628bda8cd1419074ca9992d0e46357fa43254a393b1005f628b6a52be59f903940322985eb6c6c54fe1404ee4fe8a8f181bb9d8ed4e53db4505ad13c19f3101"}

response:

{
        "error": {
                "code": -1,
                "message": "Failed to import outputsImported outputs omit more outputs that we know of"
        },
        "id": "1",
        "jsonrpc": "2.0"
}

information below may be helpful for debugging.

viewkey pair:

secret: 804adf53a5c456b3367bf44961c0cd078994c686a24d048dcb9b48a109bad400
public: 3627d5e81b311d39e2aa9543373bcf004446666ac64b918daabcd1e33d4f5f3a

transfers from wallet-rpc's response, only 3 transfers and all are incoming ones.

{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "in": [{
      "address": "9xttFdWis9x5BbDj24X2YLHVYB4DTsdic25SHpRFGSvKeLS2tZ1xL3eAgZYLYMqnr213b4jVy7huzQhM7gL7YGG67cTddJg",
      "amount": 100000000000,
      "confirmations": 1425,
      "double_spend_seen": false,
      "fee": 78240000,
      "height": 1185305,
      "note": "",
      "payment_id": "0000000000000000",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1554705695,
      "txid": "374bef9384cdb2a8ee0caa6137afd1e5a938b0e75a9799a5a45d23c622119e7f",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "9xttFdWis9x5BbDj24X2YLHVYB4DTsdic25SHpRFGSvKeLS2tZ1xL3eAgZYLYMqnr213b4jVy7huzQhM7gL7YGG67cTddJg",
      "amount": 100000000000,
      "confirmations": 1392,
      "double_spend_seen": false,
      "fee": 79300000,
      "height": 1185338,
      "note": "",
      "payment_id": "89ccbf029c8595f9cbb638fcc58dbd76ddac19b555bbb0907f7646bc16388587",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1554710663,
      "txid": "cad004b36f6fcf7fe043e8444ce0d608e3c9d4586a86ff408750feefd1b42345",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "9xttFdWis9x5BbDj24X2YLHVYB4DTsdic25SHpRFGSvKeLS2tZ1xL3eAgZYLYMqnr213b4jVy7huzQhM7gL7YGG67cTddJg",
      "amount": 10000000000000,
      "confirmations": 752,
      "double_spend_seen": false,
      "fee": 79340000,
      "height": 1185978,
      "note": "",
      "payment_id": "89ccbf029c8595f9cbb638fcc58dbd76ddac19b555bbb0907f7646bc16388587",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 2,
      "timestamp": 1554784209,
      "txid": "46fe6be64b537917660db75e9ef90406e7aa42faca27dc53efa05b92c67a3b6b",
      "type": "in",
      "unlock_time": 0
    }]
  }
}

cold wallet log

Monero 'Boron Butterfly' (v0.14.1.0-5dbcceb6)
2019-04-10 03:25:12.696     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:207  Setting log level = 2
2019-04-10 03:25:12.696     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:210  Logging to: /root/rpc-37536.log
Logging to /root/rpc-37536.log
2019-04-10 03:25:12.697     7f9a5b177b70        WARNING wallet.rpc      src/wallet/wallet_rpc_server.cpp:4144   Loading wallet...
2019-04-10 03:25:12.697     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:1168     setting daemon to http://127.0.0.1:28081
2019-04-10 03:25:12.707     7f9a5b177b70        INFO    global  contrib/epee/src/net_ssl.cpp:90 Generating SSL certificate
2019-04-10 03:25:14.907     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:6934     ringdb path set to /root/.shared-ringdb/testnet
2019-04-10 03:25:14.952     7f9a5b177b70        INFO    global  contrib/epee/src/net_ssl.cpp:90 Generating SSL certificate
2019-04-10 03:25:16.322     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:6958     caching ringdb key
2019-04-10 03:25:16.351     7f9a5b177b70        WARNING wallet.wallet2  src/wallet/wallet2.cpp:5126     Loaded wallet keys file, with public address: 9xttFdWis9x5BbDj24X2YLHVYB
4DTsdic25SHpRFGSvKeLS2tZ1xL3eAgZYLYMqnr213b4jVy7huzQhM7gL7YGG67cTddJg
2019-04-10 03:25:16.352     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:5148     Trying to decrypt cache data
2019-04-10 03:25:16.400     7f9a5b177b70        DEBUG   wallet.wallet2  src/wallet/wallet2.cpp:7057     Finding and saving rings...
2019-04-10 03:25:16.400     7f9a5b177b70        DEBUG   wallet.wallet2  src/wallet/wallet2.cpp:7069     Found 0 transactions
2019-04-10 03:25:16.400     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:7108     Found and saved rings for 0 transactions
2019-04-10 03:25:16.400     7f9a5b177b70        ERROR   wallet.mms      src/wallet/message_store.cpp:735        No message store file found: /tmp/xmr-10405730166344798999/xmr.k
eys.mms
2019-04-10 03:25:16.400     7f9a5b177b70        DEBUG   net.http        contrib/epee/include/net/http_client.h:381      Reconnecting...
2019-04-10 03:25:16.449     7f9a5b177b70        DEBUG   net.ssl contrib/epee/src/net_ssl.cpp:338        SSL handshake success
2019-04-10 03:25:16.450     7f9a5b177b70        DEBUG   wallet.wallet2  src/wallet/wallet2.cpp:2542     Block is already in blockchain: 48ca7cd3c8de5b6a4d53d2861fbdaedca1415535
59f9be9520068053cda8430b
2019-04-10 03:25:16.451     7f9a5b177b70        INFO    wallet.wallet2  src/wallet/wallet2.cpp:3182     Refresh done, blocks received: 0, balance (all accounts): 0.000000000000
, unlocked: 0.000000000000
2019-04-10 03:25:16.452     7f9a5b177b70        INFO    wallet.rpc      src/wallet/wallet_rpc_server.cpp:4183   Successfully loaded
2019-04-10 03:25:16.452     7f9a5b177b70        INFO    net     contrib/epee/include/net/abstract_tcp_server2.inl:1034  Set server type to: 1 from name: RPC, prefix_name = RPC
2019-04-10 03:25:16.452     7f9a5b177b70        INFO    global  contrib/epee/include/net/http_server_impl_base.h:82     Binding on 127.0.0.1:37536
2019-04-10 03:25:16.466     7f9a5b177b70        INFO    global  contrib/epee/src/net_ssl.cpp:90 Generating SSL certificate
2019-04-10 03:25:16.601     7f9a5b177b70        DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:962   start accept
2019-04-10 03:25:16.602     7f9a5b177b70        DEBUG   net.conn        contrib/epee/src/connection_basic.cpp:144       Spawned connection #0 to 0.0.0.0 currently we have socke
ts count:1
2019-04-10 03:25:16.602     7f9a5b177b70        DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:107   test, connection constructor set m_connection_type=1
2019-04-10 03:25:16.602     7f9a5b177b70        WARNING wallet.rpc      src/wallet/wallet_rpc_server.cpp:4197   Starting wallet RPC server
2019-04-10 03:25:16.602     7f9a5b177b70        INFO    net.http        contrib/epee/include/net/http_server_impl_base.h:95     Run net_service loop( 1 threads)...
2019-04-10 03:25:16.602 [SRV_MAIN]      DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1060  Run server thread name: RPC
2019-04-10 03:25:16.602 [SRV_MAIN]      DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1067  JOINING all threads
2019-04-10 03:25:17.604 [RPC0]  DEBUG   wallet.wallet2  src/wallet/wallet2.cpp:2542     Block is already in blockchain: 48ca7cd3c8de5b6a4d53d2861fbdaedca141553559f9be9520068053
cda8430b
2019-04-10 03:25:17.639 [RPC0]  INFO    wallet.wallet2  src/wallet/wallet2.cpp:3182     Refresh done, blocks received: 0, balance (all accounts): 0.000000000000, unlocked: 0.00
0000000000
2019-04-10 03:25:21.681 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1151  handle_accept
2019-04-10 03:25:21.681 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1164  New server for RPC connections, SSL autodetection
2019-04-10 03:25:21.682 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:880   set m_connection_type = RPC
2019-04-10 03:25:21.682 [RPC0]  DEBUG   net.conn        contrib/epee/src/connection_basic.cpp:144       Spawned connection #1 to 0.0.0.0 currently we have sockets count:2
2019-04-10 03:25:21.682 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:107   test, connection constructor set m_connection_type=1
2019-04-10 03:25:21.738 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:316    connection type RPC 127.0.0.1:37536 <--> 127.0.0.1:35390 (via 127.0.0.1
:35390)
2019-04-10 03:25:21.738 [RPC0]  DEBUG   net.ssl contrib/epee/src/net_ssl.cpp:229        SSL detection buffer, 627 bytes: 80 79 83 84 32 47 106 115 111
2019-04-10 03:25:21.738 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:448   That does not look like SSL
2019-04-10 03:25:21.739 [RPC0]  INFO    wallet.rpc      src/wallet/wallet_rpc_server.h:67       HTTP [127.0.0.1] POST /json_rpc
2019-04-10 03:25:21.739 [RPC0]  INFO    wallet.rpc      src/wallet/wallet_rpc_server.h:123      [127.0.0.1:35390 INC] Calling RPC method import_outputs
2019-04-10 03:25:21.775 [RPC0]  ERROR   wallet.wallet2  src/wallet/wallet2.cpp:11978    outputs.first > m_transfers.size(). THROW EXCEPTION: error::wallet_internal_error
2019-04-10 03:25:21.775 [RPC0]  WARNING net.http        src/wallet/wallet_errors.h:873  /root/monero/src/wallet/wallet2.cpp:11978:N5tools5error21wallet_internal_errorE: Importe
d outputs omit more outputs that we know of
2019-04-10 03:25:21.787 [RPC0]  ERROR   wallet.wallet2  src/wallet/wallet2.cpp:12095    THROW EXCEPTION: error::wallet_internal_error
2019-04-10 03:25:21.787 [RPC0]  WARNING net.http        src/wallet/wallet_errors.h:873  /root/monero/src/wallet/wallet2.cpp:12095:N5tools5error21wallet_internal_errorE: Failed
to import outputsImported outputs omit more outputs that we know of
2019-04-10 03:25:21.788 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:667   do_send_chunk() NOW SENSD: packet=154 B
2019-04-10 03:25:21.788 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:652   do_send_chunk() NOW just queues: packet=168 B, is added to queue-size=2
2019-04-10 03:25:21.788 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:855   handle_write() NOW SENDS: packet=168 B, from  queue size=1

read-only wallet log

Monero 'Boron Butterfly' (v0.14.1.0-5dbcceb6)
2019-04-10 02:51:40.103     7f325983bb70        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:207  Setting log level = 2
2019-04-10 02:51:40.103     7f325983bb70        INFO    wallet.wallet2  src/wallet/wallet_args.cpp:210  Logging to: monero-wallet-rpc.log
Logging to monero-wallet-rpc.log
2019-04-10 02:51:40.107     7f325983bb70        INFO    net     contrib/epee/include/net/abstract_tcp_server2.inl:1034  Set server type to: 1 from name: RPC, prefix_name = RPC 2019-04-10 02:51:40.108     7f325983bb70        INFO    global  contrib/epee/include/net/http_server_impl_base.h:82     Binding on 0.0.0.0:18079
2019-04-10 02:51:40.118     7f325983bb70        INFO    global  contrib/epee/src/net_ssl.cpp:90 Generating SSL certificate
2019-04-10 02:51:40.531     7f325983bb70        DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:962   start accept
2019-04-10 02:51:40.532     7f325983bb70        DEBUG   net.conn        contrib/epee/src/connection_basic.cpp:144       Spawned connection #0 to 0.0.0.0 currently we have socke
ts count:1
2019-04-10 02:51:40.532     7f325983bb70        DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:107   test, connection constructor set m_connection_type=1
2019-04-10 02:51:40.532     7f325983bb70        WARNING wallet.rpc      src/wallet/wallet_rpc_server.cpp:4197   Starting wallet RPC server
2019-04-10 02:51:40.532     7f325983bb70        INFO    net.http        contrib/epee/include/net/http_server_impl_base.h:95     Run net_service loop( 1 threads)...
2019-04-10 02:51:40.532 [SRV_MAIN]      DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1060  Run server thread name: RPC
2019-04-10 02:51:40.532 [SRV_MAIN]      DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1067  JOINING all threads
2019-04-10 02:52:12.650 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1151  handle_accept
2019-04-10 02:52:12.651 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:1164  New server for RPC connections, SSL autodetection
2019-04-10 02:52:12.651 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:880   set m_connection_type = RPC
2019-04-10 02:52:12.651 [RPC0]  DEBUG   net.conn        contrib/epee/src/connection_basic.cpp:144       Spawned connection #1 to 0.0.0.0 currently we have sockets count:2
2019-04-10 02:52:12.651 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:107   test, connection constructor set m_connection_type=1

...

2019-04-10 02:52:25.107 [RPC0]  INFO    wallet.rpc      src/wallet/wallet_rpc_server.h:67       HTTP [10.12.2.134] POST /json_rpc
2019-04-10 02:52:25.107 [RPC0]  INFO    wallet.rpc      src/wallet/wallet_rpc_server.h:122      [10.12.2.134:59654 INC] Calling RPC method export_outputs
2019-04-10 02:52:25.134 [RPC0]  DEBUG   wallet.rpc      src/wallet/wallet_rpc_server.h:122      /json_rpc[export_outputs] processed with 0/27/0ms
2019-04-10 02:52:25.134 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:667   do_send_chunk() NOW SENSD: packet=160 B
2019-04-10 02:52:25.134 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:652   do_send_chunk() NOW just queues: packet=469 B, is added to queue-size=2
2019-04-10 02:52:25.134 [RPC0]  DEBUG   net     contrib/epee/include/net/abstract_tcp_server2.inl:855   handle_write() NOW SENDS: packet=469 B, from  queue size=1
useful!
source:https://uonfu.com/
Github User Rank List