mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #131] invalid memory address or nil pointer dereference #4499
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#4499
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skrilax91 on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/131
Describe the bug
after a fresh install on IONOS ubuntu 22.04 os i get this error on log when i go to the ui :
ERROR router/middleware.go:29 runtime error: invalid memory address or nil pointer dereferencefrom what i could see this unhandled error happens because something else returns an error, so i know that solving this error will not solve my problem, but it prevents me from having the right message allowing me to understand the real mistake
To Reproduce
Expected behavior
A clear and concise description of the error
Screenshots

Info (please complete the following information):
@0xJacky commented on GitHub (Jun 2, 2023):
Hi, this issue was resolved in v2.0.0 beta. I can explain why it was throwing a runtime error. It was caused by the auto-cert goroutine, which was trying to access the db pointer. However this pointer could be nil until you visit
<your_domain>/installto install nginx-ui. Thus, the recovery function will print this error in the console.In v2.0.0, I have enhanced the recovery function, and now it can be able to print the call stack if a panic occurs.
And also, in v2.0.0 the auto-cert goroutine will not start until you install the nginx-ui via
<your_domain>/install.@skrilax91 commented on GitHub (Jun 2, 2023):
Thanks for your answer, the problem is that i am not able to go to x.x.x.x:9000/install, i am always redirect to the dashboard
@skrilax91 commented on GitHub (Jun 2, 2023):
My bad, i need to go to x.x.x.x:9000/#/install
@skrilax91 commented on GitHub (Jun 2, 2023):
It's working now, thanks you for the help !
@jflad17 commented on GitHub (Oct 20, 2024):
Thank you for this, this solved the issue I mentioned on https://github.com/0xJacky/nginx-ui/issues/612