database modifications time out intermittently #7

Closed
etrepum opened this Issue Apr 26, 2012 · 2 comments

Comments

Projects
None yet
2 participants

etrepum commented Apr 26, 2012

Sometimes my app doesn't start up correctly due to gen_server timeout issues. I suspect that this can happen because all of the code server stuff blocks the whole VM (in pre-R16 anyway).

15:30:16.494 [error] CRASH REPORT Process <0.97.0> with 0 neighbours crashed with reason: {timeout,{gen_server,call,[mimetypes,{load,default,[{<<"less">>,<<"text/css">>}]}]}}
15:30:16.497 [info] Application lcmdr_server exited with reason: {timeout,{gen_server,call,[mimetypes,{load,default,[{<<"less">>,<<"text/css">>}]}]}}

Some possible workarounds:

  • Allow custom mime types to be added during application start time, e.g. in the application environment. (preferable for me)
  • Increase the gen_server call timeouts from the default 5 seconds to something much bigger

Unknown referenced this issue Apr 27, 2012

Merged

Load additional types on start up #8

Contributor

yrashk commented Jun 21, 2012

@etrepum did the patch in #8 help with this?

etrepum commented Jun 23, 2012

Looks like that patch is sufficient

etrepum closed this Jun 23, 2012

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