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:46:40 UTC
[GitHub] [incubator-teaclave] Mengyuan-L opened a new issue #458: File access problem in builtin function
Mengyuan-L opened a new issue #458:
URL: https://github.com/apache/incubator-teaclave/issues/458
Hi all,
I have met some problems about running some builtin functions (e.g., "builtin_private_join_and_compute.py", "builtin_ordered_set_intersect.py", and "builtin_gbdt_train.py" ).
The error looks like:
```
Traceback (most recent call last):
File "builtin_private_join_and_compute.py", line 238, in <module>
main()
File "builtin_private_join_and_compute.py", line 228, in main
result_user0 = user0.get_task_result(task_id)
File "builtin_private_join_and_compute.py", line 196, in get_task_result
return bytes(client.get_task_result(task_id))
File "/home/mengyuan/incubator-teaclave/sdk/python/teaclave.py", line 436, in get_task_result
return response["content"]["result"]["result"]["Ok"]["return_value"]
KeyError: 'Ok'
```
Any ideas?
Thanks
----------------------------------------------------------------
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
[GitHub] [incubator-teaclave] mssun closed issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
mssun closed issue #458:
URL: https://github.com/apache/incubator-teaclave/issues/458
----------------------------------------------------------------
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
[GitHub] [incubator-teaclave] Mengyuan-L commented on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment 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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment 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 || 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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment 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 || 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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment on issue #458:
URL: https://github.com/apache/incubator-teaclave/issues/458#issuecomment-763192282
----------------------------------------------------------------
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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment 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 the URL inside /examples/python/builtin_XXXX.py from
```
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 || 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 also 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
[GitHub] [incubator-teaclave] Mengyuan-L edited a comment on issue #458: File access problem in builtin function
Posted by GitBox <gi...@apache.org>.
Mengyuan-L edited a comment 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 the URL inside /examples/python/builtin_XXXX.py from
```
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 || 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