Update from 1.3 to 1.5

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
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

January 12, 2018 - 8:56 AM

Good morning,
I'm trying to update Wapt to version 1.5 but I'm getting the following errors:
root@srv-wapt:~# apt-get update
Achieved http://security.debian.org wheezy/updates Release.gpg
Achieved http://security.debian.org wheezy/updates Release
Achieved http://security.debian.org wheezy/updates/main Sources
Achieved http://security.debian.org wheezy/updates/main amd64 Packages
Achieved http://ftp.fr.debian.org wheezy Release.gpg
Achieved http://security.debian.org wheezy/updates/main Translation-en
Achieved http://ftp.fr.debian.org wheezy-updates Release.gpg
Achieved http://ftp.fr.debian.org wheezy Release
Achieved http://ftp.fr.debian.org wheezy-updates Release
Achieved http://ftp.fr.debian.org wheezy/main Sources
Achieved http://ftp.fr.debian.org wheezy/main amd64 Packages
Achieved http://ftp.fr.debian.org wheezy/main Translation-fr
Achieved http://ftp.fr.debian.org wheezy/main Translation-en
Achieved http://ftp.fr.debian.org wheezy-updates/main Sources
Achieved http://ftp.fr.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Reached http://ftp.fr.debian.org wheezy-updates/main Translation-en/DiffIndex
Ign https://wapt.tranquil.it wheezy Release.gpg
Ign https://wapt.tranquil.it wheezy Release
Err https://wapt.tranquil.it wheezy/main amd64 Packages
The requested URL returned error: 404

Ign https://wapt.tranquil.it wheezy/main Translation-fr_FR
Ign https://wapt.tranquil.it wheezy/main Translation-fr
Ign https://wapt.tranquil.it wheezy/main Translation-en
W: Could not fetch https://wapt.tranquil.it/debian/wapt-1. ... 4/Packages The requested URL returned error: 404

E: Some index files failed to download, were ignored, or old ones were used instead.
root@srv-wapt:~# apt-get install tis-waptserver tis-waptsetup
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not locate package tis-waptserver
E: Could not locate package tis-waptsetup
root@srv-wapt:~#
I followed the procedure to uninstall Wapt 1.3 and disable Apache2. I simply used "/etc/init.d/apache2 stop" and "update-rc.d apache2 disable" instead of the commands indicated in the manual.

EDIT: Sorry, I just realized my server is still running Debian Wheezy; now I just need to figure out how to upgrade it...
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

January 12, 2018 - 3:25 PM

The upgrade went smoothly, I think, after upgrading Debian to version 9, but when I try to assign the "mig-tempo" package group to all PCs, I get this error message:

WARNING:wapt:Target package already exists, removing c:\users\inform~1\appdata\local\temp\BE58D166-3CCC-ED2E-3AA3-80A6724A6024.wapt
Traceback (most recent call last):
File "C:\wapt\waptdevutils.py", line 478, in edit_hosts_depends
host_file = host.build_management_package()
File "C:\wapt\waptpackage.py", line 906, in build_management_package
wapt_zip.writestr('WAPT/control',control_data)
File "C:\wapt\custom_zip.py", line 1328, in writestr
zinfo.CRC = crc32(bytes) & 0xffffffff # CRC-32 checksum
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 179: ordinal not in range(128)
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

January 12, 2018 - 3:34 PM

I installed the console on another machine, and by adding the group to the PC I have another "Query from Python" window:
https://image.ibb.co/eFfCe6/2018_01_12_ ... stance.jpg

Then, upon submitting, the same error message appeared:
https://image.ibb.co/h78tmm/2018_01_12_ ... stance.jpg

I also get this error when I try to add any package to my computer:
An unhandled exception has occurred
exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 181: ordinal not in range(128)
However, I managed to install a self-service package on that same machine...
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

January 12, 2018 - 3:59 PM

Hello,
it looks like a mix of two versions of wapt.
Could you try uninstalling wapt first? (keeping only wapt-get.ini and the ssl and db directories?)

Do you have a non-ASCII character in your private key password? If so, there might be a bug.

Hubert
Tranquil IT
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

January 14, 2018 - 08:47

Should I uninstall the WAPT server or the client? I received warnings during the uninstallation of WAPT 1.3 from the server regarding non-empty directories, I believe. Otherwise, the password is simply composed of numbers and letters.
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

January 15, 2018 - 8:45 AM

I tried reinstalling the console on my machine while keeping these files, but it didn't work. I'm going to restore my server VM to version 1.3.13 and restart the migration procedure. Which directories need to be manually deleted on the server after uninstalling using "apt-get remove tis-waptrepo tis-waptsetup tis-waptserver"?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 15, 2018 - 3:23 PM

gaelds wrote: Jan 12, 2018 - 3:25 PM The upgrade went smoothly, I think, after upgrading Debian to version 9, but it's when I try to assign the "mig-tempo" package group to all the PCs that I get this error message:
After updating your OS to Debian 9 Stretch, did you also update the WAPT server to 1.3.13 Stretch at the same time? Was the WAPT server still working after this initial update?

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked