Hi,
yesterday, a bit excited, I started the migration... from 1.3 to 1.5.
I followed your documentation (Debian) and I'm stuck on two points:
- I no longer see my clients in the WaptConsole except for my own PC. The result of the migrate-hosts.py script is something like: skip pc01 skip pc02
- In the WaptConsole, even on my own PC, I can't launch my updates (check updates and apply upgrades are grayed out).
Thank you very much.
migration 1.5 - debian 8.10
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 :
The migrate-host script does not migrate machines, it renames machine packages with a FQDN name based on the UUID:
https://www.wapt.fr/fr/doc/changelog.ht ... re-globale
You can try restarting:
https://www.wapt.fr/fr/doc/changelog.ht ... re-globale
You can try restarting:
Code: Select all
sudo -u wapt PYTHONPATH=/opt/wapt PYTHONHOME=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres -c "/opt/wapt/conf/waptserver.ini"Thank you for the quick reply.
I tried the command but it didn't work:
THANKS !
I tried the command but it didn't work:
Code: Select all
sudo -u wapt PYTHONPATH=/opt/wapt PYTHONHOME=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres -c "/opt/wapt/conf/waptserver.ini"
Code: Select all
sudo -u wapt PYTHONPATH=/opt/wapt PYTHONHOME=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres -c "/opt/wapt/conf/waptserver.ini"Code: Select all
Upgrading from mongodb to postgres
[uwsgi]
http-socket = 127.0.0.1:8080
master = true
processes = 16
wsgi = waptserver:app
chdir = /opt/wapt/waptserver/
max-requests = 100
uid = wapt
gid = www-data
enable-threads = true
[options]
wapt_user = admin
wapt_password = 729593ef2b450ae2937f1d7dd4875c58cb6816a3
wapt_folder = /var/www/wapt
server_uuid = 4e0399fa-391c-11e6-a99f-00505690d75f
waptwua_folder = /var/www/waptwua
allow_unauthenticated_registration = True
secret_key = HjNzkazXLePXsEgYcjDxNflnkgpTrx8qPV5PD1eWDwTXZAHIqhCGnGc37C465YDY
dumping mongodb data
ERROR: option '--db' cannot be specified more than onceTHANKS !
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Can you indicate if the order
Does it work?
Code: Select all
mongoexport -c hosts --jsonArray --db wapt- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
So there's probably an error in the post-configuration; could you replace:
In
Code: Select all
data = subprocess.check_output('mongoexport -d wapt -c hosts --jsonArray --db wapt',shell=True)
Code: Select all
data = subprocess.check_output('mongoexport -c hosts --jsonArray --db wapt',shell=True)
Code: Select all
/opt/wapt/waptserver/waptserver_upgrade.pyAmazing!
...
{'computer_fqdn': u'nadm-016.domain.int', 'uuid': u'C6125DD3-B738-11E6-9C43-BC0000580000'}
Great, that's fantastic! I can see all the PCs again in WaptConsole!!!
Now the second problem remains... I can't choose between update and upgrade
...
{'computer_fqdn': u'nadm-016.domain.int', 'uuid': u'C6125DD3-B738-11E6-9C43-BC0000580000'}
Great, that's fantastic! I can see all the PCs again in WaptConsole!!!
Now the second problem remains... I can't choose between update and upgrade
Two hypotheses:
- Your posts are not on time
- Your server is not on time
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
The import is working,
the server is on time.
Now you need to follow the rest of the procedure:
https://www.wapt.fr/fr/doc/waptserver_u ... grade.html
the server is on time.
Now you need to follow the rest of the procedure:
https://www.wapt.fr/fr/doc/waptserver_u ... grade.html
