Grunny/zap-cli

zap-cli returned org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqld

aidatulahmad opened this issue · 2 comments

Hi,
I am running the zap-cli inside docker :

$ docker run -it -v $(pwd)/zap/contexts:/zapcontext -v $(pwd)/zap/sessions:/zapsession owasp/zap2docker-stable bash

and the following is the step of commands that I executed :

  1. $ zap-cli start --start-options '-config api.disablekey=true'
  2. $ zap-cli session new
  3. $ zap-cli session load /zapsession/project1/project1.session
  4. $ zap-cli context import /zapcontext/project1.context
  5. $ zap-cli active-scan --recursive -c project1 -u RegUser https://project1.com

In the console, the following error is returned :
[ERROR]Error running active scan: "URL Not Found in the Scan Tree". Make sure the URL is in the site tree by using the open-url or scanner commands before running an active scan.

And I checked the zap.log file, the following error is returned :
org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@d02cc887[file =/zapsession/project1.session.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /zapsession/project1.session.lck (Permission denied)

Is anyone ever faced the same problem? Can you guys help me how to solve this?

Thank you.

@aidanadia did you solved it?

@eranpeleg1 I don't really remember if I solved it but I checked the steps I used, I skipped step #2 ($ zap-cli session new).
After the zap-cli started, I proceeded to load the saved session.