Skip to content

Error when restore from backup #1371

@khoazero123

Description

@khoazero123

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.

Metadata

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