Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]

2018-10-21 Thread Andrea Venturoli

On 10/17/18 1:35 PM, Josh Fisher wrote:

I believe the NAS you mention uses a Marvell chip, so you will need the 
cross-compiler at:

https://sourceforge.net/projects/qosgpl/files/QNAP%20NAS%20Tool%20Chains/
This should allow building the bacula-sd and library binaries targeting 
the Marvell chip from a Linux host.


Thanks for pointing me in the right direction!
This got me up and running, although it wasn't THAT easy (*): now I'm 
smoke testing my bacula-sd on the NAS. :-D


 bye & thanks
av.

*) Some hints, in case other people as mad as me :) want to try this:

_ when cross compiling, configure always fails on a check on setpgrp: 
just remove the whole check and let ac_cv_func_setpgrp_void=no;


_ for some reason bacula lets you build either everything or only the 
file daemon; there's no option to build only the SD. So you'll need to 
get and compile sqlite3, just to be able to compile the director (which 
you won't use!);


_ this environment does not provide OpenSSL (or perhaps configure 
doesn't find it?), so it will be disabled; however some code in 
BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the proper 
#ifdef HAVE_TLS, so you'll get linker errors. Just remove this code (by 
commenting it or putting the right #if or just deleting those lines);


_ the static-bacula-sd won't work: "status storage" will get the proper 
result, but as soon as you launch a job it will dump core (something to 
do with name resolution AFAICT). Use the non-static bacula-sd binary.



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


Re: [Bacula-users] [Bacula-devel] Baculum 9.2.1 Error: 1000

2018-10-21 Thread Marcin Haba
Hello Heitor,

This bug has been reported here:

http://bugs.bacula.org/view.php?id=2418

and it is fixed here:

http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-9.2&id=4f2fe7a81a3fe466f4fec9444b8fee130a713a9c

Unfortunately there hasn't been released any version with this fix yet.

Best regards.
Marcin Haba (gani)

On Sat, 20 Oct 2018 at 21:10, Heitor Faria  wrote:

> Dear Users & Devel,
>
> Since August 28 a few users have been reporting the following error when
> trying to save any Bacula configuration on Baculum.
> The same happened with me today on a fresh 9.2.1 packages install with
> Bacula 9.2.1 from bacula.org.
>
> Error 1000: Internal error. [Unknown Error] Argument 1 passed to
> BaculaSetting::updateSubResource() must be an instance of string, string
> given, called in
> /usr/share/baculum/htdocs/protected/API/Class/BaculaSetting.php on line 331
> and defined (@line 358 in file
> /usr/share/baculum/htdocs/protected/API/Class/BaculaSetting.php).
>
> Is there any registered report or patch already?
> Error provokes no message in cat /var/log/httpd/error_log.
>
> Boring stuff:
>
> http://whatsmybrowser.org/b/C8AVLEH
>
> [root@cbacula tmp]# rpm -qa php
> php-5.4.16-45.el7.x86_64
>
> [root@cbacula tmp]# rpm -qa |grep baculum
> baculum-common-9.2.1-2.fc28.noarch
> baculum-api-9.2.1-2.fc28.noarch
> baculum-web-httpd-9.2.1-2.fc28.noarch
> baculum-web-9.2.1-2.fc28.noarch
> baculum-api-httpd-9.2.1-2.fc28.noarch
>
> [root@cbacula tmp]# cat /etc/redhat-release
> CentOS Linux release 7.5.1804 (Core)
>
> [root@cbacula tmp]# uname -a
> Linux cbacula 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018
> x86_64 x86_64 x86_64 GNU/Linux
>
> [root@cbacula tmp]# rpm -qa |grep httpd
> httpd-2.4.6-80.el7.centos.1.x86_64
> baculum-web-httpd-9.2.1-2.fc28.noarch
> httpd-tools-2.4.6-80.el7.centos.1.x86_64
> baculum-api-httpd-9.2.1-2.fc28.noarch
>
> Regards,
> --
>
> MSc Heitor Faria
> CEO Bacula LATAM
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> [image: linkedin icon]
> 
> [image: logo] 
> Brasilia - Miami - New York
> www.bacula.com.br
>
> ___
> Bacula-devel mailing list
> bacula-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>


-- 
"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


Re: [Bacula-users] at baculum 9.2.1「Permission denied」

2018-10-21 Thread Marcin Haba
Hello Ken,

The most probably you need to check privileges to /opt/bacula/etc/
directory for web server user.

Could you show the command output:

ls -l /opt/bacula/

Best regards.
Marcin Haba (gani)
On Sat, 20 Oct 2018 at 15:57, KEN SAWADA  wrote:
>
> Hi
>
> I am setting it after installing baculum 9.2.1.
> However, an error like the attached image occurred.
> Although the authority of bconsole.conf is 777, it is said that there is no 
> authority.
> Is there any good wisdom?
>
> My console
> [root@bacula9 etc]# ls -l /opt/bacula/etc/bconsole.conf
> -rwxrwxrwx 1 root bacula 241 10/20 22:09 /opt/bacula/etc/bconsole.conf
>
> Best regards
>
> Ken Sawada
>
>
> ___
> 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