[{"data":1,"prerenderedAt":660},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting":235,"docs-surround:\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting":655},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,37,55,70,128,146,191,217],{"title":10,"path":6,"stem":11,"icon":12},"Hubstruct documentation","docs\u002Findex","book-open",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":36},"Getting started","rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,28,32],{"title":20,"path":21,"stem":22,"icon":23},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",null,{"title":25,"path":26,"stem":27,"icon":23},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F2.requirements",{"title":29,"path":30,"stem":31,"icon":23},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start",{"title":33,"path":34,"stem":35,"icon":23},"First steps","\u002Fdocs\u002Fgetting-started\u002Ffirst-steps","docs\u002F1.getting-started\u002F4.first-steps",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Concepts","lightbulb","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[43,47,51],{"title":44,"path":45,"stem":46,"icon":23},"How it works","\u002Fdocs\u002Fconcepts\u002Fhow-it-works","docs\u002F2.concepts\u002F1.how-it-works",{"title":48,"path":49,"stem":50,"icon":23},"Processing steps","\u002Fdocs\u002Fconcepts\u002Fprocessing","docs\u002F2.concepts\u002F2.processing",{"title":52,"path":53,"stem":54,"icon":23},"Media","\u002Fdocs\u002Fconcepts\u002Fmedia","docs\u002F2.concepts\u002F3.media",{"title":56,"path":57,"stem":58,"children":59,"icon":69},"Libraries","\u002Fdocs\u002Flibraries","docs\u002F3.libraries\u002F1.index",[60,61,65],{"title":56,"path":57,"stem":58,"icon":23},{"title":62,"path":63,"stem":64,"icon":23},"Storage","\u002Fdocs\u002Flibraries\u002Fs3","docs\u002F3.libraries\u002F3.s3",{"title":66,"path":67,"stem":68,"icon":23},"Uploading","\u002Fdocs\u002Flibraries\u002Fuploading","docs\u002F3.libraries\u002F4.uploading","layer-group",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":36},"Features","wand-magic-sparkles","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":77,"path":78,"stem":79,"icon":23},"Browsing","\u002Fdocs\u002Ffeatures\u002Fbrowsing","docs\u002F4.features\u002F01.browsing",{"title":81,"path":82,"stem":83,"icon":23},"Search","\u002Fdocs\u002Ffeatures\u002Fsearch","docs\u002F4.features\u002F02.search",{"title":85,"path":86,"stem":87,"icon":23},"Tags","\u002Fdocs\u002Ffeatures\u002Ftags","docs\u002F4.features\u002F03.tags",{"title":89,"path":90,"stem":91,"icon":23},"Albums","\u002Fdocs\u002Ffeatures\u002Falbums","docs\u002F4.features\u002F04.albums",{"title":93,"path":94,"stem":95,"icon":23},"People and faces","\u002Fdocs\u002Ffeatures\u002Fpeople","docs\u002F4.features\u002F05.people",{"title":97,"path":98,"stem":99,"icon":23},"Groups","\u002Fdocs\u002Ffeatures\u002Fgroups","docs\u002F4.features\u002F06.groups",{"title":101,"path":102,"stem":103,"icon":23},"Duplicates and stacks","\u002Fdocs\u002Ffeatures\u002Fduplicates-and-stacks","docs\u002F4.features\u002F07.duplicates-and-stacks",{"title":105,"path":106,"stem":107,"icon":23},"NSFW","\u002Fdocs\u002Ffeatures\u002Fnsfw","docs\u002F4.features\u002F08.nsfw",{"title":109,"path":110,"stem":111,"icon":23},"Trash","\u002Fdocs\u002Ffeatures\u002Ftrash","docs\u002F4.features\u002F09.trash",{"title":113,"path":114,"stem":115,"icon":23},"Home and the dashboard","\u002Fdocs\u002Ffeatures\u002Fhome-and-dashboard","docs\u002F4.features\u002F10.home-and-dashboard",{"title":117,"path":118,"stem":119,"icon":23},"Live updates and offline","\u002Fdocs\u002Ffeatures\u002Flive-updates","docs\u002F4.features\u002F11.live-updates",{"title":121,"path":122,"stem":123,"icon":23},"Appearance and the app","\u002Fdocs\u002Ffeatures\u002Fappearance","docs\u002F4.features\u002F12.appearance",{"title":125,"path":126,"stem":127,"icon":23},"Places","\u002Fdocs\u002Ffeatures\u002Fplaces","docs\u002F4.features\u002F13.places",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":36},"Administration","sliders","\u002Fdocs\u002Fadministration","docs\u002F5.administration",[134,138,142],{"title":135,"path":136,"stem":137,"icon":23},"Users and sign-in","\u002Fdocs\u002Fadministration\u002Fusers-and-sign-in","docs\u002F5.administration\u002F1.users-and-sign-in",{"title":139,"path":140,"stem":141,"icon":23},"API keys","\u002Fdocs\u002Fadministration\u002Fapi-keys","docs\u002F5.administration\u002F2.api-keys",{"title":143,"path":144,"stem":145,"icon":23},"Processing settings","\u002Fdocs\u002Fadministration\u002Fprocessing-settings","docs\u002F5.administration\u002F3.processing-settings",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Self-hosting","server","\u002Fdocs\u002Fself-hosting","docs\u002F6.self-hosting",[152,156,160,164,167,171,175,179,183,187],{"title":153,"path":154,"stem":155,"icon":23},"Architecture","\u002Fdocs\u002Fself-hosting\u002Farchitecture","docs\u002F6.self-hosting\u002F1.architecture",{"title":157,"path":158,"stem":159,"icon":23},"Telemetry","\u002Fdocs\u002Fself-hosting\u002Ftelemetry","docs\u002F6.self-hosting\u002F10.telemetry",{"title":161,"path":162,"stem":163,"icon":23},"Sharing one GPU","\u002Fdocs\u002Fself-hosting\u002Fgpu","docs\u002F6.self-hosting\u002F2.gpu",{"title":62,"path":165,"stem":166,"icon":23},"\u002Fdocs\u002Fself-hosting\u002Fstorage","docs\u002F6.self-hosting\u002F3.storage",{"title":168,"path":169,"stem":170,"icon":23},"Backups","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F6.self-hosting\u002F4.backups",{"title":172,"path":173,"stem":174,"icon":23},"Updating","\u002Fdocs\u002Fself-hosting\u002Fupdating","docs\u002F6.self-hosting\u002F5.updating",{"title":176,"path":177,"stem":178,"icon":23},"Scaling","\u002Fdocs\u002Fself-hosting\u002Fscaling","docs\u002F6.self-hosting\u002F6.scaling",{"title":180,"path":181,"stem":182,"icon":23},"HTTPS and a domain","\u002Fdocs\u002Fself-hosting\u002Freverse-proxy","docs\u002F6.self-hosting\u002F7.reverse-proxy",{"title":184,"path":185,"stem":186,"icon":23},"Troubleshooting","\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting","docs\u002F6.self-hosting\u002F8.troubleshooting",{"title":188,"path":189,"stem":190,"icon":23},"The config file","\u002Fdocs\u002Fself-hosting\u002Fconfig-file","docs\u002F6.self-hosting\u002F9.config-file",{"title":192,"icon":193,"path":194,"stem":195,"children":196,"page":36},"Reference","book","\u002Fdocs\u002Freference","docs\u002F7.reference",[197,201,205,209,213],{"title":198,"path":199,"stem":200,"icon":23},"Environment variables","\u002Fdocs\u002Freference\u002Fenvironment","docs\u002F7.reference\u002F1.environment",{"title":202,"path":203,"stem":204,"icon":23},"Worker roles","\u002Fdocs\u002Freference\u002Fworker-roles","docs\u002F7.reference\u002F2.worker-roles",{"title":206,"path":207,"stem":208,"icon":23},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F7.reference\u002F3.api",{"title":210,"path":211,"stem":212,"icon":23},"Keyboard shortcuts","\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts","docs\u002F7.reference\u002F4.keyboard-shortcuts",{"title":214,"path":215,"stem":216,"icon":23},"Models","\u002Fdocs\u002Freference\u002Fmodels","docs\u002F7.reference\u002F5.models",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":36},"Hubstruct Cloud","cloud","\u002Fdocs\u002Fcloud","docs\u002F8.cloud",[223,227,231],{"title":224,"path":225,"stem":226,"icon":23},"Getting started with the cloud","\u002Fdocs\u002Fcloud\u002Fgetting-started","docs\u002F8.cloud\u002F1.getting-started",{"title":228,"path":229,"stem":230,"icon":23},"Plans and billing","\u002Fdocs\u002Fcloud\u002Fplans-and-billing","docs\u002F8.cloud\u002F2.plans-and-billing",{"title":232,"path":233,"stem":234,"icon":23},"Moving between cloud and self-hosted","\u002Fdocs\u002Fcloud\u002Fmoving","docs\u002F8.cloud\u002F3.moving",{"id":236,"title":184,"body":237,"description":649,"extension":650,"eyebrow":147,"icon":23,"meta":651,"navigation":652,"path":185,"seo":653,"stem":186,"__hash__":654},"docs\u002Fdocs\u002F6.self-hosting\u002F8.troubleshooting.md",{"type":238,"value":239,"toc":633},"minimark",[240,244,319,332,337,342,345,360,375,386,395,401,404,431,437,441,461,465,471,506,510,530,534,545,549,552,568,572,578,582,611,615,629],[241,242,243],"p",{},"Start with these three commands. Most problems show up in one of them:",[245,246,251],"pre",{"className":247,"code":248,"language":249,"meta":250,"style":250},"language-bash shiki shiki-themes github-dark github-light","docker compose ps                  # what's running, and what's healthy\ndocker compose logs --tail 100 api worker migrator\ndocker compose logs --tail 100 models vision\n","bash","",[252,253,254,274,300],"code",{"__ignoreMap":250},[255,256,259,263,267,270],"span",{"class":257,"line":258},"line",1,[255,260,262],{"class":261},"sqoU-","docker",[255,264,266],{"class":265},"skb7c"," compose",[255,268,269],{"class":265}," ps",[255,271,273],{"class":272},"si27w","                  # what's running, and what's healthy\n",[255,275,277,279,281,284,288,291,294,297],{"class":257,"line":276},2,[255,278,262],{"class":261},[255,280,266],{"class":265},[255,282,283],{"class":265}," logs",[255,285,287],{"class":286},"sTU5a"," --tail",[255,289,290],{"class":286}," 100",[255,292,293],{"class":265}," api",[255,295,296],{"class":265}," worker",[255,298,299],{"class":265}," migrator\n",[255,301,303,305,307,309,311,313,316],{"class":257,"line":302},3,[255,304,262],{"class":261},[255,306,266],{"class":265},[255,308,283],{"class":265},[255,310,287],{"class":286},[255,312,290],{"class":286},[255,314,315],{"class":265}," models",[255,317,318],{"class":265}," vision\n",[241,320,321,322,326,327,331],{},"The ",[323,324,325],"strong",{},"Dashboard"," in the app shows the same from the inside: service health, and each step's state. For a slow page or a failing step, ",[328,329,330],"a",{"href":158},"Grafana"," has its trace: every query and call it made, with its log lines beside them.",[333,334,336],"h2",{"id":335},"a-service-wont-start","A service won't start",[338,339,341],"h3",{"id":340},"the-migrator-failed","The migrator failed",[241,343,344],{},"Nothing that uses the database starts until the migrator succeeds. Read its log:",[245,346,348],{"className":247,"code":347,"language":249,"meta":250,"style":250},"docker compose logs migrator\n",[252,349,350],{"__ignoreMap":250},[255,351,352,354,356,358],{"class":257,"line":258},[255,353,262],{"class":261},[255,355,266],{"class":265},[255,357,283],{"class":265},[255,359,299],{"class":265},[241,361,362,363,366,367,370,371,374],{},"It names the migration that failed and why. Usually it's the database being unreachable (check ",[252,364,365],{},"postgres","'s health and the password in ",[252,368,369],{},".env","), or not enough disk. Fix the cause and ",[252,372,373],{},"docker compose up -d"," again: the migrator retries what's left.",[338,376,378,381,382,385],{"id":377},"postgres_password-is-required-or-an-s3_-one",[252,379,380],{},"POSTGRES_PASSWORD is required",", or an ",[252,383,384],{},"S3_*"," one",[241,387,388,390,391,394],{},[252,389,369],{}," is missing a required secret, or Compose isn't reading it because you're in a different folder. See ",[328,392,29],{"href":393},"\u002Fdocs\u002Fgetting-started\u002Fquick-start#3-fill-in-the-secrets",".",[338,396,398],{"id":397},"could-not-select-device-driver-nvidia",[252,399,400],{},"could not select device driver \"nvidia\"",[241,402,403],{},"Docker can't reach the GPU. Install the NVIDIA Container Toolkit, restart Docker, and check with:",[245,405,407],{"className":247,"code":406,"language":249,"meta":250,"style":250},"docker run --rm --gpus all nvidia\u002Fcuda:12.6.0-base-ubuntu24.04 nvidia-smi\n",[252,408,409],{"__ignoreMap":250},[255,410,411,413,416,419,422,425,428],{"class":257,"line":258},[255,412,262],{"class":261},[255,414,415],{"class":265}," run",[255,417,418],{"class":286}," --rm",[255,420,421],{"class":286}," --gpus",[255,423,424],{"class":265}," all",[255,426,427],{"class":265}," nvidia\u002Fcuda:12.6.0-base-ubuntu24.04",[255,429,430],{"class":265}," nvidia-smi\n",[241,432,433,434,394],{},"To run without a GPU, see ",[328,435,161],{"href":436},"\u002Fdocs\u002Fself-hosting\u002Fgpu#without-a-gpu",[333,438,440],{"id":439},"the-app-opens-but-shows-nothing","The app opens but shows nothing",[442,443,444,451],"ul",{},[445,446,447,450],"li",{},[323,448,449],{},"No libraries yet."," Add one in Settings → Libraries.",[445,452,453,456,457,460],{},[323,454,455],{},"Pictures show as placeholders and never load."," Check the ",[252,458,459],{},"storage"," service is running.",[333,462,464],{"id":463},"steps-never-run","Steps never run",[241,466,467,468,470],{},"Open the ",[323,469,325],{},":",[442,472,473,481,487,500],{},[445,474,475,478,479,394],{},[323,476,477],{},"Due, but nothing running",": the step's model isn't reachable. Service health shows which. See ",[328,480,161],{"href":162},[445,482,483,486],{},[323,484,485],{},"Paused",": switch it back to Running.",[445,488,489,492,493,496,497,394],{},[323,490,491],{},"Waiting",": it needs an earlier step. Everything waits for ",[252,494,495],{},"metadata"," and ",[252,498,499],{},"renditions",[445,501,502,505],{},[323,503,504],{},"Failed",": open the step's failed media to see the error, fix the cause, and retry.",[333,507,509],{"id":508},"tagging-does-nothing","Tagging does nothing",[442,511,512,524],{},[445,513,514,515,518,519,523],{},"There are no ",[323,516,517],{},"smart"," tags in this library. Switch on ",[520,521,522],"em",{},"Smart tagging"," in a tag's Settings.",[445,525,526,527,394],{},"The models server isn't running: ",[252,528,529],{},"docker compose up -d models",[333,531,533],{"id":532},"search-doesnt-find-things-by-meaning","Search doesn't find things by meaning",[241,535,536,537,540,541,544],{},"Searching by meaning needs the ",[323,538,539],{},"models"," server running, to embed your search, and each media's ",[323,542,543],{},"embedding"," step done. Check both on the dashboard. Until a media's embedding is made, it's found by its file name, words and tags only.",[333,546,548],{"id":547},"pages-stay-on-loading","Pages stay on \"loading\"",[241,550,551],{},"If the API restarted or the network dropped, pages retry by themselves every few seconds and as soon as the server's back. If one doesn't recover, check the API's health:",[245,553,555],{"className":247,"code":554,"language":249,"meta":250,"style":250},"curl -s localhost:3000\u002Fhealth\u002Fready\n",[252,556,557],{"__ignoreMap":250},[255,558,559,562,565],{"class":257,"line":258},[255,560,561],{"class":261},"curl",[255,563,564],{"class":286}," -s",[255,566,567],{"class":265}," localhost:3000\u002Fhealth\u002Fready\n",[333,569,571],{"id":570},"live-updates-dont-arrive","Live updates don't arrive",[241,573,574,575,394],{},"Behind a reverse proxy, the live stream needs buffering off and a long read timeout. See ",[328,576,180],{"href":577},"\u002Fdocs\u002Fself-hosting\u002Freverse-proxy#what-the-proxy-must-allow",[333,579,581],{"id":580},"uploads-fail","Uploads fail",[442,583,584,593,599],{},[445,585,586,589,590,394],{},[323,587,588],{},"\"Unsupported file type\"",": see what's accepted in ",[328,591,66],{"href":592},"\u002Fdocs\u002Flibraries\u002Fuploading#whats-accepted",[445,594,595,598],{},[323,596,597],{},"413 Request Entity Too Large",": your reverse proxy's body size limit. Raise it.",[445,600,601,604,605,607,608,394],{},[323,602,603],{},"Uploads stall",": check the ",[252,606,459],{}," service's log, and free disk space under ",[252,609,610],{},"MEDIA_DIR",[333,612,614],{"id":613},"getting-help","Getting help",[241,616,617,618,624,625,628],{},"Open an issue on ",[328,619,623],{"href":620,"rel":621},"https:\u002F\u002Fgithub.com\u002Fhubstruct\u002Fhubstruct\u002Fissues",[622],"nofollow","GitHub"," with what you did, what happened, and the relevant log lines. Error pages in the app have a ",[323,626,627],{},"Copy"," button for their details; include those too.",[630,631,632],"style",{},"html pre.shiki code .sqoU-, html code.shiki .sqoU-{--shiki-default:#B392F0;--shiki-light:#6F42C1}html pre.shiki code .skb7c, html code.shiki .skb7c{--shiki-default:#9ECBFF;--shiki-light:#032F62}html pre.shiki code .si27w, html code.shiki .si27w{--shiki-default:#6A737D;--shiki-light:#6A737D}html pre.shiki code .sTU5a, html code.shiki .sTU5a{--shiki-default:#79B8FF;--shiki-light:#005CC5}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 .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);}",{"title":250,"searchDepth":302,"depth":302,"links":634},[635,641,642,643,644,645,646,647,648],{"id":335,"depth":276,"text":336,"children":636},[637,638,640],{"id":340,"depth":302,"text":341},{"id":377,"depth":302,"text":639},"POSTGRES_PASSWORD is required, or an S3_* one",{"id":397,"depth":302,"text":400},{"id":439,"depth":276,"text":440},{"id":463,"depth":276,"text":464},{"id":508,"depth":276,"text":509},{"id":532,"depth":276,"text":533},{"id":547,"depth":276,"text":548},{"id":570,"depth":276,"text":571},{"id":580,"depth":276,"text":581},{"id":613,"depth":276,"text":614},"What to check when something isn't working, from services that won't start to steps that never finish.","md",{},true,{"title":184,"description":649},"aPN9UMRmbg5H1q3mv6-GCa0Xfq0cyPPEKz9v46qFkyE",[656,658],{"title":180,"path":181,"stem":182,"description":657,"children":-1},"Putting Hubstruct behind a reverse proxy with HTTPS, with examples for Caddy and nginx, and what the proxy must allow.",{"title":188,"path":189,"stem":190,"description":659,"children":-1},"Set Hubstruct up from a file instead of by hand, from its settings and sign-in to its owner, API keys, libraries, tags and albums.",1795744073381]