redhat-developer-demos / qotd-python

Python version of Quote Of the Day microservice
Apache License 2.0
7 stars 22 forks source link

Application is not available #2

Open mmyself opened 3 years ago

mmyself commented 3 years ago

Tested in Open shift developer sandbox. Going the github add way, you tell in the video. Also tested the repo with a local build in minikube, i got an Internal Server Error from the service. No glue why. What kind of information more do you need?

DonSchenck commented 3 years ago

I'll try to replicate the problem on my end and then get a fix.

Thanks for being patient, and thanks for finding this problem.

On Sun, Aug 29, 2021 at 10:07 AM Jan @.***> wrote:

Tested in Open shift developer sandbox. Going the github add way, you tell in the video. Also tested the repo with a local build in minikube, i got an Internal Server Error from the service. No glue why. What kind of information more do you need?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZXAUJSPC4JEQ57SORTT7I5IXANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DonSchenck commented 3 years ago

The port number is wrong, but fixing that doesn't seem to work. Something else must be wrong.

I'll stay after this until it's working.

On Sun, Aug 29, 2021 at 6:26 PM Don Schenck @.***> wrote:

I'll try to replicate the problem on my end and then get a fix.

Thanks for being patient, and thanks for finding this problem.

On Sun, Aug 29, 2021 at 10:07 AM Jan @.***> wrote:

Tested in Open shift developer sandbox. Going the github add way, you tell in the video. Also tested the repo with a local build in minikube, i got an Internal Server Error from the service. No glue why. What kind of information more do you need?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZXAUJSPC4JEQ57SORTT7I5IXANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DonSchenck commented 3 years ago

Jan --

Something is weird. I have it building and working fine on my local machine, but when I build it on OpenShift it runs but doesn't serve up any data. I'll stay on this today.

-- Don

On Sun, Aug 29, 2021 at 8:23 PM Don Schenck @.***> wrote:

The port number is wrong, but fixing that doesn't seem to work. Something else must be wrong.

I'll stay after this until it's working.

On Sun, Aug 29, 2021 at 6:26 PM Don Schenck @.***> wrote:

I'll try to replicate the problem on my end and then get a fix.

Thanks for being patient, and thanks for finding this problem.

On Sun, Aug 29, 2021 at 10:07 AM Jan @.***> wrote:

Tested in Open shift developer sandbox. Going the github add way, you tell in the video. Also tested the repo with a local build in minikube, i got an Internal Server Error from the service. No glue why. What kind of information more do you need?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZXAUJSPC4JEQ57SORTT7I5IXANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mmyself commented 3 years ago

Maybe a problem with the newest Python 3.8 image? Because i got the internal server error also on my local machine with the newest Python 3.8 image.

DonSchenck commented 3 years ago

There is a bug in app.py; the response type should be "text/plain".

I'm making the changes now.

On Mon, Aug 30, 2021 at 9:12 AM Jan @.***> wrote:

Maybe a problem with the newest Python 3.8 image? Because i got the internal server error also on my local machine with the newest Python 3.8 image.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2#issuecomment-908331440, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZQF7YATLQ6I7GEL7LTT7N7U7ANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DonSchenck commented 3 years ago

Well, I fixed THAT issue, but now it won't run in OpenShift. It DOES run on my local machine now.

On Mon, Aug 30, 2021 at 9:23 AM Don Schenck @.***> wrote:

There is a bug in app.py; the response type should be "text/plain".

I'm making the changes now.

On Mon, Aug 30, 2021 at 9:12 AM Jan @.***> wrote:

Maybe a problem with the newest Python 3.8 image? Because i got the internal server error also on my local machine with the newest Python 3.8 image.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2#issuecomment-908331440, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZQF7YATLQ6I7GEL7LTT7N7U7ANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DonSchenck commented 3 years ago

Jan --

Can you send me a link to the video to which you are referring? The written instructions that I created do not use the "git add" way.

Also; If you use the "Dockerfile" way to add the app to your project, that will work.

-- Don

On Mon, Aug 30, 2021 at 10:06 AM Don Schenck @.***> wrote:

Well, I fixed THAT issue, but now it won't run in OpenShift. It DOES run on my local machine now.

On Mon, Aug 30, 2021 at 9:23 AM Don Schenck @.***> wrote:

There is a bug in app.py; the response type should be "text/plain".

I'm making the changes now.

On Mon, Aug 30, 2021 at 9:12 AM Jan @.***> wrote:

Maybe a problem with the newest Python 3.8 image? Because i got the internal server error also on my local machine with the newest Python 3.8 image.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2#issuecomment-908331440, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZQF7YATLQ6I7GEL7LTT7N7U7ANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mmyself commented 3 years ago

Hi Don, now it works locally and also on openshift build with the Dockerfile. I only have to fix the service to port 10000. Openshift seems not to use the port under routing at creation time. i edit the service after creation.

not shure but i thougt i have seen your repo url in this video https://www.youtube.com/watch?v=oPLQs-lAAYk&t=2464s to long to it watch again ;-)

a liitle bug :-) it sends only "qotd" not the quote

greets

mmyself commented 3 years ago

test once again the github way on openshift. strange. because the pod works. i got it local with curl. I edit the service the same way like before, but i got "the service is not available"

anyway thx a lot for fast support

DonSchenck commented 3 years ago

Hmmmm ... Lemme watch the video and see what's going on.

Thanks for pointing out my mistakes; Now I can fix them.

On Mon, Aug 30, 2021 at 1:48 PM Jan @.***> wrote:

test once again the github way on openshift. strange. because the pod works. i got it local with curl. I edit the service the same way like before, but i got "the service is not available"

anyway thx a lot for fast support

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2#issuecomment-908553499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZU6WI7EDCJJKZEEGPLT7O75ZANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DonSchenck commented 3 years ago

Setting aside the video, I strongly suggest using THIS:

Learn Kubernetes using Red Hat Developer Sandbox for OpenShift | Red Hat Developer https://developers.redhat.com/developer-sandbox/activities/learn-kubernetes-using-red-hat-developer-sandbox-openshift

On Mon, Aug 30, 2021 at 2:00 PM Don Schenck @.***> wrote:

Hmmmm ... Lemme watch the video and see what's going on.

Thanks for pointing out my mistakes; Now I can fix them.

On Mon, Aug 30, 2021 at 1:48 PM Jan @.***> wrote:

test once again the github way on openshift. strange. because the pod works. i got it local with curl. I edit the service the same way like before, but i got "the service is not available"

anyway thx a lot for fast support

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DonSchenck/qotd-python/issues/2#issuecomment-908553499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGVCZU6WI7EDCJJKZEEGPLT7O75ZANCNFSM5DAI2K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.