Hello,
how can I migrate my WAPT server from a Windows installation to an Ubuntu installation, given that my computers already have the WAPT client installed?
Do I simply need to update the clients on the machines?
Do I need to retrieve the generated certificates?
Thank you in advance.
Windows to Ubuntu migration
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Install a Debian system (Note: do not use a graphical Debian system) then:
Install wapt:
Next, run the postconf.py wapt script:
Then you need to transfer all the contents of the folder C:\wapt\waptserver\repository\wapt to /var/www/wapt/
And
Transfer all the contents of C:\wapt\waptserver\repository\wap-host to /var/www/wapt-host/
Then do a:
If the IP address or DNS record of the WAPT device has changed:
To register DNS in the wapt-get.ini file of the client, this will be easy:
You just need to change the IP address of the Wapt DNS record in your DNS server
If an IP address is being configured on the clients, you can send a WAPT packet to the old DNS server to change the repository and WAPT server addresses on the clients: A packet like this:
I am not migrating the MongoDB database; the clients will then gradually appear in the console as they start up.
There is absolutely no certificate to regenerate
Install wapt:
Code: Select all
echo "deb http://wapt.tranquil.it/debian/ ./ " > /etc/apt/sources.list.d/wapt.list
apt-get update
apt-get install tis-waptserver tis-waptrepo tis-waptsetup
Code: Select all
/usr/bin/python /opt/wapt/waptserver/scripts/postconf.pyAnd
Transfer all the contents of C:\wapt\waptserver\repository\wap-host to /var/www/wapt-host/
Then do a:
Code: Select all
chown -R wapt:www-data /var/www/* Code: Select all
/etc/init.d/waptserver restart To register DNS in the wapt-get.ini file of the client, this will be easy:
You just need to change the IP address of the Wapt DNS record in your DNS server
If an IP address is being configured on the clients, you can send a WAPT packet to the old DNS server to change the repository and WAPT server addresses on the clients: A packet like this:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
inifile_writestring(WAPT.config_filename,'global','repo_url','https://newadressip/wapt')
inifile_writestring(WAPT.config_filename,'global','wapt_serveur','https://newadressip')
There is absolutely no certificate to regenerate
Good morning,
I just saw the reply even though I had already installed the new server with the same IP address and name.
The stations are coming back online, but I'm getting errors in the packet deployment.
The old server has since been deleted, so it's impossible to recover anything.
Here is the error I am getting, and it is the same for all packages:
signature is invalid
What should I do?
Thanks in advance.
I just saw the reply even though I had already installed the new server with the same IP address and name.
The stations are coming back online, but I'm getting errors in the packet deployment.
The old server has since been deleted, so it's impossible to recover anything.
Here is the error I am getting, and it is the same for all packages:
Code: Select all
Exception: Package file C:\wapt\cache\moisand-waptupgrade_1.2.3.2-1498_all.wapt signature is invalidCode: Select all
id;description;summary;start_date;logs
12;Installation de moisand-libreoffice (=5.0.3.2-15) (task #12);Exception: Package file C:\wapt\cache\moisand-libreoffice_5.0.3.2-15_all.wapt signature is invalid;2015-12-08T10:52:24.155000;"https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 11534336 / 216475688 (5%) (9761 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 24117248 / 216475688 (11%) (9680 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 36700160 / 216475688 (17%) (10124 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 49283072 / 216475688 (23%) (9987 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 61865984 / 216475688 (29%) (10193 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 74448896 / 216475688 (34%) (10336 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 87031808 / 216475688 (40%) (10340 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 99614720 / 216475688 (46%) (10258 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 112197632 / 216475688 (52%) (10270 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 124780544 / 216475688 (58%) (10321 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 137363456 / 216475688 (63%) (10387 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 149946368 / 216475688 (69%) (10454 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 162529280 / 216475688 (75%) (10490 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 175112192 / 216475688 (81%) (10482 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 187695104 / 216475688 (87%) (10520 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 200278016 / 216475688 (93%) (10555 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 212860928 / 216475688 (98%) (10412 KB/s)
https://wapt.llon-moisand.loc/wapt/moisand-libreoffice_5.0.3.2-15_all.wapt : 216475688 / 216475688 (100%) (10450 KB/s)
Exception: Package file C:\wapt\cache\moisand-libreoffice_5.0.3.2-15_all.wapt signature is invalid
Traceback (most recent call last):
File ""C:\wapt\waptservice\waptservice.py"", line 1982, in run
self.running_task.run()
File ""C:\wapt\waptservice\waptservice.py"", line 1247, in pwrapper
return func(*arg, **kwargs)
File ""C:\wapt\waptservice\waptservice.py"", line 1307, in run
self._run()
File ""C:\wapt\waptservice\waptservice.py"", line 1712, in _run
self.result = self.wapt.install(self.packagename,force = self.force)
File ""C:\wapt\common.py"", line 3766, in install
raise Exception(u'Package file %s signature is invalid' % ensure_unicode(fname))
Exception: Package file C:\wapt\cache\moisand-libreoffice_5.0.3.2-15_all.wapt signature is invalid
"
What should I do?
Thanks in advance.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Oops! Did you generate a new key? If so, did you keep the old ones?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
In fact, normally you don't need to regenerate a new key.
