Hello, It looks that on your side the following command:
sudo /opt/bacula/etc/bconsole -c /opt/bacula/etc/bconsole.conf -l causes connecting to Director instead of listing Director names. Could you tell if in path: /opt/bacula/etc/bconsole you use your own wrapper to bconsole commands? If yes, then you need to add support in your wrapper to "-l" switcher. Best regards. Marcin Haba (gani) On 10 March 2016 at 14:59, mamatov <bacula-fo...@backupcentral.com> wrote: > Hi, > > In order to test Baculum (wb gui for bacula), I made a fresh install : > > - bacula-7.4.0 > - baculum 7.4.0 > > Everything is working well except the restore function. I click on "Perform > Restore" and I get : > > =================================== > > Baculum problem > Error 4 - problem with connection to bconsole. > What can I do > > Please check if Bacula Director service is running. > Please check in shell console if bconsole program is able to connect to > Bacula Director service. > Please be sure if Web Server user is allowed for executing bconsole > program. > You can login to shell console as Web Server user and try to run bconsole > program. > Please re-run Baculum Initial Wizard and on step "Console" please perform > connection test. > > ==================================== > > 1 - Bacula dir is running > 2 - Bconsole is able to connact to Bacula Dir > 3 - Web server user (apache) is allowed to connect to bconsole (I used sudo > and I also tested by given apache rights on bconsole). > 4 - I log with apache user and is able to start bconsole and perform a > restore task from it. > > The Wizard tell me all is ok, no problem. > > So I check some log : > > 1 - /var/log/httpd/error_log > > sh: -c: line 0: syntax error near unexpected token `(' > sh: -c: line 0: `sudo /opt/bacula/etc/bconsole -c > /opt/bacula/etc/bconsole.conf -D 1000 OK: 102 centos6-test-dir Version: 7.4.0 > (16 January 2016) <<END_OF_DATA' > > It seems to be the source of the problem because this command will not work. > why this command is built like this? Is it a PHP issue ? > > > 2 - I also enavle debug on Baculum > (/usr/share/baculum/htdocs/protected/Data/baculum.dbg) > > =================== > > Mar 10 14:56:10 [Debug] [Execute] Command=sudo /opt/bacula/etc/bconsole -c > /opt/bacula/etc/bconsole.conf -D Connecting to Director localhost:9101 > <<END_OF_DATA > .storage > quit > END_OF_DATA, Output=stdClass Object > ( > [output] => Array > ( > [0] => .storage > [1] => File1 > [2] => File2 > ) > > [exitcode] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/Bconsole.php, Line=116 (line > 89, /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Execute] Command=sudo /opt/bacula/etc/bconsole -c > /opt/bacula/etc/bconsole.conf -D Connecting to Director localhost:9101 > <<END_OF_DATA > .pool > quit > END_OF_DATA, Output=stdClass Object > ( > [output] => Array > ( > [0] => .pool > [1] => Default > [2] => File > [3] => Scratch > ) > > [exitcode] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/Bconsole.php, Line=116 (line > 89, /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Execute] Command=sudo /opt/bacula/etc/bconsole -c > /opt/bacula/etc/bconsole.conf -D Connecting to Director localhost:9101 > <<END_OF_DATA > show fileset > quit > END_OF_DATA, Output=stdClass Object > ( > [output] => Array > ( > [0] => show fileset > [1] => FileSet: name=Full Set > [2] => O M > [3] => N > [4] => I /opt/bacula/bin > [5] => N > [6] => E /opt/bacula/working > [7] => E /tmp > [8] => E /proc > [9] => E /tmp > [10] => E /sys > [11] => E /.journal > [12] => E /.fsck > [13] => N > [14] => FileSet: name=Catalog > [15] => O M > [16] => N > [17] => I /opt/bacula/working/bacula.sql > [18] => N > ) > > [exitcode] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/Bconsole.php, Line=116 (line > 89, /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Execute] Command=sudo /opt/bacula/etc/bconsole -c > /opt/bacula/etc/bconsole.conf -D 1000 OK: 102 centos6-test-dir Version: 7.4.0 > (16 January 2016) <<END_OF_DATA > show fileset > quit > END_OF_DATA, Output=stdClass Object > ( > [output] => Problem with connection to bconsole. > [exitcode] => 4 > ) > , File=/usr/share/baculum/htdocs/protected/Class/Bconsole.php, Line=116 (line > 89, /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:10 [Debug] [Application] Command=setUrlParams, Output= > > EXECUTE URL ==> http://192.168.201.38:9095/storages?director=Connecting to > Director localhost:9101 <== > > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=138 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:10 [Debug] [Application] Command=preParseOutput, > Output={"output":[{"storageid":"1","name":"File1","autochanger":"0"},{"storageid":"2","name":"File2","autochanger":"0"}],"error":0}, > File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=256 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:10 [Debug] [Application] Command=preParseOutput, Output=stdClass > Object > ( > [output] => Array > ( > [0] => stdClass Object > ( > [storageid] => 1 > [name] => File1 > [autochanger] => 0 > ) > > [1] => stdClass Object > ( > [storageid] => 2 > [name] => File2 > [autochanger] => 0 > ) > > ) > > [error] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=277 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:10 [Debug] [Application] Command=setUrlParams, Output= > > EXECUTE URL ==> http://192.168.201.38:9095/pools?director=Connecting to > Director localhost:9101 <== > > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=138 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, > Output={"output":[{"poolid":"1","name":"Default","numvols":"0","maxvols":"100","useonce":"0","usecatalog":"1","acceptanyvolume":"0","volretention":"31536000","voluseduration":"0","maxvoljobs":"0","maxvolfiles":"0","maxvolbytes":"53687091200","autoprune":"1","recycle":"1","actiononpurge":"0","pooltype":"Backup","labeltype":"0","labelformat":"*","enabled":"1","scratchpoolid":"0","recyclepoolid":"0","nextpoolid":"0","migrationhighbytes":"0","migrationlowbytes":"0","migrationtime":"0"},{"poolid":"2","name":"File","numvols":"0","maxvols":"100","useonce":"0","usecatalog":"1","acceptanyvolume":"0","volretention":"31536000","voluseduration":"0","maxvoljobs":"0","maxvolfiles":"0","maxvolbytes":"53687091200","autoprune":"1","recycle":"1","actiononpurge":"0","pooltype":"Backup","labeltype":"0","labelformat":"Vol-","enabled":"1","scratchpoolid":"0","recyclepoolid":"0","nextpoolid":"0","migrationhighbytes":"0","migrationlowbytes":"0","migrationtime":"0"},{"poolid":"3","name":"Scratch","numvols":"0","maxvols":"0","useonce":"0","usecatalog":"1","acceptanyvolume":"0","volretention":"31536000","voluseduration":"0","maxvoljobs":"0","maxvolfiles":"0","maxvolbytes":"0","autoprune":"1","recycle":"1","actiononpurge":"0","pooltype":"Backup","labeltype":"0","labelformat":"*","enabled":"1","scratchpoolid":"0","recyclepoolid":"0","nextpoolid":"0","migrationhighbytes":"0","migrationlowbytes":"0","migrationtime":"0"}],"error":0}, > File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=256 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, Output=stdClass > Object > ( > [output] => Array > ( > [0] => stdClass Object > ( > [poolid] => 1 > [name] => Default > [numvols] => 0 > [maxvols] => 100 > [useonce] => 0 > [usecatalog] => 1 > [acceptanyvolume] => 0 > [volretention] => 31536000 > [voluseduration] => 0 > [maxvoljobs] => 0 > [maxvolfiles] => 0 > [maxvolbytes] => 53687091200 > [autoprune] => 1 > [recycle] => 1 > [actiononpurge] => 0 > [pooltype] => Backup > [labeltype] => 0 > [labelformat] => * > [enabled] => 1 > [scratchpoolid] => 0 > [recyclepoolid] => 0 > [nextpoolid] => 0 > [migrationhighbytes] => 0 > [migrationlowbytes] => 0 > [migrationtime] => 0 > ) > > [1] => stdClass Object > ( > [poolid] => 2 > [name] => File > [numvols] => 0 > [maxvols] => 100 > [useonce] => 0 > [usecatalog] => 1 > [acceptanyvolume] => 0 > [volretention] => 31536000 > [voluseduration] => 0 > [maxvoljobs] => 0 > [maxvolfiles] => 0 > [maxvolbytes] => 53687091200 > [autoprune] => 1 > [recycle] => 1 > [actiononpurge] => 0 > [pooltype] => Backup > [labeltype] => 0 > [labelformat] => Vol- > [enabled] => 1 > [scratchpoolid] => 0 > [recyclepoolid] => 0 > [nextpoolid] => 0 > [migrationhighbytes] => 0 > [migrationlowbytes] => 0 > [migrationtime] => 0 > ) > > [2] => stdClass Object > ( > [poolid] => 3 > [name] => Scratch > [numvols] => 0 > [maxvols] => 0 > [useonce] => 0 > [usecatalog] => 1 > [acceptanyvolume] => 0 > [volretention] => 31536000 > [voluseduration] => 0 > [maxvoljobs] => 0 > [maxvolfiles] => 0 > [maxvolbytes] => 0 > [autoprune] => 1 > [recycle] => 1 > [actiononpurge] => 0 > [pooltype] => Backup > [labeltype] => 0 > [labelformat] => * > [enabled] => 1 > [scratchpoolid] => 0 > [recyclepoolid] => 0 > [nextpoolid] => 0 > [migrationhighbytes] => 0 > [migrationlowbytes] => 0 > [migrationtime] => 0 > ) > > ) > > [error] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=277 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=setUrlParams, Output= > > EXECUTE URL ==> http://192.168.201.38:9095/jobs?director=Connecting to > Director localhost:9101 <== > > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=138 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, > Output={"output":[],"error":0}, > File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=256 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, Output=stdClass > Object > ( > [output] => Array > ( > ) > > [error] => 0 > ) > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=277 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=setUrlParams, Output= > > EXECUTE URL ==> http://192.168.201.38:9095/filesets?director=Connecting to > Director localhost:9101 <== > > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=138 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, > Output={"output":"Problem with connection to bconsole.","error":4}, > File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=256 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > Mar 10 14:56:11 [Debug] [Application] Command=preParseOutput, Output=stdClass > Object > ( > [output] => Problem with connection to bconsole. > [error] => 4 > ) > , File=/usr/share/baculum/htdocs/protected/Class/API.php, Line=277 (line 89, > /usr/share/baculum/htdocs/protected/Class/Logging.php) > > > ================================ > > Did I miss something or is it a bug ? > > Thanks. > > +---------------------------------------------------------------------- > |This was sent by m...@progial.fr via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +---------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users