Page 1 of 1

Update from 1.3 to 1.5

Published: January 12, 2018 - 8:56 AM
by gaelds
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...

Re: Update from 1.3 to 1.5

Published: January 12, 2018 - 3:25 PM
by gaelds
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)

Re: Update from 1.3 to 1.5

Published: January 12, 2018 - 3:34 PM
by gaelds
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...

Re: Update from 1.3 to 1.5

Published: January 12, 2018 - 3:59 PM
by htouvet
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

Re: Update from 1.3 to 1.5

Published: January 14, 2018 - 08:47
by gaelds
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.

Re: Update from 1.3 to 1.5

Published: January 15, 2018 - 8:45 AM
by gaelds
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"?

Re: Update from 1.3 to 1.5

Published: January 15, 2018 - 3:23 PM
by dcardon
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