threefoldtecharchive / 0-robot

Distributed live cycle management system
Apache License 2.0
0 stars 0 forks source link

Node robot flist failed to starts #21

Open rkhamis opened 6 years ago

rkhamis commented 6 years ago

Issue migrated from [https://api.github.com/repos/zero-os/0-robot/issues/193](), opened by @zaibon

Got this error whe the node robot tried to starts.

kernel used: https://bootstrap.gig.tech/kernel/zero-os-v1.2.2.efi

[Tue08 08:18] - ErrorHandler.py   :257 :j.core.errorhandler  - ERROR    - /lib/x86_64-linux-gnu/libncursesw.so.5: symbol LINES, version NCURSES_TINFO_5.0.19991023 not defined in file libtinfo.so.5 with link time reference 
2018-05-08T08:18:24.276Z: logger I > [1]zrobot 2| 
2018-05-08T08:18:26.318Z: logger I > [1]zrobot 2|Traceback (most recent call last): 
2018-05-08T08:18:26.319Z: logger I > [1]zrobot 2|  File "/usr/local/bin/zrobot", line 6, in <module> 
2018-05-08T08:18:26.32Z: logger I > [1]zrobot 2|    exec(compile(open(__file__).read(), __file__, 'exec')) 
2018-05-08T08:18:26.327Z: logger I > [1]zrobot 2|  File "/opt/code/github/zero-os/0-robot/cmd/zrobot", line 25, in <module> 
2018-05-08T08:18:26.334Z: logger I > [1]zrobot 2|    entry_point() 
2018-05-08T08:18:26.335Z: logger I > [1]zrobot 2|  File "/opt/code/github/zero-os/0-robot/zerorobot/cli/server.py", line 66, in start 
2018-05-08T08:18:26.338Z: logger I > [1]zrobot 2|    robot.set_config_repo(config_repo, config_key) 
2018-05-08T08:18:26.34Z: logger I > [1]zrobot 2|  File "/opt/code/github/zero-os/0-robot/zerorobot/robot/robot.py", line 80, in set_config_repo 
2018-05-08T08:18:26.349Z: logger I > [1]zrobot 2|    config_repo.init(path, key) 
2018-05-08T08:18:26.358Z: logger I > [1]zrobot 2|  File "/opt/code/github/zero-os/0-robot/zerorobot/robot/config_repo.py", line 54, in init 
2018-05-08T08:18:26.361Z: logger I > [1]zrobot 2|    j.tools.configmanager.init(silent=True, configpath=path, keypath=key) 
2018-05-08T08:18:26.371Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/tools/configmanager/ConfigManager.py", line 432, in init 
2018-05-08T08:18:26.378Z: logger I > [1]zrobot 2|    j.clients.sshkey.key_get(keypath, load=True) 
2018-05-08T08:18:26.398Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/clients/sshkey/SSHKeys.py", line 25, in key_get 
2018-05-08T08:18:26.4Z: logger I > [1]zrobot 2|    sshkey = self.get(instance) 
2018-05-08T08:18:26.404Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/tools/configmanager/JSBaseClassConfigs.py", line 43, in get 
2018-05-08T08:18:26.411Z: logger I > [1]zrobot 2|    return self._child_class(instance=instance, data=data, parent=self, interactive=interactive,**kwargs) 
2018-05-08T08:18:26.431Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/clients/sshkey/SSHKey.py", line 23, in __init__ 
2018-05-08T08:18:26.438Z: logger I > [1]zrobot 2|    parent=parent, template=TEMPLATE, interactive=interactive) 
2018-05-08T08:18:26.448Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/tools/configmanager/JSBaseClassConfig.py", line 16, in __init__ 
2018-05-08T08:18:26.451Z: logger I > [1]zrobot 2|    self._ui = j.tools.formbuilder.baseclass_get()  # is the default class 
2018-05-08T08:18:26.48Z: logger I > [1]zrobot 2|  File "/usr/lib/python3/dist-packages/js9.py", line 1143, in formbuilder 
2018-05-08T08:18:26.488Z: logger I > [1]zrobot 2|    from JumpScale9.tools.formbuilder.FormBuilder import FormBuilderFactory as FormBuilderFactory 
2018-05-08T08:18:26.494Z: logger I > [1]zrobot 2|  File "/opt/code/github/jumpscale/core9/JumpScale9/tools/formbuilder/FormBuilder.py", line 3, in <module> 
2018-05-08T08:18:26.498Z: logger I > [1]zrobot 2|    import npyscreen 
2018-05-08T08:18:26.504Z: logger I > [1]zrobot 2|  File "/usr/local/lib/python3.5/dist-packages/npyscreen/__init__.py", line 5, in <module> 
2018-05-08T08:18:26.521Z: logger I > [1]zrobot 2|    from .wgwidget                  import TEST_SETTINGS, ExhaustedTestInput, add_test_input_from_iterable, add_test_input_ch 
2018-05-08T08:18:26.525Z: logger I > [1]zrobot 2|  File "/usr/local/lib/python3.5/dist-packages/npyscreen/wgwidget.py", line 5, in <module> 
2018-05-08T08:18:26.535Z: logger I > [1]zrobot 2|    import curses 
2018-05-08T08:18:26.546Z: logger I > [1]zrobot 2|  File "/usr/lib/python3.5/curses/__init__.py", line 13, in <module> 
2018-05-08T08:18:26.574Z: logger I > [1]zrobot 2|    from _curses import * 
2018-05-08T08:18:26.595Z: logger I > [1]zrobot 2|ImportError: /lib/x86_64-linux-gnu/libncursesw.so.5: symbol LINES, version NCURSES_TINFO_5.0.19991023 not defined in file libtinfo.so.5 with link time reference 
rkhamis commented 6 years ago

commented by @zaibon didn't managed to reprocuce since then. Azmy is going to investigate a way to add a CRC check in 0-fs to make sure we don't have corrupted files: https://github.com/zero-os/0-fs/issues/27

rkhamis commented 6 years ago

commented by @zaibon workaround has been added to the startup.toml file of the flist(https://github.com/zero-os/0-robot/commit/e7993d0ec8664f23f6b03a7b2e5feeb16a0cf417). That should prevent the bug from happening, but it is not a real fix. So I keep this issue open