The Upgrade of Symantec Messaging Gateway fails with dbcursor error

book

Article ID: 155876

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

When you upgrade from SMG 9.5.1 or 9.5.2 to 9.5.3 you get an error:

2012-02-07T11:02:59+0100 db-migration Starting Symantec Messaging Gateway DB Migration
2012-02-07T11:03:00+0100 db-migration According to osconfig, this system runs the BCC, continuing
2012-02-07T11:03:00+0100 db-migration Verifying that MySQL is alive and well...
2012-02-07T11:03:00+0100 db-migration MySQL is ready to accept connections, testing connection
2012-02-07T11:03:00+0100 db-migration Verified connection to database
2012-02-07T11:03:00+0100 db-migration Kicking off migration script to determine whether migration is required
n: 6, index: 4
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
warning: /usr/share/ssl/certs/ca-bundle.crt saved as /usr/share/ssl/certs/ca-bundle.crt.rpmsave
Giving mysqld a couple of seconds to exit nicely
E: Sub-process /bin/rpm returned an error code (253)
Err Inappropriate ioctl for device
2012-02-07 10:06:54 +0100
2012-02-07 10:06:54 +0100
2012-02-07 10:06:54 +0100
mount: /opt is busy
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
mail>
 

Resolution

This is known issue . It is necessary to rebuild the database indices from the installed package headers:
#rpmdb -r
 
The installation should now proceed normally.