Hello Krisztián,

The problem is not in Baculum but in bdirjson on Ubuntu 20.04. It
returns empty storage values.

I propose you read the following thread from this mailing list, where
you can find possible solutions to solve this problem:

https://sourceforge.net/p/bacula/mailman/bacula-users/thread/CAOqQBvNodWw-ecPBxRSGsxGG9JaqSbdOeF4VotdowbOXZFwWiA%40mail.gmail.com/

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 1 Dec 2020 at 16:42, 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



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to