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

Getting push rate-limiting on a loop #318

Closed
Tracked by #322
licaon-kter opened this issue Dec 28, 2019 · 18 comments
Closed
Tracked by #322

Getting push rate-limiting on a loop #318

licaon-kter opened this issue Dec 28, 2019 · 18 comments
Labels
🚫 Bug / Stability Releated directly to bugs or instability issues

Comments

@licaon-kter
Copy link
Contributor

11:36:04.291 [info] <0.10234.0>@ejabberd_c2s:process_auth_result:271 (tls|<0.10234.0>) Accepted c2s PLAIN authentication for user@mydomain.tld by sql backend from hidden_by_ejabberd
11:36:04.400 [info] <0.10234.0>@mod_stream_mgmt:handle_resume:435 (tls|<0.10234.0>) Resumed session for user@mydomain.tld/Monal-iOS.87
11:36:04.469 [info] <0.10234.0>@mod_push:enable:311 Enabling push notifications for user@mydomain.tld/Monal-iOS.87
11:36:30.936 [info] <0.10234.0>@mod_stream_mgmt:transition_to_pending:451 (tls|<0.10234.0>) Closing c2s connection for user@mydomain.tld/Monal-iOS.87: Connection failed: connection closed; waiting 300 seconds for stream resumption
11:36:40.723 [info] <0.10235.0>@ejabberd_c2s:process_auth_result:271 (tls|<0.10235.0>) Accepted c2s PLAIN authentication for user@mydomain.tld by sql backend from hidden_by_ejabberd
11:36:40.849 [info] <0.10235.0>@mod_stream_mgmt:handle_resume:435 (tls|<0.10235.0>) Resumed session for user@mydomain.tld/Monal-iOS.87
11:36:40.962 [info] <0.10235.0>@mod_push:enable:311 Enabling push notifications for user@mydomain.tld/Monal-iOS.87
11:37:07.399 [info] <0.10235.0>@mod_stream_mgmt:transition_to_pending:451 (tls|<0.10235.0>) Closing c2s connection for user@mydomain.tld/Monal-iOS.87: Connection failed: connection closed; waiting 300 seconds for stream resumption
11:37:13.772 [info] <0.10239.0>@ejabberd_c2s:process_auth_result:271 (tls|<0.10239.0>) Accepted c2s PLAIN authentication for user@mydomain.tld by sql backend from hidden_by_ejabberd
11:37:13.884 [info] <0.10239.0>@mod_stream_mgmt:handle_resume:435 (tls|<0.10239.0>) Resumed session for user@mydomain.tld/Monal-iOS.87
11:37:13.949 [info] <0.10239.0>@mod_push:enable:311 Enabling push notifications for user@mydomain.tld/Monal-iOS.87
11:37:40.137 [info] <0.10239.0>@mod_stream_mgmt:transition_to_pending:451 (tls|<0.10239.0>) Closing c2s connection for user@mydomain.tld/Monal-iOS.87: Connection failed: connection closed; waiting 300 seconds for stream resumption
11:37:46.633 [info] <0.10241.0>@ejabberd_c2s:process_auth_result:271 (tls|<0.10241.0>) Accepted c2s PLAIN authentication for user@mydomain.tld by sql backend from hidden_by_ejabberd
11:37:46.757 [info] <0.10241.0>@mod_stream_mgmt:handle_resume:435 (tls|<0.10241.0>) Resumed session for user@mydomain.tld/Monal-iOS.87
11:37:46.866 [info] <0.10241.0>@mod_push:enable:311 Enabling push notifications for user@mydomain.tld/Monal-iOS.87
11:38:13.690 [info] <0.10241.0>@mod_stream_mgmt:transition_to_pending:451 (tls|<0.10241.0>) Closing c2s connection for user@mydomain.tld/Monal-iOS.87: Connection failed: connection closed; waiting 300 seconds for stream resumption
11:59:26.879 [info] <0.308.0>@mod_push:notify:454 push.monal.im rejected notification for user@mydomain.tld (xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) temporarily: Ratelimit reached (resource-constraint)

...7 seconds pass...the cycle starts again...

Monal 4.2, 6S, iOS 12.4.4
Server ejabberd HEAD (config)

@anurodhp
Copy link
Contributor

anurodhp commented Dec 28, 2019 via email

