Bitcoin Forum
May 13, 2024, 04:37:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with electrum server  (Read 1144 times)
Yzord (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
February 23, 2015, 05:55:49 PM
 #1

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
1715575024
Hero Member
*
Offline Offline

Posts: 1715575024

View Profile Personal Message (Offline)

Ignore
1715575024
Reply with quote  #2

1715575024
Report to moderator
1715575024
Hero Member
*
Offline Offline

Posts: 1715575024

View Profile Personal Message (Offline)

Ignore
1715575024
Reply with quote  #2

1715575024
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715575024
Hero Member
*
Offline Offline

Posts: 1715575024

View Profile Personal Message (Offline)

Ignore
1715575024
Reply with quote  #2

1715575024
Report to moderator
1715575024
Hero Member
*
Offline Offline

Posts: 1715575024

View Profile Personal Message (Offline)

Ignore
1715575024
Reply with quote  #2

1715575024
Report to moderator
1715575024
Hero Member
*
Offline Offline

Posts: 1715575024

View Profile Personal Message (Offline)

Ignore
1715575024
Reply with quote  #2

1715575024
Report to moderator
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
February 23, 2015, 06:19:03 PM
 #2

Try to change file permission of Electrum. Try running with sudo, i.e., sudo electrum-server start

   -MZ

Yzord (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
February 23, 2015, 06:52:05 PM
 #3

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 Sad all that work for nothing. Waited two days before the btc blockchain was inside and now this grr.
Yzord (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
February 23, 2015, 07:52:00 PM
 #4

Had to remove log file and run ./configure again. All set now.
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
February 23, 2015, 08:19:43 PM
 #5

Try chmod 700 /var/log/electrum.log and start electrum-server once again.

What does numbers mean:

Code:
Number -	Octal Permission Representation
0  - No permission
1  - Execute permission
2  - Write permission
3  - Execute and write permission: 1 (execute) + 2 (write) = 3
4  - Read permission r--
5  - Read and execute permission: 4 (read) + 1 (execute) = 5
6  - Read and write permission: 4 (read) + 2 (write) = 6
7  - All permissions: 4 (read) + 2 (write) + 1 (execute) = 7

   -MZ

Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
February 23, 2015, 08:21:46 PM
 #6

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. Smiley

   -MZ

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!