sqlmapproject/sqlmap · error · SqlmapFilePathException
the provided local file
Error message
the provided local file '%s' does not exist
What it means
--file-write setup: conf.fileWrite points to a local file that does not exist (os.path.exists is false), so there is nothing to upload to the back-end DBMS and SqlmapFilePathException is raised.
Solutions
- Correct the --file-write path or use an absolute path
- Ensure the local file is readable by the sqlmap process
- Verify working directory when using relative paths
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:749 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/f7f5ce0074b161b7.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:749
conf.msfPath = envPath
break
if not msfEnvPathExists:
errMsg = "unable to locate Metasploit Framework installation. "
errMsg += "You can get it at 'https://www.metasploit.com/download/'"
raise SqlmapFilePathException(errMsg)
def _setWriteFile():
if not conf.fileWrite:
return
debugMsg = "setting the write file functionality"
logger.debug(debugMsg)
if not os.path.exists(conf.fileWrite):
errMsg = "the provided local file '%s' does not exist" % conf.fileWrite
raise SqlmapFilePathException(errMsg)
if not conf.fileDest:
errMsg = "you did not provide the back-end DBMS absolute path "
errMsg += "where you want to write the local file '%s'" % conf.fileWrite
raise SqlmapMissingMandatoryOptionException(errMsg)
conf.fileWriteType = getFileType(conf.fileWrite)
def _setOS():
"""
Force the back-end DBMS operating system option.
"""
if not conf.os:
return
if conf.os.lower() not in SUPPORTED_OS:
errMsg = "you provided an unsupported back-end DBMS operating "View on GitHub (pinned to 0a35b20e39)