@licaon-kter
Copy link
Contributor Author

licaon-kter commented Dec 28, 2019

I dunno when, this is level 4 info and I'd rather not go to full stanza verbose :)

The device is not in my possession to just test.

@Echolon Echolon mentioned this issue Jan 4, 2020
65 tasks
@Echolon Echolon added the 🚫 Bug / Stability Releated directly to bugs or instability issues label Jan 4, 2020
@anurodhp
Copy link
Contributor

i think what is happening here is there are many stale devices. there was a fix to the push moduel in prosody i need to deploy that may resolve this.

@licaon-kter
Copy link
Contributor Author

Any news?

info] <0.315.0>@mod_push:notify:512 io s13push.monal.im rejected notification for user@domain.tld (5xxxxxxx-Exxx-40DD-Axxx-9xxxxx) temporarily: Ratelimit rea ched (resource-constraint)

@tmolitor-stud-tu
Copy link
Member

@anurodhp did you update the appserver?
If so, this issue can be closed now.

@tmolitor-stud-tu
Copy link
Member

anu updated the appserver recently, so this bug can be closed now

@Echolon
Copy link
Contributor

Echolon commented Jun 20, 2020

@licaon-kter if there is anything weird again dont hesitate to comeback.
Thanks everyone!

@Echolon Echolon closed this as completed Jun 20, 2020
@licaon-kter
Copy link
Contributor Author

licaon-kter commented Jun 20, 2020

Recently meaning today at 05AM UTC (my logs says SERVERRESTART for the pushserver)? Then it's too soon to call this fixed... Eg. On June 18 this was still happening.

@tmolitor-stud-tu
Copy link
Member

@licaon-kter: @anurodhp told me about the update on 2020-06-14...

@licaon-kter
Copy link
Contributor Author

licaon-kter commented Jul 21, 2020

Could you reopen?

@mod_push:notify:512 ios13push.monal.im rejected notification for user1@mydomain.tld (FADxxxxx-Exxx-4xxx-8xxx-3xxxxxxxxxxx) temporarily: Ratelimit reached (resource-constraint)
@mod_push:notify:519 ios13push.monal.im rejected notification for user2@mydomain.tld (37xxxxxx-0xxx-4xxx-9xxx-8xxxxxxxxxxx), disabling push: Unknown push node/secret (item-not-found) (cancel)

(these are the types of messages that I see, after grep/sort/uniq)

iOS 12 (or 13 on the second one), Monal 4.6 (616) from App store

@Echolon Echolon reopened this Jul 21, 2020
@licaon-kter
Copy link
Contributor Author

Any news?
[info] <0.311.0>@mod_push:notify:512 push.monal.im rejected notification for user@domain.tld (A20BXXXX-XXXX-XXXX-XXXX-XXXXXXXXC89C) temporarily: Ratelimit reached (resource-constraint)

:(

@Echolon
Copy link
Contributor

Echolon commented Sep 3, 2020

@tmolitor-stud-tu do you have any further ideas on this?

@tmolitor-stud-tu
Copy link
Member

yes: wait for the push server upgrade

@licaon-kter
Copy link
Contributor Author

@tmolitor-stud-tu The server has been updated, still seeing this error.

@tmolitor-stud-tu
Copy link
Member

I upgraded the ratelimit module used in the appserver, this should be fixed now (already in production)
Can you confirm this?

@licaon-kter
Copy link
Contributor Author

Haven't seen this for a week so maybe it's fixed, thanks.

@volga629-1
Copy link

I still see those messages

2021-11-11 13:06:59.358997-05:00 [info] <0.309.0>@mod_push:notify/5:512 ios13push.monal.im rejected notification for  (4A643696-8A3C-4A5C-9034-54D127CB72B4) temporarily: Ratelimit reached (resource-constraint)
2021-11-11 13:06:59.359282-05:00 [info] <0.309.0>@mod_push:notify/5:512 ios13push.monal.im rejected notification for  (C29985D6-F36F-47F2-AA26-C07738F69E23) temporarily: Ratelimit reached (resource-constraint)

@foss-
Copy link
Contributor

foss- commented Nov 11, 2021

Best to file a new issue. The original issue was files against Monal 4.2 on iOS 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 Bug / Stability Releated directly to bugs or instability issues
Projects
None yet
Development

No branches or pull requests

6 participants