1

Platform: Windows Version: Monero 14.0.2 x64

It seems like due to some recent updates, I'm no longer able to use monero-wallet-rpc to make calls to my wallet while the GUI is running because the GUI has a lock on the wallet file.

Is there a way to simultaneously have the GUI running and make calls using monero-wallet-rpc? Here is the monero-wallet-rpc.log

2019-04-09 14:00:35.448 4620    WARN    wallet.rpc  src/wallet/wallet_rpc_server.cpp:3402   Loading wallet...
2019-04-09 14:00:35.588 4620    ERROR   wallet.wallet2  src/wallet/wallet2.cpp:4585 !is_keys_file_locked(). THROW EXCEPTION: error::wallet_internal_error
2019-04-09 14:00:35.595 4620    ERROR   wallet.rpc  src/wallet/wallet_rpc_server.cpp:3445   Wallet initialization failed: internal error: "xxxxxxx.keys" is opened by another wallet program

1 Answers1

2

To my knowledge, it's never been possible to have more than one process that is using the same wallet at the same time.

Should you need to run both the GUI and the wallet RPC at the same time, you can duplicate (and rename) the wallet files so you use one for the GUI and one for the RPC. They can both use the same daemon and will be operating on the same keys, but independent files. You will still be able to send and receive funds from both, but bare in mind, sending from one wont show in the other without a rescan of spent outputs.

Lastly of course, depending on your use case, you could run one of the wallets as a view-only wallet and the other as a normal view & spend. For this you would create a view-only wallet.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54