Hi All,

I'm using VMBuilder and I liked it very much. I have a custom package
that I install in post install script (--exec script).
This package assumes that MySQL is installed (PreDepends) and as part
of configuration this package creates a new database in the MySQL
using something like mysql < db_dump.sql.
Although I have installed the MySQL by --add-pkg but in the post
installation script it does not allows me to populate data in the
database.

Here is the partial error that I get while VMBuilder runs the post
installation script.

        ldconfig deferred processing now taking place
        , stderr: Can not write log, openpty() failed (/dev/pts not mounted?)
        Can not write log, openpty() failed (/dev/pts not mounted?)
        Can not write log, openpty() failed (/dev/pts not mounted?)
        Can not write log, openpty() failed (/dev/pts not mounted?)
        ERROR 2002 (HY000): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)
        ERROR 2002 (HY000): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)
        dpkg: error processing custom-server (--configure):
         subprocess post-installation script returned error exit status 1
        Errors were encountered while processing:
         custom-server
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        
Can this problem be solved? Since the package expects the MySQL is
running on the machine.


Thanks,
Amol

_______________________________________________
Mailing list: https://launchpad.net/~vmbuilder
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~vmbuilder
More help   : https://help.launchpad.net/ListHelp

Reply via email to