Bug 53123 - Error when trying to join unjoined system vie Domain join module: a bytes-like object is required, not 'str'
Error when trying to join unjoined system vie Domain join module: a bytes-lik...
Status: CLOSED DUPLICATE of bug 51330
Product: UCS
Classification: Unclassified
Component: UMC - Domain join
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Johannes Keiser
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-19 11:17 CEST by Johannes Keiser
Modified: 2021-05-25 16:00 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Keiser univentionstaff 2021-04-19 11:17:28 CEST
When trying to join an unjoined system via the Domain join module the following error occurs:

"Ein unerwarteter Fehler ist aufgetreten: a bytes-like object is required, not 'str'"


POST /univention/command/join/progress?request.preventCache=1618812668161

{"result": {"finished": true, "steps": 0.0, "component": "Dom\u00e4nenbeitritt", "info": "beendet...", "errors": ["Ein unerwarteter Fehler ist aufgetreten: a bytes-like object is required, not 'str'"], "critical": false}, "message": null, "error": null, "reason": null, "status": 200}
Comment 1 Florian Best univentionstaff 2021-04-19 13:53:47 CEST
commit 5ce1a64f771a291d3c30a27207456202b3781072 (HEAD -> 5.0-0, origin/5.0-0)
Author: Florian Best <best@univention.de>
Date:   Mon Apr 19 13:51:12 2021 +0200

    fixup! Bug #51330: Migrated Join UMC module to python 3
    
    Traceback (most recent call last):
       File "/usr/lib/python3/dist-packages/notifier/threads.py", line 80, in _run
        result = self._function()
      File "/usr/lib/python3/dist-packages/univention/management/console/modules/join/__init__.py", line 431, in _thread
        critical_handler=self.progress_state.critical_handler,
      File "/usr/lib/python3/dist-packages/univention/management/console/modules/join/__init__.py", line 164, in system_join
        passwordFile.write(password)
      File "/usr/lib/python3.7/tempfile.py", line 620, in func_wrapper
        return func(*args, **kwargs)
    TypeError: a bytes-like object is required, not 'str'

*** This bug has been marked as a duplicate of bug 51330 ***
Comment 2 Johannes Keiser univentionstaff 2021-04-23 11:18:15 CEST
OK: error does not occur anymore
-> verified
Comment 3 Florian Best univentionstaff 2021-05-25 16:00:40 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".