Error starting start_sovrin_node (KeyError on 'host' in OrientDB)


#1

Hello,
I’ve create a clean Ubuntu 16 machine on Azure and went through the steps described on Sovrin Validator Setup Instrictions.

All go fine (no error reported) until the following step:
start_sovrin_node <node name> <portN> <portC>
which I replaced by
start_sovrin_node Alpha 9700 9701.

I get the following error:
2016-12-08 14:17:19,454 | INFO | log.py (129) | setupLogging | Choosing RAET log level 1 2016-12-08 14:17:19,486 | INFO | log.py (129) | setupLogging | Choosing RAET log level 2 You can find logs in /home/sovrin/.sovrin/Alpha.log Loading module /home/sovrin/.virtualenvs/sovrin/lib/python3.5/site-packages/config/config-crypto-example1.py Module loaded. 2016-12-08 14:17:19,839 | DEBUG | selector_events.py (53) | __init__ | Using selector: EpollSelector 2016-12-08 14:17:19,840 | DEBUG | looper.py (122) | __init__ | Setting handler for SIGINT 2016-12-08 14:17:19,842 | INFO | looper.py (264) | shutdown | Looper shutting down now... 2016-12-08 14:17:19,853 | INFO | looper.py (271) | shutdown | Looper shut down in 0.011 seconds. Traceback (most recent call last): File "/home/sovrin/.virtualenvs/sovrin/bin/start_sovrin_node", line 44, in <module> cliha=cliha) File "/home/sovrin/.virtualenvs/sovrin/lib/python3.5/site-packages/sovrin/server/node.py", line 60, in __init__ self.graphStore = self.getGraphStorage(name) File "/home/sovrin/.virtualenvs/sovrin/lib/python3.5/site-packages/sovrin/server/node.py", line 79, in getGraphStorage pyorient.DB_TYPE_GRAPH)) File "/home/sovrin/.virtualenvs/sovrin/lib/python3.5/site-packages/plenum/server/node.py", line 398, in _getOrientDbStore host=self.config.OrientDB["host"], KeyError: 'host' 2016-12-08 14:17:19,868 | DEBUG | base_events.py (410) | close | Close <_UnixSelectorEventLoop running=False closed=False debug=True> --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.5/logging/handlers.py", line 71, in emit if self.shouldRollover(record): File "/home/sovrin/.virtualenvs/sovrin/lib/python3.5/site-packages/plenum/common/logging/TimeAndSizeRotatingFileHandler.py", line 20, in shouldRollover bool(RotatingFileHandler.shouldRollover(self, record)) File "/usr/lib/python3.5/logging/handlers.py", line 185, in shouldRollover self.stream = self._open() File "/usr/lib/python3.5/logging/__init__.py", line 1037, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) NameError: name 'open' is not defined Call stack: File "/usr/lib/python3.5/asyncio/base_events.py", line 431, in __del__ self.close() File "/usr/lib/python3.5/asyncio/unix_events.py", line 56, in close super().close() File "/usr/lib/python3.5/asyncio/selector_events.py", line 98, in close super().close() File "/usr/lib/python3.5/asyncio/base_events.py", line 410, in close logger.debug("Close %r", self) Message: 'Close %r' Arguments: (<_UnixSelectorEventLoop running=False closed=False debug=True>,)

Any idea what could have gone wrong?


#2

From the error it looks like its not able to find the key host in OrientDB section of the config. Sorry, it was our fault, the instructions in that google doc were not correct. That has been updated now, please use the updated instructions. I apologize for the inconvenience caused.