upgrade 2.0.0.9450

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
fck_mly
Messages: 15
Registration: Sep 1, 2020 - 4:28 p.m.
Location: USA
Contact :

August 16, 2021 - 12:27

Good morning,

Following the public announcement regarding the vulnerability and the upgrade to version 2.0.0.9450, I encounter an error message when I launch the upgrade:

Code: Select all

The following packages will be upgraded:
  aspell krb5-locales krb5-user libaspell15 libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkrb5-3 libkrb5support0
  libnss-systemd libpam-systemd libsystemd0 libudev1 linux-image-4.19.0-17-amd64 systemd systemd-sysv tis-waptserver tis-waptsetup udev
22 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/131 MB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f22ac063740 (most recent call first):
Aborted
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10
Looking around a bit, I saw that I had python 2.7 and python 3.7 in /usr/local/lib.
Should I "uninstall" Python 2.7?
Do you have any suggestions for resolving this error message?

Thank you in advance.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 16, 2021 - 3:28 PM

Code: Select all

python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'
>>> 
Can you try this on your machine to see if getpreferredencoding works?
fck_mly
Messages: 15
Registration: Sep 1, 2020 - 4:28 p.m.
Location: USA
Contact :

August 16, 2021 - 3:38 PM

Thank you for your response.
However, I absolutely cannot launch Python 3...

Code: Select all

root@****wapt:/opt/wapt/bin# python3
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f62b4542740 (most recent call first):
Aborted
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 16, 2021 - 4:45 PM

Does this work?

Code: Select all

/usr/bin/python3.7
fck_mly
Messages: 15
Registration: Sep 1, 2020 - 4:28 p.m.
Location: USA
Contact :

August 16, 2021 - 4:51 PM

No, still the same error...
We had no problems during the migration from 1.8 to 2.0.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 16, 2021 - 5:37 PM

Wapt doesn't use Python; we use a virtual environment, so it's surprising:

In this case, it's the local Python installation on your machine that's no longer working:

In your export, do you have any references to Python?

Code: Select all

export|grep -i python
https://openclassrooms.com/forum/sujet/erreur-dencoding
fck_mly
Messages: 15
Registration: Sep 1, 2020 - 4:28 p.m.
Location: USA
Contact :

August 17, 2021 - 12:21

Hello,
thanks for the tip.
After making some mistakes, restoring the hosted VM, uninstalling and then reinstalling Python, the upgrade worked, although I'm still getting the same Python error...
Anyway, the migration to version 9450 is OK.

Have a good day.
Locked