[GH-ISSUE #666] Divide by Zero #4766

Closed
opened 2026-03-01 15:35:59 +03:00 by kerem · 5 comments
Owner

Originally created by @stig1102 on GitHub (Oct 26, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/666

Everything seems to be working. Now and then de notification "Divide by Zero" (function Site List)

Oct 26 16:22:38 ... nginx-ui[223814]: [GIN] 2024/10/26 - 16:22:38 | 200 | 17.948798ms | 192.168.178.89 | GET "/api/analytic/init"
Oct 26 16:22:40 ... nginx-ui[223814]: 2024-10-26 16:22:40 ERROR router/middleware.go:16 runtime error: integer divide by zero
Oct 26 16:22:40 ... nginx-ui[223814]: goroutine 33 [running]:
Oct 26 16:22:40 ... nginx-ui[223814]: github.com/uozi-tech/cosy/router.Init.recovery.func2.1()

Originally created by @stig1102 on GitHub (Oct 26, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/666 Everything seems to be working. Now and then de notification "Divide by Zero" (function Site List) Oct 26 16:22:38 ... nginx-ui[223814]: [GIN] 2024/10/26 - 16:22:38 | 200 | 17.948798ms | 192.168.178.89 | GET "/api/analytic/init" Oct 26 16:22:40 ... nginx-ui[223814]: 2024-10-26 16:22:40 ERROR router/middleware.go:16 runtime error: integer divide by zero Oct 26 16:22:40 ... nginx-ui[223814]: goroutine 33 [running]: Oct 26 16:22:40 ... nginx-ui[223814]: github.com/uozi-tech/cosy/router.Init.recovery.func2.1()
kerem 2026-03-01 15:35:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Oct 26, 2024):

Did you try to remove the app.ini and reinstall nginx-ui again? I'm sorry that I can not reproduce this issue.

<!-- gh-comment-id:2439608257 --> @0xJacky commented on GitHub (Oct 26, 2024): Did you try to remove the app.ini and reinstall nginx-ui again? I'm sorry that I can not reproduce this issue.
Author
Owner

@0xJacky commented on GitHub (Oct 26, 2024):

If you want to know why a "divide by zero" error occurred, the page size in the app section of app.ini is not set.

<!-- gh-comment-id:2439608944 --> @0xJacky commented on GitHub (Oct 26, 2024): If you want to know why a "divide by zero" error occurred, the page size in the app section of app.ini is not set.
Author
Owner

@stig1102 commented on GitHub (Oct 26, 2024):

Check, I've change it to something like 1024 and the error is gone. What kind of value makes sense here?


Van: Jacky @.>
Verzonden: zaterdag 26 oktober 2024 16:54
Aan: 0xJacky/nginx-ui @.
>
CC: stig1102 @.>; Author @.>
Onderwerp: Re: [0xJacky/nginx-ui] Divide by Zero (Issue #666)

If you want to know why a "divide by zero" error occurred, the page size in the app section of app.ini is not set.


Reply to this email directly, view it on GitHubhttps://github.com/0xJacky/nginx-ui/issues/666#issuecomment-2439608944, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A76LGQRPLLQDQU574RFAWVDZ5OUJHAVCNFSM6AAAAABQU3IACKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYDQOJUGQ.
You are receiving this because you authored the thread.Message ID: @.***>

<!-- gh-comment-id:2439610392 --> @stig1102 commented on GitHub (Oct 26, 2024): Check, I've change it to something like 1024 and the error is gone. What kind of value makes sense here? ________________________________ Van: Jacky ***@***.***> Verzonden: zaterdag 26 oktober 2024 16:54 Aan: 0xJacky/nginx-ui ***@***.***> CC: stig1102 ***@***.***>; Author ***@***.***> Onderwerp: Re: [0xJacky/nginx-ui] Divide by Zero (Issue #666) If you want to know why a "divide by zero" error occurred, the page size in the app section of app.ini is not set. — Reply to this email directly, view it on GitHub<https://github.com/0xJacky/nginx-ui/issues/666#issuecomment-2439608944>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A76LGQRPLLQDQU574RFAWVDZ5OUJHAVCNFSM6AAAAABQU3IACKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYDQOJUGQ>. You are receiving this because you authored the thread.Message ID: ***@***.***>
Author
Owner

@0xJacky commented on GitHub (Oct 26, 2024):

Normally we set it to 10 or 20, you can check this link for more details: https://nginxui.com/guide/config-app.html#pagesize.

<!-- gh-comment-id:2439613132 --> @0xJacky commented on GitHub (Oct 26, 2024): Normally we set it to 10 or 20, you can check this link for more details: https://nginxui.com/guide/config-app.html#pagesize.
Author
Owner

@stig1102 commented on GitHub (Oct 26, 2024):

Oke, Its working thx for al your trouble.


Van: Jacky @.>
Verzonden: zaterdag 26 oktober 2024 17:02
Aan: 0xJacky/nginx-ui @.
>
CC: stig1102 @.>; Author @.>
Onderwerp: Re: [0xJacky/nginx-ui] Divide by Zero (Issue #666)

Normally we set it to 10 or 20, you can check this link for more details: https://nginxui.com/guide/config-app.html#pagesize.


Reply to this email directly, view it on GitHubhttps://github.com/0xJacky/nginx-ui/issues/666#issuecomment-2439613132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A76LGQQATBOSMVTRM6CUVRTZ5OVG7AVCNFSM6AAAAABQU3IACKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYTGMJTGI.
You are receiving this because you authored the thread.Message ID: @.***>

<!-- gh-comment-id:2439617736 --> @stig1102 commented on GitHub (Oct 26, 2024): Oke, Its working thx for al your trouble. ________________________________ Van: Jacky ***@***.***> Verzonden: zaterdag 26 oktober 2024 17:02 Aan: 0xJacky/nginx-ui ***@***.***> CC: stig1102 ***@***.***>; Author ***@***.***> Onderwerp: Re: [0xJacky/nginx-ui] Divide by Zero (Issue #666) Normally we set it to 10 or 20, you can check this link for more details: https://nginxui.com/guide/config-app.html#pagesize. — Reply to this email directly, view it on GitHub<https://github.com/0xJacky/nginx-ui/issues/666#issuecomment-2439613132>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A76LGQQATBOSMVTRM6CUVRTZ5OVG7AVCNFSM6AAAAABQU3IACKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYYTGMJTGI>. You are receiving this because you authored the thread.Message ID: ***@***.***>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#4766
No description provided.