threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Threebot server can't start #591

Closed john-kheir closed 4 years ago

john-kheir commented 4 years ago

branch

unstable

Errors

1- with background=True

JSX> j.servers.threebot.local_start_explorer()                                                       
MARK THREEBOT IS STARTING
Mon 09 07:10:49 le/data/bcdb/BCDB.py - 717 - schema_get                         : EXCEPTION: 
    we could not find model from:jumpscale.myjobs.worker, was not in bcdb or j.data.schema
--TRACEBACK------------------
<stdin> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in local_start_explorer
    174    self._threebot_starting()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in _threebot_starting
    34    j.servers.myjobs
/sandbox/lib/jumpscale/jumpscale_generated.py in myjobs
    610    self._myjobs =  MyJobsFactory()
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py in __init__
    46    self._init(**kwargs)
/sandbox/lib/jumpscale/Jumpscale/servers/myjobs/MyJobsFactory.py in _init
    33    self._init_models()
/sandbox/lib/jumpscale/Jumpscale/servers/myjobs/MyJobsFactory.py in _init_models
    44    self.model_action = j.clients.bcdbmodel.get(name="myjobs", schema=schemas.action)
/sandbox/lib/jumpscale/Jumpscale/clients/bcdb/BCDBClientFactory.py in get
    43    self._clients[key] = BCDBModelClient(name=name, url=url)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py in __init__
    46    self._init(**kwargs)
/sandbox/lib/jumpscale/Jumpscale/clients/bcdb/BCDBModelClient.py in _init
    10    self.model = self.bcdb.model_get(url=url)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in model_get
    666    if cache and schema.url in self.models:
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in models
    77    self.model_get(url=url, die=True, cache=False)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in model_get
    664    schema = self.schema_get(schema=schema, md5=md5, url=url)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in schema_get
    717    raise j.exceptions.Input("we could not find model from:%s, was not in bcdb or j.data.schema" % url)
-----------------------------

2- kosmos

3BOTDEVEL:3bot:~: kosmos
JSX> j.servers.threebot.local_start_explorer(background=True)                                        
no server running need to start
++ '[' start == kill ']'
++ tmux -f /sandbox/cfg/.tmux.conf has-session -t main
no server running on /tmp/tmux-0/default
++ '[' 1 -eq 1 ']'
++ echo 'no server running need to start'
++ tmux -f /sandbox/cfg/.tmux.conf new -s main -d 'bash --rcfile /sandbox/bin/env_tmux_detach.sh'
++ '[' start '!=' start ']'
Dinaamagdy commented 4 years ago

get same errors for explorer and for j.servers.threebot.start(backgroubd=True)

Mon 09 12:21:18 /bcdb/BCDBFactory.py -  67 - _master                            : EXCEPTION: 
    threebotserver is starting but did not succeed within 60+15 sec
--TRACEBACK------------------
/sandbox/var/cmds/threebot_default.py in <module>
    4    server = j.servers.threebot.get("default", executor='TMUX')
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in get
    116    jsconfig = self._get(name=name, id=id, die=needexist, reload=reload)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in _get
    179    res = self.find(name=name)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in find
    259    ids = self._model.find_ids(**kwargs)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigBCDBBase.py in _model
    92    if j.data.bcdb._master:
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBFactory.py in _master
    67    raise j.exceptions.Base("threebotserver is starting but did not succeed within 60+15 sec")
-----------------------------
xmonader commented 4 years ago

invalid anymore after the merge. development starts now