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

GET api /solver/python/{analysis_id} throws command errored out with exit status 1 Error #5228

Open
shreekarSS opened this issue Oct 4, 2022 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/stack-guidance Categorizes an issue or PR as relevant to SIG Stack Guidance.

Comments

@shreekarSS
Copy link
Member

Describe the bug
While checking solver id status, command errored out with exit status 1 Error
https://management.stage.thoth-station.ninja/api/v1/solver/python/solver-rhel-8-py38-220929160717-79968ff899dbab76
"errors": [
{
"details": {
"command": "/opt/app-root/src/solver-venv/bin/python3 -m pip install --force-reinstall --no-cache-dir --no-deps thoth-solver===1.2.0 --index-url "https://pypi.org/simple" --trusted-host pypi.org",
"message": "Command exited with non-zero status code (1): ERROR: Command errored out with exit status 1:\n command: /opt/app-root/src/solver-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6ywc_isq/thoth-solver/setup.py'"'"'; file='"'"'/tmp/pip-install-6ywc_isq/thoth-solver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6ywc_isq/thoth-solver/pip-egg-info\n cwd: /tmp/pip-install-6ywc_isq/thoth-solver/\n Complete output (7 lines):\n Traceback (most recent call last):\n File "", line 1, in \n File "/tmp/pip-install-6ywc_isq/thoth-solver/setup.py", line 36, in \n install_requires=get_requirements(),\n File "/tmp/pip-install-6ywc_isq/thoth-solver/setup.py", line 9, in get_requirements\n with open('requirements.txt') as fd:\n FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'\n ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\nWARNING: You are using pip version 19.3.1; however, version 22.2.2 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n",
"return_code": 1,
"stderr": " ERROR: Command errored out with exit status 1:\n command: /opt/app-root/src/solver-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6ywc_isq/thoth-solver/setup.py'"'"'; file='"'"'/tmp/pip-install-6ywc_isq/thoth-solver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6ywc_isq/thoth-solver/pip-egg-info\n cwd: /tmp/pip-install-6ywc_isq/thoth-solver/\n Complete output (7 lines):\n Traceback (most recent call last):\n File "", line 1, in \n File "/tmp/pip-install-6ywc_isq/thoth-solver/setup.py", line 36, in \n install_requires=get_requirements(),\n File "/tmp/pip-install-6ywc_isq/thoth-solver/setup.py", line 9, in get_requirements\n with open('requirements.txt') as fd:\n FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'\n ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\nWARNING: You are using pip version 19.3.1; however, version 22.2.2 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n",
"stdout": "Collecting thoth-solver===1.2.0\n Downloading https://files.pythonhosted.org/packages/cb/41/823d41f1d50ae031369cd0a76db46ae097098abdecb6c81469cd445d2f74/thoth-solver-1.2.0.tar.gz\n",
"timeout": 60
},
"index_url": "https://pypi.org/simple",
"is_provided_package": true,
"is_provided_package_version": true,
"package_name": "thoth-solver",
"package_version": "1.2.0",
"type": "command_error"
}
],
To Reproduce
Steps to reproduce the behavior:

  1. Execute https://management.stage.thoth-station.ninja/api/v1/solver/python/solver-rhel-8-py38-220929160717-79968ff899dbab76

Expected behavior
Better error reporting

@shreekarSS shreekarSS added the kind/bug Categorizes issue or PR as related to a bug. label Oct 4, 2022
@codificat codificat added the sig/stack-guidance Categorizes an issue or PR as relevant to SIG Stack Guidance. label Jan 30, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Planning Board Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/stack-guidance Categorizes an issue or PR as relevant to SIG Stack Guidance.
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants