Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361483 - dev-perl/mogilefs-server: mogilefsd fails to start if dev-perl/DBD-mysql isn't installed
Summary: dev-perl/mogilefs-server: mogilefsd fails to start if dev-perl/DBD-mysql isn'...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 15:30 UTC by Dean Matzkov
Modified: 2012-11-18 11:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Matzkov 2011-03-31 15:30:51 UTC
The mogilefsd init script errors-out when DBD-mysql isn't installed, irrespective of whether or not you've actually configured it to use MySQL.

To reproduce:

1. # emerge dev-perl/mogilefs-server[-mysql].
2. Make sure dev-perl/DBD-mysql is NOT installed.
3. Use mogdbsetup to create an initial PostgreSQL or SQLite database.
4. Configure mogilefsd.conf to use Postgres/SQLite.
5. # /etc/init.d/mogilefsd start

At this point, it errors-out because it can't find MySQL.pm (will post error output in next comment).

Now, install dev-perl/DBD-mysql. Start the init script again, and _then_ it'll work - even though you're using Postgres or SQLite.
Comment 1 Dean Matzkov 2011-03-31 15:32:35 UTC
Error output from /etc/init.d/mogilefsd:

* Starting mogilefsd ...Can't locate DBD/mysql.pm in @INC (@INC contains: lib /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl . /usr/lib/perl5/vendor_perl/5.12.2/mogdeps) at /usr/lib/perl5/vendor_perl/5.12.2/MogileFS/Store/MySQL.pm line 5.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.2/MogileFS/Store/MySQL.pm line 5.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.12.2/MogileFS/Server.pm line 76.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.2/MogileFS/Server.pm line 76.
Compilation failed in require at /usr/bin/mogilefsd line 16.
BEGIN failed--compilation aborted at /usr/bin/mogilefsd line 16.

 * start-stop-daemon: failed to start `/usr/bin/mogilefsd'
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-11-18 11:08:41 UTC
Known upstream issue, fixed in newer releases.