Page 1 of 1
[RESOLVED] Server OS Change
Published: October 5, 2022 - 10:19 AM
by ng3
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.
Re: Server OS Change
Published: October 5, 2022 - 11:37 AM
by ng3
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.
Re: Server OS Change
Published: October 6, 2022 - 10:18 AM
by dcardon
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
Re: Server OS Change
Published: October 20, 2022 - 5:30 PM
by ng3
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.
Re: [SOLVED] Server OS Change
Published: October 20, 2022 - 6:08 PM
by ng3
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.