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

Build Fails: Deploying Applications From Source scenario #1092

Closed
davebrownrational opened this issue Apr 21, 2021 · 5 comments
Closed

Build Fails: Deploying Applications From Source scenario #1092

davebrownrational opened this issue Apr 21, 2021 · 5 comments
Assignees
Labels
Bug One or more commands or instructions in a scenario fail to execute cleanly Topic: OpenShift Basics

Comments

@davebrownrational
Copy link

I'm going through the Deploying Applications From Source scenario on the Interactive Learning Portal: https://learn.openshift.com/using-the-cluster/
Step 3 says to look at the log and see that the build completed successfully.
The log indicates that there was an error and the command exited with a status of 1

ERROR: Command errored out with exit status 1: /opt/app-root/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hsqopyr9/psycopg2/setup.py'"'"'; file='"'"'/tmp/pip-install-hsqopyr9/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-64q5zloo/install-record.txt --single-version-externally-managed --compile --install-headers /opt/app-root/include/site/python3.8/psycopg2 Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
subprocess exited with status 1
subprocess exited with status 1
error: build error: error building at STEP "RUN /tmp/scripts/assemble": exit status 1

Step 4 says to wait for the build to complete, and then use the url to visit the blog. That fails because the image is not deployed.

In step 5, when you are deleting the app, I can see that there are hundreds of replicaset.apps "blog-django-py-xxxxxxxx

@based3
Copy link

based3 commented Apr 22, 2021

you may check #1088

workaround:
git clone https://github.com/based3/blog-django-py

@davebrownrational
Copy link
Author

This work around worked for me.
Will you be updating the scenario?

@cedricclyburn cedricclyburn added the Bug One or more commands or instructions in a scenario fail to execute cleanly label Jul 17, 2021
@cedricclyburn cedricclyburn self-assigned this Jul 17, 2021
@cedricclyburn
Copy link
Collaborator

Hey @davebrownrational! Just doing some cleanup here, looks like a PR was merged to fix this issue and the lab runs as normal again! Thanks for bringing this up!

@davebrownrational
Copy link
Author

Yep, I was able to complete this scenario after I saw your changes.
Still stuck on the "How to set up Prometheus and Grafana on OpenShift" scenario. Please see #1098. Is that one on you priority list?

@cedricclyburn
Copy link
Collaborator

@davebrownrational Sweet! Yup, adding the Prometheus scenario to my list to work on next 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug One or more commands or instructions in a scenario fail to execute cleanly Topic: OpenShift Basics
Projects
None yet
Development

No branches or pull requests

4 participants