mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1371] Error when restore from backup #6537
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#6537
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 @khoazero123 on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1371
Describe the bug
When I restore from a backup, after logging back in and going to the "Sites List" page, there is an error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error. All file in folder
/etc/nginx/modules-enabled/should be file, not directory.Screenshots
If applicable, add screenshots to help explain your problem.
Info (please complete the following information):
Additional context
Add any other context about the problem here.
@0xJacky commented on GitHub (Oct 4, 2025):
Please provide the output of "ls -la /etc/nginx/modules-enabled/" from the old machine and the same command from the new machine.
@khoazero123 commented on GitHub (Oct 4, 2025):
Here is output on old machine:
Here is output on new machine:
@0xJacky commented on GitHub (Oct 4, 2025):
Does the file /usr/share/nginx/modules-available/mod-http-image-filter.conf exist on the new machine?
@khoazero123 commented on GitHub (Oct 4, 2025):
Yes mate, They are exists before I restore. After I restore from backup, those files became folders
@0xJacky commented on GitHub (Oct 4, 2025):
Could you please provide the output of "nginx -V" on the new machine?
@khoazero123 commented on GitHub (Oct 4, 2025):
Both are use same version
@0xJacky commented on GitHub (Oct 4, 2025):
The issue is due to the security mechanism limitations of the Nginx UI backup and restore function. Since the new module-path is /usr/lib/nginx/modules, and the symbolic link attempts to link to the files in /usr/share/nginx/modules-available, it was reverted to creating a folder. It seems that the security mechanism has been correctly activated, but the creation of the folder was unexpected. I should fix this and change the setting so that no folder is created in this situation.
@khoazero123 commented on GitHub (Oct 4, 2025):
Ok mate.