threefoldtecharchive / jumpscaleX_threebot

Apache License 2.0
0 stars 3 forks source link

error when starting local explorer #395

Closed DylanVerstraete closed 4 years ago

DylanVerstraete commented 4 years ago

In the JSX shell:

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 ']'

in the threebot_default tmux pane

Wed 04 19:35:39 ema/SchemaFactory.py - 226 - _schema_text_rewrite               : EXCEPTION:                                                                                                                                                   
    cannot mix nr's and no nrs in schema                                                                                                                                                                                                       
--TRACEBACK------------------                                                                                                                                                                                                                  
/sandbox/var/cmds/threebot_default.py in <module>                                                                                                                                                                                              
    5    server.start(background=False, packages=['/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/phonebook', '/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/directory', '/san
dbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/workloads'])                                                                                                                                                        
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in start                                                                                                                                                                   
    264    path=path, install=False, reload=False                                                                                                                                                                                              
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/Decorators.py in wrapper_action                                                                                                                                                              
    63    res = func(self, **kwargs)                                                                                                                                                                                                           
/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/packagemanager/actors/package_manager.py in package_add                                                                                                        
    82    package.reload(reset=reload)                                                                                                                                                                                                         
/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py in reload                                                                                                                                                           
    76    self.actors_load()                                                                                                                                                                                                                   
/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py in actors_load 
/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py in models
    202    model_urls = self.bcdb.models_add(path)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in models_add
    768    raise e
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in models_add
    760    model = self.model_get(schema=schema_text)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in model_get
    586    schema = self.schema_get(schema=schema, md5=md5, url=url)
/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py in schema_get
    626    schema = j.data.schema.get_from_text(schema_text)
/sandbox/lib/jumpscale/Jumpscale/data/schema/SchemaFactory.py in get_from_text
    167    res.append(self._get_from_text_single(block, url=url, newest=newest, save=save))
/sandbox/lib/jumpscale/Jumpscale/data/schema/SchemaFactory.py in _get_from_text_single
    245    schema_text = self._schema_text_rewrite(url, schema_text)
/sandbox/lib/jumpscale/Jumpscale/data/schema/SchemaFactory.py in _schema_text_rewrite
    226    raise j.exceptions.Input("cannot mix nr's and no nrs in schema", data=[url, schema_text])
-----------------------------

--DATA-----------------------
  ['tfgrid.workloads.reservation.container.1', '@url = tfgrid.workloads.reservation.container.1\n#unique id inside the
      reservation is an autoincrement\n0 : workload_id = (I)\n#links to unique node on the TFGrid\n1 : node_id = (S)\n2 :
      flist = (S)\n3 : hub_url = (S)\n#env variables\n4 : environment = (dict)\n#secret_env variables. the key is in plain
      text but the value\n#must be encrypted using Curve25519 with the public key of node.\n#then hex encoded.\n5 :
      secret_environment = (dict)\n#the process to start\n6 : entrypoint = (S)\n#corex yes or no\n7 : interactive = true
      (B)\n8 : volumes = (LO) !tfgrid.workloads.reservation.container.mount.1\n9 : network_connection = (LO)
      !tfgrid.workloads.reservation.network.connection.1\n#where to send the statistics too\n10 : stats_aggregator = (LO)
      !tfgrid.workloads.reservation.statsaggregator.1\n#id of threebot who is the farmer\n11 : farmer_tid = (I)\n12 :
      capacity = (O) !tfgrid.workloads.reservation.container.capacity.1\n\n\n\n']
rkhamis commented 4 years ago

have not reproduced this