malice-plugins / zoner

Malice Zoner AntiVirus Plugin
MIT License
6 stars 6 forks source link

Web service works only once #2

Open unstppbl opened 6 years ago

unstppbl commented 6 years ago

Web service scans the first file successfully, but crashes on the next run.

╰$ docker run -p 3993:3993 malice/zoner web   
time="2018-08-06T09:27:32Z" level=info msg="web service listening on port :3993"
time="2018-08-06T09:27:38Z" level=fatal msg="exit status 1" category=av path=/malware/web_341723247 plugin=zoner

Output of go version:

go version go1.10.3 linux/amd64

Output of docker version:

Client:
 Version:      18.05.0-ce-rc1
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   33f00ce
 Built:        Thu Apr 26 01:05:07 2018
 OS/Arch:      linux/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.05.0-ce-rc1
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   33f00ce
  Built:        Thu Apr 26 01:08:54 2018
  OS/Arch:      linux/amd64
  Experimental: false

Output of docker info:

Containers: 23
 Running: 1
 Paused: 0
 Stopped: 22
Images: 39
Server Version: 18.05.0-ce-rc1
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.17.9-200.fc28.x86_64
Operating System: Fedora 28 (Twenty Eight)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.685GiB
Name: friday
ID: 5QP4:Z3UQ:TIGC:7P6K:74MB:IAET:BZAK:2GXG:BGNX:BUHU:4B63:X7LJ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
blacktop commented 6 years ago

I am surprised this works at all?? What output are you seeing from the plugin when it succeeds?

blacktop commented 6 years ago

See #1 also

unstppbl commented 6 years ago

I see the usual json output, the result is false however. Okay, I haven't looked at plugins.toml file, just was checking every plugin if it works or not :)

blacktop commented 6 years ago

Thank you for testing the plugins it is a very BIG help to me! I greatly appreciate it 👍

blacktop commented 6 years ago

I hope zoner can fix their update server so i can re-enable this plugin soon.

unstppbl commented 6 years ago

No problem, happy to be helpful :)

blacktop commented 6 years ago

@altsab zoner is working again!!!

unstppbl commented 6 years ago

Yay, cool! But I just checked it, and it processes the first checkup okay, but still fails for the second try.. The reason is the same as before exit status 1

blacktop commented 6 years ago

@altsab thank you for testing! I'll look into it 👍