Hello, 28.09.2007 05:07,, Ryan Novosielski wrote:: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Fredrik Gidensköld wrote: >> Im runing Bacula under Debian and MySQL 5.0.x. and it worked just fine. >> >> Until I used "dselect" to uppgrade Bacula from 2.0.X to 2.2.0 and I got >> this problmen. >> >> First I run Bacula as user 'bacula' and got this errorr: >> >> "nas:/etc/init.d# /usr/sbin/bacula-dir -v -d99 -f -g bacula -u bacula >> bacula-dir: dird.c:156 Debug level = 99 >> bacula-dir: mysql.c:164 mysql_init done >> bacula-dir: mysql.c:185 mysql_real_connect done >> bacula-dir: mysql.c:187 db_user=bacula db_name=bacula db_password=kallekula > > First off, I really wouldn't post my DB server password to a mailing > list, but I suppose that may or may not matter to you. > >> bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database "bacula". >> 27-sep 00:10 bacula-dir: Error: message.c:736 fopen >> /var/lib/bacula/bacula-dir.bacula-dir.135186632.mail failed: ERR=Access >> Denied >> 27-sep 00:10 bacula-dir: Error: message.c:736 fopen >> /var/lib/bacula/bacula-dir.bacula-dir.135186632.mail failed: ERR=Access >> Denied > > This suggests to me that the old Bacula you were using ran as one > username and the new one runs as another. Who owns these files listed > above? You may need to change the permissions on some directories/files.
This is quite common in my experience... you run Bacula as root - just for testing purposes after installation, for example - and the message spool files and the pid file are owned by root. Just verify this using ls -l, and if that's the case, chown them to the correct user. Of course, directory permissions and ownership could also be an issue, though the installation should get that right. >> bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server. >> Database=bacula User=bacula >> MySQL connect failed either server not running or your authorization is >> incorrect. > > Not sure what's happening here, but maybe the same deal... what's the > connect method, socket? If so, some other user probably owns the socket. > >> 27-sep 00:10 bacula-dir ERROR TERMINATION >> Please correct configuration file: bacula-dir.conf >> 27-sep 00:10 bacula-dir: Error: message.c:736 fopen >> /var/lib/bacula/bacula-dir.bacula-dir.135186632.mail failed: ERR=Access >> Denied" >> >> But if I run as root one problem goes away and one stays: >> >> "nas:/etc/init.d# /usr/sbin/bacula-dir -v -d99 -f -g bacula -u root >> bacula-dir: mysql.c:164 mysql_init done >> bacula-dir: mysql.c:185 mysql_real_connect done >> bacula-dir: mysql.c:187 db_user=bacula db_name=bacula db_password=kallekula >> bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database "bacula". >> bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server. >> Database=bacula User=bacula >> MySQL connect failed either server not running or your authorization is >> incorrect. >> 26-sep 23:33 bacula-dir ERROR TERMINATION >> Please correct configuration file: bacula-dir.conf" > > Well, that explains the one problem anyway. I'm guessing the first one > is running as "bacula" or something similar, and the files in /var/lib > are not writable by this user. > >> I have testade and connect to MySQL manually with success and bweb displays >> data from the databse just fine. > > I would solve the first problem first and then work from there. Yes... and double-checke your database account and password are really set up correctly. Arno >> Any one how has any idé what the problem is? >> >> Fredrik Gidensköld >> SWEDEN >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > > - -- > ---- _ _ _ _ ___ _ _ _ > |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II > |$&| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) > \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFG/HAAmb+gadEcsb4RAkPAAKCwK8q8bbLcOyGBf7VPgzLR3DGkvgCg38N/ > 3vcr+HcXyL5Svfpf+6Uezc4= > =Fej6 > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users