Rhizi / rhizi

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

user_db.db not generated after running run-local.sh #531

Closed Garbash closed 9 years ago

Garbash commented 9 years ago

This is related to #530

2015-05-03 10:25:59,133 [WARNING] rhizi [!] access control disabled, all-granted access set on all URLs 2015-05-03 10:25:59,134 [INFO] rhizi user DB missing, generating one: path: ./deploy-local/etc/user_db.db 2015-05-03 10:25:59,139 [ERROR] rhizi failed to init user_db, configured user_db path: ./deploy-local/etc/user_db.db Traceback (most recent call last): File "bin/rz_server.py", line 468, in init_user_db user_db.init(mode=mode) File "/Users/dorgarbash/WebstormProjects/Rhizi/rhizi/src/server/rz_user_db.py", line 47, in init self.persistent_data_store = shelve.open(self.user_db_path, flag=mode, writeback=False) # local handling of writeback File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open return DbfilenameShelf(filename, flag, protocol, writeback) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in init Shelf.init(self, anydbm.open(filename, flag), protocol, writeback) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 85, in open return mod.open(file, flag, mode) error: (2, 'No such file or directory') 2015-05-03 10:25:59,140 [ERROR] rhizi failed to initialize server Traceback (most recent call last): File "bin/rz_server.py", line 518, in init_user_db() File "bin/rz_server.py", line 471, in init_user_db raise e error: (2, 'No such file or directory') Traceback (most recent call last): File "bin/rz_server.py", line 518, in init_user_db() File "bin/rz_server.py", line 471, in init_user_db raise e error: (2, 'No such file or directory')

alon commented 9 years ago

run-local doesn't update res/etc/rhizi-server.conf if it exists. The file had user_db=./deploy-local/etc, correcting that to ./etc as in res/etc/rhizi-server.conf.example fixed the problem