{"record":{"id":"4f160c9467cadd15","repo":"screenpipe/screenpipe","slug":"path-does-not-exist","errorCode":null,"errorMessage":"path does not exist: {}","messagePattern":"path does not exist: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/screenpipe-connect/src/connections/logseq.rs","lineNumber":43,"sourceCode":"\npub struct Logseq;\n\n#[async_trait]\nimpl Integration for Logseq {\n    fn def(&self) -> &'static IntegrationDef {\n        &DEF\n    }\n\n    async fn test(\n        &self,\n        _client: &reqwest::Client,\n        creds: &Map<String, Value>,\n        _secret_store: Option<&SecretStore>,\n    ) -> Result<String> {\n        let graph_path = require_str(creds, \"graph_path\")?;\n        let p = std::path::Path::new(graph_path);\n        if !p.exists() {\n            anyhow::bail!(\"path does not exist: {}\", graph_path);\n        }\n        if !p.join(\"logseq\").exists() {\n            anyhow::bail!(\"not a Logseq graph (missing logseq/ directory)\");\n        }\n        Ok(format!(\"connected to graph at {}\", graph_path))\n    }\n}\n","sourceCodeStart":25,"sourceCodeEnd":51,"githubUrl":"https://github.com/screenpipe/screenpipe/blob/4ebf712990fee17eeaf904dacf749b6e96ac9bf3/crates/screenpipe-connect/src/connections/logseq.rs#L25-L51","documentation":"The Logseq connection's connect/test step validates the user-supplied `graph_path` credential and bails if the filesystem path does not exist at all. This is raised in the test/connect entry point before checking that it is actually a Logseq graph.","triggerScenarios":"Configuring the Logseq connection with creds `{\"graph_path\": \"/some/dir\"}` where the directory was deleted, moved, or the string has a typo; relative path resolved from an unexpected working directory.","commonSituations":"User moved their Logseq graph to iCloud/Dropbox and the sync path changed; graph stored under a renamed home folder; path typed with ~ unexpanded by the integration.","solutions":["Check the path exists: ls <graph_path>; correct the graph_path credential value","Expand ~ to an absolute path and use the folder that contains pages/, journals/, and logseq/","Reconnect the Logseq connection with the updated path"],"exampleFix":"// before\n{\"graph_path\": \"~/MyGraph\"}\n// after\n{\"graph_path\": \"/Users/me/MyGraph\"}","handlingStrategy":"validation","validationCode":"const fs = require('fs'); if (!fs.existsSync(graphPath)) throw new Error(`graph_path missing: ${graphPath}`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use absolute, ~-expanded paths in connection creds","Re-test the connection after moving or renaming a graph","Verify the folder contains pages/ and logseq/ before configuring"],"tags":["filesystem","config","logseq"],"backgroundTag":"path-does-not-exist","analyzedSha":"4ebf712990fee17eeaf904dacf749b6e96ac9bf3","analyzedAt":"2026-09-01T23:33:43.065Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}