Title: Help with electrum server Post by: Yzord on February 23, 2015, 05:55:49 PM I am trying to build my own Electrum server cause of the IP glitch and i am following this guide:
https://github.com/spesmilo/electrum-server/blob/master/HOWTO.md But when i start my server i get this: Quote bitcoin@electrum:~$ electrum-server start Traceback (most recent call last): File "/usr/local/bin/run_electrum_server", line 5, in <module> pkg_resources.run_script('electrum-server==0.9', 'run_electrum_server') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script exec(script_code, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/electrum_server-0.9-py2.7.egg/EGG-INFO/scripts/run_electrum_server", line 205, in <module> File "/usr/local/lib/python2.7/dist-packages/electrum_server-0.9-py2.7.egg/electrumserver/utils.py", line 236, in init_logger File "/usr/lib/python2.7/logging/handlers.py", line 391, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/electrum.log' Anyone know what i did wrong? I run it on Ubuntu 14.04 Title: Re: Help with electrum server Post by: Muhammed Zakir on February 23, 2015, 06:19:03 PM Try to change file permission of Electrum. Try running with sudo, i.e., sudo electrum-server start
-MZ Title: Re: Help with electrum server Post by: Yzord on February 23, 2015, 06:52:05 PM bitcoin@electrum:~$ sudo electrum-server start
[sudo] password for bitcoin: Traceback (most recent call last): File "/usr/local/bin/run_electrum_server", line 5, in <module> pkg_resources.run_script('electrum-server==0.9', 'run_electrum_server') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script exec(script_code, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/electrum_server-0.9-py2.7.egg/EGG-INFO/scripts/run_electrum_server", line 205, in <module> File "/usr/local/lib/python2.7/dist-packages/electrum_server-0.9-py2.7.egg/electrumserver/utils.py", line 236, in init_logger File "/usr/lib/python2.7/logging/handlers.py", line 391, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/electrum.log' Get the same :( all that work for nothing. Waited two days before the btc blockchain was inside and now this grr. Title: Re: Help with electrum server Post by: Yzord on February 23, 2015, 07:52:00 PM Had to remove log file and run ./configure again. All set now.
Title: Re: Help with electrum server Post by: Muhammed Zakir on February 23, 2015, 08:19:43 PM Try chmod 700 /var/log/electrum.log and start electrum-server once again.
What does numbers mean: Code: Number - Octal Permission Representation -MZ Title: Re: Help with electrum server Post by: Muhammed Zakir on February 23, 2015, 08:21:46 PM Had to remove log file and run ./configure again. All set now. Good to know! Set permission for the user correctly, I think that's what have to do instead of re-intalling. :) -MZ |