Hello, I have installed Bitcoin Core on Ubuntu 20 and I changed the path of ".bitcoin" folder. When I run "bitcoind" file it does not create "bitcoind.pid" file, as instead it does on another computer.
Since the current instance file is not created the client crashes:
2022-11-29T16:56:38Z Bitcoin Core version v23.0.0 (release build)
2022-11-29T16:56:38Z Assuming ancestors of block 000000000000000000052d314a259755ca65944e68df6b12a067ea8f1f5a7091 have valid signatures.
2022-11-29T16:56:38Z Setting nMinimumChainWork=00000000000000000000000000000000000000002927cdceccbd5209e81e80db
2022-11-29T16:56:38Z Using the 'arm_shani(1way,2way)' SHA256 implementation
2022-11-29T16:56:38Z Default data directory /root/.bitcoin
2022-11-29T16:56:38Z Using data directory /mnt/media/<UUID>/.bitcoin
2022-11-29T16:56:38Z Config file: /mnt/media/<UUID>/.bitcoin/bitcoin.conf
2022-11-29T16:56:38Z Config file arg: bind="0.0.0.0"
2022-11-29T16:56:38Z Config file arg: checkblocks="24"
2022-11-29T16:56:38Z Config file arg: checklevel="0"
2022-11-29T16:56:38Z Config file arg: dbcache="64"
2022-11-29T16:56:38Z Config file arg: disablewallet="1"
2022-11-29T16:56:38Z Config file arg: listen="1"
2022-11-29T16:56:38Z Config file arg: maxconnections="64"
2022-11-29T16:56:38Z Config file arg: par="2"
2022-11-29T16:56:38Z Config file arg: port="8333"
2022-11-29T16:56:38Z Config file arg: rpcallowip="127.0.0.1"
2022-11-29T16:56:38Z Config file arg: rpcbind=****
2022-11-29T16:56:38Z Config file arg: rpccookiefile="/root/bitcoin-core/.bitcoin/.cookie"
2022-11-29T16:56:38Z Config file arg: rpcport="8332"
2022-11-29T16:56:38Z Config file arg: upnp="1"
2022-11-29T16:56:38Z Command-line arg: conf="/mnt/media/<UUID>/.bitcoin/bitcoin.conf"
2022-11-29T16:56:38Z Command-line arg: daemon=""
2022-11-29T16:56:38Z Command-line arg: datadir="/mnt/media/<UUID>/.bitcoin"
2022-11-29T16:56:38Z Using at most 64 automatic connections (32768 file descriptors available)
2022-11-29T16:56:38Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2022-11-29T16:56:38Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2022-11-29T16:56:38Z Script verification uses 1 additional threads
2022-11-29T16:56:38Z Wallet disabled!
2022-11-29T16:56:38Z scheduler thread start
2022-11-29T16:56:38Z HTTP: creating work queue of depth 16
2022-11-29T16:56:38Z Using random cookie authentication.
2022-11-29T16:56:38Z Unable to open cookie authentication file /root/bitcoin-core/.bitcoin/.cookie.tmp for writing
2022-11-29T16:56:38Z Error: Unable to start HTTP server. See debug log for details.
2022-11-29T16:56:38Z Shutdown: In progress...
2022-11-29T16:56:38Z scheduler thread exit
2022-11-29T16:56:38Z Shutdown: done
Do you see any useful hint in this log file? Why the client still use default data directory for some paths?
What could be the problem?
I have also tried versione 24.0, but nothing changed.