Hi Milosz,

Please take a look at the first message of this thread. There are 2 different information for this error.

First, this COMMA error happens when I'm trying to access the URL (LAVA WebU), manually inserting the job_id in a browser, and not through the code.

Second, the previous code is returning:

lavac.server.NoSuchJob: No such job: 68271.0

Even though this job_id is been returned by the LAVA server.

Thanks

Em seg, 2 de set de 2019 às 11:32, Milosz Wasilewski <milosz.wasilewski@linaro.org> escreveu:
On Mon, 2 Sep 2019 at 10:26, Fabiano Ferronato <fabiferro@hotmail.com> wrote:
>
> Hi Milosz,
>
> I still couldn't update the server but, just to clarify, the mentioned job pasted in URL is 68271.0 as we can see in the error message:
>
> URL : http://lava.server.net/scheduler/job/68271.0
>
>  > Trying to access LAVA WebUI using the jobid (68271.0)
>
> And then some process is translating that jobid into a comma " , " :
>
> > Reverse for 'lava.scheduler.job.detail' with arguments '('',)' not found. 1 pattern(s) tried: ['scheduler/job/(?P<pk>[0-9]+|[0-9]+\\.[0-9]+)$']
>
> Otherwise, a really not existent jobid in the URL, let's say 99999.9, results in "404 Not found".
>
> Here is the job submission code:
>
> try:
>   job_id = self._server.scheduler.submit_job(job_data)
>   if not isinstance(job_id, list):
>     job_id = [job_id]
>   return job_id
>
> And than the job_id is used to get job details:
>
> try:
>   return self._server.scheduler.job_details(job_id)

scheduled.job_details expects a string:
https://master.lavasoftware.org/api/help/#scheduler.job_details

If I understand your code correctly you're passing a list to this
function. Serialized list will contain "," character.

milosz

>
> Best Regards,
> Fabiano
>
> Em sex, 23 de ago de 2019 às 16:25, Milosz Wasilewski <milosz.wasilewski@linaro.org> escreveu:
>>
>> I don't think there was a problem with 2018.10 with this feature.
>> Reading the error message I think you pasted "," character in the URL
>> so the pattern didn't match. As you can see in the regex, "." is there
>> and I don't recall any issues with multinode jobs then. Anyway, even
>> if this is a bug it won't be fixed in 2018.10. When you migrate to
>> latest version and you hit the same problem something can be done.
>>
>> If you can post full script you're using I can try on latest master
>> and see what happens.
>>
>> milosz
>>
>> On Fri, 23 Aug 2019 at 13:10, Fabiano Ferronato <fabiferro@hotmail.com> wrote:
>> >
>> > Hi Milosz, thanks for your answer.
>> >
>> > Yes, it is a multinode job.
>> > This is a known bug on version 2018.10? I need to install the new version and keep pipe lines running until I get the error to answer you.
>> >
>> > Fabiano
>> >
>> > Em qui, 22 de ago de 2019 às 18:58, Milosz Wasilewski <milosz.wasilewski@linaro.org> escreveu:
>> >>
>> >> On Thu, 22 Aug 2019 at 17:30, Fabiano Ferronato <fabiferro@hotmail.com> wrote:
>> >> >
>> >> > Hi,
>> >> > we have a LAVA test setup working for some time. Automated pipelines are running tests on different devices in parallel.
>> >> > After updating to version 2018.10+stretch and changing to in-line job definitions we started to get some sporadic errors.
>> >> >
>> >> > The error message shows up after jobs are submitted and the return from the submission is then used to ask for server job details:
>> >> >
>> >> > res = lava_server.submit_job(lava_test_job_description)
>> >> > for entry in res:
>> >> >     job_details = lavasrv.job_details(entry)
>> >> >     ...
>> >> >
>> >> > Resulting in the following error:
>> >> >
>> >> > lib/python3.5/site-packages/lavac/server.py", line 272, in job_details
>> >> > raise get_server_error(error, job_id)
>> >> > lavac.server.NoSuchJob: No such job: 68271.0
>> >>
>> >> are you submitting a multinode job? Does this also happen in more
>> >> recent version of LAVA (like 2019.07)?
>> >>
>> >> milosz
>> >>
>> >> >
>> >> >
>> >> > Trying to access LAVA WebUI using the jobid (68271.0):
>> >> >
>> >> > 500 Internal Server Error
>> >> > Reverse for 'lava.scheduler.job.detail' with arguments '('',)' not found. 1 pattern(s) tried: ['scheduler/job/(?P<pk>[0-9]+|[0-9]+\\.[0-9]+)$']
>> >> >
>> >> > Can you give me a hint about this error?
>> >> >
>> >> > Thanks!
>> >> >
>> >> > _______________________________________________
>> >> > Lava-users mailing list
>> >> > Lava-users@lists.lavasoftware.org
>> >> > https://lists.lavasoftware.org/mailman/listinfo/lava-users
>> >
>> > _______________________________________________
>> > Lava-users mailing list
>> > Lava-users@lists.lavasoftware.org
>> > https://lists.lavasoftware.org/mailman/listinfo/lava-users