This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Upgrade Puremessage to version 6 - migration error

Upgrading Puremessage for UNIX 5.61 to 6.  Install goes flawlessly.  Running pmx-v6-migrate ends in error, although the policy and white-listd senders do migrate before the error.  Not a clue how to get past this.  Full run of utility below.

---------------------------------------------------------------------------------------------------------------------------------------------------------------

1. [Recommended] Migrate Configuration (error)

2. ([Recommended] Migrate Log Search Files & Data)

3. ([Optional] Database & Quarantine)

4. Exit

Enter selection: 1

Migrating your PureMessage 5 configuration will overwrite your current settings.

Would you like to proceed (yes/no)? [yes]

Copying configuration files

Finalizing changes

Checking mail_sender value format

Updating cache info

Creating cdb files for maps, list and multilists

Migrating group data

ERROR: Command failed (1): 'su - pmx -c '/opt/pmx/bin/pmx-env pmx-database start'': pg_ctl: invalid data in PID file "/opt/pmx/postgres/var/data/postmaster.pid"

Migration script has terminated with error.

Review the log file for more information.

Press enter to continue...

:36407


This thread was automatically locked due to age.
  • Hello,

    Can you take a look at the .pid file, it should contain information, including the PID for postgres:

    cat /opt/pmx/postgres/var/data/postmaster.pid

    Is postgres actually running?  Can you find this PID?  Perhaps the .pid file is corrupt, or postgres didn't shutdown cleanly.   If postgres isn't running we don't actually need this file.  So, assuming you aren't running any other postgresql databases on this server, it should be safe to follow this process:

    su - pmx -c "pmx-database stop"

    ps auxwww | grep postgres

    killall postgres

    ps auxwww | grep postgres

    mv /opt/pmx/postgres/var/data/postmaster.pid /opt/pmx/postgres/var/data/postmaster.pid.bak

    Once you're sure that postgres is stopped and the .pid file is gone, just re-run pmx-v6-migrate (as the pmx6 user).

    Hope this helps!

    Tom.

    :36471
  • We upgraded from 5.6 to 6.0 today on a redhat 5.5 machine

    (the reason was that we were not able to open the quarantine  / look Can't open PureMessage Manage Quarantine

    the installation run smoothly but..

    when we try to run the pmx-v6-migrate

    we get an error that not all processes of puremessage 5 are stopped..

    even if we stop them manually (following this PureMessage for UNIX: migrating the database and quarantine after a locale error

    we get an error that it can't start the database in step 3.

    Anyway we started pm6 without migrating the quarantine, and we can check the new mails in quarantine through the dashboard BUT when we run

    pmx start

    we get the same errors we had with pmx 5.6

    "error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory"

    Can we manually import the old quarantine database ?

    And how can we import the various policies (except from those in the policy.siv which we copied from the older version to the new one ..

    :41945
  • In the dashboard we see that LogSearch Index is not running (which is normal we think, as we don't use the default posftix but sendmail from the server) but also QueueRunner and SMTP (sendmail) . Is this normal ?

    dashboard

    :41963
  • well we figured out that whenever we restarted pmx we got 'fresh' results in the quarantine

    but queue runner still never startedqueuerunner.jpg

    we couldn't get it started via dashboard -> queue runner -> start/restart either

    but we managed to start it via local services -> queue runner -> restart

    queuerunner2b.jpg

    and now the quarantine seems to be populated normaly ..

    :44965