search for: unicodedecodeerror

Displaying 20 results from an estimated 35 matches for "unicodedecodeerror".

2019 Mar 05
2
samba-tool dbcheck: UnicodeDecodeError' with Samba 4.9.4
I decided to give Samba 4.9.x a new try as AD DC in one of my servers. It has been running version 4.8.9. I installed version 4.9.4 and when I ran samba-tool dbcheck I still obtained the following error message: ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128)   File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 177, in _run     return self.run(*args, **kwargs)   File "/usr/loc...
2019 Mar 05
0
samba-tool dbcheck: UnicodeDecodeError' with Samba 4.9.4
...rieb miguel medalha via samba: > I decided to give Samba 4.9.x a new try as AD DC in one of my servers. > It has been running version 4.8.9. I installed version 4.9.4 and when I > ran samba-tool dbcheck I still obtained the following error message: > > ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - > 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in > range(128) >   File > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", > line 177, in _run >     return self.run(*args, **kwargs)...
2015 Mar 08
1
dovecot auth-worker error happens when I enabled the dovecot to consider both the system account and the MySQL virtual mailbox databases.
...if is_closing_session(pid, pidstat.st_uid): File "/usr/share/apport/apport", line 213, in is_closing_session env = e.read().split('\0') File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xab in position 0: ordinal not in range(128) ERROR: apport (pid 29249) Mon Mar 9 01:26:31 2015: pid: 29249, uid: 0, gid: 0, euid: 0, egid: 0 ERROR: apport (pid 29249) Mon Mar 9 01:26:31 2015: environment: environ({}) ERROR: apport (pid 29260) Mon Ma...
2020 Feb 27
2
Can't use "samba-tool gpo backup" command
...olicies with the following command "samba-tool gpo backup {LONG-ID-NUMBER}" but it didn't work. System details: - Tranquil IT's repo. - Samba version 4.10.12 - CentOS Linux release 7.7.1908 (Core) with kernel 3.10.0-1062.12.1.el7.x86_64 Command result: ERROR(<class 'UnicodeDecodeError'>): Error copying GPO from DC - 'utf-8' codec can't decode byte 0xda in position 34: invalid continuation byte ? File "/usr/lib64/python3.6/site-packages/samba/netcmd/gpo.py", line 1050, in run ??? backup_directory_remote_to_local(conn, sharepath, gpodir) ? File &q...
2019 Feb 28
3
samba-tool dbcheck Unicode-Error
Hello, we have 2 DC with Sernet Samba-packages 4.9.4 if we do a "samba-tool dbcheck" we get the following error: ---------- samba-tool dbcheck Checking 1631 objects ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128) File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-...
2019 Jun 26
2
unicode characters in samba-tool user names
Hi, I would like to add users with unicode characters in their names (not in username, but in --surname, and in --given-name). I get the following error message: ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user 'testuser': - 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128) File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line 425, in run smartcard_required=smartcard_required) File "/usr/lib...
2018 Nov 08
3
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
I just tested Samba 4.9.2 on one of my DCs, previously running version 4.8.6. Immediately after install, I ran "samba-tool dbcheck" and got the following: Checking 511 objects ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128)   File "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 177, in _run     return self.run(*args, **kwargs)   File "/usr/loc...
2023 Feb 14
2
[PATCH 2/2] python: Use bytes instead of str for event callback buffer
...event callback gets a buffer parameter which is usually something like a log message. However as it comes from C it is not necessarily well-formed (eg) UTF-8 but could contain any old byte sequence. In the test case provided by the reported, we failed to encode the buffer as str with this error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 137: unexpected end of data Use bytes instead. Reported-by: Yonatan Shtarkman See: https://listman.redhat.com/archives/libguestfs/2023-February/030653.html --- python/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif...
2017 May 21
3
[PATCH 0/2] python: improved UTF8 decoding error handling
The Python 3 bindings currently are unable to deal with non UTF8 characters. This series continues what proposed in RHBZ#1406906. A new function 'set_decode_error_handler' allows the User to specify how to deal with decoding errors. The default behaviour will be raising a UnicodeDecodeError. If the handler is changed to 'surrogateescape', non UTF8 characters will be escaped in a similar manner as for Python 2. See PEP383 for reference. This series fixes also a bug introduced in commit 9d25b4e56471f9c33ea6229a8b620fc800c240f8. Matteo Cafasso (2): python: return bytes when...
2011 Feb 22
1
problems with createrepo
...etadata()) File "/usr/lib/python2.4/site-packages/yum/packages.py", line 1032, in xml_dump_primary_metadata msg += misc.to_unicode(self._dump_base_items()) File "/usr/lib/python2.4/site-packages/yum/packages.py", line 866, in _dump_base_items msg = """ UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 83: ordinal not in range(128) I didn't change anything on the server and it fails on packages that are more than a year old. It usually fails on package number 200-206. When i move the supposedly broken package to a new directory a...
2011 Nov 18
2
yum update fails / problem
...in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/share/yum-plugins/rhnplugin.py", line 121, in prereposetup_hook str(e)) File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 177, in __repr__ "The message was:\n") + self.errmsg UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128) -- G?tz Reinicke IT-Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reinicke at filmakademie.de Filmakademie Baden-W?rttemberg GmbH Akademiehof 10 71638 Ludwigsburg www.filmakade...
2023 Feb 13
3
Issue with downloading files whose path contains multi-byte utf-8 characters
...ret= > ret at entry=0x0) > ? ? at proto.c:668 > > I debugged this issue and noticed that the appliance logs from?commandrvf?are > truncated, leading to parse failure (missing utf-8 additional bytes): > https://github.com/libguestfs/libguestfs/blob/master/python/handle.c#L134 > UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 0: invalid > start byte So I thought we'd fixed this in: https://github.com/libguestfs/libguestfs/commit/0ee02e0117527b86a31b2a88a14994ce7f15571f This is specifically a Python API problem or would it affect the C API too? Rich...
2019 Feb 28
1
samba-tool dbcheck Unicode-Error
...code-Error >> >> Hello, >> >> we have 2 DC with Sernet Samba-packages 4.9.4 if we do a "samba-tool >> dbcheck" we get the following error: >> ---------- >> samba-tool dbcheck >> Checking 1631 objects >> ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - >> 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in >> range(128) >> File >> "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line >> 177, in _run >> return self.run(*arg...
2023 Feb 12
1
Issue with downloading files whose path contains multi-byte utf-8 characters
...ffffffd8f0, xdrp=xdrp at entry=0x0, ret=ret at entry=0x0) at proto.c:668 I debugged this issue and noticed that the appliance logs from commandrvf are truncated, leading to parse failure (missing utf-8 additional bytes): https://github.com/libguestfs/libguestfs/blob/master/python/handle.c#L134 UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 0: invalid start byte -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20230212/973ad8ab/attachment.htm>
2019 Feb 28
1
samba-tool dbcheck Unicode-Error
...>> > >> we have 2 DC with Sernet Samba-packages 4.9.4 if we do a > "samba-tool > >> dbcheck" we get the following error: > >> ---------- > >> samba-tool dbcheck > >> Checking 1631 objects > >> ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - > >> 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in > >> range(128) > >> File > >> "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line > >> 177, in _run > >...
2017 May 06
5
[Bug 1406906] [PATCH 0/3] Fix segmentation fault in Python bindings
This series addresses the issue where non UTF8 file names in a guest image lead to libguestfs segfault with Python 3 APIs. The core issue is the APIs are not checking the return value when constructing a new PyObject. Therefore NULL pointers are added to Python collections (lists and dictionaries) crashing the application. Few notes regarding the comments on the previous patch. - Added a
2015 Mar 06
2
dovecot auth-worker error happens when I enabled the dovecot to consider both the system account and the MySQL virtual mailbox databases.
Version: 2.2.9 & 2.2.15 ( http://ppa.launchpad.net/malte.swart/dovecot-2.2/ubuntu ) OS: Ubuntu 14.04 Server LTS I installed Ubuntu 14.04.2 LTS newly on my new server... And I try to configure the mail server considering both my system account and the virtual mailboxes, by seeing https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/ But when I configured by
2017 May 06
0
[Bug 1406906] [PATCH 3/3] python: add regression test for RHBZ#1406906
...ch file with illegal unicode character + open(os.path.join(self.tempdir, "\udcd4"), "w").close() + + self.guestfs.copy_in(self.tempdir, "/") + + # segfault here on Python 3 + try: + self.guestfs.find("/") + except UnicodeDecodeError: + pass -- 2.11.0
2020 Apr 23
0
Re: [PATCH v2] python: Fix UnicodeError in inspect_list_applications2() (RHBZ#1684004)
....e. installed rpm, deb packages). > It is documented that rpm package fields such as description should be > utf8 encoded - however in some cases they are not a valid unicode > string, So what are they? latin1 maybe? Maybe use: try: value.decode("utf-8") except UnicodeDecodeError: value.decode("latin1") This will always succeed, producing possibly garbage output but so is errors='replace'. > on SLES11 SP4 the following packages fail to be converted to > unicode using guestfs_int_py_fromstring() (which invokes > PyUnicode_FromString()): &...
2018 Nov 09
0
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
> I just tested Samba 4.9.2 on one of my DCs, previously running > version 4.8.6. Immediately after install, I ran "samba-tool dbcheck" > and got the following: > > Checking 511 objects > ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - > 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in > range(128) >   File > "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py", > line 177, in _run >     return self.run(*args, **k...