I've found the source of the problem. I had this in my code:
B4X:
JobDoc.Download("https://xxxx")
Sleep(7000)
Wait For (JobDoc) JobDone(JobDoc As HttpJob)
This seems to work fine on Windows, but on Linux the temporary file created by the http download is deleted after less than 7 seconds, which results in a file not found error.