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
  • Brite
  • 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 - Status | Demo | Docs | Install

Translator

Translators

Private

Posts


  • One bit flipped. Now I don't know which file is real
    girishG girish

    We released backup integrity computation in 9.0 . In 9.1, we have added the verifier. At a high level, it stores sizes and hashes of the files in a file called .backupinfo alongside the backup itself. The .backupinfo is further checksummed and stored in the database so that it's signature can be verified when it's put to use.

    The main intention was to catch bugs in the backup logic and also to theoretically detect bitrot. While testing, we already found some bugs in the rsync logic. There was a situation where the code will not delete non-existent files and the backup will end up with superfluous files.

    Generally, my approach has been to blame the code whenever I see an integrity check fail. Today, I noticed that my own backups are failing integrity checks. Debugging further, I found that exactly one video file fails the check. The size of the file matches but the hash is different. I found this (built-in) tool called cmp:

    # cmp VID_20200712_143638936.mp4 '/home/yellowtent/appsdata/19709657-2cf0-4d3f-8b79-429429d95b17/data/libraries/photos/USA - Jul 2020/VID_20200712_143638936.mp4'
    VID_20200712_143638936.mp4 /home/yellowtent/appsdata/19709657-2cf0-4d3f-8b79-429429d95b17/data/libraries/photos/USA - Jul 2020/VID_20200712_143638936.mp4 differ: byte 26595693, line 101836
    

    OK, so it differs in byte 26595693 . I found that I can start checking other bytes from an offset using the -i arg.

    # cmp -i 30000000 VID_20200712_143638936.mp4 '/home/yellowtent/appsdata/19709657-2cf0-4d3f-8b79-429429d95b17/data/libraries/photos/USA - Jul 2020/VID_20200712_143638936.mp4'
    <nothing>
    

    OK, so it is fine from offset 30000000 to EOF (which was 84666735).

    Bisecting slowly.... mostly because I thought I was going to find the unthinkable.. and I did!

    # cmp -i 26595693 VID_20200712_143638936.mp4 '/home/yellowtent/appsdata/19709657-2cf0-4d3f-8b79-429429d95b17/data/libraries/photos/USA - Jul 2020/VID_20200712_143638936.mp4'
    <nothing>
    

    Wow.. actual bitrot in offset 26595692 . Well , what's in that specific byte?

    # xxd -b -l 1 -s 26595692 VID_20200712_143638936.mp4
    0195d16c: 01010011                                               S
    # xxd -b -l 1 -s 26595692 '/home/yellowtent/appsdata/19709657-2cf0-4d3f-8b79-429429d95b17/data/libraries/photos/USA - Jul 2020/VID_20200712_143638936.mp4'
    0195d16c: 00010011                                               .
    

    Wow, 1-bit flipped. I have never seen this in real life 😄 I wish this was a text file, because I don't know which is corrupt now - the backup or the original 🤔

    This whole thing got me unreasonably excited, thanks for coming to my TED talk.

    Discuss

  • Anyone having luck with the API endpoint?
    luckowL luckow

    I followed https://docs.castopod.org/next/en/api/ but can't seem to connect to any endpoint. Maybe I just need a little kickstart. 🙂

    Castopod

  • Cannot access documents since last update - CryptPad is failing to load OnlyOffice
    archosA archos

    Hi, tested on Firefox 148.0 on Arch Linux and Safari on iOS. Issue persists in a private/incognito window with no extensions. Older documents still fail to open.

    CryptPad nginx csp hsts

  • Funkwhale is now available
    girishG girish

    Funkwhale is a community-driven project that lets you listen and share music and audio within a decentralized, open network.

    Forum category is at https://forum.cloudron.io/category/219/funkwhale
    The docs will be at https://docs.cloudron.io/packages/funkwhale/
    Package repo is at https://git.cloudron.io/packages/funkwhale-app

    Thanks to @rmdes for the initial package!

    Announcements

  • Funkwhale - A modern, convivial and free music server
    girishG girish

    hi yes, thanks @rmdes . Let's discuss any issues in the Funkwhale category.

    App Wishlist

  • What's coming in 9.1
    girishG girish

    App updates are already separate from Cloudron updates. But maybe you mean the separation of the automatic update flag , will get to that in the coming releases .

    Announcements

  • Nextcloud 33 Appears on Git but Not Released - Any News?
    girishG girish

    The .0 releases are always buggy. So, we skip those and wait for .1 . That also gives the nextcloud plugins some time to catch up with the latest release.

    Nextcloud

  • Cannot access documents since last update - CryptPad is failing to load OnlyOffice
    archosA archos

    Hi, thanks for the update. The new package seems to fix the issue for new documents, but older documents still fail to open with the same error.

    CryptPad nginx csp hsts

  • Latest OpenWebUI with Openterminal
    girishG girish

    I guess this has to be added as an optional supervisor process - https://github.com/open-webui/open-terminal/

    cc @vladimir.d

    OpenWebUI

  • Add AI as a app category
    girishG girish

    AI makes sense, will add.

    Discuss

Member List

girishG girish
archosA archos
I IniBudi
tomkasT tomkas
J jayonrails
BartoszKaszewczukB BartoszKaszewczuk
WiseMetalheadW WiseMetalhead
mdreiraM mdreira
P p44
hiyukoimH hiyukoim
F fengchang
luckowL luckow
imc67I imc67
BenoitB Benoit
  • Login

  • Don't have an account? Register

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