[GH-ISSUE #110] [AutoCert] Recover runtime error: invalid memory address or nil pointer dereference #5841

Closed
opened 2026-03-01 17:07:27 +03:00 by kerem · 3 comments
Owner

Originally created by @ZoutigeWolf on GitHub (Apr 29, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/110

I just installed nginx-ui on ubuntu server with the linux installscript but when i start the service with sudo systemctl start nginx-ui it gives me this output in the systemctl status:

nginx-ui.service - Yet another WebUI for Nginx
     Loaded: loaded (/etc/systemd/system/nginx-ui.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2023-04-29 17:37:08 UTC; 7min ago
       Docs: https://github.com/0xJacky/nginx-ui
   Main PID: 1147044 (nginx-ui)
      Tasks: 20 (limit: 9155)
     Memory: 34.9M
        CPU: 3.859s
     CGroup: /system.slice/nginx-ui.service
             ├─1147044 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
             └─1147070 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini

Apr 29 17:37:08 zoutige-server systemd[1]: Started Yet another WebUI for Nginx.
Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 Nginx config dir path: /etc/nginx
Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [AutoCert] Start
Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [Nginx UI] RecordServerAnalytic Started
Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [AutoCert] Recover runtime error: invalid memory address or nil pointer dereference

It looks like AutoCert is having memory issues.
Would it be possible to run nginx-ui without ssl?

To Reproduce
Steps to reproduce the behavior:

  1. Install nginx-ui with the linux installscript
  2. Run the service with sudo systemctl start nginx-ui
  3. Run sudo systemctl status nginx-ui
  4. See error

Expected behavior
I was expecting to see the install screen when visiting <server_ip>:9000/install but i got a timeout instead

Info

  • Server OS: Ubuntu 22.04.2
  • Server Arch: LTS x86_64
  • Nginx UI Version: 1.8.3
  • Browser: Arc, Safari
Originally created by @ZoutigeWolf on GitHub (Apr 29, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/110 I just installed nginx-ui on ubuntu server with the linux installscript but when i start the service with `sudo systemctl start nginx-ui` it gives me this output in the systemctl status: ``` nginx-ui.service - Yet another WebUI for Nginx Loaded: loaded (/etc/systemd/system/nginx-ui.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2023-04-29 17:37:08 UTC; 7min ago Docs: https://github.com/0xJacky/nginx-ui Main PID: 1147044 (nginx-ui) Tasks: 20 (limit: 9155) Memory: 34.9M CPU: 3.859s CGroup: /system.slice/nginx-ui.service ├─1147044 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini └─1147070 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini Apr 29 17:37:08 zoutige-server systemd[1]: Started Yet another WebUI for Nginx. Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 Nginx config dir path: /etc/nginx Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [AutoCert] Start Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [Nginx UI] RecordServerAnalytic Started Apr 29 17:37:09 zoutige-server nginx-ui[1147070]: 2023/04/29 17:37:09 [AutoCert] Recover runtime error: invalid memory address or nil pointer dereference ``` It looks like AutoCert is having memory issues. Would it be possible to run nginx-ui without ssl? **To Reproduce** Steps to reproduce the behavior: 1. Install nginx-ui with the linux installscript 2. Run the service with `sudo systemctl start nginx-ui` 3. Run `sudo systemctl status nginx-ui` 4. See error **Expected behavior** I was expecting to see the install screen when visiting `<server_ip>:9000/install` but i got a timeout instead **Info** - Server OS: Ubuntu 22.04.2 - Server Arch: LTS x86_64 - Nginx UI Version: 1.8.3 - Browser: Arc, Safari
kerem 2026-03-01 17:07:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ZoutigeWolf commented on GitHub (Apr 29, 2023):

Looks like nginx-ui requires you to run it with ssl through nginx.
I added the nginx-ui to my nginx configuration with an ssl certificate and now it works.

<!-- gh-comment-id:1528842166 --> @ZoutigeWolf commented on GitHub (Apr 29, 2023): Looks like nginx-ui requires you to run it with ssl through nginx. I added the nginx-ui to my nginx configuration with an ssl certificate and now it works.
Author
Owner

@0xJacky commented on GitHub (Apr 30, 2023):

If you’re using a cloud server, please make sure that port 9000 is open.

<!-- gh-comment-id:1528916514 --> @0xJacky commented on GitHub (Apr 30, 2023): If you’re using a cloud server, please make sure that port 9000 is open.
Author
Owner

@ZoutigeWolf commented on GitHub (Apr 30, 2023):

Yeah port 9000 wasn't forwarded so I had to run it through Nginx on port 443

<!-- gh-comment-id:1528923376 --> @ZoutigeWolf commented on GitHub (Apr 30, 2023): Yeah port 9000 wasn't forwarded so I had to run it through Nginx on port 443
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#5841
No description provided.