Hello Miguel, Thanks for your detailed response.
If you don't have api.conf in /usr/share/baculum/htdocs/protected/API/Config/ it means that you don't have Baculum API configured. Did you go through the Baculum API wizard on http://localhost:9096 ? Is the Baculum API working on your side? I mean if you can: 1) log in to Baculum API on http://localhost:9096 2) send API requests to the API by Baculum API panel? Thanks in advance for response. Best regards. Marcin Haba (gani) On Fri, 28 Sep 2018 at 08:55, Miguel Gutiérrez Páez <mgutier...@gmail.com> wrote: > > Hi Marcin, > > Thanks for your kind support. > > I'm using HTTP auth. > The file api.conf does not exist in the mentioned directory nor in the whole > system. The only file in that dir is the baculum.users file (that, by the > way, contains the default user/pass admin/admin). The dir logs > /usr/share/baculum/htdocs/protected/API/Logs/ is empty and the file > /usr/share/baculum/htdocs/protected/Web/Logs/baculum-web.log throws the > following messages when I press test button: > > EXECUTE URI ==> http://localhost:9096/api/v1/catalog <== > > , File=/usr/share/baculum/htdocs/protected/Web/Class/BaculumAPIClient.php, > Line=178 (line 67, > /usr/share/baculum/htdocs/protected/Common/Class/Logging.php) > Sep 28 08:53:54 [Debug] [Application] Command=preParseOutput, > Output={"output":"Problem with authorization to Baculum API.","error":6}, > File=/usr/share/baculum/htdocs/protected/Web/Class/BaculumAPIClient.php, > Line=455 (line 67, > /usr/share/baculum/htdocs/protected/Common/Class/Logging.php) > Sep 28 08:53:54 [Debug] [Application] Command=preParseOutput, Output=stdClass > Object > ( > [output] => Problem with authorization to Baculum API. > [error] => 6 > ) > , File=/usr/share/baculum/htdocs/protected/Web/Class/BaculumAPIClient.php, > Line=478 (line 67, > /usr/share/baculum/htdocs/protected/Common/Class/Logging.php) > Sep 28 08:53:54 [Debug] [Application] Command=getURIResource, Output= > > repeated three times. > > Thanks! > > El jue., 27 sept. 2018 a las 18:45, Marcin Haba (<ganius...@gmail.com>) > escribió: >> >> Hello Miguel, >> >> Thank you for your feedback. >> >> The undefined index problem is a bug that is will be fixed in next >> Baculum version. Thanks for reporting it. >> >> To the problem with connecting Baculum Web to Baculum API, could you >> tell me if you are using OAuth2 or HTTP Basic option? >> >> I propose to enable debug on the API side by editing: >> >> /usr/share/baculum/htdocs/protected/API/Config/api.conf >> >> and switch in [api] section "debug" option to "1" >> >> Then you can see the debug files in: >> >> /usr/share/baculum/htdocs/protected/API/Logs/ >> >> For the Web wizard the debug should be enabled by default till time >> when you finish the wizard. Web logs you can find in path: >> >> /usr/share/baculum/htdocs/protected/Web/Logs/ >> >> Are you seeing any error in log files when you click connection test button? >> >> Thanks in advance for response. >> >> Best regards. >> Marcin Haba (gani) >> On Thu, 27 Sep 2018 at 16:31, Miguel Gutiérrez Páez >> <mgutier...@gmail.com> wrote: >> > >> > Hi Marcin, >> > >> > Thanks a lot for your effort. I managed to install baculum, however, I >> > have many problems to get it work. Just the first time I run the web >> > wizard, I got a Prado Exception: >> > >> > Prado\Exceptions\TPhpErrorException >> > >> > Description >> > >> > [Notice] Undefined index: language (@line 41 in file >> > /usr/share/baculum/htdocs/protected/Web/Pages/WebConfigWizard.php). >> > >> > Source File >> > >> > /usr/share/baculum/htdocs/protected/Web/Pages/WebConfigWizard.php (41) >> > >> > >> > The only and ugly solution I found is to edit the metioned file and >> > comment out line 41. That worked. >> > After that, I cannot setup the API credentials. Once I managed to get it >> > work, but I had the repeat the steps and I cannot get it work again. When >> > I press Test, I get always "Problem with authorization to Baculum API." >> > (three times). I've tried to debug it, including tcpdumps to port 9096. I >> > can see traffic back and forth, and even the unauthorized message. I've >> > uninstalled and wiped all the packages and their config, to use again >> > default passwords, but no luck. >> > >> > Do you have any idea? >> > >> > Many thanks! >> > >> > >> > El jue., 27 sept. 2018 a las 14:59, Marcin Haba (<ganius...@gmail.com>) >> > escribió: >> >> >> >> Hello Miguel, >> >> >> >> I let know that the Baculum packages 9.2.1 have been rebuilt and they >> >> no longer require bacula-console package. They are available in the >> >> Baculum repositories. >> >> >> >> Best regards. >> >> Marcin Haba (gani) >> >> On Sat, 22 Sep 2018 at 22:33, Miguel Gutiérrez Páez >> >> <mgutier...@gmail.com> wrote: >> >> > >> >> > Hi Marcin, >> >> > >> >> > Thanks for your response. Sorry I didn't see that post. >> >> > >> >> > I will wait for the rebuild. Baculum seems to be a great web interface >> >> > and I'm wishing to try it out. >> >> > >> >> > Regards >> >> > >> >> > El sáb., 22 sept. 2018 17:50, Marcin Haba <ganius...@gmail.com> >> >> > escribió: >> >> >> >> >> >> Hello Miguel, >> >> >> >> >> >> The Baculum packages are not compatible with the Bacula packages from >> >> >> bacula.org. The Baculum requires bacula-console that doesn't exist in >> >> >> packages from bacula.org. >> >> >> >> >> >> I recall other request about this inconsistency: >> >> >> >> >> >> https://sourceforge.net/p/bacula/mailman/message/36355386/ >> >> >> >> >> >> I will remove the bacula-console dependency and rebuild Baculum >> >> >> packages soon. >> >> >> >> >> >> Best regards. >> >> >> Marcin Haba (gani) >> >> >> On Fri, 21 Sep 2018 at 22:30, Miguel Gutiérrez Páez >> >> >> <mgutier...@gmail.com> wrote: >> >> >> > >> >> >> > Hi all, >> >> >> > >> >> >> > Has anybody managed to install baculum (baculum-api) under centos7 >> >> >> > with the official repos? I mean, it seems there are some libs >> >> >> > conflicts when installing baculum. It complaints about some packages >> >> >> > of bacula's community repos (it wants packages from the centos base >> >> >> > repo) >> >> >> > >> >> >> > >> >> >> > yum install baculum-api >> >> >> > Loaded plugins: fastestmirror >> >> >> > Loading mirror speeds from cached hostfile >> >> >> > * base: centos.uvigo.es >> >> >> > * epel: mirror.uv.es >> >> >> > * extras: centos.uvigo.es >> >> >> > * updates: centos.uvigo.es >> >> >> > * webtatic: uk.repo.webtatic.com >> >> >> > Resolving Dependencies >> >> >> > --> Running transaction check >> >> >> > ---> Package baculum-api.noarch 0:9.2.1-1.el7 will be installed >> >> >> > --> Processing Dependency: bacula-console for package: >> >> >> > baculum-api-9.2.1-1.el7.noarch >> >> >> > --> Running transaction check >> >> >> > ---> Package bacula-console.x86_64 0:5.2.13-23.1.el7 will be >> >> >> > installed >> >> >> > --> Processing Dependency: bacula-libs(x86-64) = 5.2.13-23.1.el7 for >> >> >> > package: bacula-console-5.2.13-23.1.el7.x86_64 >> >> >> > --> Processing Dependency: libbaccfg-5.2.13.so()(64bit) for package: >> >> >> > bacula-console-5.2.13-23.1.el7.x86_64 >> >> >> > --> Processing Dependency: libbac-5.2.13.so()(64bit) for package: >> >> >> > bacula-console-5.2.13-23.1.el7.x86_64 >> >> >> > --> Finished Dependency Resolution >> >> >> > Error: Package: bacula-console-5.2.13-23.1.el7.x86_64 (base) >> >> >> > Requires: bacula-libs(x86-64) = 5.2.13-23.1.el7 >> >> >> > Installed: bacula-libs-9.2.1-1.el7.x86_64 >> >> >> > (@Bacula-Community) >> >> >> > bacula-libs(x86-64) = 9.2.1-1.el7 >> >> >> > Available: bacula-libs-5.2.13-23.1.el7.x86_64 (base) >> >> >> > bacula-libs(x86-64) = 5.2.13-23.1.el7 >> >> >> > Error: Package: bacula-console-5.2.13-23.1.el7.x86_64 (base) >> >> >> > Requires: libbaccfg-5.2.13.so()(64bit) >> >> >> > Available: bacula-libs-5.2.13-23.1.el7.x86_64 (base) >> >> >> > libbaccfg-5.2.13.so()(64bit) >> >> >> > Installed: bacula-libs-9.2.1-1.el7.x86_64 >> >> >> > (@Bacula-Community) >> >> >> > ~libbaccfg-9.2.1.so()(64bit) >> >> >> > Error: Package: bacula-console-5.2.13-23.1.el7.x86_64 (base) >> >> >> > Requires: libbac-5.2.13.so()(64bit) >> >> >> > Available: bacula-libs-5.2.13-23.1.el7.x86_64 (base) >> >> >> > libbac-5.2.13.so()(64bit) >> >> >> > Installed: bacula-libs-9.2.1-1.el7.x86_64 >> >> >> > (@Bacula-Community) >> >> >> > ~libbac-9.2.1.so()(64bit) >> >> >> > You could try using --skip-broken to work around the problem >> >> >> > You could try running: rpm -Va --nofiles --nodigest >> >> >> > >> >> >> > >> >> >> > >> >> >> > Thanks! >> >> >> > >> >> >> > _______________________________________________ >> >> >> > 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 >> >> >> >> >> >> >> >> -- >> >> "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 >> >> >> >> -- >> "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 -- "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