metaspartan / denariium-server

Electrum Server for Denarius (Denariium) with Tribus Support
MIT License
1 stars 0 forks source link

Configuration error. #1

Open knkrth opened 6 years ago

knkrth commented 6 years ago

When I configure I got a chown: cannot access '/home/electrum/db/': No such file or directory when

ubuntu@ubuntu:~/denariium-server$ sudo ./configure Database not found in /home/electrum/db/. Do you want to download it from the Verge Electrum repository to /home/electrum/db/ ? n chown: cannot access '/home/electrum/db/': No such file or directory

And electrum DB not available at https://github.com/carsenk/electrum-server/electrumdb.zip

metaspartan commented 6 years ago

Right, I currently do not have the db uploaded yet.

To solve this issue, create that directory along with the other required folders (after creating the first doing configure again will return a similar error for a different folder name)

After making the folders ensure you do a chown electrum:electrum to give the folder proper permissions.

knkrth commented 6 years ago

I did create directory by mkdir /home/electrum/db under electrum:electrum user. Even I did chmod 777 /home/electrum/db but when I run ./configure it keeps deleting the 'db' folder I only got /home/electrum 'db' folder gets deleted when ever i run ./configure

metaspartan commented 6 years ago

Remove the code in the configure file that includes the portion for downloading/creating the db folders.

Lines 82-97

knkrth commented 6 years ago

Still no luck :(

metaspartan commented 6 years ago

Remove those lines 82-97 in the configure file, then run the configure so it copies over your .conf file, create the db directories, then run python setup.py install, then su - electrum to login to your user, then go into your electrum server directory and run python run_electrum_server.py

knkrth commented 6 years ago

Finally I got it working :) I have changed the host in /etc/electrum.conf to 127.0.0.1 when I open 127.0.0.1 on the browser it doesn't show the banner. I don't know why? I did also include the electrumdb upto block 328826 electrumdb-b-328826.zip

metaspartan commented 6 years ago

Good to hear it! The banner doesn't show in your browser unless your route nginx or something to show it, generally it is picked up by the client and should display in the console if it is pulling it in right.

knkrth commented 6 years ago

Oh thanks.