Bacula-users

Re: [Bacula-users] Director not open port 9101

2013-05-22 11:08:57
Subject: Re: [Bacula-users] Director not open port 9101
From: Michael Namaiandeh <mnamaiandeh AT healthcit DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 22 May 2013 11:04:30 -0400
To confirm the daemon is running, can you run the following command:

1. netstat -pant | grep bacula

As for the open port, how is iptables configured?
Open your iptables conf file:
2. vi /etc/sysconfig/iptables
Add the following line

-A INPUT -p tcp -m state -m tcp --dport 9101 --state NEW -j ACCEPT

Restart iptables
3. service iptables restart

4. Verify the daemon is running and port is open on one of your clients.
5. Kick off a backup job for the client from step #4 and see if it runs.
     On Bacula director server:   
     watch 'netstat -pant | grep bacula'




-----Original Message-----
From: stepanoff [mailto:bacula-forum AT backupcentral DOT com] 
Sent: Wednesday, May 22, 2013 9:56 AM
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] Director not open port 9101

The daemon is started, but the port is not open. In debug it:

root@ns:/var/db/bacula # bacula-dir -d700 -v -f -c 
/usr/local/etc/bacula-dir.conf -u bacula -g bacula
bacula-dir: dird.c:198-0 Debug level = 700
bacula-dir: lex.c:184-0 Open config file: /usr/local/etc/bacula-dir.conf
bacula-dir: lex.c:184-0 Open config file: /usr/local/etc/bacula-dir.conf
bacula-dir: runscript.c:50-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:196-0 runscript: setting command = 
/usr/local/share/bacula/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:213-0 runscript: setting target =
bacula-dir: runscript.c:296-0 runscript: debug
bacula-dir: runscript.c:297-0  --> RunScript
bacula-dir: runscript.c:298-0   --> 
Command=/usr/local/share/bacula/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:299-0   --> Target=
bacula-dir: runscript.c:300-0   --> RunOnSuccess=1
bacula-dir: runscript.c:301-0   --> RunOnFailure=0
bacula-dir: runscript.c:302-0   --> FailJobOnError=1
bacula-dir: runscript.c:303-0   --> RunWhen=2
bacula-dir: runscript.c:50-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:196-0 runscript: setting command = 
/usr/local/share/bacula/delete_catalog_backup
bacula-dir: runscript.c:213-0 runscript: setting target =
bacula-dir: runscript.c:296-0 runscript: debug
bacula-dir: runscript.c:297-0  --> RunScript
bacula-dir: runscript.c:298-0   --> 
Command=/usr/local/share/bacula/delete_catalog_backup
bacula-dir: runscript.c:299-0   --> Target=
bacula-dir: runscript.c:300-0   --> RunOnSuccess=1
bacula-dir: runscript.c:301-0   --> RunOnFailure=0
bacula-dir: runscript.c:302-0   --> FailJobOnError=1
bacula-dir: runscript.c:303-0   --> RunWhen=1
bacula-dir: dird.c:735-0 Job "BackupCatalog", field "type": getting default.
bacula-dir: dird.c:785-0 Job "BackupCatalog", field "type" def_ivalue=66 item 2 
offset=100
bacula-dir: dird.c:735-0 Job "BackupCatalog", field "messages": getting default.
bacula-dir: dird.c:757-0 Job "BackupCatalog", field "messages" item 4 offset=268
bacula-dir: dird.c:735-0 Job "BackupCatalog", field "storage": getting default.
bacula-dir: dird.c:735-0 Job "BackupCatalog", field "pool": getting default.
bacula-dir: dird.c:757-0 Job "BackupCatalog", field "pool" item 6 offset=288
bacula-dir: dird.c:735-0 Job "BackupCatalog", field "client": getting default.
bacula-dir: dird.c:757-0 Job "BackupCatalog", field "client" item 10 offset=276
bacula-dir: message.c:503-0 Close_msg jcr=0
bacula-dir: message.c:346-0 Copy message resource 28c7b498 to 28c27c18
bacula-dir: bsys.c:556-0 Could not open state file. sfd=-1 size=188: 
ERR=&#1053;&#1077;&#1090; &#1090;&#1072;&#1082;&#1086;&#1075;&#1086; 
&#1092;&#1072;&#1081;&#1083;&#1072; &#1080;&#1083;&#1080; 
&#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072;
bacula-dir: dir_plugins.c:160-0 Load dir plugins
bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
bacula-dir: mysql.c:709-0 db_init_database first time
bacula-dir: mysql.c:177-0 mysql_init done
bacula-dir: mysql.c:202-0 mysql_real_connect done
bacula-dir: mysql.c:204-0 db_user=bacula db_name=bacula db_password=
bacula-dir: mysql.c:388-0 db_sql_query starts with SELECT VersionId FROM Version
bacula-dir: mysql.c:398-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:422-0 db_sql_query finished
bacula-dir: mysql.c:227-0 opendb ref=1 connected=1 db=28cea0e0
bacula-dir: mysql.c:435-0 sql_query starts with 'SET wait_timeout=691200'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 0 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SET interactive_timeout=691200'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 0 rows
bacula-dir: mysql.c:388-0 db_sql_query starts with SHOW VARIABLES LIKE 
'max_connections'
bacula-dir: mysql.c:398-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:422-0 db_sql_query finished
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT 
PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge
 FROM Pool WHERE Pool.Name='Default''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 20 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=1'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_get.c:673-0 Actual NumVols=0 Pool NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=1'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_update.c:278-0 NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'UPDATE Pool SET 
