PostgreSQL database error following database migration

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
Geovariances
Messages: 15
Registration: July 28, 2020 - 10:56 AM

January 3, 2023 - 5:58 PM

Hello and Happy New Year to everyone!

I installed a test server (DEBIAN 10) in version 2.2.6.2 and then exported my current database (via the export procedure documented on the site) in 1.8.2.
Once exported, I performed a postconf and a restoration of the database and the necessary directories.
First, my database hasn't been updated to 2.2.6.2. Is postconf supposed to do that?
Second problem: I'm getting an error starting the waptserver service. This error is related to my PostgreSQL database

Code: Select all

> Traceback (most recent call last):
  File "/opt/wapt/lib/python3.8/site-packages/peewee.py", line 3144, in execute_sql
    cursor.execute(sql, params or ())
psycopg2.errors.UndefinedColumn: column t1.user_fingerprint does not exist
LINE 1: ...od", "t1"."description", "t1"."user_certificate", "t1"."user...
How to get out of this problem?
It's a test machine but it allows me to validate an upgrade from my 1.8.2 to a 2.2.

Thank you in advance for your help.

Mickaël
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 4, 2023 - 2:20 PM

Hello,

Which version exactly is it? Wasn't there a version 2.2.6? The error message indicates that the database wasn't upgraded correctly.

The database is updated when the waptserver service starts. However, in older versions, this could happen silently. Could you test the latest version, 2.2.3.12485? The service startup should fail if the database upgrade doesn't go through.
Afterward, you should post the error logs here.

Sincerely,

Denis Cardon
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Geovariances
Messages: 15
Registration: July 28, 2020 - 10:56 AM

January 4, 2023 - 5:31 PM

Hello,

the WaptServer version is 2.2.3.12485 to be precise.
I'll look into upgrading it and post the logs tomorrow.

Thanks

, Mickaël
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 5, 2023 - 12:08 PM

Hello,

if you were already on version 2.2.3.12485, it's strange that it's crashing. Were you on the latest version, 1.8.2.7393, before upgrading?

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Geovariances
Messages: 15
Registration: July 28, 2020 - 10:56 AM

January 9, 2023 - 11:01

dcardon wrote: January 5, 2023 - 12:08 PM Hello,

if you were already on version 2.2.3.12485, it's strange that it's crashing. Were you on the latest version, 1.8.2.7393, before upgrading?

Regards,

Denis
Good morning,

No, version 1.8.2.7334 is the version of the server to be upgraded.
Locked