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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend app crashes if db connection unavailable #55

Closed
jhole89 opened this issue Aug 13, 2021 · 0 comments 路 Fixed by #56
Closed

Backend app crashes if db connection unavailable #55

jhole89 opened this issue Aug 13, 2021 · 0 comments 路 Fixed by #56
Assignees
Labels
bug Something isn't working go Pull requests that update Go code
Projects
Milestone

Comments

@jhole89
Copy link
Owner

jhole89 commented Aug 13, 2021

Community Note

  • Please vote on this issue by adding a 馃憤:+1:
    reaction
    to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions,
    they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a
    comment

App Version

App Configuration File

# Copy-paste your config.yaml here

Panic Output

2021/08/13 01:08:39 Unable to connect to Gremlin database at: dial tcp 127.0.0.1:8182: connect: connection refused
2021/08/13 01:08:39 dial tcp 127.0.0.1:8182: connect: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xa1d746]

goroutine 1 [running]:
main.reIndex(0x0, 0x0, 0xc000010110, 0x1, 0x1, 0x0, 0xc7d6e0)
        /code/graph.go:10 +0x26
main.main()
        /code/main.go:36 +0x2a6

Expected Behavior

App should continue and log that DB is unavailable. Potentially surfacing this through to UI

Actual Behavior

App panics

Steps to Reproduce

Start backend app without DB or invalid DB connection string

Important Factoids

References

  • 0000
@jhole89 jhole89 added bug Something isn't working go Pull requests that update Go code labels Aug 13, 2021
@jhole89 jhole89 added this to the MVP milestone Aug 13, 2021
@jhole89 jhole89 self-assigned this Aug 13, 2021
@jhole89 jhole89 added this to To do in mvp via automation Aug 13, 2021
mvp automation moved this from To do to Done Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code
Projects
mvp
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant