{"record":{"id":"9721f4dcd4ab7d96","repo":"sqlmapproject/sqlmap","slug":"unable-to-flush-the-session-file-s","errorCode":null,"errorMessage":"unable to flush the session file ('%s')","messagePattern":"unable to flush the session file \\('(.+?)'\\)","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/core/target.py","lineNumber":499,"sourceCode":"def _setHashDB():\n    \"\"\"\n    Check and set the HashDB SQLite file for query resume functionality.\n    \"\"\"\n\n    if not conf.hashDBFile:\n        conf.hashDBFile = conf.sessionFile or os.path.join(conf.outputPath, SESSION_SQLITE_FILE)\n\n    if conf.flushSession:\n        if os.path.exists(conf.hashDBFile):\n            if conf.hashDB:\n                conf.hashDB.closeAll()\n\n            try:\n                os.remove(conf.hashDBFile)\n                logger.info(\"flushing session file\")\n            except OSError as ex:\n                errMsg = \"unable to flush the session file ('%s')\" % getSafeExString(ex)\n                raise SqlmapFilePathException(errMsg)\n\n        for suffix in (\"-shm\", \"-wal\"):\n            leftover = conf.hashDBFile + suffix\n            if os.path.exists(leftover):\n                try:\n                    os.remove(leftover)\n                except OSError:\n                    pass\n\n    conf.hashDB = HashDB(conf.hashDBFile)\n\ndef _resumeHashDBValues():\n    \"\"\"\n    Resume stored data values from HashDB\n    \"\"\"\n\n    kb.absFilePaths = hashDBRetrieve(HASHDB_KEYS.KB_ABS_FILE_PATHS, True) or kb.absFilePaths\n    kb.brute.tables = hashDBRetrieve(HASHDB_KEYS.KB_BRUTE_TABLES, True) or kb.brute.tables","sourceCodeStart":481,"sourceCodeEnd":517,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/target.py#L481-L517","documentation":"Error \"unable to flush the session file ('%s')\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/target.py:499 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":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}