-
Notifications
You must be signed in to change notification settings - Fork 70
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
IOError: [Errno 13] Permission denied: u'/usr/local/zaproxy/zap.log' #50
Comments
Hi @PeterWilsonIFS! It looks like the user you're running zap-cli as doesn't have write permissions in the directory
Then it should hopefully work. :) |
Yep solved that problem. many thanks |
At the bottom of the log is |
I have run this command But still the start times out Many thanks |
It also does nto seem to be able to talk to zap as when I as for status tells me it is not running yet I can see the GUI in front of me. Not sure if this helps. Many thanks |
If you're running the GUI, what port is that running on? It looks like you have zap-cli trying to talk to it on port 8090, so while running the GUI you should be able to confirm if this is the port being used by opening http://127.0.0.1:8090 in your browser and see if the ZAP API page is shown. This is the page |
the important bit I discovered what that you have to have a proxy running onhttp://127.0.0.1:port zap-cli is useing then it all works a lot better :) Many thaks |
[INFO] Starting ZAP daemon
Traceback (most recent call last):
File "/home/ifs/.local/bin/zap-cli", line 11, in
sys.exit(cli())
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 664, in call
return self.main(*args, **kwargs)
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/ifs/.local/lib/python2.7/site-packages/click/decorators.py", line 26, in new_func
return ctx.invoke(f, ctx.obj, *args[1:], **kwargs)
File "/home/ifs/.local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/ifs/.local/lib/python2.7/site-packages/zapcli/cli.py", line 55, in start_zap_daemon
zap_helper.start(options=start_options)
File "/home/ifs/.local/lib/python2.7/site-packages/zapcli/zap_helper.py", line 84, in start
with open(log_path, 'w+') as log_file:
IOError: [Errno 13] Permission denied: u'/usr/local/zaproxy/zap.log'
ifs@nthubuntu:~$ IOError: [Errno 13] Permission denied: u'/usr/local/zaproxy/zap.log'
IOError:: command not found
Just wondering what I am doing wrong.
Many thanks
The text was updated successfully, but these errors were encountered: