cannot allocate memory when creating native wallets with arm binary
Build ID: c5fb19a
Tested on a rapsberry pi 4, another user reporrted having the same error.
2024-09-09 18:51:48.469 [ERR] WEB: error creating polygon wallet: failed to connect polygon wallet: ConnectOnce error: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/polygon/txhistorydb/000000.vlog. Error=cannot allocate memory
2024-09-09 18:52:08.470 [ERR] WEB: error creating btc wallet: failed to connect btc wallet: ConnectOnce error: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/btc/mainnet/txhistorydb-e32203eecd0f7dc454b2a6fb2e52aff18af90e5f/000000.vlog. Error=cannot allocate memory
2024-09-09 18:52:26.870 [ERR] WEB: error creating dcr wallet: failed to connect dcr wallet: ConnectOnce error: connect failure: error connecting to tx history db: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP/000000.vlog. Error=cannot allocate memory
Once the wallet(s) fails to create, you can't attempt to recreate them because the file already exists:
2024-09-09 18:52:08.470 [INF] CORE[btc][SPV]: Unloading wallet
2024-09-09 18:52:08.527 [INF] CORE[btc][SPV]: SPV wallet closed
2024-09-09 18:52:26.653 [DBG] CORE[dcr]: Using tx history db at /home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP
2024-09-09 18:52:26.867 [INF] CORE[dcr][SPV]: Unloading wallet
2024-09-09 18:52:26.867 [INF] CORE[dcr][SPV]: SPV wallet closed
2024-09-09 18:52:26.870 [ERR] WEB: error creating dcr wallet: failed to connect dcr wallet: ConnectOnce error: connect failure: error connecting to tx history db: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP/000000.vlog. Error=cannot allocate memory
2024-09-09 18:55:23.431 [INF] CORE: Initializing a dcr wallet
2024-09-09 18:55:23.434 [ERR] WEB: error creating dcr wallet: Error creating wallet: wallet at "/home/user/.dexc/mainnet/assetdb/dcr/mainnet/spv" already exists
Only way to attempt again is to delete the files.
I encountered the same problem until I updated to a 64 bit os https://github.com/decred/dcrdex/issues/2698
Probably the binaries were build for 32 bit pi and there is something there.
Raspberry Pi 4 is a quad core Cortex-A72 (ARM v8) 64-bit SoC, so I would definitely expect that you'd need/want a 64-bit OS and arm64 bins.
Caused by wrong binary architecture. Now being built correctly with 64 bit arm... I think