[{"data":1,"prerenderedAt":819},["ShallowReactive",2],{"doc:docs_en:\u002Fdocs\u002F05-xu-ly-su-co":3,"doc-nav:docs_en":802},{"id":4,"title":5,"body":6,"description":794,"extension":795,"meta":796,"navigation":797,"path":798,"seo":799,"stem":800,"__hash__":801},"docs_en\u002Fdocs\u002F05-xu-ly-su-co.md","5. Troubleshooting",{"type":7,"value":8,"toc":786},"minimark",[9,13,22,27,53,57,263,267,394,398,544,548,556,699,703,706,758,782],[10,11,5],"h1",{"id":12},"_5-troubleshooting",[14,15,16,17,21],"p",{},"Run ",[18,19,20],"code",{},"hexcore doctor"," first: it spots most Docker, chain and permission problems and suggests fixes.",[23,24,26],"h2",{"id":25},"_51-installing-the-cli","5.1 Installing the CLI",[14,28,29,30,33,34,37,38,43,44,47,48,52],{},"node-gyp, Python 3, ",[18,31,32],{},"EACCES",", ",[18,35,36],{},"better-sqlite3"," errors: ",[39,40,42],"a",{"href":41},"01-chuan-bi-may#16-errors-installing-the-cli-node-gyp-python-3","§1.6",". ",[18,45,46],{},"NODE_MODULE_VERSION"," errors after changing Node.js: ",[39,49,51],{"href":50},"01-chuan-bi-may#17-change-the-nodejs-version","§1.7",".",[23,54,56],{"id":55},"_52-hexcore-and-docker","5.2 Hexcore and Docker",[58,59,60,73],"table",{},[61,62,63],"thead",{},[64,65,66,70],"tr",{},[67,68,69],"th",{},"Symptom",[67,71,72],{},"Fix",[74,75,76,95,119,140,165,200,220,253],"tbody",{},[64,77,78,85],{},[79,80,81,84],"td",{},[18,82,83],{},"DOCKER_UNAVAILABLE",", banner \"Docker is unreachable.\"",[79,86,87,90,91,94],{},[18,88,89],{},"sudo systemctl start docker","; ",[18,92,93],{},"sudo usermod -aG docker $USER"," then log in again. macOS: open Docker Desktop",[64,96,97,102],{},[79,98,99],{},[18,100,101],{},"sudo: hexcore: command not found",[79,103,104,107,108,111,112,111,116,118],{},[18,105,106],{},"sudo"," cannot see nvm's Node.js. Run ",[18,109,110],{},"hexcore"," ",[113,114,115],"strong",{},"without",[18,117,106],{},"; when root is needed, Hexcore prints the exact command",[64,120,121,126],{},[79,122,123],{},[18,124,125],{},"port 4000 on … is already in use",[79,127,128,131,132,135,136,139],{},[18,129,130],{},"hexcore status"," to see whether another Hexcore runs; change the port with ",[18,133,134],{},"hexcore start --port 4100"," or the ",[18,137,138],{},"PORT"," variable. Do not kill a process before knowing what it is",[64,141,142,145],{},[79,143,144],{},"Lost the first-time setup link; forgot admin password",[79,146,16,147,149,150,153,154,157,158,161,162],{},[18,148,110],{}," again (reprints the link, same token; under a service use ",[18,151,152],{},"hexcore logs",") or ",[18,155,156],{},"hexcore init",". Password: ",[18,159,160],{},"hexcore password"," or ",[18,163,164],{},"hexcore password --generate",[64,166,167,176],{},[79,168,169,172,173],{},[18,170,171],{},"hexcore --version"," still shows the old version after ",[18,174,175],{},"hexcore update",[79,177,178,179,182,183,185,186,188,189,192,193,199],{},"Update installs into ",[18,180,181],{},"~\u002F.hexcore\u002Fversions\u002F","; the ",[18,184,110],{}," on PATH is the npm install. Check the running version with ",[18,187,130],{},"; sync the CLI: ",[18,190,191],{},"npm i -g @vtechcom\u002Fhexcore@\u003Cversion>"," (",[39,194,198],{"href":195,"rel":196},"https:\u002F\u002Fgithub.com\u002FVtechcom\u002Fhexcore-v2\u002Fissues\u002F37",[197],"nofollow","#37",")",[64,201,202,205],{},[79,203,204],{},"Service fails after changing Node.js",[79,206,207,208,211,212,215,216,219],{},"The systemd unit hard-codes the old ",[18,209,210],{},"node"," path: ",[18,213,214],{},"npm i -g @vtechcom\u002Fhexcore"," with the new Node.js, then ",[18,217,218],{},"hexcore service install"," again",[64,221,222,225],{},[79,223,224],{},"Config change has no effect",[79,226,227,228,231,232,235,236,161,239,242,243,43,246,248,249,252],{},"A higher layer is winning (environment variable, ",[18,229,230],{},".env"," in the current directory, ",[18,233,234],{},"~\u002F.hexcore\u002Fconfig.json",", defaults): see ",[18,237,238],{},"hexcore config",[113,240,241],{},"Settings"," → ",[113,244,245],{},"Where each value comes from",[18,247,138],{}," and ",[18,250,251],{},"STATE_DIR"," are read only at startup: restart",[64,254,255,260],{},[79,256,257,259],{},[18,258,175],{}," silent for ~1 minute",[79,261,262],{},"The new version is in its 60-second probation: wait. If it is unstable, Hexcore rolls back",[23,264,266],{"id":265},"_53-head","5.3 Head",[58,268,269,277],{},[61,270,271],{},[64,272,273,275],{},[67,274,69],{},[67,276,72],{},[74,278,279,294,306,318,330,338,352,364,378],{},[64,280,281,287],{},[79,282,283,286],{},[113,284,285],{},"Start"," blocked: \"… has no funds yet.\"",[79,288,289,290,293],{},"Get test ADA via ",[113,291,292],{},"Open faucet",", wait for the transaction to confirm",[64,295,296,299],{},[79,297,298],{},"Node never ready, start times out",[79,300,301,302,305],{},"Usually no funds or the wrong chain backend. Check the ",[113,303,304],{},"Container log"," tab and the boot screen; logs can arrive late, so do not conclude from an empty log",[64,307,308,311],{},[79,309,310],{},"Blockfrost returns 403",[79,312,313,314,317],{},"Key is for another network (a ",[18,315,316],{},"preprod…"," key works only on preprod)",[64,319,320,323],{},[79,321,322],{},"\"Node is out of sync\"",[79,324,325,326,329],{},"cardano-node: check it is synced (",[18,327,328],{},"cardano-cli query tip",") and the clock is right. Blockfrost: wait, it lags the tip by 50–80 seconds",[64,331,332,335],{},[79,333,334],{},"Blockfrost head restarts in a loop",[79,336,337],{},"hydra#2923 (token with an empty asset name): use the cardano-node backend",[64,339,340,343],{},[79,341,342],{},"Cannot pull the hydra-node image",[79,344,345,348,349],{},[18,346,347],{},"docker pull ghcr.io\u002Fcardano-scaling\u002Fhydra-node:2.4.2"," on the server; allow outbound access to ",[18,350,351],{},"ghcr.io",[64,353,354,357],{},[79,355,356],{},"Port already in use when starting a head",[79,358,359,360,363],{},"Change ",[18,361,362],{},"PORT_BASE"," (default 14000, each node takes 10 consecutive ports)",[64,365,366,371],{},[79,367,368,369],{},"Reset\u002Fdelete reports ",[18,370,32],{},[79,372,373,374,377],{},"Before 2.0.0-beta.6, root-owned files written by hydra-node could not be removed: update; on an old version ",[18,375,376],{},"sudo rm -rf"," the head's directory",[64,379,380,383],{},[79,381,382],{},"Settings warns the node API is reachable from other machines",[79,384,385,386,389,390,393],{},"Remove ",[18,387,388],{},"NODE_PORT_BIND"," (not ",[18,391,392],{},"127.0.0.1","). Old containers change only when the head restarts: pick the moment yourself, since restarting an open head has on-chain consequences",[23,395,397],{"id":396},"_54-multi-machine-heads-and-reverse-proxy","5.4 Multi-machine heads and reverse proxy",[58,399,400,408],{},[61,401,402],{},[64,403,404,406],{},[67,405,69],{},[67,407,72],{},[74,409,410,429,447,459,474,485,512,530],{},[64,411,412,415],{},[79,413,414],{},"Creating a multi-machine head asks for a Public URL",[79,416,417,242,419,242,422,192,425,199],{},[113,418,241],{},[113,420,421],{},"Public URL",[113,423,424],{},"Use this page's address",[39,426,428],{"href":427},"03-cai-tren-server#39-set-the-public-url-and-verify","§3.9",[64,430,431,436],{},[79,432,433,435],{},[113,434,285],{}," says a container cannot reach the relay listener",[79,437,438,439,442,443,446],{},"The host firewall (ufw by default) blocks Docker-to-host traffic: run the exact ",[18,440,441],{},"ufw","\u002F",[18,444,445],{},"iptables"," rule Hexcore prints, then start again",[64,448,449,452],{},[79,450,451],{},"Party \"left\", head does not progress; party \"unknown\"",[79,453,454,455,458],{},"\"Left\": their node stopped, lost network, or their Hexcore is unreachable: ask them to check ",[18,456,457],{},"curl https:\u002F\u002F\u003Ctheir-public-url>\u002Fhealth",". \"Unknown\" is not an error (no connection seen since Hexcore began watching); for certainty check the node log",[64,460,461,467],{},[79,462,463,464],{},"Warning \"Parties call a node by different addresses\", ",[18,465,466],{},"NetworkClusterIDMismatch",[79,468,469,470,473],{},"One node is called by two ",[18,471,472],{},"host:port"," strings: every party must spell the Public URL (relay) or P2P advertise host (direct) identically",[64,475,476,479],{},[79,477,478],{},"Tunnel error right on connect, auth errors in the log",[79,480,481,482,199],{},"The two servers' clocks differ by more than 60 seconds: enable NTP (",[18,483,484],{},"timedatectl",[64,486,487,490],{},[79,488,489],{},"Works through the domain but the console cannot connect, or console\u002Ftunnel drops after ~60 seconds",[79,491,492,493,496,497,442,500,503,504,508,509],{},"nginx needs ",[18,494,495],{},"proxy_http_version 1.1"," and the ",[18,498,499],{},"Upgrade",[18,501,502],{},"Connection"," headers (",[39,505,507],{"href":506},"03-cai-tren-server#38-reverse-proxy-option-2-nginx--certbot","§3.8","), plus ",[18,510,511],{},"proxy_read_timeout 1h; proxy_send_timeout 1h;",[64,513,514,519],{},[79,515,516],{},[18,517,518],{},"502 Bad Gateway",[79,520,521,90,523,526,527],{},[18,522,130],{},[18,524,525],{},"curl http:\u002F\u002F127.0.0.1:4000\u002Fhealth"," on the server; RHEL family: ",[18,528,529],{},"sudo setsebool -P httpd_can_network_connect 1",[64,531,532,535],{},[79,533,534],{},"Caddy cannot get a certificate",[79,536,537,540,541],{},[18,538,539],{},"dig +short \u003Cdomain>","; open ports 80\u002F443 in the firewall and cloud security group; see ",[18,542,543],{},"journalctl -u caddy",[23,545,547],{"id":546},"_55-trust-center","5.5 Trust Center",[14,549,550,551,52],{},"How Trust Center works and what its terms mean: ",[39,552,555],{"href":553,"rel":554},"https:\u002F\u002Fdocs.hydraone.app\u002Fen\u002Ftrust\u002Ftrust-center",[197],"Trust Center documentation",[58,557,558,567],{},[61,559,560],{},[64,561,562,565],{},[67,563,564],{},"Message in Hexcore",[67,566,72],{},[74,568,569,577,592,606,614,625,637,645,653,661,673,685],{},[64,570,571,574],{},[79,572,573],{},"The enrollment code is not valid",[79,575,576],{},"Code is wrong, used, expired (72 hours) or revoked: ask the admin for a new one",[64,578,579,582],{},[79,580,581],{},"Trust Center did not answer in time \u002F code may have been used",[79,583,584,585,588,589],{},"Retry. Still failing: ask the admin for a connector id and paste it into ",[113,586,587],{},"Connector id from admin"," under ",[113,590,591],{},"Configuration → Register by hand",[64,593,594,597],{},[79,595,596],{},"Trust Center could not verify this Hexcore's key",[79,598,599,600,603,604],{},"Enter the API URL exactly as the admin sent it, no ",[18,601,602],{},"\u002Fv1",", no trailing ",[18,605,442],{},[64,607,608,611],{},[79,609,610],{},"Clock off by more than 5 minutes",[79,612,613],{},"Enable NTP",[64,615,616,619],{},[79,617,618],{},"An admin revoked this connector",[79,620,621,624],{},[18,622,623],{},"hexcore trust-center rotate-key",", get a new code, enroll again",[64,626,627,630],{},[79,628,629],{},"Claim rejected: vkey not in datum",[79,631,632,633,636],{},"The head on L1 lacks that node: check the head id (the head may have been ",[18,634,635],{},"Init","-ed again)",[64,638,639,642],{},[79,640,641],{},"Claim rejected: unsupported version \u002F wrong network",[79,643,644],{},"Only hydra-node 2.4.2 heads can report; the test Trust Center accepts only preprod",[64,646,647,650],{},[79,648,649],{},"Claim rejected: node already belongs to another key holder",[79,651,652],{},"Contact the Trust Center admin",[64,654,655,658],{},[79,656,657],{},"Too many heads waiting",[79,659,660],{},"Wait for heads in \"Waiting for the head to open\", or turn off some reporting",[64,662,663,666],{},[79,664,665],{},"Hexcore sends but Trust Center shows Offline",[79,667,668,669,672],{},"Make sure no two machines share one ",[18,670,671],{},"~\u002F.hexcore"," (same connector key); or wait a minute",[64,674,675,678],{},[79,676,677],{},"Domain not verified",[79,679,680,681,684],{},"Public URL must be public, HTTPS on port 443; from outside check ",[18,682,683],{},"https:\u002F\u002F\u003Cdomain>\u002F.well-known\u002Fhexcore\u002Ftrust-center.json"," returns the public key",[64,686,687,690],{},[79,688,689],{},"Trust Center switch in Settings is locked",[79,691,385,692,695,696,698],{},[18,693,694],{},"TRUST_CENTER_ENABLED"," from the environment or ",[18,697,230],{},", restart",[23,700,702],{"id":701},"_56-sending-a-bug-report","5.6 Sending a bug report",[14,704,705],{},"Include the output of:",[707,708,713],"pre",{"className":709,"code":710,"language":711,"meta":712,"style":712},"language-bash shiki shiki-themes github-light github-dark","hexcore status\nhexcore doctor\nhexcore config     # secrets show only \"(set)\" \u002F \"(not set)\", never the value\nhexcore logs       # the log around the time of the error\n","bash","",[18,714,715,727,735,747],{"__ignoreMap":712},[716,717,720,723],"span",{"class":718,"line":719},"line",1,[716,721,110],{"class":722},"sScJk",[716,724,726],{"class":725},"sZZnC"," status\n",[716,728,730,732],{"class":718,"line":729},2,[716,731,110],{"class":722},[716,733,734],{"class":725}," doctor\n",[716,736,738,740,743],{"class":718,"line":737},3,[716,739,110],{"class":722},[716,741,742],{"class":725}," config",[716,744,746],{"class":745},"sJ8bj","     # secrets show only \"(set)\" \u002F \"(not set)\", never the value\n",[716,748,750,752,755],{"class":718,"line":749},4,[716,751,110],{"class":722},[716,753,754],{"class":725}," logs",[716,756,757],{"class":745},"       # the log around the time of the error\n",[14,759,760,761,764,765,33,768,771,772,33,775,161,778,781],{},"Plus the operating system and CPU (",[18,762,763],{},"uname -a","), ",[18,766,767],{},"node -v",[18,769,770],{},"docker version",", the hydra-node version, chain backend and reproduction steps. Do not send ",[18,773,774],{},"~\u002F.hexcore\u002Fheads\u002F*\u002Fkeys\u002F",[18,776,777],{},"~\u002F.hexcore\u002Ftrust-center\u002F",[18,779,780],{},"secrets.json",": they are keys and secrets.",[783,784,785],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}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 .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);}",{"title":712,"searchDepth":729,"depth":729,"links":787},[788,789,790,791,792,793],{"id":25,"depth":729,"text":26},{"id":55,"depth":729,"text":56},{"id":265,"depth":729,"text":266},{"id":396,"depth":729,"text":397},{"id":546,"depth":729,"text":547},{"id":701,"depth":729,"text":702},"Run hexcore doctor first: it spots most Docker, chain and permission problems and suggests fixes.","md",{},true,"\u002Fdocs\u002F05-xu-ly-su-co",{"title":5,"description":794},"docs\u002F05-xu-ly-su-co","yO9f6Ri35_7fPbDbq0tZk6LuCFjzjxKBeZjpoCo2EQM",[803,806,809,812,815,816],{"path":804,"title":805},"\u002Fdocs\u002F01-chuan-bi-may","1. Prepare your machine and install the Hexcore CLI",{"path":807,"title":808},"\u002Fdocs\u002F02-developer-dapp","2. Guide for DApp developers",{"path":810,"title":811},"\u002Fdocs\u002F03-cai-tren-server","3. Install Hexcore on a server (Ubuntu, Debian, RHEL family)",{"path":813,"title":814},"\u002Fdocs\u002F04-provider-trust-center","4. Guide for providers joining Hydra Trust Center",{"path":798,"title":5},{"path":817,"title":818},"\u002Fdocs\u002Freadme","Hexcore v2 user guide",1795426328408]