Fix grpc errors in uncloud host #16

Closed
opened 2021-11-20 11:15:26 +00:00 by ungleich-gitea · 12 comments
'NoneType' object has no attribute 'key'
Traceback (most recent call last):
  File "./bin/../scripts/uncloud", line 66, in <module>
    main(**arguments)
  File "/home/nico/vcs/uncloud/uncloud/host/main.py", line 76, in main
    maintenance(host.key)
AttributeError: 'NoneType' object has no attribute 'key'
Exception in thread etcd3_watch_7febb8c41b20:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/etcd3-0.11.1-py3.8.egg/etcd3/watch.py", line 123, in _run
    response_iter = self._watch_stub.Watch(
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1080, in __call__
    call = self._managed_call(
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1169, in create
    call = state.channel.integrated_call(flags, method, host, deadline,
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 478, in grpc._cython.cygrpc.Channel.integrated_call
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 296, in grpc._cython.cygrpc._integrated_call
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 222, in grpc._cython.cygrpc._call
  File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 262, in grpc._cython.cygrpc._call
ValueError: Cannot invoke RPC: Channel closed!

cc @ahmedbilal

``` 'NoneType' object has no attribute 'key' Traceback (most recent call last): File "./bin/../scripts/uncloud", line 66, in <module> main(**arguments) File "/home/nico/vcs/uncloud/uncloud/host/main.py", line 76, in main maintenance(host.key) AttributeError: 'NoneType' object has no attribute 'key' Exception in thread etcd3_watch_7febb8c41b20: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/etcd3-0.11.1-py3.8.egg/etcd3/watch.py", line 123, in _run response_iter = self._watch_stub.Watch( File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1080, in __call__ call = self._managed_call( File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1169, in create call = state.channel.integrated_call(flags, method, host, deadline, File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 478, in grpc._cython.cygrpc.Channel.integrated_call File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 296, in grpc._cython.cygrpc._integrated_call File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 222, in grpc._cython.cygrpc._call File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 262, in grpc._cython.cygrpc._call ValueError: Cannot invoke RPC: Channel closed! ``` cc @ahmedbilal
nico was assigned by ungleich-gitea 2021-11-20 11:15:26 +00:00
Author

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583
Author

This was due to host not being reinitialised

This was due to host not being reinitialised
Author

closed

closed
Author

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583
Author

This was due to host not being reinitialised

This was due to host not being reinitialised
Author

closed

closed
Author

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583
Author

This was due to host not being reinitialised

This was due to host not being reinitialised
Author

closed

closed
Author

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583

@nico Working on improving etcd handling https://redmine.ungleich.ch/issues/7583
Author

This was due to host not being reinitialised

This was due to host not being reinitialised
Author

closed

closed
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: uncloud/uncloud#16
No description provided.