Bacula-users

Re: [Bacula-users] Parser error while reloading after adding new client

2014-08-13 08:39:07
Subject: Re: [Bacula-users] Parser error while reloading after adding new client
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: Markus Shorty Uckelmann <shorty AT koeln DOT de>
Date: Wed, 13 Aug 2014 14:10:41 +0200
Hello,

2014-08-11 15:44 GMT+02:00 Markus "Shorty" Uckelmann <shorty AT koeln DOT de>:
On 11.08.2014 15:09, Andreas Nastke wrote:
> shouldn't that be typed:
>
>     "... -exec \{\} \;"
>
> ?

Sadly not. I tried this in /etc/bacula/bacula-dir.conf:

@|"find /etc/bacula/conf.d/clients -name '*.conf' -type f -exec echo
\{\} \;"

And after a reload it threw the same error:

11-Aug 15:41 bacula-dir: ERROR in parse_conf.c:938 Config error:
Expected a Resource name identifier, got: find:
            : line 1, col 5 of file |find /etc/bacula/conf.d/clients
-name '*.conf' -type f -exec echo {} ;
find: Failed to change directory: Permission denied


This is a permission problem. Check all your directory config for access from bacula user. One of the following directories in tree: /etc/bacula/conf.d/clients are not accessible by bacula user.

root@bacula:/etc/bacula # bacula-dir -tc ./bacula-dir.conf

Yes, it will work when you are checking a config files with '-t' option because you are checking it with root user, right?

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>