{"record":{"id":"9ae8a9c286760b11","repo":"sqlmapproject/sqlmap","slug":"the-provided-database-file-s-does-not-exist","errorCode":null,"errorMessage":"the provided database file '%s' does not exist","messagePattern":"the provided database file '(.+?)' does not exist","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/utils/sqlalchemy.py","lineNumber":72,"sourceCode":"        if conf.dbmsUser:\n            self.address = self.address.replace(\"'%s':\" % conf.dbmsUser, \"%s:\" % _urllib.parse.quote(conf.dbmsUser))\n            self.address = self.address.replace(\"%s:\" % conf.dbmsUser, \"%s:\" % _urllib.parse.quote(conf.dbmsUser))\n\n        if conf.dbmsPass:\n            self.address = self.address.replace(\":'%s'@\" % conf.dbmsPass, \":%s@\" % _urllib.parse.quote(conf.dbmsPass))\n            self.address = self.address.replace(\":%s@\" % conf.dbmsPass, \":%s@\" % _urllib.parse.quote(conf.dbmsPass))\n\n        if self.dialect:\n            self.address = re.sub(r\"\\A.+://\", \"%s://\" % self.dialect, self.address)\n\n    def connect(self):\n        if _sqlalchemy:\n            self.initConnection()\n\n            try:\n                if not self.port and self.db:\n                    if not os.path.exists(self.db):\n                        raise SqlmapFilePathException(\"the provided database file '%s' does not exist\" % self.db)\n\n                    _ = self.address.split(\"//\", 1)\n                    # Note: SQLAlchemy's absolute-SQLite form is 'sqlite:///' + abspath (the abspath's own\n                    # leading '/' completes the triple slash on POSIX). A 4th slash yields db '//path' (only\n                    # tolerated on Linux by accident) and, on Windows, '/C:\\...' which fails to open.\n                    self.address = \"%s///%s\" % (_[0], os.path.abspath(self.db))\n\n                if self.dialect == \"sqlite\":\n                    engine = _sqlalchemy.create_engine(self.address, connect_args={\"check_same_thread\": False})\n                elif self.dialect == \"oracle\":\n                    engine = _sqlalchemy.create_engine(self.address)\n                else:\n                    engine = _sqlalchemy.create_engine(self.address, connect_args={})\n\n                self.connector = engine.connect()\n            except (TypeError, ValueError) as ex:\n                if \"_get_server_version_info\" in traceback.format_exc():\n                    try:","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/sqlalchemy.py#L54-L90","documentation":"Error \"the provided database file '%s' does not exist\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/sqlalchemy.py:72 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"}