cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
331 stars 76 forks source link

fulcrum.service: Failed with result 'exit-code'. #161

Open bitecorner opened 1 year ago

bitecorner commented 1 year ago

Hello,

i am following ministry of node video to install bitcoin core on ubuntu server LTS, running under onion peer, downloaded the full database and trying to install now Fulcrum service with the latest release 1.9.0 as you can see below i can't succeed to open the service with the following message error I also notice that when i try to execute the following command sudo systemctl enable fulcrum.service i directly go to the main prompt without havin any message as i can see on the video UBN - 22 - 05 - Fulcrum server from minitsry of node at 7'13''/12'"39" (https://www.youtube.com/watch?v=SpQRrbJt7cg&t=315s)

× fulcrum.service - Fulcrum Loaded: loaded (/etc/systemd/system/fulcrum.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2023-03-22 08:43:24 UTC; 17s ago Process: 3241 ExecStart=/home/jorge/fulcrum/Fulcrum /home/jorge/fulcrum/fulcrum.conf (code=exited, status=1/FAILURE) Main PID: 3241 (code=exited, status=1/FAILURE) CPU: 17ms

Mar 22 08:43:24 nodebox systemd[1]: Started Fulcrum. Mar 22 08:43:24 nodebox Fulcrum[3241]: [2023-03-22 08:43:24.889] Unable to create directory: /path/to/a/dir Mar 22 08:43:24 nodebox Fulcrum[3241]: [2023-03-22 08:43:24.890] Use the -h option to show help. Mar 22 08:43:24 nodebox systemd[1]: fulcrum.service: Main process exited, code=exited, status=1/FAILURE Mar 22 08:43:24 nodebox systemd[1]: fulcrum.service: Failed with result 'exit-code'.

fulcrum.service nit] Description=Fulcrum After=network.target

[Service] ExecStart=/home/jorge/fulcrum/Fulcrum /home/jorge/fulcrum/fulcrum.conf User=jorge LimitNOFILE=8192 TimeoutStopSec=30min

[Install] WantedBy=multi-user.target

jorge@nodebox:~/fulcrum$ ls Fulcrum FulcrumAdmin LICENSE.txt cert.pem fulcrum-quick-config.conf fulcrum.conf key.pem man unix-man-page.md jorge@nodebox:~/fulcrum$

jorge@nodebox:~$ openssl version OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

jorge@nodebox:~/downloads$ ls Fulcrum-1.9.0-x86_64-linux Fulcrum-1.9.0-x86_64-linux.tar.gz SHA256SUMS SHA256SUMS.asc bitcoin-24.0.1 bitcoin-24.0.1-x86_64-linux-gnu.tar.gz rpcauth.py jorge@nodebox:~/downloads$

Any advise ? or something i didn't set properly ? something to setup in openssl as i saw about fixing something there ? Thanks for your help Jorge

cculianu commented 1 year ago

Yeah I suspect your fulcrum.conf is not set up correctly.

Mar 22 08:43:24 nodebox Fulcrum[3241]: [2023-03-22 08:43:24.889] Unable to create directory: /path/to/a/dir

bitecorner commented 1 year ago

Here is my config for this file :

datadir = /home/jorge/fulcrum_db # Windows: datadir = D:\FulcrumData\mainnet bitcoind = 127.0.0.1:8332 rpcuser = bitcoin rpcpassword = Hugo0XXX but i set up rpcauth.py and have a key password here and doesn't know which one to put ? i tried both method didn't work ssl = 0.0.0.0:50002 cert = /home/jorge/fulcrum/cert.pem key = /home/jorge/fulcrum/key.pem peering = false fast-sync = 5000

jorge@nodebox:~$ whereis Fulcrum Fulcrum: ???? no location

jorge@nodebox:~$ ls downloads fulcrum fulcrum_db

jorge@nodebox:~/fulcrum$ ls Fulcrum FulcrumAdmin LICENSE.txt cert.pem fulcrum-quick-config.conf fulcrum.conf key.pem man unix-man-page.md

jorge@nodebox:~/fulcrum$ pwd /home/jorge/fulcrum

Which information would you need to try to help me ? Thanks

bitecorner commented 1 year ago

file bitcoin.conf locate in /home/jorge/.bitcoin/

server=1 txindex=1 daemon=1 rpcport=8332 rpcbind=0.0.0.0 rpcallowip=127.0.0.1 rpcallowip=10.0.0.0/8 rpcallowip=172.0.0.0/8 rpcallowip=192.0.0.0/8 zmqpubrawblock=tcp://0.0.0.0:28332 zmqpubrawtx=tcp://0.0.0.0:28333 zmqpubhashblock=tcp://0.0.0.0:28334 whitelist=127.0.0.1 rpcauth=bitcoin:fefa7f3350cb76b1da24383692eccc6f$ef9323a1cad84c50cfee7f4d00d15bf04094xxxxxxxxx proxy=127.0.0.1:9050 listen=1 bind=127.0.0.1 onlynet=onion

cculianu commented 1 year ago

That's weird. Somehow Fulcrum isn't reading the datadir variable correctly.. and is instead receiving /path/to/a/dir. Where is that coming from?!

secretarts commented 1 year ago

Was there ever a solution/fix to this? I am having the exact same issue.

EchterAgo commented 1 year ago

It looks like /path/to/a/dir is coming from the example configuration file. Have you changed the datadir setting?

secretarts commented 1 year ago

Thank you. Will look at that.

Finn-Davidoff commented 1 year ago

I'm having the same issue...

secretarts commented 1 year ago

Well, unfortunately, I was not able to solve this with a quick fix. In my case, something got corrupted that I could not solve. So, I removed fulcrum and fulcrum_db and restarted the whole process. I'm currently still indexing and, hopefully, it will work again with the fresh install.

TheGreatBeginner777 commented 7 months ago

it will not solve particular issue. Just to share that I got the same problem and after some hours of troubleshooting I figured I downloaded and installed wrong version for my setup. Instead of

Fulcrum-1.9.8-x86_64-linux.tar.gz

I downloaded and installed

Fulcrum-1.9.8-arm64-linux.tar.gz

So anon be careful :)