upgrade to 1.5

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 11:28

Hello,
after upgrading to console version 1.5, I can no longer see my workstations. The server update seems to be OK. Everything appears to be working except that my workstations are no longer visible, preventing me from deploying the new agent.
I followed the procedure step by step; could I have missed something? :?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 24, 2018 - 12:10

viewtopic.php?f=9&t=886

Without even knowing if you're using Windows or Linux, it's going to be difficult to help you...
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 2:03 PM

Sorry,

Linux Debian 9 server
, console on Windows 10 Pro,
Windows 7 Pro clients with agent 1.3

on server.
WAPT Server version: 1.5.1.16,
WAPT Agent version: 1.5.1.16,
WAPT Setup version: 1.5.1.16,
WAPT Deploy version: 1.5.1.16,

console version: 1.5.1.16
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 3:02 PM

By manually installing the new agent on a client machine (which doesn't report back), it reappears in the console.
Is the old agent not communicating with the new server?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 24, 2018 - 3:53 PM

beemoon wrote: Jan 24, 2018 - 3:02 PM By manually installing the new agent on a client machine (which doesn't report back), it reappears in the console.
Is the old agent not communicating with the new server?
No, indeed, the new agent needs to be version 1.5

Normally when you launch postconf under Linux, you launch the migration of the MongoDB database.

I'm doing some more internal testing.
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 4:02 PM

I re-ran the command

sudo -u wapt python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres

and here is the result

dumping mongodb data
2018-01-24T15:59:36.855+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:41962 #1 (1 connection now open)
2018-01-24T15:59:36.856+0100 Failed: Invalid database name: '/var/lib/mongodb/'
Traceback (most recent call last):
File "/opt/wapt/waptserver/waptserver_upgrade.py", line 200, in
upgrade2postgres()
File "/opt/wapt/waptserver/waptserver_upgrade.py", line 158, in upgrade2postgres
jsondata = create_import_data()
File "/opt/wapt/waptserver/waptserver_upgrade.py", line 77, in create_import_data
data = subprocess.check_output('mongoexport -d wapt -c hosts --jsonArray --db=%s' % mongo_datadir,shell=True)
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'mongoexport -d wapt -c hosts --jsonArray --db=/var/lib/mongodb/' returned non-zero exit status 1
2018-01-24T15:59:36.862+0100 I NETWORK [conn1] end connection 127.0.0.1:41962 (0 connections now open)
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 4:04 PM

Ah, I changed --dbpath to --db because it was causing an error
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 24, 2018 - 5:07 PM

Finally, I removed the `--dbpath` and its parameter because when I run `mongoexport --help`, the option doesn't exist.
The command
`/usr/bin/python /opt/wapt/waptserver/scripts/postconf.py`

runs without errors.

But still no machines in the console!

Since it's a beta/RC... I'm going to redeploy my agents.
beemoon
Messages: 24
Registration: December 8, 2017 - 2:04 PM

January 25, 2018 - 8:57 AM

Yes, I found it!!!!

It's the script /opt/wapt/waptserver/waptserver_upgrade.py that's buggy for Linux.

Here's what I changed:

+ data = subprocess.check_output('mongoexport -d wapt -c hosts --jsonArray ',shell=True)^M
- data = subprocess.check_output('mongoexport -d wapt -c hosts --jsonArray --dbpath=%s' %

+ jsondata = json.loads(data)^M
- jsondata = json.load()^M

Now the command
sudo -u wapt python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres/opt/wapt/waptserver/waptserver_up

no longer gives an error and correctly displays the exports; the PCs are back in the console.
Locked