Closed jchigu closed 1 year ago
I've met this problem before, but when I tried to run this for the second or the third time, it ran successfully. I guess it was the network thing. Maybe you can also try for more times? But I'm not sure it also works : )
@jchigu First of all, your bug report does not follow the issue format, which makes it more difficult for me to understand where the issue is located. Then, please use Markdown formatting for error logs - the ones you posted are very difficult to read and parse.
The error shows that SeBS was unable to create the action for the selected function. Did you try creating any function by yourself? Is your wsk
command configured as described in the documentation? You can repeat the command manually and check the error reported by OpenWhisk wsk -i action create 110.dynamic-html-python-3.7 --web true --docker 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7 --memory 128 --timeout 10000 -p MINIO_STORAGE_SECRET_KEY 14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e -p MINIO_STORAGE_ACCESS_KEY 289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY -p MINIO_STORAGE_CONNECTION_URL 10.0.2.15:9011 /home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip
.
@HelloWorldGitHubUser I think it's a different issue - here, the failure is at creating functions. Your issue is/was at likely cache invalidation.
@jchigu Closing the issue due to lack of activity after two weeks. If you want to receive support, please provide reproduction information and answer the questions I outlined above.
Good day I need help on the following runtime error. The full list of configurations is given below this error.
(python-venv) justin@SeBS:~/serverless-benchmarks$ ./sebs.py experiment invoke perf-cost --config config/openwhisk.json --deployment openwhisk --verbose
09:03:54,625 INFO SeBS-e332: Created experiment output at /home/justin/serverless-benchmarks
09:03:55,203 INFO OpenWhisk.Resources-6b39: Using user-provided configuration of storage for OpenWhisk.
09:03:55,209 INFO Benchmark-28dd: Using cached benchmark 110.dynamic-html at /home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip
09:03:55,210 INFO OpenWhisk-fb7d: Creating new function! Reason: function 110.dynamic-html-python-3.7 not found in cache.
09:03:55,210 INFO OpenWhisk-fb7d: Creating function as an action in OpenWhisk.
09:03:55,267 INFO OpenWhisk-fb7d: Creating new OpenWhisk action 110.dynamic-html-python-3.7
09:03:55,320 ERROR OpenWhisk-fb7d: Cannot create action 110.dynamic-html-python-3.7.
ERROR:root:Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
Traceback (most recent call last):
File "/home/justin/serverless-benchmarks/sebs/openwhisk/openwhisk.py", line 279, in create_function
File "/usr/lib/python3.10/subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/justin/serverless-benchmarks/./sebs.py", line 30, in call
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
File "/home/justin/serverless-benchmarks/./sebs.py", line 72, in wrapper
File "/home/justin/serverless-benchmarks/./sebs.py", line 97, in wrapper
File "/home/justin/serverless-benchmarks/./sebs.py", line 462, in experiment_invoke
File "/home/justin/serverless-benchmarks/sebs/experiments/perf_cost.py", line 50, in prepare
File "/home/justin/serverless-benchmarks/sebs/faas/system.py", line 176, in get_function
File "/home/justin/serverless-benchmarks/sebs/openwhisk/openwhisk.py", line 306, in create_function
RuntimeError: Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
INFO:Benchmark-d09d:Update cached config /home/justin/serverless-benchmarks/cache/openwhisk.json
(python-venv) justin@SeBS:~/serverless-benchmarks$
=======================MY CONFIGURATIONS FOR OPENWHISK-------------------- (python-venv) justin@SeBS:~/serverless-benchmarks$ ./sebs.py storage start minio --port 9011 --output-json out_storage.json
08:55:25,323 INFO root: Starting storage Storage.MINIO on port 9011.
08:55:25,323 INFO minio.Minio-cf22: Minio storage ACCESS_KEY=289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY
08:55:25,323 INFO minio.Minio-cf22: Minio storage SECRET_KEY=14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e
08:55:28,401 INFO minio.Minio-cf22: Starting minio instance at 172.17.0.2:9000
08:55:28,402 INFO root: Writing storage configuration to out_storage.json.
(python-venv) justin@SeBS:~/serverless-benchmarks$ cat out_out_storage.json
cat: out_out_storage.json: No such file or directory
(python-venv) justin@SeBS:~/serverless-benchmarks$ cat out_storage.json
{
"address": "172.17.0.2:9000",
"mapped_port": 9011,
"access_key": "289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY",
"secret_key": "14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e",
"instance_id": "6a8ce4ef2bb3a31d3da89006d72967c751399bf2ac469b84ced77f46934c7f0c",
"input_buckets": [],
"output_buckets": [],
"type": "minio"
}(python-venv) justin@SeBS:~/serverless-benchmarks$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
3: br-97fbc1797175: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
6: veth61b6415@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-97fbc1797175 state UP group default
8: vethb300175@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
(python-venv) justin@SeBS:~/serverless-benchmarks$ jq --argfile file1 out_storage.json '.deployment.openwhisk.storage = $file1 | .deployment.openwhisk.storage.address = "10.0.2.15:9011"' config/example.json > config/openwhisk.json
(python-venv) justin@SeBS:~/serverless-benchmarks$ curl -i 10.0.2.15:9011/minio/health/live
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 0
Content-Security-Policy: block-all-mixed-content
Server: MinIO
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Origin
X-Amz-Id-2: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Request-Id: 1753464F04D7A7D5
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Date: Thu, 06 Apr 2023 06:59:51 GMT
(python-venv) justin@SeBS:~/serverless-benchmarks$ cd config
(python-venv) justin@SeBS:~/serverless-benchmarks/config$ cat openwhisk.json
{
"experiments": {
},
"deployment": {
}
}
(python-venv) justin@SeBS:~/serverless-benchmarks$ ./sebs.py experiment invoke perf-cost --config config/openwhisk.json --deployment openwhisk --verbose
09:03:54,625 INFO SeBS-e332: Created experiment output at /home/justin/serverless-benchmarks
09:03:55,203 INFO OpenWhisk.Resources-6b39: Using user-provided configuration of storage for OpenWhisk.
09:03:55,209 INFO Benchmark-28dd: Using cached benchmark 110.dynamic-html at /home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip
09:03:55,210 INFO OpenWhisk-fb7d: Creating new function! Reason: function 110.dynamic-html-python-3.7 not found in cache.
09:03:55,210 INFO OpenWhisk-fb7d: Creating function as an action in OpenWhisk.
09:03:55,267 INFO OpenWhisk-fb7d: Creating new OpenWhisk action 110.dynamic-html-python-3.7
09:03:55,320 ERROR OpenWhisk-fb7d: Cannot create action 110.dynamic-html-python-3.7.
ERROR:root:Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
Traceback (most recent call last):
File "/home/justin/serverless-benchmarks/sebs/openwhisk/openwhisk.py", line 279, in create_function
File "/usr/lib/python3.10/subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/justin/serverless-benchmarks/./sebs.py", line 30, in call
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
File "/home/justin/serverless-benchmarks/python-venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
File "/home/justin/serverless-benchmarks/./sebs.py", line 72, in wrapper
File "/home/justin/serverless-benchmarks/./sebs.py", line 97, in wrapper
File "/home/justin/serverless-benchmarks/./sebs.py", line 462, in experiment_invoke
File "/home/justin/serverless-benchmarks/sebs/experiments/perf_cost.py", line 50, in prepare
File "/home/justin/serverless-benchmarks/sebs/faas/system.py", line 176, in get_function
File "/home/justin/serverless-benchmarks/sebs/openwhisk/openwhisk.py", line 306, in create_function
RuntimeError: Command '['wsk', '-i', 'action', 'create', '110.dynamic-html-python-3.7', '--web', 'true', '--docker', 'spcleth/serverless-benchmarks:function.openwhisk.110.dynamic-html.python-3.7', '--memory', '128', '--timeout', '10000', '-p', 'MINIO_STORAGE_SECRET_KEY', '14d68dd6c12ca944c85cbee46c4971dbe7f7dabe78a74ca8f104356388dfbe9e', '-p', 'MINIO_STORAGE_ACCESS_KEY', '289EOAtOXuJvYNg-_AUN7Kf2c8sPjdv0JQoOgYA9YqY', '-p', 'MINIO_STORAGE_CONNECTION_URL', '10.0.2.15:9011', '/home/justin/serverless-benchmarks/cache/110.dynamic-html/openwhisk/python/3.7/110.dynamic-html.zip']' returned non-zero exit status 255.
INFO:Benchmark-d09d:Update cached config /home/justin/serverless-benchmarks/cache/openwhisk.json
(python-venv) justin@SeBS:~/serverless-benchmarks$