[RESOLVED] Server OS Change

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
ng3
Messages: 16
Registration: July 11, 2022 - 10:46

October 5, 2022 - 10:19

Hello,

I need to change the operating system for hosting my WAPT server. More specifically, I'm migrating from Red Hat to Ubuntu. Do you have a procedure for doing this while preserving data, certificates, etc.? Is it compatible despite the differences between the two operating systems?

This post seemed to answer my questions: viewtopic.php?t=2124#:~:text=Simon%20a% ... p%C3%A9rer.
However, the URL for the procedure redirects me to the main documentation page: https://www.wapt.fr/fr/doc/waptserver-backup.html

Thank you in advance.
Last edited by ng3 on Oct 20, 2022 - 6:09 PM, edited 1 time.
- WAPT version installed -> Discovery 2.2
- Server OS -> Ubuntu 22.04
- Administration/package creation machine OS -> Windows Server
ng3
Messages: 16
Registration: July 11, 2022 - 10:46

October 5, 2022 - 11:37

Hello,

Is WAPT version 2.2 supported under Ubuntu 18.04? I only see Ubuntu 20.04 listed.

Thank you in advance for your answers.

Sincerely.
- WAPT version installed -> Discovery 2.2
- Server OS -> Ubuntu 22.04
- Administration/package creation machine OS -> Windows Server
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 6, 2022 - 10:18

Hello ng3,

For server versions, we are maintaining support for the two latest LTS versions, 20.04 and 22.04. For agents, we are maintaining more extensive support.

Regarding backup/restore, the documentation page has been renamed: https://www.wapt.fr/en/doc/wapt-server-backup.html

Regards,

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
ng3
Messages: 16
Registration: July 11, 2022 - 10:46

October 20, 2022 - 5:30 PM

Hello,

thank you for your reply. I did indeed follow this backup/restore procedure, and most of the configuration seems correct. However, my packages are not recognized.

I tried running wapt-scanpackages, but it failed.

"
$ wapt-scanpackages
Traceback (most recent call last):
File "/opt/wapt/wapt-scanpackages.py", line 104, in
main()
File "/opt/wapt/wapt-scanpackages.py", line 86, in main
res = update_packages(wapt_path, force=options.force,
File "/opt/wapt/waptpackage.py", line 4649, in update_packages
return repo.update_packages_index(force_all=force, proxies=proxies, canonical_filenames=canonical_filenames)
File "/opt/wapt/waptpackage.py", line 3943, in update_packages_index
for package in self.packages():
File "/opt/wapt/waptpackage.py", line 3415, in packages
self._load_packages_index()
File "/opt/wapt/waptpackage.py", line 3771, in _load_packages_index
with CustomZipFile(io.BytesIO(packages_data_str)) as packages_file:
File "/opt/wapt/waptutils.py", line 2261, in __init__
zipfile.ZipFile.__init__(self, file=file, mode=mode, compression=compression, allowZip64=allowZip64, compresslevel=compresslevel, strict_timestamps=strict_timestamps)
File "/opt/wapt/lib/python3.8/zipfile.py", line 1269, in __init__
self._RealGetContents()
File "/opt/wapt/lib/python3.8/zipfile.py", line 1336, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
"

When I connect to the new server via the administration console, in the packages tab I don't see any packages and I get the following message:
"TZipRead.Create: "No ZIP header found."

Thank you in advance for your help.

Have a great day/evening.

Best regards.
- WAPT version installed -> Discovery 2.2
- Server OS -> Ubuntu 22.04
- Administration/package creation machine OS -> Windows Server
ng3
Messages: 16
Registration: July 11, 2022 - 10:46

October 20, 2022 - 6:08 PM

Hello,

the problem is solved. The file transfer wasn't complete; there wasn't enough space on the new WAPT server. After increasing the filesystem size and re-transferring the files from the wapt directory,
everything works. The procedure was flawless. Thank you.
- WAPT version installed -> Discovery 2.2
- Server OS -> Ubuntu 22.04
- Administration/package creation machine OS -> Windows Server
Locked