> Maybe you tried this as root?
> 
> Please try
> 
> su − bareos −s /bin/sh
> bareos-dir -t

Just so we make sure we're on the right user...
sh-4.1$ echo "$USER"
bareos

I didn't get any output from this...
sh-4.1$ bareos-dir -t
sh-4.1$ 

So I ran with debug...
sh-4.1$ bareos-dir -td 100
bareos-dir (10): dird.c:197-0 Debug level = 100
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=1 [A-Z]:/ISO
bareos-dir (9): inc_conf.c:380-0 set wildfile f4aec8 size=1 [A-Z]:/pagefile.sys
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=2 [A-Z]:/RECYCLER
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=3 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=4 [A-Z]:/VMs
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=5 [A-Z]:/Backup
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=6 [A-Z]:/Backups
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=7 [A-Z]:/SQLDBBackups
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=8 [A-Z]:/WSUS
bareos-dir (9): inc_conf.c:380-0 set wildbase f4aec8 size=1 *.mdf
bareos-dir (9): inc_conf.c:380-0 set wildbase f4aec8 size=2 *.ldf
bareos-dir (9): inc_conf.c:380-0 set wildbase f4aec8 size=3 *.iso
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=9 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=10 [A-Z]:/System 
Volume Information
bareos-dir (9): inc_conf.c:380-0 set wilddir f4aec8 size=11 
[A-Z]:/Windows/winsxs
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=1 [A-Z]:/ISO
bareos-dir (9): inc_conf.c:380-0 set wildfile f4bbe8 size=1 [A-Z]:/pagefile.sys
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=2 [A-Z]:/RECYCLER
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=3 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=4 [A-Z]:/VMs
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=5 [A-Z]:/Backup
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=6 [A-Z]:/Backups
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=7 [A-Z]:/SQLDBBackups
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=8 [A-Z]:/WSUS
bareos-dir (9): inc_conf.c:380-0 set wildbase f4bbe8 size=1 *.mdf
bareos-dir (9): inc_conf.c:380-0 set wildbase f4bbe8 size=2 *.ldf
bareos-dir (9): inc_conf.c:380-0 set wildbase f4bbe8 size=3 *.iso
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=9 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=10 [A-Z]:/System 
Volume Information
bareos-dir (9): inc_conf.c:380-0 set wilddir f4bbe8 size=11 
[A-Z]:/Windows/winsxs
bareos-dir (100): dird.c:335-0 backend path: /usr/lib64/bareos/backends
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename dbi, partly_compare 
= true
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename mysql, 
partly_compare = false
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename postgresql, 
partly_compare = false
bareos-dir (100): cats_backends.c:161-0 db_init_database: testing backend 
/usr/lib64/bareos/backends/libbareoscats-postgresql.so
bareos-dir (100): cats_backends.c:226-0 db_init_database: loaded backend 
/usr/lib64/bareos/backends/libbareoscats-postgresql.so
bareos-dir (100): postgresql.c:1229-0 db_init_database first time
bareos-dir (50): postgresql.c:239-0 pg_real_connect done
bareos-dir (50): postgresql.c:241-0 db_user=bareos db_name=bareos db_password=

> If this succeeds, also check
> psql baroes
> \dt
> and
> \dp

psql (8.4.20)
Type "help" for help.

bareos=> \dt
               List of relations
 Schema |        Name        | Type  |  Owner
--------+--------------------+-------+----------
 public | basefiles          | table | postgres
 public | client             | table | postgres
 public | counters           | table | postgres
 public | device             | table | postgres
 public | devicestats        | table | postgres
 public | file               | table | postgres
 public | filename           | table | postgres
 public | fileset            | table | postgres
 public | job                | table | postgres
 public | jobhisto           | table | postgres
 public | jobmedia           | table | postgres
 public | jobstats           | table | postgres
 public | location           | table | postgres
 public | locationlog        | table | postgres
 public | log                | table | postgres
 public | media              | table | postgres
 public | mediatype          | table | postgres
 public | ndmpjobenvironment | table | postgres
 public | ndmplevelmap       | table | postgres
 public | path               | table | postgres
 public | pathhierarchy      | table | postgres
 public | pathvisibility     | table | postgres
 public | pool               | table | postgres
 public | quota              | table | postgres
 public | restoreobject      | table | postgres
 public | status             | table | postgres
 public | storage            | table | postgres
 public | tapealerts         | table | postgres
 public | unsavedfiles       | table | postgres
 public | version            | table | postgres
(30 rows)


> After this, try to run bareos-dir in debug mode:
> 
> su - bareos
> bareos-dir -f -d 100

I cut out a bunch of stuff about setting directories to trim this down, but I 
ran what you asked.
sh-4.1$ bareos-dir -f -d 100
24-Nov 15:24 bareos-dir: ERROR TERMINATION at bsys.c:610
bareos-dir is already running. pid=13416
Check file /var/lib/bareos/bareos-dir.9101.pid

So, back to root to stop the service...
[root@vm-backups1]# service bareos-dir stop
Stopping Bareos Director services:                         [  OK  ]

