Misc errors in rdiffweb

12 views
Skip to first unread message

Duane Abrames

unread,
May 21, 2025, 2:10:43 PMMay 21
to rdiffweb
I am running rdiffweb inside a Docker container on Unraid.  (github for the container is here: https://github.com/waazaa-fr/rdiff-backup-rdiffweb)

When I try to click down into the repository to an individual file, I get a 500 error, and when I attempt to remove a repository, I see this: 
Oops! 400 Bad Request

Sorry, an error has occured.

Confirmation: This field is required.

I'm not sure if this is a permissions issue, or if there is something obvious I am not doing right.  Any help on finding the source of these issues would be appreciated.  Here is a log snippet:

[2025-05-21 13:46:16,706][INFO   ][192.168.35.201][anonymous][CP Server Thread-3][cherrypy.error] ENGINE Started monitor thread 'Session cleanup'.
[2025-05-21 13:46:20,841][INFO   ][192.168.35.201][anonymous][CP Server Thread-10][auth] User admin login to web application
[2025-05-21 13:46:20,876][INFO   ][192.168.35.201][admin][CP Server Thread-8][activity] New repository named  has been added for the user admin
[2025-05-21 13:46:20,877][INFO   ][192.168.35.201][admin][CP Server Thread-8][rdiffweb.core.notification] can't sent mail to user [admin] without an email
[2025-05-21 13:52:47,807][ERROR  ][192.168.35.201][admin][CP Server Thread-11][rdiffweb.core.librdiff] rdiffweb-restore: restoring data into temporary folder: b'/tmp/rdiffweb_restore_9jv9aw4m'
executing [b'/usr/local/bin/rdiff-backup', b'-v', b'5', b'--restore-as-of=1747774186', b'/backups/Troma/Dark Lullabies - An Anthology by Michael Coulombe (2020)/Dark Lullabies - An Anthology by Michael Coulombe (2020).mkv', b'/tmp/rdiffweb_restore_9jv9aw4m'] with env {'LANG': 'en_US.utf-8'}
rdiff-backup: b'Unable to import module (py)xattr. Extended attributes not supported on filesystem at path /backups/rdiff-backup-data'
rdiff-backup: b'Unable to import module posix1e from pylibacl package. POSIX ACLs not supported on filesystem at path /backups/rdiff-backup-data'
rdiff-backup: b'Unable to import win32security module. Windows ACLs not supported by filesystem at path /backups/rdiff-backup-data'
rdiff-backup: b"Could not determine if source directory /backups/rdiff-backup-data permits trailing spaces or periods in filenames because we can't find any files with trailing dot/period. It will be treated as permitting such files, but none will exist if it doesn't, so it doesn't really matter and is harmless"
rdiff-backup: b'-----------------------------------------------------------------'
rdiff-backup: b'Detected abilities for rdiff-backup repository (read only) file system:'
rdiff-backup: b'  Access control lists                         Off'
rdiff-backup: b'  Extended attributes                          Off'
rdiff-backup: b'  Windows access control lists                 Off'
rdiff-backup: b'  Case sensitivity                             On'
rdiff-backup: b'  Escape DOS devices                           Off'
rdiff-backup: b'  Escape trailing spaces                       Off'
rdiff-backup: b'  Mac OS X style resource forks                Off'
rdiff-backup: b'  Mac OS X Finder information                  Off'
rdiff-backup: b'-----------------------------------------------------------------'
rdiff-backup: b'Unable to import module (py)xattr. Extended attributes not supported on filesystem at path /tmp/rdiffweb_restore_9jv9aw4m/rdiff-backup.tmp.0'
rdiff-backup: b'Unable to import module posix1e from pylibacl package. POSIX ACLs not supported on filesystem at path /tmp/rdiffweb_restore_9jv9aw4m/rdiff-backup.tmp.0'
rdiff-backup: b'Unable to import win32security module. Windows ACLs not supported by filesystem at path /tmp/rdiffweb_restore_9jv9aw4m/rdiff-backup.tmp.0'
rdiff-backup: b'-----------------------------------------------------------------'
rdiff-backup: b'Detected abilities for restore target (read/write) file system:'
rdiff-backup: b'  Ownership changing                           On'
rdiff-backup: b'  Hard linking                                 On'
rdiff-backup: b'  fsync() directories                          On'
rdiff-backup: b'  Directory inc permissions                    On'
rdiff-backup: b'  High-bit permissions                         On'
rdiff-backup: b'  Symlink permissions                          Off'
rdiff-backup: b'  Extended filenames                           On'
rdiff-backup: b'  Windows reserved filenames                   Off'
rdiff-backup: b'  Access control lists                         Off'
rdiff-backup: b'  Extended attributes                          Off'
rdiff-backup: b'  Windows access control lists                 Off'
rdiff-backup: b'  Case sensitivity                             On'
rdiff-backup: b'  Escape DOS devices                           Off'
rdiff-backup: b'  Escape trailing spaces                       Off'
rdiff-backup: b'  Mac OS X style resource forks                Off'
rdiff-backup: b'  Mac OS X Finder information                  Off'
rdiff-backup: b'-----------------------------------------------------------------'
rdiff-backup: b'Backup: escape_dos_devices = False'
rdiff-backup: b'Backup: escape_trailing_spaces = False'
rdiff-backup: b'Cleaning up'

[2025-05-21 13:52:47,808][ERROR  ][192.168.35.201][admin][CP Server Thread-11][cherrypy.error.22416611473696] HTTP
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/cherrypy/_cprequest.py", line 659, in respond
    self._do_respond(path_info)
  File "/usr/local/lib/python3.12/dist-packages/cherrypy/_cprequest.py", line 718, in _do_respond
    response.body = self.handler()
                    ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/cherrypy/lib/encoding.py", line 223, in __call__
    self.body = self.oldhandler(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/rdiffweb/controller/page_restore.py", line 120, in default
    filename, fileobj = repo.restore(path, int(date), kind=kind)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/rdiffweb/core/librdiff.py", line 1242, in restore
    raise CalledProcessError(1, cmdline)
subprocess.CalledProcessError: Command '[b'/usr/bin/python3', b'-m', b'rdiffweb.core.restore', b'--restore-as-of', b'1747774186', b'--encoding', b'utf-8', b'--kind', b'raw', b'/backups/Troma/Dark Lullabies - An Anthology by Michael Coulombe (2020)/Dark Lullabies - An Anthology by Michael Coulombe (2020).mkv', b'-']' returned non-zero exit status 1.
[2025-05-21 13:52:47,876][ERROR  ][192.168.35.201][admin][CP Server Thread-11][rdiffweb.rdw_app] error page: 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.

Patrik Dufresne

unread,
May 21, 2025, 2:38:09 PMMay 21
to rdiffweb
> I am running rdiffweb inside a Docker container on Unraid.  (github for the container is here: https://github.com/waazaa-fr/rdiff-backup-rdiffweb)

The official docker image is this one: https://hub.docker.com/r/ikus060/rdiffweb

> When I try to click down into the repository to an individual file, I get a 500 error, and when I attempt to remove a repository, I see this: 
> Oops! 400 Bad Request
> Sorry, an error has occurred.
> Confirmation: This field is required.

This is obviously unexpected.

When you try to delete a repository. You should be prompted to confirm the repository name with a dialog similar to the following.

image.png

Could you confirm if this is working on your side ?


--
You received this message because you are subscribed to the Google Groups "rdiffweb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdiffweb+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rdiffweb/a722d49d-2281-44d4-afe1-52fb765a5161n%40googlegroups.com.


--
ATTENTION : Je serai en vacances du 2 au 21 mai 2025.
ATTENTION: I will be on vacation from May 2 to May 21, 2025.
IKUS Software
Message has been deleted
Message has been deleted

Duane Abrames

unread,
May 23, 2025, 8:05:51 AMMay 23
to rdiffweb
Oooh... quick response.  I think I will try your Docker image and see how I do with that.  I just found the one I am using from the Unraid application catalog. 

Screenshot 2025-05-21 144503.png

This is what my confirmation dialog looks like.  I'm guessing this means I am not running the correct version of something, or some kind of dependency is missing somewhere.  As I said above, I will try again with your official Docker and see what I get.  Thanks for the quick response!

-Duane

Duane Abrames

unread,
May 23, 2025, 8:05:55 AMMay 23
to rdiffweb
OK, I have set up the official docker.

The restore problem is gone, I can click down into files and folders just fine.  I ran a test to see what a deleted file or folder would do, just so I know how it works, and I see they show up with the grey background.  I think that's awesome, not having to dig through versions to find the file I want. 

However, I tried to delete the repository and still got the same results as above.  I usually do my personal browsing in Firefox, but I tried Chrome as well, and the confirmation dialog still looks like the one above.  Obviously, deleting a repository is not something one does every day, so that's not a huge concern.

On Wednesday, May 21, 2025 at 2:38:09 PM UTC-4 Patrik Dufresne wrote:

Patrik Dufresne

unread,
May 23, 2025, 9:12:03 AMMay 23
to rdiffweb
> However, I tried to delete the repository and still got the same results as above.  I usually do my personal browsing in Firefox, but I tried Chrome as well, and the confirmation dialog still looks like the one above.  Obviously, deleting a repository is not something one does every day, so that's not a huge concern.

This is very strange. When you open the rdiffweb interface in firefox or chrome. Could you check if there are any javascript errors using the Web Developer Tools Console ?

PS. You might also be interested in Minarca (https://minarca.org) which is based on rdiffweb but provides agents for Windows, Linux and MacOS. But the Docker Image for Minarca is still in beta.



--
** Par mesure d'efficacité, je consulte mes courriels une fois par jour.

Duane Abrames

unread,
May 23, 2025, 1:53:01 PMMay 23
to rdiffweb
I created a second small repo for testing.  I don't see any javascript errors in the console when I push the "delete" button.  I don't know if it helps, but here is the code for the delete modal, copied from Chrome's Dev tools:

<div class="modal show" id="delete-repo-modal" tabindex="-1" role="dialog" aria-labelledby="delete-repo-modal-title" aria-modal="true" style="padding-right: 15px; display: block;">
    <div class="modal-dialog">
      <div class="modal-content">
        <form action="http://192.168.35.8:8080/delete/duane/" method="post" role="form" autocomplete="off">
          <div class="modal-header">
            <h4 class="modal-title" id="delete-repo-modal-title">Confirmation required</h4>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
          </div>
          <div class="modal-body">
    <input type="hidden" name="action" value="">
    <p>You are about to permanently delete this repository. Deleted repository CANNOT be restored! Are you ABSOLUTELY sure?</p>
   
  </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-danger">Delete</button>
          </div>
        </form>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>


Just to see if it was something unintended that might have been in a recent update, I rolled my container back to 2.9.7, and observed the same behavior there. 

This issue is not a big deal for me, I really only intend to have one repository in the system anyway, so I should not need to delete one, I just found the issue because I was playing around with rdiff-backup and rdiffweb to see how they worked and get my configuration settled down.  If you have other questions, or want me to look at anything else, I am willing, but I'm also OK with the issue just being dropped, your choice.
Reply all
Reply to author
Forward
0 new messages