You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2021/01/19 22:47:20 UTC

[GitHub] [incubator-teaclave] Mengyuan-L commented on issue #458: File access problem in builtin function

Mengyuan-L commented on issue #458:
URL: https://github.com/apache/incubator-teaclave/issues/458#issuecomment-763192282


   I found the reason for these kinds of problems.
   
   The reason is that the execution service inside the docker cannot correctly access the input files as well as the output files.
   
   One can fix this problem by changing 
   ```
   INPUT_FILE_URL_PREFIX = "http://localhost:6789/fixtures/functions/ordered_set_intersect/"
   OUTPUT_FILE_URL_PREFIX = "http://localhost:6789/fixtures/functions/ordered_set_intersect/"
   ```
   
   to 
   
   ```
   INPUT_FILE_URL_PREFIX = "http://teaclave-file-service:6789/fixtures/functions/ordered_set_intersect/"
   OUTPUT_FILE_URL_PREFIX = "http://teaclave-file-service:6789/fixtures/functions/ordered_set_intersect/"
   ```
   
   The domain name "teaclave-file-service" can be found via `$ docker ps`
   you can get the domain name for teaclave file service under the "NAMES" column like this:
   
   CONTAINER ID   IMAGE              COMMAND                  CREATED             STATUS              PORTS             NAMES
   XXXXXXXX       python:3          "./scripts/simple_ht…"    1 days ago          Up 1 days            -             teaclave-file-service
   
   
   Note that in a real-world case, the url or the input files should be provided by the user. In the built-in example, the developer embeds those files for test usage and we may use our own files here.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org