-
Notifications
You must be signed in to change notification settings - Fork 47
Working with a saved image in S3 appears to be broken #336
Copy link
Copy link
Open
Description
Hitting the following two errors when specifying a tarball, as per https://scar.readthedocs.io/en/latest/advanced_usage.html
-
The first one is
'S3Properties' object has no attribute 'storage_path_input'
and appears to be thrown because aninput_bucketneeds to be specified in addition to thedeployment_bucketin the yaml file -
If specifying both the
deployment_bucketand theinput_bucket, the following is thrown:
Error: failed to extract container: /tmp/udocker_image.tar.gz
Error: loading failed
Command '['python3', '/tmp/tmp8wznq7pc/udocker/udocker.py', 'load', '-i', '/tmp/udocker_image.tar.gz']' returned non-zero exit status 1.
Here is a log from scar.log:
2019-12-18 20:41:15,364 - root - INFO - Using existent 'faas-supervisor' layer
2019-12-18 20:41:16,629 - root - ERROR - Command '['python3', '/tmp/tmp8wznq7pc/udocker/udocker.py', 'load', '-i', '/tmp/udocker_image.tar.gz']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/scar/.local/lib/python3.7/site-packages/scar/scarcli.py", line 84, in main
ScarCLI().parse_arguments()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/scarcli.py", line 79, in parse_arguments
merged_args['scar']['func']()
File "/home/scar/.local/lib/python3.7/site-packages/scar/scarcli.py", line 36, in init
self.cloud_provider.init()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/controller.py", line 98, in init
self._create_lambda_function()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/controller.py", line 216, in _create_lambda_function
response = self.aws_lambda.create_function()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/lambdafunction.py", line 91, in create_function
self._set_function_code()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/lambdafunction.py", line 178, in _set_function_code
FunctionPackager(self.aws, self.supervisor_version).create_zip()
File "/home/scar/.local/lib/python3.7/site-packages/scar/exceptions.py", line 32, in wrapper
return func(*args, **kwargs)
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/functioncode.py", line 74, in create_zip
self._manage_udocker_images()
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/functioncode.py", line 94, in _manage_udocker_images
self.udocker.prepare_udocker_image()
File "/home/scar/.local/lib/python3.7/site-packages/scar/providers/aws/udocker.py", line 98, in prepare_udocker_image
cli_msg="Loading image file")
File "/home/scar/.local/lib/python3.7/site-packages/scar/utils.py", line 80, in execute_command_with_msg
cmd_out = subprocess.check_output(command, cwd=cmd_wd).decode('utf-8')
File "/usr/local/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['python3', '/tmp/tmp8wznq7pc/udocker/udocker.py', 'load', '-i', '/tmp/udocker_image.tar.gz']' returned non-zero exit status 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels