Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not execute the runtime #4

Closed
vysecurity opened this issue Jan 24, 2022 · 10 comments
Closed

Could not execute the runtime #4

vysecurity opened this issue Jan 24, 2022 · 10 comments

Comments

@vysecurity
Copy link
Contributor

vysecurity commented Jan 24, 2022

Using AWS Runtime.

python3 shadowbrute.py -d REDACTED -w subdomain_wordlist.txt
2022-01-24 16:47:39,414 [INFO] File with same name already exists in the bucket, skipping upload
2022-01-24 16:47:39,414 [ERROR] Could not execute the runtime.

Could not execute the runtime. How can I debug?

@fyoorer
Copy link
Owner

fyoorer commented Jan 24, 2022

did you update config.py with the name of your runtime? Also, have you completed the setup steps under "local machine" section

@vysecurity
Copy link
Contributor Author

vysecurity commented Jan 24, 2022

Yep I did. Getting this error when running too:

python3 shadowclone.py -i abc.txt -s 3 -o a.txt -c "cat {INPUT}"
2022-01-24 19:41:08,703 [INFO] Uploading input file to storage
2022-01-24 19:41:08,796 [INFO] Splitting input file into chunks of 3 lines
2022-01-24 19:41:10,492 [INFO] lithops.config -- Lithops v2.5.8
2022-01-24 19:41:10,501 [INFO] lithops.storage.backends.aws_s3.aws_s3 -- S3 client created - Region: us-west-2
2022-01-24 19:41:11,502 [INFO] lithops.serverless.backends.aws_lambda.aws_lambda -- AWS Lambda client created - Region: us-west-2
2022-01-24 19:41:11,503 [INFO] lithops.invokers -- ExecutorID b1deb7-0 | JobID M000 - Selected Runtime: lithops_v2-5-8_fgwc/shadow-runtime - 512MB
2022-01-24 19:41:11,504 [ERROR] Could not execute the runtime.

But there's not enough debugging info for me to figure out what's wrong with the execution. This happens when running it from an M1 Macbook. The same command works on a VPS.

@vysecurity
Copy link
Contributor Author

Noticed a bug tonight too. When splitting down a 1000 line file down to 10 lines a file. It's way slow? The operation is slow.

@fyoorer
Copy link
Owner

fyoorer commented Jan 25, 2022

Well, that is expected because each chunk is uploaded separately so right now it's causing lots of s3 API requests that's slowing it down. I have got a new idea on reducing s3 api requests, hopefully that will improve the performance dramatically

@vysecurity
Copy link
Contributor Author

Actually what I'm saying is, I've barely ran anything and it's used over 200k executions already?

@bugbaba
Copy link

bugbaba commented Mar 21, 2022

Just printed the exception object and this is the message. Indicating it can run only with python 3.8 only.

The indicated runtime 'lithops_v2-5-8_3i7d/sc-runtime' is running Python 3.8 and it is not compatible with the local Python version 3.10

@sumgr0
Copy link

sumgr0 commented Sep 13, 2022

Facing the same issue as well.

@fyoorer
Copy link
Owner

fyoorer commented Sep 13, 2022

Have you tried running with python version 3.8?

@sumgr0
Copy link

sumgr0 commented Sep 14, 2022

downgrading the python version would break the other workflows... I would request you to kindly look into supporting the python 3.10 if possible.

@georgebecerescu
Copy link

georgebecerescu commented Oct 11, 2022

same error.

python --version
Python 3.10.7

Solution seems to be to use pyenv which let you chose 3.8 as running env.

@fyoorer fyoorer closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants