I recommend that you detail the bacula-dir.conf file in detail manually.

why? I happen once with an additional  } placed.

For bacula there was no syntax error, but for Baculum there was.

On Tue, Dec 1, 2020 at 11:42 AM Krisztián Gáncs <krisz...@gmail.com> wrote:

> Hello everyone!
>
> I have a fresh install of bacula ( 9.4.2 (04Feb19)
> x86_64-pc-linux-gnu,ubuntu,20.04 ) and baculum Version: 9.6.6.3. I set
> baculum api up with sudo (added the lines to visudo) and it gave the all
> ok. Whenever I try to save the config on baculum it gives me the following
> error (taken from the debug log):
> EXECUTE URI ==>
> http://localhost:9096/api/v1/config/dir/Client/otherhost-fd?director=backup-dir
> <==
>
> , File=/usr/share/baculum/htdocs/protected/Web/Class/BaculumAPIClient.php,
> Line=180 (line 74,
> /usr/share/baculum/htdocs/protected/Common/Class/Logging.php)
> Dec 01 15:07:11 [Debug] [Application] Command=preParseOutput,
> Output={"output":"Config validation error.Array\n(\n    [output] => JSON
> tool returned wrong exitcode.\n Output:bacula-di>
> Dec 01 15:07:11 [Debug] [Application] Command=preParseOutput,
> Output=stdClass Object
> (
>     [output] => Config validation error.Array
> (
>     [output] => JSON tool returned wrong exitcode.
>  Output:bacula-dir: ERROR TERMINATION at lex.c:875
> Config error: expected a name, got T_EOL: =
>             : line 57, col 13 of file /etc/bacula/temp/config_7C74Ta
>   Storage =
>
> 01-Dec 16:07 bacula-dir: ERROR TERMINATION at lex.c:875
> Config error: expected a name, got T_EOL: =
>             : line 57, col 13 of file /etc/bacula/temp/config_7C74Ta
>   Storage =
>
>     [exitcode] => 82
> )
>
>     [error] => 94
> )
> , File=/usr/share/baculum/htdocs/protected/Web/Class/BaculumAPIClient.php,
> Line=470 (line 74,
> /usr/share/baculum/htdocs/protected/Common/Class/Logging.php)
>
> The server's configuration file is correct and it runs when I added the
> same client parameters as I've tried to add on baculum, it works so no
> mistype there. For testing I had ubuntu 18.04 (9.0.6 (20Nov17)
> x86_64-pc-linux-gnu,ubuntu,18.04) and it did work with the (same baculum
> version). What can be the problem?
>
> Thanks for any replies.
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
#############################
#   Sistema Operativo: Debian      #
#        Caracas, Venezuela          #
#############################
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to