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

Internal Server Error #157

Open
nelsonic opened this issue Apr 13, 2022 · 8 comments
Open

Internal Server Error #157

nelsonic opened this issue Apr 13, 2022 · 8 comments

Comments

@nelsonic
Copy link
Member

https://hits.dwyl.com/test/test.svg
image

Lame. 🙄

@nelsonic
Copy link
Member Author

The homepage still renders: https://hits.dwyl.com/
image

But the badges don't. 🤷‍♂️

@nelsonic
Copy link
Member Author

Deploy fails: https://github.com/dwyl/hits/runs/6021229352?check_suite_focus=true 🤦‍♂️
Need to come back to this later. ⏳

@SimonLab
Copy link
Member

The deploy failed because of Postgres being unavailable:

Error: :54.363 [error] Postgrex.Protocol (#PID<0.136.0>) failed to connect: ** (DBConnection.ConnectionError) tcp recv: closed

I had a similar error yesterday on another application using Postgres with Fly.io.
I've restarted the application database with fly. It took a bit of time to be fixed but it might be worth to try.

flyctl restart hits-db

We can also check the status of the database with flyctl status -a hits-db

see https://fly.io/docs/flyctl/restart/

@SimonLab
Copy link
Member

I think the error is still there (or appears again)
@nelsonic do you know if the hits application is running under the dwyl organisation on Fly.io? If so, if you invite me to the application I can have a look at the logs and try to see what is the issue.

@nelsonic
Copy link
Member Author

The hits app is currently a personal ... let's fix that! https://fly.io/docs/flyctl/apps-move/
Org: https://fly.io/organizations/hits

flyctl apps move hits-db --org hits
flyctl apps move hits --org hits

Get the following warning:

Moving an app between organizations requires a complete shutdown and restart. This will result in some app downtime.
If the app relies on other services within the current organization, it may not come back up in a healthy manner.
Please confirm whether you wish to restart this app now.
? Move app hits-db? (y/N)

I invited you to the hits org so you should have admin access.

The transfer restarted both the app and the db and hit badges appear to be working again:

HitCount

@bartandrews
Copy link

I am also experiencing this problem, suddenly happened as of yesterday/today. It was working fine for 3 months, not sure why I suddenly get "internal server error" here https://hits.dwyl.com/HofstadterTools/HofstadterToolsgithubio Any help would be much appreciated!

@nelsonic
Copy link
Member Author

Lame ... 😢 ⏳

@LuchoTurtle
Copy link
Member

@bartandrews it should be working at the time of writing (see #266 for more context). If anything happens again, ping us :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants