{"record":{"id":"b337c3a636ada4e3","repo":"kestra-io/kestra","slug":"cannot-create-local-repository-for-plugins","errorCode":null,"errorMessage":"Cannot create local repository for plugins","messagePattern":"Cannot create local repository for plugins","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/io/kestra/core/plugins/PluginManager.java","lineNumber":129,"sourceCode":"     * @return the repository path or the default one.\n     */\n    static Path getLocalManagedRepositoryPathOrDefault(final @Nullable String path) {\n        Path resolved = Optional.ofNullable(path)\n            .map(Path::of)\n            .orElseGet(\n                () -> Path\n                    .of(System.getProperty(\"java.io.tmpdir\"))\n                    .resolve(\"kestra/plugins-repository\")\n            );\n        return createLocalRepositoryIfNotExist(resolved);\n    }\n\n    static Path createLocalRepositoryIfNotExist(final Path resolved) {\n        if (!Files.exists(resolved)) {\n            try {\n                Files.createDirectories(resolved);\n            } catch (IOException e) {\n                throw new RuntimeException(\"Cannot create local repository for plugins\", e);\n            }\n        }\n        return resolved;\n    }\n\n}\n","sourceCodeStart":111,"sourceCodeEnd":136,"githubUrl":"https://github.com/kestra-io/kestra/blob/823fada9274c4f9c251ea0a516460a4f7d958032/core/src/main/java/io/kestra/core/plugins/PluginManager.java#L111-L136","documentation":"Error \"Cannot create local repository for plugins\" thrown in kestra-io/kestra.","triggerScenarios":"Thrown at core/src/main/java/io/kestra/core/plugins/PluginManager.java:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the plugins directory path exists and the Kestra process has write permission on it, then retry.","Point the plugins path to a writable directory via the --plugins option or the KESTRA_PLUGINS_PATH environment variable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"823fada9274c4f9c251ea0a516460a4f7d958032","analyzedAt":"2026-08-14T06:15:17.947Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}