Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Error Copying Backup: InvalidObjectName: null

    Support
    backups encryption
    3
    11
    449
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JLX89 last edited by girish

      Hello,
      I seem to be having an issue where Nextcloud backups aren't working properly. As of the past few days everything seems to have been working fine, but since yesterday I started getting the following error:

      box:backups [Nextcloud Domain] Unable to backup { BoxError: Error copying [DO Spaces Backup Name]: 
      InvalidObjectName InvalidObjectName: null
      at Response.done (/home/yellowtent/box/src/storage/s3.js:247:52)
      at Request.<anonymous> (/home/yellowtent/box/node_modules/aws-sdk/lib/request.js:369:18)
      at Request.callListeners (/home/yellowtent/box/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
      at Request.emit (/home/yellowtent/box/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
      at Request.emit (/home/yellowtent/box/node_modules/aws-sdk/lib/request.js:688:14)
      at Request.transition (/home/yellowtent/box/node_modules/aws-sdk/lib/request.js:22:10)
      at AcceptorStateMachine.runTo (/home/yellowtent/box/node_modules/aws-sdk/lib/state_machine.js:14:12)
      at /home/yellowtent/box/node_modules/aws-sdk/lib/state_machine.js:26:10
      at Request.<anonymous> (/home/yellowtent/box/node_modules/aws-sdk/lib/request.js:38:9)
      at Request.<anonymous> (/home/yellowtent/box/node_modules/aws-sdk/lib/request.js:690:12)
      name: 'BoxError',
      reason: 'External Error',
      details: {},
      message: InvalidObjectName InvalidObjectName: null'
      

      Any help with this would be greatly appreciated!

      Thank you!

      robi 1 Reply Last reply Reply Quote 0
      • robi
        robi @JLX89 last edited by

        @jlx89 what is your backup configuration like?

        Life of Advanced Technology

        J 1 Reply Last reply Reply Quote 0
        • J
          JLX89 @robi last edited by

          @robi I'm hosting with OVH (US) and backing up to DigitalOcean Spaces (NY3).

          robi 1 Reply Last reply Reply Quote 0
          • robi
            robi @JLX89 last edited by

            @jlx89 that doesn't answer my question.

            Go to your backup settings and tell us what they are set to.

            Life of Advanced Technology

            J 1 Reply Last reply Reply Quote 0
            • J
              JLX89 @robi last edited by

              @robi I'm using that setup, backups are setup to use rsync, schedule is set to everyday at 11pm, retention is setup for 1 week. Backups seem to be working for all apps, except Nextcloud.

              robi 1 Reply Last reply Reply Quote 0
              • robi
                robi @JLX89 last edited by

                @jlx89 are they encrypted?

                Life of Advanced Technology

                J 1 Reply Last reply Reply Quote 0
                • J
                  JLX89 @robi last edited by

                  @robi Yes, they are.

                  robi 1 Reply Last reply Reply Quote 0
                  • robi
                    robi @JLX89 last edited by

                    @jlx89 take a look at these:
                    https://forum.cloudron.io/search?term=nextcloud backup encryption&in=titlesposts

                    try a manual backup
                    try turning off encryption

                    Life of Advanced Technology

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      JLX89 @robi last edited by

                      @robi Yes, that seems to have been the problem -- I turned off encryption and it seems to have worked out. Even manual backups were failing, just changed it back and it failed again. This seems to have happened right around the upgrade to 6.1.1. I'll have to dig into the issue more. I really appreciate your help!

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @JLX89 last edited by

                        @jlx89 In rsync mode + encryption, there are filename length limitations - https://docs.cloudron.io/backups/#encryption . You can run the command below to see if you have large filenames (you have to run this in Nextcloud's web terminal):

                        cd /app/data
                        find . -type f -printf "%f\n" | awk '{ print length(), $0 | "sort -rn" }' | less
                        
                        J 1 Reply Last reply Reply Quote 1
                        • J
                          JLX89 @girish last edited by

                          @girish Thanks! This ended up being a combination of issues I believe. So throttling on the backups due to using rsync, encryption, and file names ended up being too long (only a few) So I've changed some settings around and it seems to have been resolved. I appreciate the help from both @robi and yourself.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB