Page 1 of 1
migration 1.5 - debian 8.10
Published: March 20, 2018 - 06:17
by Stenon
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.
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 08:39
by sfonteneau
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:
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"
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 09:12
by Stenon
Thank you for the quick reply.
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 once
THANKS !
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 09:45
by sfonteneau
Can you indicate if the order
Code: Select all
mongoexport -c hosts --jsonArray --db wapt
Does it work?
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 10:16
by Stenon
Yes, I tried it and at the end it displays:
exported 124 records
...
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 10:22
by sfonteneau
So there's probably an error in the post-configuration; could you replace:
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)
In
Code: Select all
/opt/wapt/waptserver/waptserver_upgrade.py
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 10:36
by Stenon
Amazing!
...
{'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

- wapt1.5.jpg (127.21 KB) Viewed 7770 times
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 10:42
by agauvrit
Two hypotheses:
- Your posts are not on time
- Your server is not on time
Alexander
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 11:04
by Stenon
Thanks for the suggestion; there was a 10-minute difference. I've fixed it, but the problem remains...

- wapt1.5-2.jpg (25.78 KB) Viewed 7769 times
Do I need to reorder?
PS: I also restarted the Wapt server.
Re: migration 1.5 - debian 8.10
Published: March 20, 2018 - 11:37
by sfonteneau
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