threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

unable to start 3bot: "Could not find package:zerobot.admin" #656

Closed robvanmieghem closed 4 years ago

robvanmieghem commented 4 years ago
JSX> j.servers.threebot.start()
MARK THREEBOT IS STARTING
MARK THREEBOT IS STARTING
HUP 3685
sh: 1: kill: No such process

Mon 23 20:24:32 ot/ThreebotServer.py - 390 - load_package                       : EXCEPTION:
    Could not find package:zerobot.admin
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in start
    140    self.default.start(background=False, packages=packages, with_shell=with_shell)
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in start
    245    self._packages_core_init()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in _packages_core_init
    401    load_package(requiredpackage)
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in load_package
    390    raise j.exceptions.Input("Could not find package:%s" % name2)
-----------------------------

Mon 23 20:24:33 ot/ThreebotServer.py - 390 - load_package                       : EXCEPTION:
    Could not find package:zerobot.admin
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in start
    140    self.default.start(background=False, packages=packages, with_shell=with_shell)
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in start
    245    self._packages_core_init()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in _packages_core_init
    401    load_package(requiredpackage)
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in load_package
    390    raise j.exceptions.Input("Could not find package:%s" % name2)
-----------------------------

None
robvanmieghem commented 4 years ago

Ahmed told me to pull libs_extra and delete my bcdb

it updated the weblibs files and started👍

despiegk commented 4 years ago

any idea what causes this?

robvanmieghem commented 4 years ago

@xmonader ?

grimpy commented 4 years ago

only logical explanation I have is that the packages loaded in bcdb did not inclide zerobot.admin yet cause it only get's loaded the first time threebot starts.

I've changed ther logic to do a load if any of our 'default' packages are missing