[Bacula-users] Anyone successfully set up bacula server on Windows?
Hi! I have set up bacula server on windows. But: there is an error reported constantly: 26-Jan 05:19 bacula-dir ERROR TERMINATION Please correct configuration file: C:\Bacula\bacula-dir.conf 26-Jan 05:31 bacula-dir JobId 0: Fatal error: Could not open Catalog MyCatalog, database baculabd. 26-Jan 05:31 bacula-dir JobId 0: Fatal error: /home/kern/bacula/k/bacula/src/cats/mysql.c:195 Unable to connect to MySQL server. Database=baculabd User=bacula MySQL connect failed either server not running or your authorization is incorrect. 26-Jan 05:31 bacula-dir ERROR TERMINATION Please correct configuration file: C:\Bacula\bacula-dir.conf in bacula-dir.conf I have: Catalog { Name = MySQL dbname = baculabd user = bacula password = DB Address = localhost DB Port = 3306 DB Socket = C:/MySQL/mysql.soc } MySQL is configured to allow connections on port 3306. It is no problem to access the bacula-db from a command line: C:\mysql -u bacula -h localhost -P 3306 -p baculadb Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.1.41-community MySQL Community Server (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql show tables; ++ | Tables_in_baculadb | ++ | basefiles | | cdimages | | client | | counters | | device | | file | | filename | | fileset| | job| | jobhisto | | jobmedia | | location | | locationlog| | log| | media | | mediatype | | path | | pool | | status | | storage| | unsavedfiles | | version| ++ 22 rows in set (0.19 sec) mysql show grants; + | Grants for bac...@localhost + | GRANT USAGE ON *.* TO 'bacula'@'localhost'\ IDENTIFIED BY PASSWORD '***' | GRANT ALL PRIVILEGES ON `baculadb`.* TO 'bacula'@'localhost' + 2 rows in set (0.01 sec) bacula-dir immediately bails out after being started. Any idea what's going wrong here? -- Thomas -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Anyone successfully set up bacula server on Windows?
Hi First thing I would check, is if it wouldn't run correctly if you will correct wrong database name in bacula config : you have there baculabd instead baculadb. -- Piotr Gbyliczek ForLinux Ltd, Innovation House, Cafferata Way Beacon Hill Business Park, Newark, Notts, NG24 2TN Tel: 0845 4210444 FAX 01636 703910, Web: http://www.forlinux.co.uk/ Registered Company No 04227715 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The information contained in this message or any of its attachments maybe confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of ForLinux Limited. ForLinux Limited email is for business use only. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Anyone successfully set up bacula server on Windows?
On 26.01.2010 17:05, Piotr Gbyliczek wrote: Hi First thing I would check, is if it wouldn't run correctly if you will correct wrong database name in bacula config : you have there baculabd instead baculadb. OK. Thanks! I've overlooked this detail ... :-( I've corrected it, now it works! -- Thomas -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Anyone successfully set up bacula server on Windows?
On 26.01.2010 20:11, Bruno Friedmann wrote: Dear Thomas, It's quite simple to resolve as all is in the log. The default scripts and configs which reference the catalog database look for a resource in config called MyCatalog yours is call MySQL so you have two choice. Renaming your catalog resource or adjust the different configuration inside your bacula-dir.conf to point to MySQL name. I hab all @catalog@ changed to MySQL, but not all database references where defined as @catalog@. I've corrected them all and now the error message has changed. bacula-dir can connect to the database. Gona play around further, hopefully getting it to work this night! -- Thomas -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users