Closed Master-Win closed 4 months ago
Is there a question? Or more context? The second error message is quite clear. And for the first one, more context would be needed. For example, all the environment variable that you had set.
Hello SomberNight
can you tell me how to fix the error in DB_DIRECTORY thanks.
and here are the other settings git clone from https://github.com/spesmilo/electrumx.git
/etc/electrumx.conf
`COIN=Gold Mark DB_DIRECTORY=/electrumdb/GMK DAEMON_URL=http://gMarkrpc:ENk6M8PUZgrqpu579mg2CmsRMjeTPKaQE5wTqAmbQV8o@127.0.0.1:4444/ SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://127.0.0.1 PEER_DISCOVERY=self MAX_SESSIONS=1000 MAX_SEND=2000000 INITIAL_CONCURRENT=50 MAX_SEND=2000000 BANDWIDTH_UNIT_COST=10000
DB_ENGINE=leveldb EVENT_LOOP_POLICY=uvloop
Required for WSS or SSL services SSL_CERTFILE=/etc/letsencrypt/live/electrum1.goldmark.com/fullchain.pem SSL_KEYFILE=/etc/letsencrypt/live/electrum1.goldmark.com/privkey.pem`
/etc/systemd/system/electrumx.service
[Unit] Description=Electrumx After=network.target [Service] User=elex EnvironmentFile=/etc/electrumx.conf ExecStart=/home/elex/electrumx/electrumx_server Restart=always TimeoutSec=120 RestartSec=30 [Install] WantedBy=multi-user.target
this problem is very common... your electrum runs as user "elex" and that user has no access to /etc/letsencrypt/live/electrum1.goldmark.com/fullchain.pem file or directory... i perśonally put the cert/key in some other place, eg the home dir of the user that runs electrumx, in your case "elex"
Thanks elex is fix and all work