[{"data":1,"prerenderedAt":2301},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fnerd-notes\u002Fself-hosting":3,"docs-nav":2188},{"id":4,"title":5,"body":6,"description":2179,"extension":2180,"meta":2181,"modified":2182,"navigation":2183,"path":2184,"seo":2185,"stem":2186,"__hash__":2187},"docs\u002Fdocs\u002Fnerd-notes\u002Fself-hosting.md","Self-Hosting",{"type":7,"value":8,"toc":2167},"minimark",[9,13,23,26,34,39,77,81,150,154,195,198,227,283,323,327,332,386,389,447,453,457,466,587,596,599,634,644,648,664,668,749,775,779,792,809,816,826,830,881,885,966,970,1004,1021,1025,1028,1086,1089,1107,1114,1118,1127,1130,1159,1219,1226,1343,1377,1401,1404,1507,1521,1527,1554,1557,1561,1583,1613,1623,1626,1647,1651,1674,1692,1695,1721,1735,1752,1756,1792,1821,1825,1828,1862,1866,1877,1880,1898,1923,1927,1958,1962,1968,2028,2035,2044,2048,2066,2070,2089,2093,2102,2109,2125,2129,2138,2142,2149,2152,2163],[10,11,5],"h1",{"id":12},"self-hosting",[14,15,16,17,22],"p",{},"Most people run Quark on a Quark device. ",[18,19,21],"a",{"href":20},"\u002Fdocs\u002Fstart\u002Fgetting-started","Getting Started"," covers that first evening. This\npage is for running the same Quark on hardware you already have.",[14,24,25],{},"There are two ways. One is a Linux computer you can give over to Quark, such as a spare PC, a mini PC, or a Pi. The\nother is a container, on a machine that already runs them. You get the same Quark either way: your files stay on that\nmachine. Releases of the server are for Linux only. The AppImage files on a release page are the Linux desktop app.",[14,27,28,29,33],{},"The commands, addresses, and settings are in Nerd Notes. A shorter container recipe is also on\n",[18,30,32],{"href":31},"\u002Fdocs\u002Fnerd-notes#with-docker","Nerd Notes",". This page is the longer one.",[35,36,38],"h2",{"id":37},"how-to-use-it","How to use it",[40,41,42,55,62],"ol",{},[43,44,45,46,50,51,54],"li",{},"Pick a route in Nerd Notes. ",[47,48,49],"strong",{},"Your Linux machine"," is the spare computer. ",[47,52,53],{},"In a container"," is the container.",[43,56,57,58,61],{},"Open the address Nerd Notes gives for that route. The browser may warn that the connection is not private. That is\nexpected on a machine you set up yourself.\n",[18,59,21],{"href":60},"\u002Fdocs\u002Fstart\u002Fgetting-started#your-browser-warns-you-the-connection-is-not-private"," explains the\nwarning. Then you get the same first-run setup a Quark device shows: the terms, your owner account, and a theme.",[43,63,64,65,68,69,72,73,76],{},"Later, an admin opens ",[47,66,67],{},"Settings → Updates",", picks a version under ",[47,70,71],{},"Update Quark to version",", and chooses\n",[47,74,75],{},"Start update",". An admin starts each update. Quark restarts to finish it.",[35,78,80],{"id":79},"if-something-goes-wrong","If something goes wrong",[82,83,84,94,105,120,130,140],"ul",{},[43,85,86,89,90,93],{},[47,87,88],{},"The installer prints a message."," ",[18,91,32],{"href":92},"#messages-from-sudo-quark-install"," lists what each one means.",[43,95,96,99,100,104],{},[47,97,98],{},"The page will not open."," Something else may be using the address, or Quark did not start. See\n",[18,101,103],{"href":102},"#quark-wont-start-failed-to-bind-tls-listener-on-443","Quark won't start",".",[43,106,107,110,111,115,116,104],{},[47,108,109],{},"A container is empty after a restart, or keeps restarting."," Its data was not kept, or it runs as the wrong user.\nNerd Notes explains ",[18,112,114],{"href":113},"#mount-the-whole-varlibquark","how to keep that data"," and\n",[18,117,119],{"href":118},"#dont-override-the-user","which user the container runs as",[43,121,122,125,126,104],{},[47,123,124],{},"Everyone is locked out of sign-in behind a proxy."," See ",[18,127,129],{"href":128},"#behind-a-proxy","Behind a proxy",[43,131,132,135,136,104],{},[47,133,134],{},"An update from Settings leaves a container stopped."," Something has to start it again. See\n",[18,137,139],{"href":138},"#i-updated-from-settings-and-the-container-is-gone","I updated from Settings and the container is gone",[43,141,142,145,146,104],{},[47,143,144],{},"A drive in a container says it needs a restart."," See\n",[18,147,149],{"href":148},"#a-drive-in-the-container-says-quark-cant-reach-it-until-it-restarts","A drive in the container can't be reached",[35,151,153],{"id":152},"related","Related",[82,155,156,161,167,174,181,188],{},[43,157,158,160],{},[18,159,21],{"href":20},": the first evening, including the browser warning",[43,162,163,166],{},[18,164,32],{"href":165},"\u002Fdocs\u002Fnerd-notes",": the stack, the API, and the short container recipe",[43,168,169,173],{},[18,170,172],{"href":171},"\u002Fdocs\u002Fsettings\u002Fssh","SSH Access",": an admin's command-line sign-in, off until someone turns it on",[43,175,176,180],{},[18,177,179],{"href":178},"\u002Fdocs\u002Fsettings\u002Fremote-access","Remote Access",": opening the app away from home",[43,182,183,187],{},[18,184,186],{"href":185},"\u002Fdocs\u002Fhelp","Help & Support",": everyday troubleshooting",[43,189,190,194],{},[18,191,193],{"href":192},"\u002Fdocs\u002Fhelp\u002Fsecurity-guide","Security Guide",": backups and what every owner should do",[35,196,32],{"id":197},"nerd-notes",[14,199,200,201,205,206,212,213,216,217,220,221,216,224,104],{},"Checked against quark v0.63.0: its source, its ",[202,203,204],"code",{},"Dockerfile",", and the product's\n",[18,207,211],{"href":208,"rel":209},"https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Fblob\u002Fv0.63.0\u002Fdocs\u002Fcontainer.md",[210],"nofollow","container guide",". The image is published as\n",[202,214,215],{},"ghcr.io\u002Fautobutler-org\u002Fquark:0.63.0"," and ",[202,218,219],{},":latest",", for ",[202,222,223],{},"linux\u002Famd64",[202,225,226],{},"linux\u002Farm64",[228,229,230,246],"table",{},[231,232,233],"thead",{},[234,235,236,240,243],"tr",{},[237,238,239],"th",{},"Route",[237,241,242],{},"Good for",[237,244,245],{},"How you reach it",[247,248,249,266],"tbody",{},[234,250,251,257,260],{},[252,253,254],"td",{},[18,255,49],{"href":256},"#your-linux-machine",[252,258,259],{},"A spare PC, mini PC, or Pi",[252,261,262,265],{},[202,263,264],{},"https:\u002F\u002F\u003Chostname>.local",", port 443",[234,267,268,274,277],{},[252,269,270],{},[18,271,273],{"href":272},"#in-a-container","A container",[252,275,276],{},"Docker, Podman, or Kubernetes",[252,278,279,282],{},[202,280,281],{},"http:\u002F\u002F\u003Chost>:8080",", behind TLS",[14,284,285,286,216,289,292,293,296,297,300,301,216,304,306,307,310,311,314,315,318,319,322],{},"Both run the same binary from the same release. Releases are built for Linux on ",[202,287,288],{},"x86_64",[202,290,291],{},"arm64"," only. There is no\nmacOS, Windows, or 32-bit server build (",[202,294,295],{},".goreleaser.yaml"," builds ",[202,298,299],{},"linux"," \u002F ",[202,302,303],{},"amd64",[202,305,291],{},"). The ",[202,308,309],{},".AppImage","\nfiles on a release page are the Linux desktop app, not the server. v0.63.0 publishes\n",[202,312,313],{},"quark_Linux_x86_64.tar.gz",", ",[202,316,317],{},"quark_Linux_arm64.tar.gz",", and ",[202,320,321],{},"quark_0.63.0_checksums.txt",", plus the AppImage files.",[324,325,49],"h3",{"id":326},"your-linux-machine",[328,329,331],"h4",{"id":330},"what-the-machine-needs","What the machine needs",[82,333,334,349,373],{},[43,335,336,89,345,348],{},[47,337,338,339,341,342,344],{},"Linux on ",[202,340,288],{}," or ",[202,343,291],{},", with systemd.",[202,346,347],{},"quark install"," writes a systemd unit.",[43,350,351,354,355,358,359,362,363,366,367,370,371,104],{},[47,352,353],{},"Port 443 free."," With TLS on, Quark serves HTTPS on ",[202,356,357],{},"HTTPS_PORT"," (443) and does not listen on port 80. The unit\nstill sets ",[202,360,361],{},"PORT=80"," so an older unit file keeps working. Nothing redirects ",[202,364,365],{},"http:\u002F\u002F"," to ",[202,368,369],{},"https:\u002F\u002F",", so type\n",[202,372,369],{},[43,374,375,89,378,380,381,385],{},[47,376,377],{},"A machine you can give to Quark.",[202,379,347],{}," changes system settings, listed\n",[18,382,384],{"href":383},"#what-quark-install-sets-up","below",". Locking the root password, and limiting who can sign in over SSH, are a good\nfit on a dedicated box and a surprise on an everyday computer.",[14,387,388],{},"Optional, each for one thing:",[228,390,391,401],{},[231,392,393],{},[234,394,395,398],{},[237,396,397],{},"Package",[237,399,400],{},"What it adds",[247,402,403,411,424,437],{},[234,404,405,408],{},[252,406,407],{},"apt and dpkg (Debian-based OS)",[252,409,410],{},"Automatic Debian security updates and the kernel hold. Skipped without them.",[234,412,413,418],{},[252,414,415],{},[202,416,417],{},"avahi-daemon",[252,419,420,423],{},[202,421,422],{},"\u003Chostname>.local"," on your network, and the iOS and Android apps finding the box",[234,425,426,434],{},[252,427,428,341,431],{},[202,429,430],{},"dcraw",[202,432,433],{},"exiftool",[252,435,436],{},"Previews of camera RAW photos",[234,438,439,444],{},[252,440,441],{},[202,442,443],{},"openssh-server",[252,445,446],{},"The admin SSH access setting",[14,448,449,450,104],{},"Video needs nothing extra. Quark handles it in its own code. The container image installs no ",[202,451,452],{},"ffmpeg",[328,454,456],{"id":455},"install","Install",[14,458,459,460,465],{},"Pick a version from the ",[18,461,464],{"href":462,"rel":463},"https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Freleases",[210],"releases page",". Download the archive for\nyour machine and the checksums file, then check the archive before you run anything in it:",[467,468,473],"pre",{"className":469,"code":470,"language":471,"meta":472,"style":472},"language-bash shiki shiki-themes github-light github-dark","VERSION=X.Y.Z        # the release you picked, without the leading v\nARCH=x86_64          # or arm64\nBASE=https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Freleases\u002Fdownload\u002Fv$VERSION\ncurl -LO \"$BASE\u002Fquark_Linux_$ARCH.tar.gz\"\ncurl -LO \"$BASE\u002Fquark_${VERSION}_checksums.txt\"\nsha256sum --ignore-missing -c \"quark_${VERSION}_checksums.txt\"\n","bash","",[202,474,475,496,509,523,549,568],{"__ignoreMap":472},[476,477,480,484,488,492],"span",{"class":478,"line":479},"line",1,[476,481,483],{"class":482},"sVt8B","VERSION",[476,485,487],{"class":486},"szBVR","=",[476,489,491],{"class":490},"sZZnC","X.Y.Z",[476,493,495],{"class":494},"sJ8bj","        # the release you picked, without the leading v\n",[476,497,499,502,504,506],{"class":478,"line":498},2,[476,500,501],{"class":482},"ARCH",[476,503,487],{"class":486},[476,505,288],{"class":490},[476,507,508],{"class":494},"          # or arm64\n",[476,510,512,515,517,520],{"class":478,"line":511},3,[476,513,514],{"class":482},"BASE",[476,516,487],{"class":486},[476,518,519],{"class":490},"https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Freleases\u002Fdownload\u002Fv",[476,521,522],{"class":482},"$VERSION\n",[476,524,526,530,534,537,540,543,546],{"class":478,"line":525},4,[476,527,529],{"class":528},"sScJk","curl",[476,531,533],{"class":532},"sj4cs"," -LO",[476,535,536],{"class":490}," \"",[476,538,539],{"class":482},"$BASE",[476,541,542],{"class":490},"\u002Fquark_Linux_",[476,544,545],{"class":482},"$ARCH",[476,547,548],{"class":490},".tar.gz\"\n",[476,550,552,554,556,558,560,563,565],{"class":478,"line":551},5,[476,553,529],{"class":528},[476,555,533],{"class":532},[476,557,536],{"class":490},[476,559,539],{"class":482},[476,561,562],{"class":490},"\u002Fquark_${",[476,564,483],{"class":482},[476,566,567],{"class":490},"}_checksums.txt\"\n",[476,569,571,574,577,580,583,585],{"class":478,"line":570},6,[476,572,573],{"class":528},"sha256sum",[476,575,576],{"class":532}," --ignore-missing",[476,578,579],{"class":532}," -c",[476,581,582],{"class":490}," \"quark_${",[476,584,483],{"class":482},[476,586,567],{"class":490},[14,588,589,591,592,595],{},[202,590,573],{}," should print ",[202,593,594],{},"quark_Linux_\u003Carch>.tar.gz: OK",". If it prints anything else, stop and download again.",[14,597,598],{},"Then unpack and install:",[467,600,602],{"className":469,"code":601,"language":471,"meta":472,"style":472},"tar xzf \"quark_Linux_$ARCH.tar.gz\" quark\nsudo .\u002Fquark install\n",[202,603,604,623],{"__ignoreMap":472},[476,605,606,609,612,615,617,620],{"class":478,"line":479},[476,607,608],{"class":528},"tar",[476,610,611],{"class":490}," xzf",[476,613,614],{"class":490}," \"quark_Linux_",[476,616,545],{"class":482},[476,618,619],{"class":490},".tar.gz\"",[476,621,622],{"class":490}," quark\n",[476,624,625,628,631],{"class":478,"line":498},[476,626,627],{"class":528},"sudo",[476,629,630],{"class":490}," .\u002Fquark",[476,632,633],{"class":490}," install\n",[14,635,636,639,640,643],{},[202,637,638],{},"sudo .\u002Fquark install"," copies the binary into place, sets up the machine, and starts the ",[202,641,642],{},"quark"," service. Running it\nagain is safe: it repairs an existing install, and it never overwrites the binary it is running from.",[328,645,647],{"id":646},"first-open","First open",[14,649,650,651,653,654,656,657,660,661,663],{},"On a phone or computer on the same network, open ",[202,652,264],{}," (with ",[202,655,417],{}," running) or\n",[202,658,659],{},"https:\u002F\u002F\u003Cthe machine's IP address>",". Your browser warns that the connection is not private. That is expected.\n",[18,662,21],{"href":60}," explains why. Then\nyou get the same first-run setup a Quark device shows: the terms, your owner account, and a theme.",[328,665,667],{"id":666},"where-things-live","Where things live",[228,669,670,680],{},[231,671,672],{},[234,673,674,677],{},[237,675,676],{},"What",[237,678,679],{},"Where",[247,681,682,696,706,716,727,738],{},[234,683,684,687],{},[252,685,686],{},"The binary",[252,688,689,692,693],{},[202,690,691],{},"\u002Fopt\u002Fquark\u002Fbin\u002Fquark",", linked from ",[202,694,695],{},"\u002Fusr\u002Flocal\u002Fbin\u002Fquark",[234,697,698,701],{},[252,699,700],{},"Database",[252,702,703],{},[202,704,705],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata\u002Fquark.db",[234,707,708,711],{},[252,709,710],{},"Your files",[252,712,713],{},[202,714,715],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata\u002Ffiles\u002F",[234,717,718,721],{},[252,719,720],{},"The self-signed certificate",[252,722,723,726],{},[202,724,725],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata\u002Fcerts\u002F",", unless you give your own",[234,728,729,732],{},[252,730,731],{},"Logs",[252,733,734,735],{},"The journal: ",[202,736,737],{},"journalctl -u quark",[234,739,740,743],{},[252,741,742],{},"Remote-access state",[252,744,745,748],{},[202,746,747],{},"\u002Fvar\u002Flib\u002Fquark\u002Ftsnet",", once an admin has turned it on",[14,750,751,752,755,756,758,759,762,763,766,767,770,771,774],{},"Quark uses ",[202,753,754],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata"," only when it runs as the user named ",[202,757,642],{},", which the service does\n(",[202,760,761],{},"isRunningAsServiceUser"," in ",[202,764,765],{},"pkg\u002Futil\u002Fstorageutil\u002Fdir.go","). Run ",[202,768,769],{},"quark serve"," as anyone else and it keeps its data\nin ",[202,772,773],{},"~\u002Fquark\u002Fdata"," instead, and you see an empty Quark.",[328,776,778],{"id":777},"updating","Updating",[14,780,781,782,784,785,787,788,791],{},"An admin updates from ",[47,783,67],{},": pick a version under ",[47,786,71],{}," and click ",[47,789,790],{},"Start\nupdate",". Quark downloads the archive, checks it against the release's checksums, replaces its own binary, and exits.\nsystemd starts the new version. Updates are manual. An admin starts each one.",[14,793,794,795,797,798,801,802,216,805,808],{},"On this route, ",[47,796,67],{}," also has a ",[47,799,800],{},"Maintenance"," group with ",[47,803,804],{},"Repair installation",[47,806,807],{},"Restart\nQuark",". Restart only turns Quark off and on. Repair restarts and also re-runs the setup below. Use Restart when\nsomething just seems stuck. Neither runs while an update is finishing.",[324,810,812,813,815],{"id":811},"what-quark-install-sets-up","What ",[202,814,347],{}," sets up",[14,817,818,821,822,825],{},[202,819,820],{},"sudo quark install"," sets the machine up once. After that, the service re-runs the same setup as root before every\nstart (",[202,823,824],{},"quark install --system-only","), so a fix that ships in an update reaches machines already running. Each file is\nwritten only when its contents differ. If the setup fails, Quark starts anyway.",[328,827,829],{"id":828},"the-service","The service",[82,831,832,844,863],{},[43,833,834,835,837,838,840,841,843],{},"Installs the binary at ",[202,836,691],{}," and links ",[202,839,695],{}," to it. The directory is owned by root\nand writable by the ",[202,842,642],{}," group, so the service can replace its own binary during an update.",[43,845,846,847,850,851,853,854,856,857,216,860,862],{},"Writes and enables ",[202,848,849],{},"quark.service",". It runs ",[202,852,769],{}," as the ",[202,855,642],{}," user, with ",[202,858,859],{},"HTTPS_PORT=443",[202,861,361],{},",\nserves HTTPS on 443, restarts on exit, and logs to the journal. It can bind that port without running the server as\nroot.",[43,864,865,866,869,870,872,873,876,877,880],{},"Caps the service's memory, Quark and the programs it starts together, at 80% of the machine's RAM before throttling\nand 90% as a hard limit (",[202,867,868],{},"\u002Fetc\u002Fsystemd\u002Fsystem\u002Fquark.service.d\u002F50-memory.conf","). ",[202,871,769],{}," also sets the Go\nruntime's soft limit to 60% of RAM, unless you set ",[202,874,875],{},"GOMEMLIMIT"," yourself (",[202,878,879],{},"pkg\u002Futil\u002Fmemutil\u002Fmemutil.go",").",[328,882,884],{"id":883},"accounts-and-permissions","Accounts and permissions",[82,886,887,900,909,931,957],{},[43,888,889,890,892,893,896,897,899],{},"Creates a ",[202,891,642],{}," system account with no home directory. Its shell is ",[202,894,895],{},"\u002Fbin\u002Fbash"," so the SSH access setting can\nwork, but nobody can sign in as ",[202,898,642],{}," until an admin adds a key or sets a password.",[43,901,902,903,906,907,104],{},"Creates ",[202,904,905],{},"\u002Fvar\u002Flib\u002Fquark"," owned by ",[202,908,642],{},[43,910,911,912,915,916,216,919,922,923,926,927,930],{},"Writes ",[202,913,914],{},"\u002Fetc\u002Fsudoers.d\u002Fquark",". It lets the service run ",[202,917,918],{},"mount",[202,920,921],{},"umount"," under\n",[202,924,925],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata\u002Fmounts\u002F",", and three fixed helpers in ",[202,928,929],{},"\u002Fusr\u002Flocal\u002Flibexec\u002Fquark\u002F",", and nothing else.",[43,932,933,934,937,938,941,942,944,945,948,949,952,953,956],{},"Installs those helpers, owned by root. ",[202,935,936],{},"ssh-access"," turns SSH on and off, opens or closes port 22 in ",[202,939,940],{},"ufw"," when you\nuse it, and sets or clears the ",[202,943,642],{}," password. ",[202,946,947],{},"set-hostname"," renames the machine. ",[202,950,951],{},"drive-health"," runs one health\nread of a whole disk. ",[18,954,172],{"href":955},"\u002Fdocs\u002Fsettings\u002Fssh#nerd-notes"," has the SSH half.",[43,958,959,962,963,965],{},[47,960,961],{},"Locks the root password."," Root stays reachable through ",[202,964,627],{},". Armbian images ship with a well-known root\npassword, and this is what closes it. The lock runs again before every start.",[328,967,969],{"id":968},"network","Network",[82,971,972,993],{},[43,973,974,975,978,979,982,983,318,986,989,990,992],{},"When the SSH server is installed, writes ",[202,976,977],{},"\u002Fetc\u002Fssh\u002Fsshd_config.d\u002F00-quark.conf",": no root login, ",[202,980,981],{},"AllowUsers quark",",\n",[202,984,985],{},"MaxAuthTries 3",[202,987,988],{},"LoginGraceTime 30",". If you reach this machine over SSH as your own user, check you still can\nbefore you close your session. ",[18,991,172],{"href":955}," covers keys, the password, and fail2ban.",[43,994,995,996,999,1000,1003],{},"When Avahi is installed, writes ",[202,997,998],{},"\u002Fetc\u002Favahi\u002Fservices\u002Fquark-dns-sd.service",". It advertises the box as\n",[202,1001,1002],{},"Quark on \u003Chostname>"," on port 443, which is how the iOS and Android apps find it.",[14,1005,1006,1007,1010,1011,1013,1014,1017,1018,1020],{},"Remote access is off until an admin turns it on in ",[47,1008,1009],{},"Settings → Network",". When it is on, the state directory above\nholds it, and the proxy connects to Quark over loopback. ",[18,1012,179],{"href":178}," is the setup\nin the app. Keep loopback in ",[202,1015,1016],{},"QUARK_TRUSTED_PROXIES"," if you set that variable. ",[18,1019,129],{"href":128}," says\nwhy.",[328,1022,1024],{"id":1023},"os-updates","OS updates",[14,1026,1027],{},"On a host with apt and dpkg:",[82,1029,1030,1055],{},[43,1031,1032,1033,1036,1037,1040,1041,1044,1045,366,1048,1051,1052,880],{},"Turns on unattended upgrades for ",[47,1034,1035],{},"Debian security updates only","\n(",[202,1038,1039],{},"\u002Fetc\u002Fapt\u002Fapt.conf.d\u002F52quark-unattended-upgrades","), and installs ",[202,1042,1043],{},"unattended-upgrades"," in the background if it is\nmissing. The rule names Debian's security archive. On another apt-based system, such as Ubuntu, it matches nothing,\nso patch that system yourself. The drop-in sets ",[202,1046,1047],{},"Unattended-Upgrade::Automatic-Reboot",[202,1049,1050],{},"\"false\"",", so this does\nnot reboot the machine on its own (",[202,1053,1054],{},"pkg\u002Futil\u002Faptutil\u002Fhelpers.go",[43,1056,1057,1060,1061,314,1064,982,1067,216,1070,1073,1074,1077,1078,1081,1082,1085],{},[47,1058,1059],{},"Holds the kernel"," at the version the machine booted: every installed ",[202,1062,1063],{},"linux-image-",[202,1065,1066],{},"linux-dtb-",[202,1068,1069],{},"linux-headers-",[202,1071,1072],{},"linux-u-boot-"," package, plus Armbian's board packages (",[202,1075,1076],{},"armbian-bsp-",") and firmware\n(",[202,1079,1080],{},"armbian-firmware","). Neither unattended upgrades nor ",[202,1083,1084],{},"apt upgrade"," will move them. That keeps a Quark device\nbootable. On your own PC it also means your kernel stops updating.",[14,1087,1088],{},"To lift the hold, run:",[467,1090,1092],{"className":469,"code":1091,"language":471,"meta":472,"style":472},"sudo quark install --release-kernel-hold\n",[202,1093,1094],{"__ignoreMap":472},[476,1095,1096,1098,1101,1104],{"class":478,"line":479},[476,1097,627],{"class":528},[476,1099,1100],{"class":490}," quark",[476,1102,1103],{"class":490}," install",[476,1105,1106],{"class":532}," --release-kernel-hold\n",[14,1108,1109,1110,1113],{},"That unholds the packages and writes ",[202,1111,1112],{},"\u002Fetc\u002Fquark\u002Frelease-kernel-hold",". While that file exists, Quark leaves the\npackages alone. Delete it and the hold comes back on the next start.",[328,1115,1117],{"id":1116},"the-tradeoff","The tradeoff",[14,1119,1120,1121,1123,1124,1126],{},"Root runs, before every start, a binary the ",[202,1122,642],{}," user is allowed to replace. Self-update needs that. It means\nsomeone who takes over the ",[202,1125,642],{}," account gets root at the next restart. The mount permission in the sudoers file is\nalready close to that.",[324,1128,53],{"id":1129},"in-a-container",[14,1131,1132,1133,1136,1137,1140,1141,1143,1144,216,1146,1148,1149,1151,1152,1154,1155,1158],{},"Every release publishes ",[202,1134,1135],{},"ghcr.io\u002Fautobutler-org\u002Fquark:\u003Cversion>"," (the version without the leading ",[202,1138,1139],{},"v",") and ",[202,1142,219],{},",\nfor ",[202,1145,223],{},[202,1147,226],{},". The image downloads that release's Linux archive, checks it, and copies the\nbinary in. It does not compile Quark. ",[202,1150,219],{}," moves when a release is published. Pin a version tag when you want to\nchoose when the image changes. ",[18,1153,32],{"href":31}," has the same ",[202,1156,1157],{},"docker run"," and Compose file\nin short form.",[467,1160,1162],{"className":469,"code":1161,"language":471,"meta":472,"style":472},"docker run -d --name quark --restart unless-stopped -p 8080:8080 \\\n  -e QUARK_RESTART_SUPERVISED=1 \\\n  -v quark-data:\u002Fvar\u002Flib\u002Fquark ghcr.io\u002Fautobutler-org\u002Fquark:latest\n",[202,1163,1164,1195,1208],{"__ignoreMap":472},[476,1165,1166,1169,1172,1175,1178,1180,1183,1186,1189,1192],{"class":478,"line":479},[476,1167,1168],{"class":528},"docker",[476,1170,1171],{"class":490}," run",[476,1173,1174],{"class":532}," -d",[476,1176,1177],{"class":532}," --name",[476,1179,1100],{"class":490},[476,1181,1182],{"class":532}," --restart",[476,1184,1185],{"class":490}," unless-stopped",[476,1187,1188],{"class":532}," -p",[476,1190,1191],{"class":490}," 8080:8080",[476,1193,1194],{"class":532}," \\\n",[476,1196,1197,1200,1203,1206],{"class":478,"line":498},[476,1198,1199],{"class":532},"  -e",[476,1201,1202],{"class":490}," QUARK_RESTART_SUPERVISED=",[476,1204,1205],{"class":532},"1",[476,1207,1194],{"class":532},[476,1209,1210,1213,1216],{"class":478,"line":511},[476,1211,1212],{"class":532},"  -v",[476,1214,1215],{"class":490}," quark-data:\u002Fvar\u002Flib\u002Fquark",[476,1217,1218],{"class":490}," ghcr.io\u002Fautobutler-org\u002Fquark:latest\n",[14,1220,1221,1222,1225],{},"The same thing in a ",[202,1223,1224],{},"compose.yaml",":",[467,1227,1231],{"className":1228,"code":1229,"language":1230,"meta":472,"style":472},"language-yaml shiki shiki-themes github-light github-dark","services:\n  quark:\n    image: ghcr.io\u002Fautobutler-org\u002Fquark:latest\n    restart: unless-stopped\n    environment:\n      QUARK_RESTART_SUPERVISED: \"1\"\n    ports:\n      - \"8080:8080\"\n    volumes:\n      - quark-data:\u002Fvar\u002Flib\u002Fquark\n\nvolumes:\n  quark-data:\n","yaml",[202,1232,1233,1242,1249,1260,1270,1277,1287,1295,1304,1312,1320,1327,1335],{"__ignoreMap":472},[476,1234,1235,1239],{"class":478,"line":479},[476,1236,1238],{"class":1237},"s9eBZ","services",[476,1240,1241],{"class":482},":\n",[476,1243,1244,1247],{"class":478,"line":498},[476,1245,1246],{"class":1237},"  quark",[476,1248,1241],{"class":482},[476,1250,1251,1254,1257],{"class":478,"line":511},[476,1252,1253],{"class":1237},"    image",[476,1255,1256],{"class":482},": ",[476,1258,1259],{"class":490},"ghcr.io\u002Fautobutler-org\u002Fquark:latest\n",[476,1261,1262,1265,1267],{"class":478,"line":525},[476,1263,1264],{"class":1237},"    restart",[476,1266,1256],{"class":482},[476,1268,1269],{"class":490},"unless-stopped\n",[476,1271,1272,1275],{"class":478,"line":551},[476,1273,1274],{"class":1237},"    environment",[476,1276,1241],{"class":482},[476,1278,1279,1282,1284],{"class":478,"line":570},[476,1280,1281],{"class":1237},"      QUARK_RESTART_SUPERVISED",[476,1283,1256],{"class":482},[476,1285,1286],{"class":490},"\"1\"\n",[476,1288,1290,1293],{"class":478,"line":1289},7,[476,1291,1292],{"class":1237},"    ports",[476,1294,1241],{"class":482},[476,1296,1298,1301],{"class":478,"line":1297},8,[476,1299,1300],{"class":482},"      - ",[476,1302,1303],{"class":490},"\"8080:8080\"\n",[476,1305,1307,1310],{"class":478,"line":1306},9,[476,1308,1309],{"class":1237},"    volumes",[476,1311,1241],{"class":482},[476,1313,1315,1317],{"class":478,"line":1314},10,[476,1316,1300],{"class":482},[476,1318,1319],{"class":490},"quark-data:\u002Fvar\u002Flib\u002Fquark\n",[476,1321,1323],{"class":478,"line":1322},11,[476,1324,1326],{"emptyLinePlaceholder":1325},true,"\n",[476,1328,1330,1333],{"class":478,"line":1329},12,[476,1331,1332],{"class":1237},"volumes",[476,1334,1241],{"class":482},[476,1336,1338,1341],{"class":478,"line":1337},13,[476,1339,1340],{"class":1237},"  quark-data",[476,1342,1241],{"class":482},[14,1344,1345,1346,1349,1350,1353,1354,314,1357,982,1360,318,1363,1366,1367,1369,1370,1373,1374,104],{},"Then ",[202,1347,1348],{},"docker compose up -d",". Open ",[202,1351,1352],{},"http:\u002F\u002Flocalhost:8080"," and you get the setup screen. Your account lives in the\nvolume, so it survives restarts. The image sets ",[202,1355,1356],{},"PORT=8080",[202,1358,1359],{},"QUARK_INSECURE=true",[202,1361,1362],{},"QUARK_UPDATE_DIR=\u002Fvar\u002Flib\u002Fquark\u002Fbin",[202,1364,1365],{},"GIN_MODE=release",". The entrypoint is ",[202,1368,642],{}," and the default command is\n",[202,1371,1372],{},"serve",", so other commands work too: ",[202,1375,1376],{},"docker run --rm ghcr.io\u002Fautobutler-org\u002Fquark:latest version",[14,1378,1379,1380,1383,1384,1386,1387,1390,1391,1394,1395,762,1398,1400],{},"The image does not set ",[202,1381,1382],{},"QUARK_RESTART_SUPERVISED",", because it can't see the container's restart policy. Set it to\n",[202,1385,1205],{}," (or ",[202,1388,1389],{},"true",") beside ",[202,1392,1393],{},"--restart",", and admins get ",[47,1396,1397],{},"Restart Quark",[47,1399,67],{},". Without a restart\npolicy, leave it unset, or that button stops Quark for good.",[14,1402,1403],{},"You set nothing else for a basic install. These are the ones you might add:",[228,1405,1406,1416],{},[231,1407,1408],{},[234,1409,1410,1413],{},[237,1411,1412],{},"Variable",[237,1414,1415],{},"When to set it",[247,1417,1418,1427,1440,1457,1477,1494],{},[234,1419,1420,1424],{},[252,1421,1422],{},[202,1423,1016],{},[252,1425,1426],{},"Behind a reverse proxy: its IP or range, so sign-in limits apply per real client",[234,1428,1429,1434],{},[252,1430,1431],{},[202,1432,1433],{},"QUARK_DB_BACKEND",[252,1435,1436,1439],{},[202,1437,1438],{},"postgres"," to keep the database in PostgreSQL instead of SQLite",[234,1441,1442,1447],{},[252,1443,1444],{},[202,1445,1446],{},"QUARK_DATABASE_URL",[252,1448,1449,1450,1453,1454],{},"The ",[202,1451,1452],{},"postgres:\u002F\u002F"," URL of an empty database, with ",[202,1455,1456],{},"QUARK_DB_BACKEND=postgres",[234,1458,1459,1464],{},[252,1460,1461],{},[202,1462,1463],{},"QUARK_INSECURE",[252,1465,1466,1469,1470,1472,1473,1476],{},[202,1467,1468],{},"false",", with ",[202,1471,357],{}," (such as ",[202,1474,1475],{},"8443","), to serve Quark's own self-signed HTTPS",[234,1478,1479,1484],{},[252,1480,1481],{},[202,1482,1483],{},"QUARK_TLS_CERT",[252,1485,1486,1487,216,1490,1493],{},"With ",[202,1488,1489],{},"QUARK_TLS_KEY",[202,1491,1492],{},"QUARK_INSECURE=false",": your own PEM certificate and key",[234,1495,1496,1500],{},[252,1497,1498],{},[202,1499,1382],{},[252,1501,1502,1504,1505],{},[202,1503,1205],{}," beside a restart policy, so an admin can use ",[47,1506,1397],{},[14,1508,1509,1511,1512,1514,1515,1517,1518,1520],{},[202,1510,347],{}," does not run in a container. Nothing on the host is changed. The image's sudoers file allows ",[202,1513,918],{},"\nand ",[202,1516,921],{}," under ",[202,1519,925],{}," and nothing else. It does not include the SSH, rename, or drive-health\nhelpers a Linux install gets.",[328,1522,1524,1525],{"id":1523},"mount-the-whole-varlibquark","Mount the whole ",[202,1526,905],{},[14,1528,1529,1530,1532,1533,1536,1537,1539,1540,318,1543,1546,1547,1549,1550,1553],{},"Mount ",[202,1531,905],{},", not just ",[202,1534,1535],{},"data\u002F"," inside it. ",[202,1538,1535],{}," holds the database and every file you upload. Next to it,\nthe remote-access state lives in ",[202,1541,1542],{},"tsnet\u002F",[202,1544,1545],{},"bin\u002F"," holds updates you install from Settings. Mount only ",[202,1548,1535],{}," and\nthose are lost each time the container is recreated. The image declares ",[202,1551,1552],{},"VOLUME \u002Fvar\u002Flib\u002Fquark"," for this reason.",[14,1555,1556],{},"For a folder on the host instead of a named volume, use an absolute path. Docker treats a relative path as the name of\na new volume, and Quark comes up empty.",[328,1558,1560],{"id":1559},"dont-override-the-user","Don't override the user",[14,1562,1563,1564,1566,1567,1570,1571,1573,1574,762,1576,1578,1579,1582],{},"The container runs as the user named ",[202,1565,642],{},", uid 999, gid 999, shell ",[202,1568,1569],{},"\u002Fusr\u002Fsbin\u002Fnologin",". Quark keeps its data under\n",[202,1572,905],{}," only for that user name (",[202,1575,761],{},[202,1577,765],{},"). Anything else\nuses ",[202,1580,1581],{},"$HOME\u002Fquark\u002Fdata",", which has two outcomes:",[82,1584,1585,1607],{},[43,1586,1587,1590,1591,1594,1595,1598,1599,1602,1603,1606],{},[47,1588,1589],{},"A uid the image doesn't know"," (",[202,1592,1593],{},"docker run -u 1000",", or ",[202,1596,1597],{},"runAsUser: 1000"," in Kubernetes): Quark doesn't start.\n",[202,1600,1601],{},"docker logs"," shows ",[202,1604,1605],{},"failed to create data directory: mkdir \u002Fquark: permission denied",", and with a restart policy\nthe container restarts in a loop.",[43,1608,1609,1612],{},[47,1610,1611],{},"A user with a home folder, such as root:"," Quark starts, but its data goes to a folder outside your mount, so it\ncomes up empty on every restart.",[14,1614,1615,1616,1619,1620,1622],{},"If your platform needs a numeric user, ",[202,1617,1618],{},"999"," resolves to ",[202,1621,642],{}," and works.",[14,1624,1625],{},"If a host folder gives a permission error, fix its ownership instead of changing the user:",[467,1627,1629],{"className":469,"code":1628,"language":471,"meta":472,"style":472},"sudo chown -R 999:999 \u002Fabsolute\u002Fpath\u002Fto\u002Fquark\n",[202,1630,1631],{"__ignoreMap":472},[476,1632,1633,1635,1638,1641,1644],{"class":478,"line":479},[476,1634,627],{"class":528},[476,1636,1637],{"class":490}," chown",[476,1639,1640],{"class":532}," -R",[476,1642,1643],{"class":490}," 999:999",[476,1645,1646],{"class":490}," \u002Fabsolute\u002Fpath\u002Fto\u002Fquark\n",[328,1648,1650],{"id":1649},"https","HTTPS",[14,1652,1653,1654,1656,1657,216,1659,1661,1662,1664,1665,1667,1668,1670,1671,880],{},"The image serves plain HTTP on port 8080 (",[202,1655,1359],{},"). Put your reverse proxy, ingress, or load balancer\nin front for HTTPS. Do not expose port 8080 straight to the internet. To use Quark's own self-signed certificate\ninstead, set ",[202,1658,1492],{},[202,1660,357],{}," (for example ",[202,1663,1475],{},"). Only the value ",[202,1666,1389],{}," turns TLS off, so\nunsetting ",[202,1669,1463],{}," does the same thing (",[202,1672,1673],{},"cmd\u002Fquark\u002Fserve\u002Fserve.go",[14,1675,1676,1677,216,1679,1681,1682,1685,1686,1688,1689,1691],{},"To serve a certificate of your own, such as one from an internal CA, also set ",[202,1678,1483],{},[202,1680,1489],{}," to\nthe PEM certificate and key, or pass ",[202,1683,1684],{},"quark serve --tls-cert \u003Cpath> --tls-key \u003Cpath>",". Quark then writes no\nself-signed pair. A pair replaced on disk is picked up without a restart, so replace both files together. One\nwithout the other, a pair that won't load, or either one with ",[202,1687,1359],{}," stops ",[202,1690,769],{}," at startup\nwith an error naming the flag. The same flags work on a Linux machine.",[328,1693,129],{"id":1694},"behind-a-proxy",[14,1696,1697,1698,1701,1702,1705,1706,1709,1710,216,1713,1716,1717,1720],{},"Sign-in, setup, and account recovery are rate-limited per client IP address. Unlocking a vault is not part of that\nlimit. The vault opens in the app with the account's sign-in password, and a wrong password never reaches the server.\nThere is no ",[202,1699,1700],{},"POST \u002Fapi\u002Fv0\u002Fvault\u002Funlock",". The limited paths are login, salt, setup, recover, recover keys, the vault\nkey during recovery, account requests, the recovery phrase, password changes, and a storage device's role, plus ",[202,1703,1704],{},"PUT","\nof a vault key and ",[202,1707,1708],{},"DELETE"," of a vault (",[202,1711,1712],{},"authRateLimitedPaths",[202,1714,1715],{},"authRateLimitedMethods"," in\n",[202,1718,1719],{},"internal\u002Fserver\u002Fmiddleware\u002Fmiddleware.go","). The bucket is 5 requests a second, with a burst of 10.",[14,1722,1723,1724,1726,1727,1730,1731,1734],{},"Behind a proxy, every request comes from the proxy, so set ",[202,1725,1016],{}," to the proxy's IP or range\n(comma-separated, such as ",[202,1728,1729],{},"10.244.0.0\u002F16","). Then Quark reads the real client address from ",[202,1732,1733],{},"X-Forwarded-For",". Without\nit, all clients share one limit, and one person guessing passwords locks everyone else out of sign-in.",[14,1736,1737,1738,1741,1742,1716,1745,1748,1749,1751],{},"Setting it replaces the default, ",[202,1739,1740],{},"127.0.0.1,::1",". Keep those two in the list when the Quark uses remote access. The\nremote-access proxy runs on the Quark and connects over loopback (",[202,1743,1744],{},"TrustedProxies",[202,1746,1747],{},"pkg\u002Futil\u002Fserverutil\u002Fserverutil.go","). An entry that is not an IP or a range stops ",[202,1750,769],{}," at startup with an\nerror naming it. Do not set it wider than your proxy: anything inside the range can claim to be any client.",[328,1753,1755],{"id":1754},"usb-drives","USB drives",[14,1757,1758,1759,1762,1763,1766,1767,1770,1771,1774,1775,1777,1778,1781,1782,1785,1786,1788,1789,1791],{},"Mounting a USB drive (",[47,1760,1761],{},"System → Storage",", then ",[47,1764,1765],{},"Mount",") needs ",[202,1768,1769],{},"--privileged",". Without it the container gets no\n",[202,1772,1773],{},"\u002Fdev\u002FsdX"," nodes. Quark still sees the drive, so it is listed, but its card says \"Quark can't reach this drive until\nit restarts.\" in place of a ",[47,1776,1765],{}," button, and ",[202,1779,1780],{},"GET \u002Fapi\u002Fv0\u002Fstorage\u002Fdevices\u002Fstatus"," marks it ",[202,1783,1784],{},"needsRestart: true",".\nRestarting won't help until the container is ",[202,1787,1769],{},". Everything else works without it. ",[202,1790,1769],{}," gives\nthe container root's power over the host's devices, so leave it off if you do not need drives.",[82,1793,1794,1805],{},[43,1795,1796,1797,1800,1801,1804],{},"A drive plugged in after the container starts is listed right away with the same message, because Docker copies\n",[202,1798,1799],{},"\u002Fdev"," only at start. After ",[202,1802,1803],{},"docker restart quark"," it can be mounted.",[43,1806,1807,1808,1810,1811,1814,1815,1817,1818,104],{},"The image's ",[202,1809,642],{}," user is in the ",[202,1812,1813],{},"disk"," group, gid 6, so it can read a drive's type. If the host's ",[202,1816,1813],{}," group\nisn't gid 6, add ",[202,1819,1820],{},"--group-add \u003Cgid>",[328,1822,1824],{"id":1823},"updates-in-a-container","Updates in a container",[14,1826,1827],{},"Two ways, and they mix:",[82,1829,1830,1856],{},[43,1831,1832,1835,1836,314,1839,1842,1843,341,1846,1849,1850,1852,1853,104],{},[47,1833,1834],{},"Settings → Updates."," The new binary goes into the volume (",[202,1837,1838],{},"QUARK_UPDATE_DIR",[202,1840,1841],{},"\u002Fvar\u002Flib\u002Fquark\u002Fbin","), and Quark\nexits to switch to it. Something has to start it again, so run with ",[202,1844,1845],{},"--restart unless-stopped",[202,1847,1848],{},"always"," (a\nKubernetes Deployment restarts it on its own). ",[47,1851,1397],{}," exits the same way, and shows only with\n",[202,1854,1855],{},"QUARK_RESTART_SUPERVISED=1",[43,1857,1858,1861],{},[47,1859,1860],{},"A newer image."," Pull it and recreate the container. A newer image wins over an older update in the volume.",[328,1863,1865],{"id":1864},"postgresql","PostgreSQL",[14,1867,1868,1869,115,1871,1873,1874,1876],{},"Quark uses SQLite in the volume by default. To use a PostgreSQL database instead, set ",[202,1870,1456],{},[202,1872,1446],{}," to a ",[202,1875,1452],{}," URL for an empty database. Quark creates its tables on first start. It refuses\nto start if the URL is missing, the backend name is wrong, or the database already holds tables it did not make. Keep\nthe volume mounted anyway: your files, the certificate, and remote-access state still live there.",[14,1878,1879],{},"Content search works on PostgreSQL, with PostgreSQL's own full-text search, which ranks a little differently from\nSQLite. Music search still answers 501. One replica is still the rule.",[14,1881,1882,1883,341,1886,1889,1890,1893,1894,1897],{},"Snapshot backups work too, but on PostgreSQL a snapshot holds your files and its manifest only, with no\n",[202,1884,1885],{},"chat_backup.db",[202,1887,1888],{},"vault_items_backup.db",". The chat and the vault are in the database, so back it up with\n",[202,1891,1892],{},"pg_dump --format=custom"," and restore it with ",[202,1895,1896],{},"pg_restore",". A dump restores onto PostgreSQL only.",[14,1899,1900,1901,1904,1905,216,1908,1911,1912,1916,1917,1922],{},"To move an existing SQLite install across, stop Quark and run ",[202,1902,1903],{},"quark move-to-postgres"," against the same volume. The\nPostgreSQL database must be empty. The command copies every table in one transaction, checks the row counts, and\nnever changes the SQLite file. A failed run leaves PostgreSQL empty, so running it again is safe. There is no way\nback in place. ",[202,1906,1907],{},"quark bundle export",[202,1909,1910],{},"quark bundle import"," start a new install from an old one, on either\ndatabase. The product's\n",[18,1913,211],{"href":1914,"rel":1915},"https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Fblob\u002Fv0.63.0\u002Fdocs\u002Fcontainer.md#postgresql",[210]," has the steps.\nIts line that content search answers 501 is out of date. The\n",[18,1918,1921],{"href":1919,"rel":1920},"https:\u002F\u002Fgithub.com\u002Fautobutler-org\u002Fquark\u002Fblob\u002Fv0.63.0\u002Fdocs\u002Farchitecture\u002Fdata.md",[210],"data notes"," have the current list.",[328,1924,1926],{"id":1925},"kubernetes","Kubernetes",[14,1928,1929,1930,1933,1934,1937,1938,1940,1941,1944,1945,1947,1948,1950,1951,1953,1954,1957],{},"Run one replica with ",[202,1931,1932],{},"strategy: Recreate",", on a ",[202,1935,1936],{},"ReadWriteOnce"," volume mounted at ",[202,1939,905],{},". A second copy\nwriting the same files would corrupt them, and scaling out is not supported, with PostgreSQL or without. The product's\n",[18,1942,211],{"href":208,"rel":1943},[210]," has a full manifest. Set\n",[202,1946,1016],{}," to the ingress range, and keep ",[202,1949,1740],{}," in that list for remote access. Set\n",[202,1952,1855],{}," in the Deployment's ",[202,1955,1956],{},"env",", since the Deployment starts Quark again.",[324,1959,1961],{"id":1960},"troubleshooting","Troubleshooting",[328,1963,1965,1966],{"id":1964},"messages-from-sudo-quark-install","Messages from ",[202,1967,820],{},[82,1969,1970,1984,1992,2004,2012,2020],{},[43,1971,1972,1386,1977,1594,1980,1983],{},[47,1973,1974],{},[202,1975,1976],{},"Skipping security updates and the kernel hold: apt-get is not installed.",[202,1978,1979],{},"apt-mark",[202,1981,1982],{},"dpkg-query","):\nthis isn't a Debian-based system. Quark installs fine. Keep the OS patched yourself.",[43,1985,1986,1991],{},[47,1987,1988],{},[202,1989,1990],{},"warning: security updates and the kernel hold are not fully set up: …",": one apt step failed. The rest of the\nsetup worked, and the next start tries again.",[43,1993,1994,1999,2000,2003],{},[47,1995,1996],{},[202,1997,1998],{},"The kernel hold is released; delete \u002Fetc\u002Fquark\u002Frelease-kernel-hold to restore it.",": someone ran\n",[202,2001,2002],{},"--release-kernel-hold",". Delete the file to put the hold back.",[43,2005,2006,2011],{},[47,2007,2008],{},[202,2009,2010],{},"Installing unattended-upgrades in the background.",": the package was missing, and a later start installs it.",[43,2013,2014,2019],{},[47,2015,2016],{},[202,2017,2018],{},"Skipping the memory ceiling: systemd is not running.",": no memory cap was written, because systemd isn't the\nrunning init, as in a chroot. The first start under systemd writes it.",[43,2021,2022,2027],{},[47,2023,2024],{},[202,2025,2026],{},"unsupported operating system: …",": Quark's Linux installer does not run there. Releases of the server are Linux\nonly.",[328,2029,2031,2032],{"id":2030},"quark-wont-start-failed-to-bind-tls-listener-on-443","Quark won't start: ",[202,2033,2034],{},"failed to bind TLS listener on :443",[14,2036,2037,2038,2040,2041,2043],{},"Read the log with ",[202,2039,737],{},". This line means Quark couldn't open port 443. Either another program has it\n(a web server, another proxy), or the service lost its permission to use the port. Free the port, or run\n",[202,2042,820],{}," to rewrite the service.",[328,2045,2047],{"id":2046},"an-update-from-settings-failed","An update from Settings failed",[14,2049,2050,2051,2054,2055,2058,2059,2062,2063,2065],{},"A server error shows \"Your Quark ran into a problem. Try again.\" The app does not show the server's sentence for that\nstatus. The reason is in the response: open your browser's developer tools, find the ",[202,2052,2053],{},"version\u002Fupdate"," request in the\nNetwork panel, and read its ",[202,2056,2057],{},"error"," field. A common one starts with ",[202,2060,2061],{},"cannot self-update:"," and says the binary's folder\nisn't writable. Running ",[202,2064,820],{}," once fixes that. A 409 says \"An update is already in progress. Wait for\nQuark to finish restarting.\" If the new version never reports back, the page says \"Quark didn't finish restarting.\nCheck that it's running, then try again.\"",[328,2067,2069],{"id":2068},"something-on-the-machine-has-drifted","Something on the machine has drifted",[14,2071,2072,2073,2075,2076,2078,2079,2081,2082,2085,2086,2088],{},"An admin can open ",[47,2074,67],{}," and, under ",[47,2077,800],{},", click ",[47,2080,804],{},". Quark asks\n",[47,2083,2084],{},"Repair installation?",", then restarts, and the setup above re-runs. If the page says \"This Quark was installed\nbefore it could repair itself,\" run ",[202,2087,820],{}," once on the machine. The button is hidden when Quark is not\nthe installed Linux service.",[328,2090,2092],{"id":2091},"the-container-comes-up-empty-after-a-restart","The container comes up empty after a restart",[14,2094,2095,2096,216,2098,104],{},"The container is running as a different user, or the host path is relative. See\n",[18,2097,1560],{"href":118},[18,2099,1524,2100],{"href":113},[202,2101,905],{},[328,2103,2105,2106],{"id":2104},"the-container-keeps-restarting-mkdir-quark-permission-denied","The container keeps restarting: ",[202,2107,2108],{},"mkdir \u002Fquark: permission denied",[14,2110,2111,2112,2115,2116,2119,2120,2122,2123,104],{},"The container runs as a uid the image doesn't know, such as ",[202,2113,2114],{},"-u 1000"," or a Kubernetes ",[202,2117,2118],{},"runAsUser",". Remove the\noverride, or use ",[202,2121,1618],{},". See ",[18,2124,1560],{"href":118},[328,2126,2128],{"id":2127},"a-drive-in-the-container-says-quark-cant-reach-it-until-it-restarts","A drive in the container says Quark can't reach it until it restarts",[14,2130,2131,2132,2134,2135,104],{},"The container isn't ",[202,2133,1769],{},", or the drive was plugged in after it started. See ",[18,2136,1755],{"href":2137},"#usb-drives",[328,2139,2141],{"id":2140},"behind-my-proxy-everyone-is-locked-out-of-sign-in","Behind my proxy, everyone is locked out of sign-in",[14,2143,2144,2146,2147,104],{},[202,2145,1016],{}," isn't set to your proxy's range, so every client shares one rate limit. See\n",[18,2148,129],{"href":128},[328,2150,139],{"id":2151},"i-updated-from-settings-and-the-container-is-gone",[14,2153,2154,2155,2157,2158,2160,2161,104],{},"Quark exits to finish an update, and nothing started it again. Run the container with ",[202,2156,1845],{},".\n",[47,2159,1397],{}," does the same thing, which is why it shows only with ",[202,2162,1855],{},[2164,2165,2166],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":472,"searchDepth":498,"depth":498,"links":2168},[2169,2170,2171,2172],{"id":37,"depth":498,"text":38},{"id":79,"depth":498,"text":80},{"id":152,"depth":498,"text":153},{"id":197,"depth":498,"text":32,"children":2173},[2174,2175,2177,2178],{"id":326,"depth":511,"text":49},{"id":811,"depth":511,"text":2176},"What quark install sets up",{"id":1129,"depth":511,"text":53},{"id":1960,"depth":511,"text":1961},"Run Quark on a Linux computer you already have, or in a container, and where to look when it will not start","md",{},"2026-11-21T12:20:21-05:00",{"title":5,"order":498},"\u002Fdocs\u002Fnerd-notes\u002Fself-hosting",{"title":5,"description":2179},"docs\u002Fnerd-notes\u002Fself-hosting","DIavejI-gMw_niO16Tqf0lWknE4jOv6PJyUlyrgxgeA",[2189,2193,2197,2201,2205,2209,2214,2218,2222,2225,2229,2232,2234,2236,2240,2244,2246,2248,2253,2257,2261,2265,2270,2272,2277,2281,2285,2289,2293,2297],{"path":2190,"title":2191,"navigation":2192},"\u002Fdocs\u002Fbooks","Books",{"title":2191,"order":479},{"path":2194,"title":2195,"navigation":2196},"\u002Fdocs\u002Fcalendar","Calendar",{"title":2195,"order":479},{"path":2198,"title":2199,"navigation":2200},"\u002Fdocs\u002Fchat","Chat",{"title":2199,"order":479},{"path":2202,"title":2203,"navigation":2204},"\u002Fdocs\u002Fdocs","Docs",{"title":2203,"order":479},{"path":2206,"title":2207,"navigation":2208},"\u002Fdocs\u002Ffiles\u002Ffile-types","File Types",{"title":2207,"order":498},{"path":2210,"title":2211,"navigation":2212},"\u002Fdocs\u002Ffiles\u002Fgoogle-takeout","Moving from Google with Google Takeout",{"title":2213,"order":511},"Google Takeout Guide",{"path":2215,"title":2216,"navigation":2217},"\u002Fdocs\u002Ffiles","Files",{"title":2216,"order":479},{"path":2219,"title":2220,"navigation":2221},"\u002Fdocs\u002Fhelp\u002Faccessibility","Accessibility",{"title":2220,"order":511},{"path":185,"title":2223,"navigation":2224},"Help",{"title":2223,"order":479},{"path":2226,"title":2227,"navigation":2228},"\u002Fdocs\u002Fhelp\u002Fkeyboard-shortcuts","Keyboard Shortcuts",{"title":2227,"order":525},{"path":192,"title":2230,"navigation":2231},"Things You Should Know (Security Guide)",{"title":193,"order":498},{"path":165,"title":32,"navigation":2233},{"title":32,"order":479},{"path":2184,"title":5,"navigation":2235},{"title":5,"order":498},{"path":2237,"title":2238,"navigation":2239},"\u002Fdocs\u002Fphotos","Photos",{"title":2238,"order":479},{"path":2241,"title":2242,"navigation":2243},"\u002Fdocs\u002Fsettings","Settings Reference",{"title":2242,"order":479},{"path":178,"title":179,"navigation":2245},{"title":179,"order":498},{"path":171,"title":172,"navigation":2247},{"title":172,"order":511},{"path":2249,"title":2250,"navigation":2251},"\u002Fdocs\u002Fsettings\u002Fversions","Versions and release notes",{"title":2252,"order":525},"Versions",{"path":2254,"title":2255,"navigation":2256},"\u002Fdocs\u002Fsheets\u002Fformulas","Sheets formulas",{"title":2255,"order":498},{"path":2258,"title":2259,"navigation":2260},"\u002Fdocs\u002Fsheets","Sheets",{"title":2259,"order":479},{"path":2262,"title":2263,"navigation":2264},"\u002Fdocs\u002Fslides","Slides",{"title":2263,"order":479},{"path":2266,"title":2267,"navigation":2268},"\u002Fdocs\u002Fstart\u002Fconnecting","Connecting to Your Quark",{"title":2269,"order":525},"Connecting",{"path":20,"title":21,"navigation":2271},{"title":21,"order":498},{"path":2273,"title":2274,"navigation":2275},"\u002Fdocs\u002Fstart\u002Fhow-it-works","How Quark Works",{"title":2276,"order":511},"How It Works",{"path":2278,"title":2279,"navigation":2280},"\u002Fdocs\u002Fstart\u002Fwelcome","Welcome",{"title":2279,"order":479},{"path":2282,"title":2283,"navigation":2284},"\u002Fdocs\u002Fsystem","System",{"title":2283,"order":479},{"path":2286,"title":2287,"navigation":2288},"\u002Fdocs\u002Fsystem\u002Fstorage-and-backups","Storage and Backups",{"title":2287,"order":498},{"path":2290,"title":2291,"navigation":2292},"\u002Fdocs\u002Ftrash","Trash",{"title":2291,"order":479},{"path":2294,"title":2295,"navigation":2296},"\u002Fdocs\u002Fusers","Users and sharing",{"title":2295,"order":479},{"path":2298,"title":2299,"navigation":2300},"\u002Fdocs\u002Fvault","Vault",{"title":2299,"order":479},1795283135293]