Issues when run example of Fibonacci
sean25xiao opened this issue · comments
Yibang Xiao commented
Hi,
I have an issue when running Fibonacci in the example. It gives the following exception info in the terminal.
I have attached my env below and I have tried the mosh example and it does work.
Thank you!
Yibang
(gg) me@ubuntu:~/gg/examples/fibonacci$ ./bin/run.sh 10 10
1. Clear workspace
2. Initialize gg
Initialized gg directory at: /home/me/gg/examples/fibonacci/.gg
3. Create thunks for number 10
T8AC2mqVpCC0X_DGEJEXW.M_YQF1xTob3Q3XKT8YvUmI0000015b
VhjFiDLKvBR3lJHo48H_7X2Bff2VkrALNMTeUVJr58Mc00533140
VoGrFBF6S9bvML6Vc6sUKOM35GrpsTu6aQrJHam48UxI001d4318
4. Run calculation
→ Loading the thunks... done (0 ms).
No files to upload.
terminate called after throwing an instance of 'std::system_error'
what(): Unknown error -1
std::exception
`T8AC2mqVpCC0X_DGEJEXW.M_YQF1xTob3Q3XKT8YvUmI0000015b': process died on signal 6
gg-force: execution failed: T8AC2mqVpCC0X_DGEJEXW.M_YQF1xTob3Q3XKT8YvUmI0000015b
(gg) me@ubuntu:~/gg/examples/fibonacci$ gg describe T8AC2mqVpCC0X_DGEJEXW.M_YQF1xTob3Q3XKT8YvUmI0000015b
{
"function": {
"hash": "VhjFiDLKvBR3lJHo48H_7X2Bff2VkrALNMTeUVJr58Mc00533140",
"args": [
"fib",
"10"
],
"envars": [
"FIB_FUNCTION_HASH=VhjFiDLKvBR3lJHo48H_7X2Bff2VkrALNMTeUVJr58Mc00533140",
"ADD_FUNCTION_HASH=VoGrFBF6S9bvML6Vc6sUKOM35GrpsTu6aQrJHam48UxI001d4318"
]
},
"values": [],
"thunks": [],
"executables": [
"VhjFiDLKvBR3lJHo48H_7X2Bff2VkrALNMTeUVJr58Mc00533140",
"VoGrFBF6S9bvML6Vc6sUKOM35GrpsTu6aQrJHam48UxI001d4318"
],
"outputs": [
"out",
"left",
"right"
],
"links": [],
"timeout": 0
}
#!/bin/bash
# Usage: source gg_env.sh
# Change to your gg's wrapper directory
export GG_MODELPATH="/home/me/gg/src/models/wrappers/"
echo "Loaded GG_MODELPATH"
export AWS_ACCESS_KEY_ID="XXXX"
echo "Loaded AWS_ACCESS_KEY_ID"
export AWS_SECRET_ACCESS_KEY="YYYY"
echo "Loaded AWS_SECRET_ACCESS_KEY"
export AWS_REGION="us-west-1"
echo "Loaded AWS_REGION"
export GG_LAMBDA_ROLE="arn:aws:iam::395529954647:role/service-role/lambda-basic-execution"
echo "Loaded GG_LAMBDA_ROLE"
# gg-bkt is the bucket name on S3, for feel to create your bucket on S3 and change the name here
export GG_STORAGE_URI="s3://gg-bkt/?region=us-west-1"
echo "Loaded GG_STORAGE_URI"
echo "Successfully Load Env"
Alex M. commented
Was this ever resolved? I'm getting the same error.