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

AppEngine lost connection to FireBase after ~16h #1

Open
ivbar opened this issue Jun 8, 2016 · 5 comments
Open

AppEngine lost connection to FireBase after ~16h #1

ivbar opened this issue Jun 8, 2016 · 5 comments

Comments

@ivbar
Copy link

ivbar commented Jun 8, 2016

Hello,
Have deployed AppEngine Java part and after ~16h it stops receiving updates from FireBase.
If I restart AppEngine instance it start working.

I use gradle and firebase-server-sdk:3.0.0 (have just updated to 3.0.1 may be it will work).

Could you help? Do you need any other information?

@misterwilliam
Copy link
Owner

I'll look into it. The most obvious source of problem is that you did not set up manual scaling. That is done in this file: https://github.com/misterwilliam/gae-firebase-event-proxy/blob/master/gae-firebase-event-proxy/src/main/webapp/WEB-INF/appengine-web.xml

The app engine documentation on manual scaling is here:
https://cloud.google.com/appengine/docs/java/an-overview-of-app-engine#scaling_types_and_instance_classes

The need for manual scaling is explained here:
https://cloud.google.com/solutions/mobile/firebase-app-engine-android-studio#configuring_the_servlet

@misterwilliam
Copy link
Owner

I've been able to replicate the behavior, I'll look into how to fix it.

@ivbar
Copy link
Author

ivbar commented Jun 10, 2016

Yes, I've set up manual scaling.

With firebase-server-sdk:3.0.1 seems to be solved.
Server already connected more than a day.
Will keep monitoring.

@ivbar
Copy link
Author

ivbar commented Jun 15, 2016

Server connection to firebase lost even with 3.0.1

onCancelled in ChildEventListener is not fired when connection lost

@misterwilliam
Copy link
Owner

I am seeing the same thing as well, and I am still looking into a fix.

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

No branches or pull requests

2 participants