[{"data":1,"prerenderedAt":598,"buildId":599},["ShallowReactive",2],{"\u002Fgetting-started\u002Fupdating":3,"\u002Fgetting-started\u002Fupdating-surround":311,"navigation":322},{"id":4,"title":5,"body":6,"description":303,"extension":304,"meta":305,"navigation":306,"path":307,"seo":308,"stem":309,"__hash__":310},"docs\u002F1.getting-started\u002F4.updating.md","Updating Tessra",{"type":7,"value":8,"toc":298},"minimark",[9,13,18,201,208,212,215,277,280,284,294],[10,11,12],"p",{},"Tessra never updates itself. When a new image starts, it applies any database migrations before serving requests. Migrations only move forward: an older image cannot open a database that a newer one has migrated.",[14,15,17],"h2",{"id":16},"upgrade","Upgrade",[19,20,21,33,117,124,198],"ol",{},[22,23,24,25,32],"li",{},"Read the ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fgithub.com\u002FBrOstro\u002Ftessra\u002Freleases",[30],"nofollow","release notes"," for every version between yours and the new one, for anything that needs action.",[22,34,35,36],{},"Back up and check the backup:",[37,38,43],"pre",{"className":39,"code":40,"language":41,"meta":42,"style":42},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","docker compose exec tessra dotnet Tessra.Api.dll admin backup \u002Fbackups\u002F\ndocker compose exec tessra dotnet Tessra.Api.dll admin verify-backup \u002Fbackups\u002F\u003Cfile>\n","bash","",[44,45,46,80],"code",{"__ignoreMap":42},[47,48,51,55,59,62,65,68,71,74,77],"span",{"class":49,"line":50},"line",1,[47,52,54],{"class":53},"sbgvK","docker",[47,56,58],{"class":57},"s_sjI"," compose",[47,60,61],{"class":57}," exec",[47,63,64],{"class":57}," tessra",[47,66,67],{"class":57}," dotnet",[47,69,70],{"class":57}," Tessra.Api.dll",[47,72,73],{"class":57}," admin",[47,75,76],{"class":57}," backup",[47,78,79],{"class":57}," \u002Fbackups\u002F\n",[47,81,83,85,87,89,91,93,95,97,100,103,107,110,114],{"class":49,"line":82},2,[47,84,54],{"class":53},[47,86,58],{"class":57},[47,88,61],{"class":57},[47,90,64],{"class":57},[47,92,67],{"class":57},[47,94,70],{"class":57},[47,96,73],{"class":57},[47,98,99],{"class":57}," verify-backup",[47,101,102],{"class":57}," \u002Fbackups\u002F",[47,104,106],{"class":105},"smGrS","\u003C",[47,108,109],{"class":57},"fil",[47,111,113],{"class":112},"su5hD","e",[47,115,116],{"class":105},">\n",[22,118,119,120,123],{},"Note the image you are running now, so you can go back: ",[44,121,122],{},"docker compose images tessra",".",[22,125,126,127,130,131,134,135,138,139],{},"For a new minor version, change the image tag in ",[44,128,129],{},"compose.yaml"," (for example ",[44,132,133],{},"ghcr.io\u002Fbrostro\u002Ftessra:0.1"," to ",[44,136,137],{},":0.2","). For a patch release on the tag you already use, leave it as it is. Then:",[37,140,142],{"className":39,"code":141,"language":41,"meta":42,"style":42},"docker compose pull\ndocker compose up -d\ndocker compose ps          # wait for \"healthy\"\ndocker compose logs tessra --since 5m\n",[44,143,144,153,166,180],{"__ignoreMap":42},[47,145,146,148,150],{"class":49,"line":50},[47,147,54],{"class":53},[47,149,58],{"class":57},[47,151,152],{"class":57}," pull\n",[47,154,155,157,159,162],{"class":49,"line":82},[47,156,54],{"class":53},[47,158,58],{"class":57},[47,160,161],{"class":57}," up",[47,163,165],{"class":164},"stzsN"," -d\n",[47,167,169,171,173,176],{"class":49,"line":168},3,[47,170,54],{"class":53},[47,172,58],{"class":57},[47,174,175],{"class":57}," ps",[47,177,179],{"class":178},"sutJx","          # wait for \"healthy\"\n",[47,181,183,185,187,190,192,195],{"class":49,"line":182},4,[47,184,54],{"class":53},[47,186,58],{"class":57},[47,188,189],{"class":57}," logs",[47,191,64],{"class":57},[47,193,194],{"class":164}," --since",[47,196,197],{"class":57}," 5m\n",[22,199,200],{},"Sign in, open a file, and upload a test screenshot from ShareX.",[10,202,203,204,207],{},"Only one Tessra server can use a data directory at a time. If the new container fails to start with \"Another Tessra process is using the data directory\", the old one is still running; ",[44,205,206],{},"docker compose up -d"," normally replaces it.",[14,209,211],{"id":210},"roll-back","Roll back",[10,213,214],{},"If the new version does not work:",[19,216,217,223,226],{},[22,218,219,220,123],{},"Stop it: ",[44,221,222],{},"docker compose stop tessra",[22,224,225],{},"Set the image back to the previous tag.",[22,227,228,229],{},"If the new version migrated the database, the old version will not open it. Restore the backup from step 2 with the old image:",[37,230,232],{"className":39,"code":231,"language":41,"meta":42,"style":42},"docker compose run --rm tessra admin restore \u002Fbackups\u002F\u003Cfile> --force\ndocker compose up -d\n",[44,233,234,267],{"__ignoreMap":42},[47,235,236,238,240,243,246,248,250,253,255,257,259,261,264],{"class":49,"line":50},[47,237,54],{"class":53},[47,239,58],{"class":57},[47,241,242],{"class":57}," run",[47,244,245],{"class":164}," --rm",[47,247,64],{"class":57},[47,249,73],{"class":57},[47,251,252],{"class":57}," restore",[47,254,102],{"class":57},[47,256,106],{"class":105},[47,258,109],{"class":57},[47,260,113],{"class":112},[47,262,263],{"class":105},">",[47,265,266],{"class":164}," --force\n",[47,268,269,271,273,275],{"class":49,"line":82},[47,270,54],{"class":53},[47,272,58],{"class":57},[47,274,161],{"class":57},[47,276,165],{"class":164},[10,278,279],{},"Anything uploaded between the backup and the rollback is lost from the database, so roll back soon or copy those files out first.",[14,281,283],{"id":282},"supported-upgrade-paths","Supported upgrade paths",[10,285,286,287,290,291,293],{},"Each release's notes list the versions it upgrades from. Upgrading from a ",[44,288,289],{},"main"," build to the release that follows it works, but builds of ",[44,292,289],{}," between releases are not tested as upgrade sources.",[295,296,297],"style",{},"html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}",{"title":42,"searchDepth":82,"depth":168,"links":299},[300,301,302],{"id":16,"depth":82,"text":17},{"id":210,"depth":82,"text":211},{"id":282,"depth":82,"text":283},"Move to a new release safely, and roll back if something goes wrong.","md",{},true,"\u002Fgetting-started\u002Fupdating",{"title":5,"description":303},"1.getting-started\u002F4.updating","tjVneCFQS-d6ZIzb-j_Af-TM5kCpGJB8WWY5Rks9IAs",[312,317],{"title":313,"path":314,"stem":315,"description":316,"children":-1},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex","Create a ShareX token, import the ready-made config, and choose what ShareX copies after each upload.",{"title":318,"path":319,"stem":320,"description":321,"children":-1},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading","Upload from the browser, by pasting, from ShareX or through the API, and what happens when an upload is interrupted.",[323,337,373,417,428,447,458,501,536,550,566],{"title":324,"path":325,"stem":326,"children":327,"icon":336},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[328,330,334,335],{"title":329,"path":325,"stem":326},"Introduction",{"title":331,"path":332,"stem":333},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":313,"path":314,"stem":315},{"title":5,"path":307,"stem":309},"i-lucide-rocket",{"title":338,"icon":339,"path":340,"stem":341,"children":342,"page":372},"Library","i-lucide-folder","\u002Flibrary","2.library",[343,344,348,352,356,360,364,368],{"title":318,"path":319,"stem":320},{"title":345,"path":346,"stem":347},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":349,"path":350,"stem":351},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":353,"path":354,"stem":355},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":357,"path":358,"stem":359},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":361,"path":362,"stem":363},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":365,"path":366,"stem":367},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":369,"path":370,"stem":371},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":374,"path":375,"stem":376,"children":377,"icon":416},"Automations","\u002Fautomations","3.automations\u002F01.index",[378,380,384,388,392,396,400,404,408,412],{"title":379,"path":375,"stem":376},"Overview",{"title":381,"path":382,"stem":383},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":385,"path":386,"stem":387},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":389,"path":390,"stem":391},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":393,"path":394,"stem":395},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":397,"path":398,"stem":399},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":401,"path":402,"stem":403},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":405,"path":406,"stem":407},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":409,"path":410,"stem":411},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":413,"path":414,"stem":415},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":418,"path":419,"stem":420,"children":421,"icon":427},"Connections","\u002Fconnections","4.connections\u002F1.index",[422,423],{"title":379,"path":419,"stem":420},{"title":424,"path":425,"stem":426},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":429,"path":430,"stem":431,"children":432,"icon":446},"AI","\u002Fai","5.ai\u002F1.index",[433,434,438,442],{"title":379,"path":430,"stem":431},{"title":435,"path":436,"stem":437},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":439,"path":440,"stem":441},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":443,"path":444,"stem":445},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":448,"path":449,"stem":450,"children":451,"icon":457},"OCR","\u002Focr","5.ocr\u002F1.index",[452,453],{"title":379,"path":449,"stem":450},{"title":454,"path":455,"stem":456},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":459,"path":460,"stem":461,"children":462,"icon":500},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[463,464,468,472,476,480,484,488,492,496],{"title":379,"path":460,"stem":461},{"title":465,"path":466,"stem":467},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":469,"path":470,"stem":471},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":473,"path":474,"stem":475},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":477,"path":478,"stem":479},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":481,"path":482,"stem":483},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":485,"path":486,"stem":487},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":489,"path":490,"stem":491},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":493,"path":494,"stem":495},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":497,"path":498,"stem":499},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":502,"path":503,"stem":504,"children":505,"icon":535},"Guides","\u002Fguides","7.guides\u002F1.index",[506,507,511,515,519,523,527,531],{"title":379,"path":503,"stem":504},{"title":508,"path":509,"stem":510},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":512,"path":513,"stem":514},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":516,"path":517,"stem":518},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":520,"path":521,"stem":522},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":524,"path":525,"stem":526},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":528,"path":529,"stem":530},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":532,"path":533,"stem":534},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":537,"icon":538,"path":539,"stem":540,"children":541,"page":372},"Reference","i-lucide-library","\u002Freference","8.reference",[542,546],{"title":543,"path":544,"stem":545},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":547,"path":548,"stem":549},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":551,"path":552,"stem":553,"children":554,"icon":565},"Development","\u002Fdevelopment","9.development\u002F1.index",[555,557,561],{"title":556,"path":552,"stem":553},"Local development",{"title":558,"path":559,"stem":560},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":562,"path":563,"stem":564},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":567,"path":568,"stem":569,"children":570,"icon":597},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[571,573,577,581,585,589,593],{"title":572,"path":568,"stem":569},"Comparing Tessra",{"title":574,"path":575,"stem":576},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":578,"path":579,"stem":580},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":582,"path":583,"stem":584},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":586,"path":587,"stem":588},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":590,"path":591,"stem":592},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":594,"path":595,"stem":596},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796303404152,"2eb8bd5e-681b-4964-b4c2-2a23ddfda32e"]