Rhizi / rhizi

Connective intelligence
GNU Affero General Public License v3.0
13 stars 3 forks source link

While deploying local, db_driver.py raises exception "failed to open transaction: ' + e.message" #647

Closed jibe-b closed 8 years ago

jibe-b commented 8 years ago

Hi, I try to deploy Rhizi locally, but it fails. I am not used to the configuration of neo4j (users, etc).

Config: rhizi-0.0.1-20150427-014900 neo4j-community-2.3.1

running:

ant -f ./build.ant deploy-local

ok

and modifed etc/rhizi-server.conf

sed '%user_db_path =% s%deploy-local/%%' etc/rhizi-server.conf

then:

cd deploy-local && python bin/rz_server.py --config-dir=etc

Log

2015-11-16 17:00:27,848 [INFO] rhizi user DB located, path: ./etc/user_db.db 2015-11-16 17:00:27,858 [INFO] rhizi user DB initialized: path: ./etc/user_db.db, user-count: 0 2015-11-16 17:00:27,867 [INFO] rhizi rz_kernel: on-line 2015-11-16 17:00:27,882 [ERROR] rhizi op: DBO_nop: tx-id: None Traceback (most recent call last): File "/opt/rhizi-0.0.1-20150427-014900/src/server/db_controller.py", line 39, in exec_op self.db_driver.begin_tx(op) File "/opt/rhizi-0.0.1-20150427-014900/src/server/db_driver.py", line 57, in begin_tx raise Exception('failed to open transaction: ' + e.message)

Inside src/server/db_driver.py, the exception raised is commented as follow:

[!] neo4j seems picky about receiving an additional empty statement list

Your help will be welcome!

alon commented 8 years ago

Since some recent neo4j version the default is authentication required, but rhizi doesn't support that. So to turn off authentication (assuming this is the cause) set in neo4j-server.properties:

dbms.security.auth_enabled=false

jibe-b commented 8 years ago

thanks! but not finished

still in deploy-local/

failed to initialize server: 'Config' object has no attribute 'log_path' Traceback (most recent call last): File "bin/rz_server.py", line 435, in log = init_log(cfg) File "bin/rz_server.py", line 246, in init_log log_handler_f = logging.FileHandler(cfg.log_path) AttributeError: 'Config' object has no attribute 'log_path'

Do I add a value myself? (at this stage, I don't think about log files)

I notice that in bin/rz_server.py, there are both

config_dir at line 40: cfg['user_db_path'] = os.path.join(cfg['config_dir'], 'user_db.db')

and

cfg_dir at line 246

jibe-b commented 8 years ago

etc/rhizi-server.conf is empty!

I start again.

alon commented 8 years ago

see run-local.sh - it copies the example config file for you if you did not do it yourself. If you prefer not to use it just follow it: cp res/etc/rhizi-server.conf.example res/etc/rhizi-server.conf