mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1131] The backup function seems not working #3718
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#3718
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 @Purgepyro on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1131
Originally assigned to: @0xJacky, @akinoccc on GitHub.
Describe the bug
When I try to create a backup and make it download to my computer, it prompts server error
To Reproduce
(This only happens when nginx-ui run behind nginx reverse proxy.
Expected behavior
/
Screenshots
Info (please complete the following information):
@0xJacky commented on GitHub (Jun 11, 2025):
Please provide the reverse proxy configuration. Thanks.
@Purgepyro commented on GitHub (Jun 11, 2025):
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
server_name /
listen 443 ssl;
listen 443 quic;
http2 on;
http3_hq on;
quic_gso on;
quic_retry on;
add_header alt-svc 'h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-27=":443"; ma=86400' always;
add_header QUIC-Status $http3;
ssl_early_data on;
ssl_certificate /
ssl_certificate_/
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:9000/;
}
}
@0xJacky commented on GitHub (Jun 11, 2025):
Can you execute the following command in the terminal to see the live logs of nginx-ui:
Then click the "Create Backup" button to see if errors are outputted in the terminal.
And check by using F12 to see if there are any abnormalities in the network requests.
@Purgepyro commented on GitHub (Jun 11, 2025):
Jun 11 06:52:22 DMIT-DEB12 nginx-ui[1873]: 2025-06-11 06:52:22 INFO backup/backup.go:183 Backup created successfully: backup-20250611-065219.zip (size: 18164145 bytes)
Jun 11 06:52:22 DMIT-DEB12 nginx-ui[1873]: [GIN] 2025/06/11 - 06:52:22 | 200 | 2.226122111s | 154.17.0.44 | GET "/api/backup"
Also, i don't see any errors in developer tools, their status codes are all 200 or 204
@0xJacky commented on GitHub (Jun 11, 2025):
Can you try to remove the configs about h3?
@Purgepyro commented on GitHub (Jun 11, 2025):
I have tried to make the client only use h2 to communicate with server and it works.
@Purgepyro commented on GitHub (Jun 11, 2025):
I guess it is problem of h3
@0xJacky commented on GitHub (Jun 11, 2025):
It's not clear what the reason is. However, when I enabled h3 in nginx 1.28.0, the backup could still be exported normally. Here is my configuration.
@Purgepyro commented on GitHub (Jun 11, 2025):
That is really weird
@Purgepyro commented on GitHub (Jun 11, 2025):
Do you confirm that you are using h3 to connect to your nginx-ui? Have you checked it through F12?
@0xJacky commented on GitHub (Jun 13, 2025):
Yes, I am using h3 to connect to my nginx-ui.

Tested on Firefox
Tested on Edge
@Purgepyro commented on GitHub (Jun 13, 2025):
I think I find something, this backup api timeout.
@0xJacky commented on GitHub (Jun 13, 2025):
Timeout in 5s? This is abnormal.
@Purgepyro commented on GitHub (Jun 13, 2025):
Is this a client issue, server issue, or nginx-ui issue?
@akinoccc commented on GitHub (Jun 14, 2025):
It is nginx-ui issue, will be fixed at next version.