Open 0xIslamTaha opened 4 years ago
https://github.com/threefoldtech/jumpscaleX/commit/1b8344e846339a8c5bd5f2b19d2bb8688b98bba1
j.servers.corex.default.start()
j.servers.mail_forwarder.get(......).start()
pip3 install errbot
j.servers.etcd.start()
pip3 install flask flask_sockets
j.servers.gedis_websocket.get("test").start()
j.servers.odoo.get("test_odoo").start()
+ fix in builderj.servers.sanic.get("test_sanic").start()
current error : no module named encodingsj.servers.tmux.server
j.servers.zdb.get().start()
or j.servers.zdb.default.start()
capacity server
JSX> j.servers.capacity.get().start()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 124, in get
jsconfig = self._get(name=name, die=needexist)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 163, in _get
res = self.find(name=name)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 206, in find
for jsxobject in self._findData(**kwargs):
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 235, in _findData
item.name for item in self._model.schema.properties_index_keys if item.name in propnames
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 328, in __getattr__
return self.__getattribute__(name) # else see if we can from the factory find the child object
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 69, in _model
s = self.__class__._CHILDCLASS._SCHEMATEXT
AttributeError: type object 'CapacityFactory' has no attribute '_CHILDCLASS'
type object 'CapacityFactory' has no attribute '_CHILDCLASS'
https://github.com/threefoldtech/jumpscaleX/commit/1b4fff37461cdf869ff419baf19328011c50be18
etcd server : If etcd wasn't installed, no error is raised in shell but instead raised in tmux session. Added check to raise error when start/stop server in case it wasnt installed
corex server: (issue with @Dinaamagdy) peewee not installed on new installations as docker image was created with an older version that didn't include it in install requirements . Fix in installation to go over packages and install them if not installed in the new container
1,2 are started successfully 4- etcd is working but when check tmux is giving error
3BOTDEVEL:jumpscaletest:~: /sandbox/bin/etcd
-bash: /sandbox/bin/etcd: No such file or directory
6 - gedis_webscoket started after i used j.servers.openresty.test()
7 - works j.servers.odoo.get("test_odoo").start()`
10- works 11 - run successfully but need to build zdb first
j.builders.db.zdb.install()
j.servers.zdb.get().start()
zdb and mail_fowarder give me he following error now
JSX> j.servers.zdb.install()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 332, in __getattr__
r = self._get(name=name, die=False)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 156, in _get
res = self.find(name=name)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 201, in find
for jsxobject in self._findData(**kwargs):
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 234, in _findData
return self._model.find(**kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModel.py", line 276, in find
ids = self.index._key_index_find(nid=nid, **args)
File "/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModelIndex.py", line 318, in _key_index_find
ids = self._key_index_getids(key, nid=nid)
File "/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDBModelIndex.py", line 268, in _key_index_getids
r = j.clients.credis_core.hget(self._key_index_hsetkey_get(nid=nid).encode() + b":" + hash[0:2], hash[2:])
File "/sandbox/lib/jumpscale/Jumpscale/jumpscale_generated.py", line 973, in credis_core
self._credis_core = RedisCoreClient()
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py", line 73, in __init__
self._init(**kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/clients/redis/RedisCoreClient.py", line 20, in _init
self._client = j.clients.redis.core_get()
File "/sandbox/lib/jumpscale/Jumpscale/clients/redis/RedisFactory.py", line 194, in core_get
j.core.myenv.db = RedisTools.core_get(reset=reset, tcp=tcp)
File "/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py", line 192, in core_get
MyEnv.init()
File "/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py", line 2516, in init
configdir = self._cfgdir_get()
File "/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py", line 2608, in _cfgdir_get
return "%s/cfg" % self._basedir_get()
File "/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py", line 2593, in _basedir_get
rc, out, err = Tools.execute("whoami", showout=False, die=False)
File "/sandbox/lib/jumpscale/Jumpscale/core/InstallTools.py", line 1773, in execute
executable="/bin/bash",
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1288, in _execute_child
self.pid = _posixsubprocess.fork_exec(
AttributeError: 'NoneType' object has no attribute 'fork_exec'
'NoneType' object has no attribute 'fork_exec'
JSX>
odoo server:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/servers/odoo/OdooServer.py", line 173, in start
self.startupcmd.start()
File "/sandbox/lib/jumpscale/Jumpscale/servers/startupcmd/StartupCMD.py", line 610, in start
running = self.wait_running(die=True)
File "/sandbox/lib/jumpscale/Jumpscale/servers/startupcmd/StartupCMD.py", line 477, in wait_running
return self._error_raise("could not start")
File "/sandbox/lib/jumpscale/Jumpscale/servers/startupcmd/StartupCMD.py", line 90, in _error_raise
raise j.exceptions.Base(msg)
Jumpscale.core.InstallTools.BaseJSException: {RED}EXCEPTION:
error in startupcmd :odoo
could not start{RESET}
{RED}EXCEPTION:
error in startupcmd :odoo
could not start{RESET}
JSX>
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/servers/startupcmd/StartupCMD.py", line 505, in start
raise j.exceptions.Value("please make sure self.cmd_start has been specified")
Jumpscale.core.InstallTools.JSExceptions.__init__.<locals>.Value1: {RED}EXCEPTION:
please make sure self.cmd_start has been specified{RESET}
{RED}EXCEPTION:
please make sure self.cmd_start has been specified{RESET}
JSX>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 327, in __getattr__
or name in self._properties_names_get()
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py", line 659, in _properties_names_get
others = self._children_names_get(filter=filter)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 294, in _children_names_get
x = self._cache.get(key="_children_names_get", method=do, expire=10) # will redo every 10 sec
File "/sandbox/lib/jumpscale/Jumpscale/core/cache/Cache.py", line 185, in get
raise e
File "/sandbox/lib/jumpscale/Jumpscale/core/cache/Cache.py", line 179, in get
val = method(**kwargs)
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 289, in do
for item in self._findData():
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 242, in _findData
return self._model.find()
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 330, in __getattr__
return self.__getattribute__(name) # else see if we can from the factory find the child object
File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigs.py", line 69, in _model
s = self.__class__._CHILDCLASS._SCHEMATEXT
AttributeError: type object 'CapacityFactory' has no attribute '_CHILDCLASS'
type object 'CapacityFactory' has no attribute '_CHILDCLASS'
and I can see that code of it has only start option
https://github.com/threefoldtech/jumpscaleX/blob/development_jumpscale/Jumpscale/servers/grid_capacity/CapacityFactory.py
JSX> j.servers.flask.install()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/jumpscale_generated.py", line 1392, in flask
from Jumpscale.servers.flaskserver.JSWebServers import JSWebServers
File "/sandbox/lib/jumpscale/Jumpscale/servers/flaskserver/JSWebServers.py", line 2, in <module>
from .JSWebServer import JSWebServer
File "/sandbox/lib/jumpscale/Jumpscale/servers/flaskserver/JSWebServer.py", line 9, in <module>
from flask_sockets import Sockets
ModuleNotFoundError: No module named 'flask_sockets'
No module named 'flask_sockets' JSX>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/servers/errbot/ErrBotFactory.py", line 28, in start
import errbot
ModuleNotFoundError: No module named 'errbot'
No module named 'errbot'
start: doessn't doanything
stop :doesn't exist
install : doesn't exist
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/jumpscale_generated.py", line 1374, in sockexec
from Jumpscale.servers.sockexec.SockExec import SockExec
File "/sandbox/lib/jumpscale/Jumpscale/servers/sockexec/SockExec.py", line 8, in <module>
class SockExec(j.application.JSBaseDataObjClass):
AttributeError: 'Application' object has no attribute 'JSBaseDataObjClass'
'Application' object has no attribute 'JSBaseDataObjClass'
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
Env