NumVols=0,MaxVols=0,UseOnce=0,UseCatalog=1,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=0,Recycle=1,AutoPrune=1,LabelType=0,LabelFormat='*',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0
 WHERE PoolId=1'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT 
PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge
 FROM Pool WHERE Pool.Name='File''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 20 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=2'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_get.c:673-0 Actual NumVols=0 Pool NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=2'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_update.c:278-0 NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'UPDATE Pool SET 
NumVols=0,MaxVols=100,UseOnce=0,UseCatalog=1,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=53687091200,Recycle=1,AutoPrune=1,LabelType=0,LabelFormat='*',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0
 WHERE PoolId=2'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT 
PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge
 FROM Pool WHERE Pool.Name='Scratch''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 20 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=3'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_get.c:673-0 Actual NumVols=0 Pool NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT count(*) from Media 
WHERE PoolId=3'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 1 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_update.c:278-0 NumVols=0
bacula-dir: mysql.c:435-0 sql_query starts with 'UPDATE Pool SET 
NumVols=0,MaxVols=0,UseOnce=0,UseCatalog=1,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=0,Recycle=1,AutoPrune=1,LabelType=0,LabelFormat='*',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0
 WHERE PoolId=3'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 1 rows
bacula-dir: dird.c:1066-0 create cat=MyCatalog for client=ns.lizukova.com-fd
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT ClientId,Uname FROM 
Client WHERE Name='ns.lizukova.com-fd''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 2 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: sql_create.c:357-0 In create mediatype
bacula-dir: sql_create.c:361-0 selectmediatype: SELECT MediaTypeId,MediaType 
FROM MediaType WHERE MediaType='File'
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT MediaTypeId,MediaType 
FROM MediaType WHERE MediaType='File''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 2 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'SELECT StorageId,AutoChanger 
FROM Storage WHERE Name='File''
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:455-0 we have 2 fields
bacula-dir: mysql.c:457-0 we have 1 rows
bacula-dir: mysql.c:435-0 sql_query starts with 'UPDATE Storage SET 
AutoChanger=0 WHERE StorageId=1'
bacula-dir: mysql.c:450-0 we have a result
bacula-dir: mysql.c:466-0 we have 1 rows
bacula-dir: mysql.c:388-0 db_sql_query starts with UPDATE Job SET 
JobStatus='f', StartTime=SchedTime, EndTime=SchedTime WHERE JobStatus = 'C'
bacula-dir: mysql.c:398-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:422-0 db_sql_query finished
bacula-dir: mysql.c:388-0 db_sql_query starts with UPDATE Job SET 
JobStatus='f', EndTime=StartTime WHERE JobStatus = 'R'
bacula-dir: mysql.c:398-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:422-0 db_sql_query finished
bacula-dir: mysql.c:249-0 closedb ref=0 connected=1 db=28cea0e0
bacula-dir: mysql.c:256-0 close db=28cea0e0
ns.lizukova.com-dir: dird.c:1198-0 Skipped: .
ns.lizukova.com-dir: dird.c:1198-0 Skipped: ..
ns.lizukova.com-dir: dird.c:1198-0 Skipped: bacula.log
ns.lizukova.com-dir: dird.c:1198-0 Skipped: bacula-dir.9101.pid
ns.lizukova.com-dir: dird.c:339-0 Start UA server
ns.lizukova.com-dir: job.c:1334-0 wstorage=File
ns.lizukova.com-dir: job.c:1343-0 wstore=File where=Job resource
ns.lizukova.com-dir: job.c:1034-0 JobId=0 created 
Job=*JobMonitor*.2013-05-22_17.50.31_01
ns.lizukova.com-dir: dird.c:352-0 wait for next job
ns.lizukova.com-dir: scheduler.c:104-0 Enter wait_for_next_job
ns.lizukova.com-dir: scheduler.c:273-0 enter find_runs()
ns.lizukova.com-dir: scheduler.c:286-0 now = 519ccd27: h=17 m=4 md=21 wd=3 
wom=3 woy=21
ns.lizukova.com-dir: scheduler.c:303-0 nh = 519cdb37: h=18 m=4 md=21 wd=3 wom=3 
woy=21
ns.lizukova.com-dir: scheduler.c:312-0 Got job: BackupCatalog
ns.lizukova.com-dir: scheduler.c:355-0 run@28d5e318: run_now=0 run_nh=0
ns.lizukova.com-dir: scheduler.c:374-0 Leave find_runs()

OS:  9.1-STABLE FreeBSD 9.1-STABLE 
Bacula version: bacula-server-5.2.12               
Mysql version: mysql-server-5.6.10

Help, I can not run for a week. Broke the whole brain!

+----------------------------------------------------------------------
|This was sent by alx.stepanoff AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only 
SaaS-based application performance monitoring service that delivers powerful 
full stack analytics. Optimize and monitor your browser, app, & servers with 
just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! 
http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users