migration 1.5 - debian 8.10

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
Stenon
Messages: 36
Registration: June 2, 2016 - 8:04 AM

March 20, 2018 - 06:17

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 20, 2018 - 08:39

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"
Stenon
Messages: 36
Registration: June 2, 2016 - 8:04 AM

March 20, 2018 - 09:12

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 !
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 20, 2018 - 09:45

Can you indicate if the order

Code: Select all

mongoexport  -c hosts --jsonArray --db wapt
Does it work?
Stenon
Messages: 36
Registration: June 2, 2016 - 8:04 AM

March 20, 2018 - 10:16

Yes, I tried it and at the end it displays:
exported 124 records
...
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 20, 2018 - 10:22

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
Stenon
Messages: 36
Registration: June 2, 2016 - 8:04 AM

March 20, 2018 - 10:36

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
wapt1.5.jpg (127.21 KB) Viewed 7762 times
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

March 20, 2018 - 10:42

Two hypotheses:
  • Your posts are not on time
  • Your server is not on time
Alexander
Stenon
Messages: 36
Registration: June 2, 2016 - 8:04 AM

March 20, 2018 - 11:04

Thanks for the suggestion; there was a 10-minute difference. I've fixed it, but the problem remains...
wapt1.5-2.jpg
wapt1.5-2.jpg (25.78 KB) Viewed 7761 times
Do I need to reorder?

PS: I also restarted the Wapt server.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 20, 2018 - 11:37

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
Locked