Back to bareos to try again...
[root@vm-backups1]# su bareos
sh-4.1$ bareos-dir -f -d 100
bareos-dir (10): dird.c:197-0 Debug level = 100
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=1 [A-Z]:/ISO
bareos-dir (9): inc_conf.c:380-0 set wildfile 1702ec8 size=1 [A-Z]:/pagefile.sys
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=2 [A-Z]:/RECYCLER
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=3 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=4 [A-Z]:/VMs
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=5 [A-Z]:/Backup
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=6 [A-Z]:/Backups
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=7 [A-Z]:/SQLDBBackups
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=8 [A-Z]:/WSUS
bareos-dir (9): inc_conf.c:380-0 set wildbase 1702ec8 size=1 *.mdf
bareos-dir (9): inc_conf.c:380-0 set wildbase 1702ec8 size=2 *.ldf
bareos-dir (9): inc_conf.c:380-0 set wildbase 1702ec8 size=3 *.iso
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=9 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=10 [A-Z]:/System 
Volume Information
bareos-dir (9): inc_conf.c:380-0 set wilddir 1702ec8 size=11 
[A-Z]:/Windows/winsxs
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=1 [A-Z]:/ISO
bareos-dir (9): inc_conf.c:380-0 set wildfile 1703be8 size=1 [A-Z]:/pagefile.sys
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=2 [A-Z]:/RECYCLER
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=3 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=4 [A-Z]:/VMs
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=5 [A-Z]:/Backup
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=6 [A-Z]:/Backups
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=7 [A-Z]:/SQLDBBackups
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=8 [A-Z]:/WSUS
bareos-dir (9): inc_conf.c:380-0 set wildbase 1703be8 size=1 *.mdf
bareos-dir (9): inc_conf.c:380-0 set wildbase 1703be8 size=2 *.ldf
bareos-dir (9): inc_conf.c:380-0 set wildbase 1703be8 size=3 *.iso
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=9 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=10 [A-Z]:/System 
Volume Information
bareos-dir (9): inc_conf.c:380-0 set wilddir 1703be8 size=11 
[A-Z]:/Windows/winsxs
bareos-dir (100): jcr.c:141-0 read_last_jobs seek to 192
bareos-dir (100): jcr.c:148-0 Read num_items=10
bareos-dir (100): dird.c:335-0 backend path: /usr/lib64/bareos/backends
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename dbi, partly_compare 
= true
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename mysql, 
partly_compare = false
bareos-dir (100): cats_backends.c:63-0 db_init_database: Trying to find mapping 
of given interfacename postgresql to mapping interfacename postgresql, 
partly_compare = false
bareos-dir (100): cats_backends.c:161-0 db_init_database: testing backend 
/usr/lib64/bareos/backends/libbareoscats-postgresql.so
bareos-dir (100): cats_backends.c:226-0 db_init_database: loaded backend 
/usr/lib64/bareos/backends/libbareoscats-postgresql.so
bareos-dir (100): postgresql.c:1229-0 db_init_database first time
bareos-dir (50): postgresql.c:239-0 pg_real_connect done
bareos-dir (50): postgresql.c:241-0 db_user=bareos db_name=bareos db_password=
vm-backups1-dir (100): job.c:1734-0 wstorage=FileStor2
vm-backups1-dir (100): job.c:1743-0 wstore=FileStor2 where=Job resource
vm-backups1-dir (100): job.c:1371-0 JobId=0 created 
Job=*JobMonitor*.2015-11-24_15.33.10_01
vm-backups1-dir (100): job.c:1734-0 wstorage=FileStor2
vm-backups1-dir (100): job.c:1743-0 wstore=FileStor2 where=Job resource
vm-backups1-dir (100): job.c:1371-0 JobId=0 created 
Job=*StatisticsCollector*.2015-11-24_15.33.10_02
vm-backups1-dir (100): sql_pooling.c:60-0 db_sql_get_non_pooled_connection 
allocating 1 new non pooled database connection to database bareos, backend 
type postgresql
vm-backups1-dir (100): cats_backends.c:63-0 db_init_database: Trying to find 
mapping of given interfacename postgresql to mapping interfacename dbi, 
partly_compare = true
vm-backups1-dir (100): cats_backends.c:63-0 db_init_database: Trying to find 
mapping of given interfacename postgresql to mapping interfacename mysql, 
partly_compare = false
vm-backups1-dir (100): cats_backends.c:63-0 db_init_database: Trying to find 
mapping of given interfacename postgresql to mapping interfacename postgresql, 
partly_compare = false
vm-backups1-dir (100): postgresql.c:1229-0 db_init_database first time
vm-backups1-dir (100): bnet_server_tcp.c:166-0 Addresses 
host[ipv6;2a00:e520:750d:55be::12;9101] host[ipv4;80.95.48.12;9101]
vm-backups1-dir (50): postgresql.c:239-0 pg_real_connect done
vm-backups1-dir (50): postgresql.c:241-0 db_user=bareos db_name=bareos 
db_password=


And that's where it stops. Hasn't dropped back to the shell yet.

Going to try and run another job again and see what it generates. Will update 
once done.

I'm also sure it's getting later and you guys probably want to think about 
yourselves for awhile. :)

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to