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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Backups blocked by dodgy characters

Backups blocked by dodgy characters

Scheduled Pinned Locked Moved Support
backups
13 Posts 4 Posters 1.7k Views 4 Watching
  • 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.
    • marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by girish
      #1

      I don't mean 80's TV presenters either.

      Here's an example:

      Error uploading snapshot/path/~�filename.docx. Message: Couldn't parse the specified URI. HTTP Code: InvalidURI

      Basically the � seems ton be causing the issue.

      Any way that Cloudron can skip or rename those files so that the entire backup doesn't fail?

      The law of luck states that you are much more likely to need the backup you don't have than the ones you do.

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      nebulonN 1 Reply Last reply
      0
      • marcusquinnM marcusquinn

        I don't mean 80's TV presenters either.

        Here's an example:

        Error uploading snapshot/path/~�filename.docx. Message: Couldn't parse the specified URI. HTTP Code: InvalidURI

        Basically the � seems ton be causing the issue.

        Any way that Cloudron can skip or rename those files so that the entire backup doesn't fail?

        The law of luck states that you are much more likely to need the backup you don't have than the ones you do.

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        @marcusquinn do you happen to know which character this is? The one with the questionmark is like just a placeholder for the selected font.

        marcusquinnM 1 Reply Last reply
        0
        • nebulonN nebulon

          @marcusquinn do you happen to know which character this is? The one with the questionmark is like just a placeholder for the selected font.

          marcusquinnM Offline
          marcusquinnM Offline
          marcusquinn
          wrote on last edited by
          #3

          @nebulon It's in Nextcloud but all I see is �

          It looks like that temp file that's created when you have a .docx file open on windows, after the ~ and before the first letter.

          I don't have MS Word, so couldn't say what it is.

          I've deleted it as I need to get on and have backups running - but maybe there's a way to skip files where the URL can't be parsed and make sure all else is backed up, with just these files copied to a quarantine area or something?

          Web Design https://www.evergreen.je
          Development https://brandlight.org
          Life https://marcusquinn.com

          1 Reply Last reply
          2
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            I guess you are using rsync? With rsync, you are at the mercy of the supported characters by the backend. S3 has a set of safe characters - https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html . Most printable characters are accepted but the '?' indicates that it is some fancy non-printable character. Best bet is to either rename it or switch to tgz format...

            marcusquinnM 1 Reply Last reply
            0
            • girishG girish

              I guess you are using rsync? With rsync, you are at the mercy of the supported characters by the backend. S3 has a set of safe characters - https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html . Most printable characters are accepted but the '?' indicates that it is some fancy non-printable character. Best bet is to either rename it or switch to tgz format...

              marcusquinnM Offline
              marcusquinnM Offline
              marcusquinn
              wrote on last edited by
              #5

              @girish Yes, rsync - unfortunately, tarballs aren't an entirely free choice.

              I understand that one file might not be uploaded - but why does the whole process have to crap out?

              A 99.9999999999% backup is still significantly better than a 0% backup 😞

              Web Design https://www.evergreen.je
              Development https://brandlight.org
              Life https://marcusquinn.com

              nebulonN 1 Reply Last reply
              0
              • marcusquinnM marcusquinn

                @girish Yes, rsync - unfortunately, tarballs aren't an entirely free choice.

                I understand that one file might not be uploaded - but why does the whole process have to crap out?

                A 99.9999999999% backup is still significantly better than a 0% backup 😞

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                @marcusquinn well we can't really decide which file is crucial for an app to work and which one can be lost after a restore. So we can't mark a backup as valid, if anything goes wrong during backup as that might just mean issues get unnoticed and one has a false sense of safety, which will then only hit if the backup is really required.

                It would be good to understand which character caused this though.

                marcusquinnM 1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  I guess a way to fix is to encode local filenames accordingly and also decode to restart. Some filename mapping scheme. This will require some effort and have to see if it's worth the effort. Same thing can be used for large file names with encryption backend.

                  marcusquinnM 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    @marcusquinn well we can't really decide which file is crucial for an app to work and which one can be lost after a restore. So we can't mark a backup as valid, if anything goes wrong during backup as that might just mean issues get unnoticed and one has a false sense of safety, which will then only hit if the backup is really required.

                    It would be good to understand which character caused this though.

                    marcusquinnM Offline
                    marcusquinnM Offline
                    marcusquinn
                    wrote on last edited by
                    #8

                    @nebulon If you have access to Windows & Office, then create a .docx file and show hidden files in the Windows Explorer to see the temp file it creates while editing. It is whatever character is after the ~ and before the first letter. I can't tell from Cloudron and don't have MS Office. Anyone else here know? Sorry, I give all I have.

                    Web Design https://www.evergreen.je
                    Development https://brandlight.org
                    Life https://marcusquinn.com

                    1 Reply Last reply
                    0
                    • girishG girish

                      I guess a way to fix is to encode local filenames accordingly and also decode to restart. Some filename mapping scheme. This will require some effort and have to see if it's worth the effort. Same thing can be used for large file names with encryption backend.

                      marcusquinnM Offline
                      marcusquinnM Offline
                      marcusquinn
                      wrote on last edited by
                      #9

                      @girish Maybe - or just skip the app and backup all other apps. I just think all or nothing fails risk more than log & continue errors.

                      Web Design https://www.evergreen.je
                      Development https://brandlight.org
                      Life https://marcusquinn.com

                      girishG 1 Reply Last reply
                      1
                      • marcusquinnM marcusquinn

                        @girish Maybe - or just skip the app and backup all other apps. I just think all or nothing fails risk more than log & continue errors.

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        @marcusquinn Right, I think this was suggested elsewhere as well to have the concept of "partial backups". Currently, cloudron only has full backups.

                        marcusquinnM 1 Reply Last reply
                        0
                        • girishG girish

                          @marcusquinn Right, I think this was suggested elsewhere as well to have the concept of "partial backups". Currently, cloudron only has full backups.

                          marcusquinnM Offline
                          marcusquinnM Offline
                          marcusquinn
                          wrote on last edited by
                          #11

                          @girish *If * there's not a single dodgy character in any Apps.

                          So, are you saying it is not possible top backup the main server and all other apps if just one App has a dodgy character in it?

                          It seems to me that if the system can write the error, then it is still functioning, but chooses to fail on that error than log and continue.

                          Not sure what to say, doesn't seem like a technical impossibility to me, more one of strategy and persuasion.

                          If there's a way to vote on it, I vote for 99.999999999% backups being preferred to 0% backups. What you can do with that I really don't know.

                          I can contribute in many ways but this might be a gatekeeper issue, so I'll leave that with you all to debate, and have to set myself a calendar reminder to check that page every time for errors to then hunt and delete the offending MS Office files.

                          Web Design https://www.evergreen.je
                          Development https://brandlight.org
                          Life https://marcusquinn.com

                          nebulonN 1 Reply Last reply
                          0
                          • marcusquinnM marcusquinn

                            @girish *If * there's not a single dodgy character in any Apps.

                            So, are you saying it is not possible top backup the main server and all other apps if just one App has a dodgy character in it?

                            It seems to me that if the system can write the error, then it is still functioning, but chooses to fail on that error than log and continue.

                            Not sure what to say, doesn't seem like a technical impossibility to me, more one of strategy and persuasion.

                            If there's a way to vote on it, I vote for 99.999999999% backups being preferred to 0% backups. What you can do with that I really don't know.

                            I can contribute in many ways but this might be a gatekeeper issue, so I'll leave that with you all to debate, and have to set myself a calendar reminder to check that page every time for errors to then hunt and delete the offending MS Office files.

                            nebulonN Offline
                            nebulonN Offline
                            nebulon
                            Staff
                            wrote on last edited by
                            #12

                            @marcusquinn looks like those are two issues then. One is a full backup containing all apps and the platform and the other is the failing app backup alone.

                            I guess the second one is clear, that we can't keep that 99% backup since we don't know what failed and if that is relevant to the app.

                            The first one could have an option to exclude such an app then from the wholesome backup. Just not sure if that has unnoticed side-effects then if the whole server has to be restored, but I guess we could include the last working backup of the app in such a case?

                            robiR 1 Reply Last reply
                            0
                            • nebulonN nebulon

                              @marcusquinn looks like those are two issues then. One is a full backup containing all apps and the platform and the other is the failing app backup alone.

                              I guess the second one is clear, that we can't keep that 99% backup since we don't know what failed and if that is relevant to the app.

                              The first one could have an option to exclude such an app then from the wholesome backup. Just not sure if that has unnoticed side-effects then if the whole server has to be restored, but I guess we could include the last working backup of the app in such a case?

                              robiR Offline
                              robiR Offline
                              robi
                              wrote on last edited by
                              #13

                              @nebulon you would need a list of app backups that are allowed to fail (app store apps) and ones that aren't (system services).

                              Partial backups are only ok if an app store app gets an error.

                              Conscious tech

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Bookmarks
                                • Search