Is there any way I can find out more information about what the bad request is?
Interesting observation... vm-backups1 seems to display an error message with... Client: "vm-mon01-fd" 14.2.2 (12Dec14) x86_64-unknown-linux-gnu,redhat,CentOS release 6.2 (Final) VM-MON01 seems to have 15.2.2 installed. [room@vm-mon01]# rpm -qa | grep bareos bareos-common-15.2.2-35.1.el6.x86_64 bareos-filedaemon-15.2.2-35.1.el6.x86_64 Where/how does it go about understanding versions? Does something need to be updated so it communicates with the correct version? - Mark >On Wednesday, 25 November 2015 10:46:35 UTC, [email protected] wrote: > Hey Philipp, > > I removed the pid file and restarted the service. After that I tried to run a > job from bat (bat & for x11 forwarding). > > 25-Nov 10:42 vm-backups1-dir JobId 24744: Start Backup JobId 24744, > Job=vm-mon01.2015-11-25_10.42.43_05 > 25-Nov 10:42 vm-backups1-dir JobId 24744: Fatal error: catreq.c:364 Invalid > Catalog request: CatReq Job=vm-mon01.2015-11-25_10.42.43_05 FindMedia=1 > pool_name=File media_type=File 25-Nov 10:42 vm-backups1-dir JobId 24744: > Using Device "FileStorage" to write. > 25-Nov 10:42 vm-backups1-dir JobId 24744: Error: Bareos vm-backups1-dir > 15.2.2 (16Nov15): > Build OS: x86_64-redhat-linux-gnu redhat CentOS release 6.6 > (Final) > JobId: 24744 > Job: vm-mon01.2015-11-25_10.42.43_05 > Backup Level: Differential, since=2015-11-02 02:12:25 > Client: "vm-mon01-fd" 14.2.2 (12Dec14) > x86_64-unknown-linux-gnu,redhat,CentOS release 6.2 (Final) > FileSet: "Full Set" 2015-06-04 13:31:38 > Pool: "File" (From command line) > Catalog: "MyCatalog" (From Client resource) > Storage: "FileStor2" (From command line) > > Still getting a "Invalid Catalog". > > I notice the version on this machine is 14.2.2 > Would an older version cause this kind of issue? > > - Mark > > > On Wednesday, 25 November 2015 08:12:31 UTC, philipp.storz wrote: > > Hello, > > > > please delete your director pid file: > > > > rm /var/lib/bareos/bareos-dir.9101.pid > > > > If you have started the director as root instead of bareos, this file has > > root permissions and the > > bareos user cannot open it. > > > > Afterwards it should work > > > > Am 24.11.2015 um 16:48 schrieb [email protected]: > > >> 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. :) > > > > > > > > > -- > > Mit freundlichen Grüßen > > > > Philipp Storz [email protected] > > Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92 > > http://www.bareos.com Fax: +49 221 63 06 93-10 > > > > Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 > > Geschäftsführer: Stephan Dühr, M. Außendorf, > > J. Steffens, P. Storz, M. v. Wieringen -- 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.
