Skip to content

运行app.int的时候 runtime error: invalid memory address or nil pointer dereference #612

Closed
@excaliburKongbai

Description

Describe the bug
使用docker部署
docker run -dit
--name=nginx-ui
--restart=always
-e TZ=Asia/Shanghai
-v /mnt/user/appdata/nginx:/etc/nginx
-v /mnt/user/appdata/nginx-ui:/etc/nginx-ui
-v /home/www/web:/web
-p 8080:80 -p 8443:443
uozi/nginx-ui:latest

在根目/etc/nginx-ui 运行 nginx-ui -config app.ini发生异常空指针

Run Logs
root@6ee3e50328f2:/etc/nginx-ui# nginx-ui -config app.ini
2024/10/12 10:49:34 [overseer] disabled. run failed: listen tcp 0.0.0.0:9000: bind: address already in use
2024-10-12 10:49:34 INFO nginx-ui/main.go:20 Nginx configuration directory: /etc/nginx
2024-10-12 10:49:34 ERROR kernal/boot.go:67 runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
github.com/0xJacky/Nginx-UI/internal/kernal.recovery()
/home/runner/work/nginx-ui/nginx-ui/internal/kernal/boot.go:66 +0x65
panic({0x36ce840?, 0x7594300?})
/opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x132
github.com/0xJacky/Nginx-UI/internal/kernal.RegisterAcmeUser()
/home/runner/work/nginx-ui/nginx-ui/internal/kernal/register_acme_user.go:10 +0x2c
github.com/0xJacky/Nginx-UI/internal/kernal.Boot()
/home/runner/work/nginx-ui/nginx-ui/internal/kernal/boot.go:40 +0xa2
main.Program({0x0, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, ...}, ...})
/home/runner/work/nginx-ui/nginx-ui/main.go:22 +0xac
github.com/jpillora/overseer.Run({0x0, 0x477f8d0, {0xc0013c2fe0, 0xc}, {0x0, 0x0, 0x0}, {0x0, 0x0}, 0x12a05f200, ...})
/home/runner/go/pkg/mod/github.com/jpillora/overseer@v1.1.6/overseer.go:106 +0x215
main.main()
/home/runner/work/nginx-ui/nginx-ui/main.go:43 +0x2fd

2024-10-12 10:49:34 INFO nginx-ui/main.go:31 Server exited

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions