[GH-ISSUE #1371] Error when restore from backup #2797

Closed
opened 2026-02-27 12:27:14 +03:00 by kerem · 0 comments
Owner

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:

nginx: [crit] pread() "/etc/nginx/modules-enabled/50-mod-http-image-filter.conf" failed (21: Is a directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
exit status 1

To Reproduce
Steps to reproduce the behavior:

  1. Go to nginx-ui webui
  2. Click on Backup -> Backup -> Create Backup. Then I download the backup file and copied the security token.
  3. Create new nginx-ui instance then choose "Restore from Backup" -> upload the backup file and paste security token.
  4. Login to new nginx-ui instance
  5. Go to Manage Sites/Sites List -> Error

Expected behavior
No error. All file in folder /etc/nginx/modules-enabled/ should be file, not directory.

Image

Screenshots
If applicable, add screenshots to help explain your problem.

Info (please complete the following information):

  • Server OS: Ubuntu 22.04
  • Server Arch: x86
  • Nginx UI Version: 2.1.17
  • Your Browser: Chrome

Additional context
Add any other context about the problem here.

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: ``` nginx: [crit] pread() "/etc/nginx/modules-enabled/50-mod-http-image-filter.conf" failed (21: Is a directory) nginx: configuration file /etc/nginx/nginx.conf test failed exit status 1 ``` **To Reproduce** Steps to reproduce the behavior: 1. Go to nginx-ui webui 2. Click on Backup -> Backup -> Create Backup. Then I download the backup file and copied the security token. 3. Create new nginx-ui instance then choose "Restore from Backup" -> upload the backup file and paste security token. 4. Login to new nginx-ui instance 5. Go to Manage Sites/Sites List -> Error **Expected behavior** No error. All file in folder `/etc/nginx/modules-enabled/` should be file, not directory. <img width="1678" height="820" alt="Image" src="https://github.com/user-attachments/assets/4bb4f6c5-94fd-43d4-9682-4b6be39a8457" /> **Screenshots** If applicable, add screenshots to help explain your problem. **Info (please complete the following information):** - Server OS: Ubuntu 22.04 - Server Arch: x86 - Nginx UI Version: 2.1.17 - Your Browser: Chrome **Additional context** Add any other context about the problem here.
kerem 2026-02-27 12:27:14 +03:00
  • closed this issue
  • added the
    bug
    label
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#2797
No description provided.