Hello Martin,

Thanks for your test.

Could I ask you about applying a patch to the following file:

/usr/share/baculum/htdocs/protected/API/Pages/API/Jobs.php

After that please enable debug in your API instance by setting

debug = "1"

in [api] section in the file:

/usr/share/baculum/htdocs/protected/API/Config/api.conf

At the end please go to the Baculum job history list page and after
that please check:

/usr/share/baculum/htdocs/protected/API/Logs/baculum-api.log

and past here output from a log marked by:

=== Job debug ===

Thanks in advance for this test.

Best regards,
Marcin Haba (gani)

On Wed, 15 Jul 2020 at 12:06, Martin A. Brooks <martin.bro...@gmail.com> wrote:
>
> Hi
>
> The date and time format is set to "Y-M-D R".  I've tried playing with this 
> setting but I keep getting the same NaNs, just formatted in various ways.
>
> Martin.
>
> On Tue, 14 Jul 2020 at 18:41, Marcin Haba <ganius...@gmail.com> wrote:
>>
>> Hello Martin,
>>
>> It looks strange. Could you look at the JavaScript console (press F12
>> in Firefox or Chrome, tab "Console"). Is there any error?
>>
>> Did you set date and time format in the Baculum Web application
>> setting (under the gear wheel on the top left) or you haven't used it
>> yet?
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 14 Jul 2020 at 13:30, Martin A. Brooks <martin.bro...@gmail.com> 
>> wrote:
>> >
>> > Hello
>> >
>> > I have a fresh install of bacula and baculum.  These were installed from 
>> > the official Debian packages and are version 9.6.5.1.
>> >
>> > In the web interface I am seeing jobs running but in all cases the "Start 
>> > time" and "End time" is shown as "NaN-aN-aN NaN:aN:aN".  This is also the 
>> > case for the "Last written" field in the "Volume list" page.
>> >
>> > The backend is postgres.  The server timezone is UTC and all the various 
>> > php.ini files also have data.timezone set to UTC.
>> >
>> > Clearly something is going wrong with the date/time processing within the 
>> > web interface but I'm at a loss as to what.
>> >
>> > Any advice as to what to look for would be appreciated. Thanks!
>> >
>> > Martin.
>> > _______________________________________________
>> > 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
diff --git a/gui/baculum/protected/API/Pages/API/Jobs.php b/gui/baculum/protected/API/Pages/API/Jobs.php
index f50920b31b..a05a3c3847 100644
--- a/gui/baculum/protected/API/Pages/API/Jobs.php
+++ b/gui/baculum/protected/API/Pages/API/Jobs.php
@@ -111,6 +111,15 @@ class Jobs extends BaculumAPIServer {
 
 			if ($error === false) {
 				$jobs = $this->getModule('job')->getJobs($params, $limit);
+				if (count($jobs) > 0) {
+					$this->Application->getModule('logging')->log(
+						'=== Job debug ===',
+						var_export($jobs[0], true),
+						Logging::CATEGORY_APPLICATION,
+						__FILE__,
+						__LINE__
+					);
+				}
 				$this->output = $jobs;
 				$this->error = JobError::ERROR_NO_ERRORS;
 			}
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to