cli still breaks other components #11

Closed
opened 2021-11-20 11:15:24 +00:00 by ungleich-gitea · 0 comments
Traceback (most recent call last):
  File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 8, in get_token
    token = TOTP(seed).now()
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/totp.py", line 44, in now
    return self.generate_otp(self.timecode(datetime.datetime.now()))
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/otp.py", line 33, in generate_otp
    hasher = hmac.new(self.byte_secret(), self.int_to_bytestring(input), self.digest)
  File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/otp.py", line 50, in byte_secret
    return base64.b32decode(self.secret, casefold=True)
  File "/usr/lib/python3.8/base64.py", line 231, in b32decode
    raise binascii.Error('Non-base32 digit found') from None
binascii.Error: Non-base32 digit found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./bin/../scripts/uncloud", line 81, in <module>
    resolve_otp_credentials(arguments)
  File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 19, in resolve_otp_credentials
    'token': get_token(shared.settings['client']['seed'])
  File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 10, in get_token
    raise Exception('Invalid seed')
Exception: Invalid seed
(venv) [11:03] diamond:uncloud% git pull
Already up to date.
(venv) [11:03] diamond:uncloud% git describe 
0.0.5-60-g9f02b31
(venv) [11:03] diamond:uncloud% git branch 
* master
(venv) [11:04] diamond:uncloud% 

While trying to run:

(venv) [11:04] diamond:uncloud% ./bin/uncloud-run-reinstall hack

I'll disable it again for the moment, please do not re-enable it until its import is clearly error free

``` Traceback (most recent call last): File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 8, in get_token token = TOTP(seed).now() File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/totp.py", line 44, in now return self.generate_otp(self.timecode(datetime.datetime.now())) File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/otp.py", line 33, in generate_otp hasher = hmac.new(self.byte_secret(), self.int_to_bytestring(input), self.digest) File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/pyotp-2.3.0-py3.8.egg/pyotp/otp.py", line 50, in byte_secret return base64.b32decode(self.secret, casefold=True) File "/usr/lib/python3.8/base64.py", line 231, in b32decode raise binascii.Error('Non-base32 digit found') from None binascii.Error: Non-base32 digit found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./bin/../scripts/uncloud", line 81, in <module> resolve_otp_credentials(arguments) File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 19, in resolve_otp_credentials 'token': get_token(shared.settings['client']['seed']) File "/home/nico/vcs/uncloud/uncloud/common/cli.py", line 10, in get_token raise Exception('Invalid seed') Exception: Invalid seed (venv) [11:03] diamond:uncloud% git pull Already up to date. (venv) [11:03] diamond:uncloud% git describe 0.0.5-60-g9f02b31 (venv) [11:03] diamond:uncloud% git branch * master (venv) [11:04] diamond:uncloud% ``` While trying to run: ``` (venv) [11:04] diamond:uncloud% ./bin/uncloud-run-reinstall hack ``` I'll disable it again for the moment, please do not re-enable it until its import is clearly error free
ahmedbilal was assigned by ungleich-gitea 2021-11-20 11:15:24 +00:00
nico closed this issue 2022-02-15 08:47:14 +00:00
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#11
No description provided.