Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VR: fix password server exception when no password is found #9699

Merged

Commits on Sep 18, 2024

  1. VR: fix password server exception when no password is found

    see errors in /var/log/daemon.log below
    ```
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]: ----------------------------------------
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]: Exception occurred during processing of request from ('192.168.20.8', 51108)
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]: Traceback (most recent call last):
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self.finish_request(request, client_address)
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self.RequestHandlerClass(request, client_address, self)
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self.handle()
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/http/server.py", line 432, in handle
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self.handle_one_request()
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     method()
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/opt/cloud/bin/passwd_server_ip.py", line 117, in do_GET
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self.wfile.write('saved_password')
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:   File "/usr/lib/python3.11/socketserver.py", line 834, in write
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]:     self._sock.sendall(b)
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]: TypeError: a bytes-like object is required, not 'str'
    Sep 13 12:36:58 systemvm passwd_server_ip.py[2154]: ----------------------------------------
    ```
    weizhouapache committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    23baa40 View commit details
    Browse the repository at this point in the history