{"record":{"id":"c2dd1477650168c9","repo":"appwrite/appwrite","slug":"failed-to-connect-installer-to-appwrite-network","errorCode":null,"errorMessage":"Failed to connect installer to appwrite network: {$outputStr}","messagePattern":"Failed to connect installer to appwrite network: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/Appwrite/Platform/Tasks/Install.php","lineNumber":1033,"sourceCode":"\n        $outputStr = '';\n        for ($i = 0; $i < 10; $i++) {\n            $output = [];\n            @exec(\"docker network connect {$network} {$container} 2>&1\", $output, $exitCode);\n\n            if ($exitCode === 0) {\n                return;\n            }\n\n            $outputStr = implode(' ', $output);\n            if (str_contains($outputStr, 'already exists')) {\n                return;\n            }\n\n            sleep(1);\n        }\n\n        throw new \\Exception('Failed to connect installer to appwrite network: ' . $outputStr);\n    }\n\n    private function makeApiCall(string $endpoint, array $body, bool $extractSession = false, string $apiUrl = self::APPWRITE_API_URL, string $domain = 'localhost')\n    {\n        $client = new Client();\n        $client\n            ->setTimeout(30000)\n            ->setConnectTimeout(10000)\n            ->addHeader('Content-Type', 'application/json')\n            ->addHeader('X-Appwrite-Project', 'console')\n            ->addHeader('Host', $domain);\n\n        $url = $apiUrl . $endpoint;\n        $response = $client->fetch($url, Client::METHOD_POST, $body);\n\n        if ($response->getStatusCode() !== 201) {\n            $error = $response->json();\n            $message = $error['message'] ?? ('HTTP ' . $response->getStatusCode() . ': ' . $response->getBody());","sourceCodeStart":1015,"sourceCodeEnd":1051,"githubUrl":"https://github.com/appwrite/appwrite/blob/a1d520eea492ebd1da1ef2dc8db5b2b34e277dce/src/Appwrite/Platform/Tasks/Install.php#L1015-L1051","documentation":"Error \"Failed to connect installer to appwrite network: {$outputStr}\" thrown in appwrite/appwrite.","triggerScenarios":"Thrown at src/Appwrite/Platform/Tasks/Install.php:1033 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the 'appwrite' Docker network exists (docker network ls); create it with 'docker network create appwrite' if missing, then retry.","Run the installer with the same Docker context/host that runs the Appwrite stack so the network is visible."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a1d520eea492ebd1da1ef2dc8db5b2b34e277dce","analyzedAt":"2026-08-18T21:34:56.994Z","contentChangedAt":"2026-08-18T21:34:56.994Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}