{"record":{"id":"84d1a1abf2d84ff8","repo":"coollabsio/coolify","slug":"configuration-is-not-synced-84d1a1","errorCode":null,"errorMessage":"Configuration is not synced","messagePattern":"Configuration is not synced","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Jobs/RestartProxyJob.php","lineNumber":89,"sourceCode":"            return handleError($e);\n        }\n    }\n\n    /**\n     * Build combined stop + start commands for proxy restart.\n     * This creates a single command sequence that shows all logs in one activity.\n     */\n    private function buildRestartCommands(): array\n    {\n        $proxyType = $this->server->proxyType();\n        $containerName = $this->server->isSwarm() ? 'coolify-proxy_traefik' : 'coolify-proxy';\n        $proxy_path = $this->server->proxyPath();\n        $stopTimeout = 30;\n\n        // Get proxy configuration\n        $configuration = GetProxyConfiguration::run($this->server);\n        if (! $configuration) {\n            throw new \\Exception('Configuration is not synced');\n        }\n        SaveProxyConfiguration::run($this->server, $configuration);\n        $docker_compose_yml_base64 = base64_encode($configuration);\n        $this->server->proxy->last_applied_settings = str($docker_compose_yml_base64)->pipe('md5')->value();\n        $this->server->save();\n\n        $commands = collect([]);\n\n        // === STOP PHASE ===\n        $commands = $commands->merge([\n            \"echo 'Stopping proxy...'\",\n            dockerStopCommand($stopTimeout, $containerName, $this->server).' 2>/dev/null || true',\n            \"docker rm -f $containerName 2>/dev/null || true\",\n            '# Wait for container to be fully removed',\n            'for i in {1..15}; do',\n            \"    if ! docker ps -a --format \\\"{{.Names}}\\\" | grep -q \\\"^$containerName$\\\"; then\",\n            \"        echo 'Container removed successfully.'\",\n            '        break',","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Jobs/RestartProxyJob.php#L71-L107","documentation":"Error \"Configuration is not synced\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Jobs/RestartProxyJob.php:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}