threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

BCDB: OperationalError, no such table #236

Closed zaibon closed 4 years ago

zaibon commented 5 years ago

I'm not exactly sure how this happened, but It seems anytime I'm trying to save something in BDB I get this error now. I didn't do anything special. just logged into my jsx container today and failed to start the 3bot server with this error.

*****Remote Exception*****
--SOURCE: GEDIS SERVER 127.0.0.1:8901 SOURCE METHOD: default.package_manager.package_add-20--
Fri 15 09:56:27 nts/peewee/peewee.py -3069 - execute_sql                        : EXCEPTION: 
    OperationalError('no such table: index_jumpscale_threebot_package_1_26',)
--TRACEBACK------------------
/sandbox/lib/jumpscale/Jumpscale/servers/gedis/handlers.py in _handle_request
    407    self._log_debug("params cmd %s %s" % (params_list, params_dict))
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/base_actors/package_manager.py in package_add
    70    package.prepare()
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigBCDB.py in save
    123    self.save_()
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigBCDB.py in save_
    135    self._data.save()
/sandbox/lib/jumpscale/Jumpscale/data/schema/JSXObject.py in save
    176    r = self._model.find(**args_search)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py in find
    629    for id in self.find_ids(nid=nid, **kwargs):
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py in find_ids
    602    cursor = self._find_query(nid, **kwargs)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py in _find_query
    584    return self.query_model([field], whereclause, values)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py in query_model
    591    return self.index.db.execute_sql(query, values)
/sandbox/lib/jumpscale/Jumpscale/clients/peewee/peewee.py in execute_sql
    3076    self.commit()
/sandbox/lib/jumpscale/Jumpscale/clients/peewee/peewee.py in __exit__
    2831    reraise(new_type, new_type(*exc_args), traceback)
/sandbox/lib/jumpscale/Jumpscale/clients/peewee/peewee.py in reraise
    196    raise value.with_traceback(tb)
/sandbox/lib/jumpscale/Jumpscale/clients/peewee/peewee.py in execute_sql
    3069    cursor.execute(sql, params or ())
-----------------------------

Fri 15 09:56:27 t_package_manager.py - 274 - handle_error                       : EXCEPTION: 
    GEDIS SERVER 127.0.0.1:8901 SOURCE METHOD: default.package_manager.package_add
--TRACEBACK------------------
<string> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in local_start_default
    91    path="/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/webplatform/"
/sandbox/var/codegen/gedis/threebot/client/default_package_manager.py in package_add
    44    self.handle_error(e,1,cmd_name=cmd_name)
/sandbox/var/codegen/gedis/threebot/client/default_package_manager.py in handle_error
    274    raise j.exceptions.RemoteException(message=msg, data=logdict, exception=e)
-----------------------------
despiegk commented 4 years ago

will be resolved when doing our fixes in

threefoldtech/home#398