Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aidatulahmad opened this issue Apr 25, 2019 · 2 comments

Comments

@aidatulahmad
Copy link

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.

@eranpeleg1
Copy link

@aidanadia did you solved it?

@aidatulahmad
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants