kandanapp / kandan

Kandan is an Open Source Alternative to HipChat
GNU Affero General Public License v3.0
2.72k stars 405 forks source link

I messed up... How can I debug the issue? #344

Closed alexhulbert closed 10 years ago

alexhulbert commented 10 years ago

I deleted a few lines in the PostgreSQL database and everything was working fine. Then I changed something and its giving me an application error. How can I figure out what I did wrong? heroku logs didn't provide any useful information.

scouttyg commented 10 years ago

This really probably goes beyond what we are able to help out with -- you might just have to re-provision your app. You might think about adding https://addons.heroku.com/marketplace/pgbackups#auto-month (free) if you are using Heroku next time so you can always roll back your database to a previous version if things go bad.

alexhulbert commented 10 years ago

Isn't there some sort of detailed log or something I can use to see the error message? All I get is a message saying that the "Application Failed" I'd really prefer not to have to restart.

scouttyg commented 10 years ago

Try checking out: https://devcenter.heroku.com/articles/postgres-logs-errors https://devcenter.heroku.com/articles/logging https://addons.heroku.com/#logging (An add-on you can add to your app to help log any errors)

By default, I'm pretty sure Heroku doesn't keep crazily detailed logs. But this should help point you in the right direction.

alexhulbert commented 10 years ago

It magically started working again! I did absolutely nothing other than wait 24 hours... I guess it wasn't my fault. The only weird thing is that one new entry is in the "activities" database. Evidently I said "a" a year ago... That's weird.

alexhulbert commented 10 years ago

Forgot to close... Sorry.