zap weekly baseline error

310 views
Skip to first unread message

JammasterJ

unread,
Mar 20, 2017, 7:36:39 AM3/20/17
to OWASP ZAP User Group
Hello,

I am trying to get the ZAP weekly baseline working but having some issues.

I am using the following docker-ce version on Ubuntu 16.04 (latest weekly):

Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 08:01:32 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 08:01:32 2017
 OS/Arch:      linux/amd64
 Experimental: false

I can get the ZAP stable baseline to work fine (docker run -t owasp/zap2docker-stable zap-baseline.py -t https://example.com)

But if I run the weekly version I get the following error:

docker run -t owasp/zap2docker-weekly zap-baseline.py -t https://example.com
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Mar 20, 2017 11:17:04 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Traceback (most recent call last):
  File "/zap/zap-baseline.py", line 612, in <module>
    main(sys.argv[1:])
  File "/zap/zap-baseline.py", line 575, in main
    except IOError as (errno, strerror):
ValueError: too many values to unpack

I've removed all of the extra flags and tried to keep the command as simple as possible but still no luck.

Thanks for any help!

kingthorin+owaspzap

unread,
Mar 20, 2017, 8:13:11 AM3/20/17
to OWASP ZAP User Group
I haven't worked with the dockerized version but the error seems to be a permissions thing:


"_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created."


Simon Bennetts

unread,
Mar 20, 2017, 8:28:15 AM3/20/17
to OWASP ZAP User Group
No, that error can be ignored.

I can reproduce the underlying problem here - I'll investigate and report back.

Cheers,

Simon

Simon Bennetts

unread,
Mar 21, 2017, 7:08:09 AM3/21/17
to OWASP ZAP User Group
Can you try again with the latest weekly release - the problem will hopefully be fixed now.

Many thanks,

Simon

JammasterJ

unread,
Mar 21, 2017, 11:01:59 AM3/21/17
to OWASP ZAP User Group
Thanks Simon, working great now :).

Thanks again!

benjam...@csra.com

unread,
May 11, 2018, 10:12:37 AM5/11/18
to OWASP ZAP User Group
Hello,

I pulled the docker owasp/zap2docker-stable image and ran into the same error as above when executing docker run command:

   _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

No other errors appeared. The docker process did not terminate so I closed the session. Then opening another terminal and connecting into the container, I was that the file was created. The /tmp/.X1-lock and /tmp/.X11-unix files are owned by "zap:zap". I not sure what should needs to be done to remedy the problem.

Please let me know,
Ben

Simon Bennetts

unread,
May 11, 2018, 10:32:26 AM5/11/18
to OWASP ZAP User Group
Are you sure thats really an error, ie one that stops ZAP from working?

Can you let us know what docker run command you used?
Reply all
Reply to author
Forward
0 new messages