Closed kjake closed 2 years ago
:/ OK .... I'm going to add the link back into the startup ... which is now actually in single.sh and the change didn't make it there from start.sh ... sorry..
BUT... I really want to figure out why this works everywhere but in photon ...
Any help you can give would be greatly appreciated.
Thanks, Scott
It should be in the current latest now.
Couple of questions:
I spun up a Photon 4 R2 in a VM using the ova. started docker docker run -v openvas:/data -d -e SKIPSYNC=true -p 80:9392 --name openvas immauss/openvas Then I set up a scan of the photon host and it worked fine.
-Scott
Hey - that fixed it, and it's been working great!
On your questions:
services:
openvas:
ports:
- "9392:9392"
network_mode: host
environment:
- RELAYHOST="mail.local.com"
- SMTPPORT=25
- REDISDBS=512 # number of Redis DBs to use
- QUIET=false # dump feed sync noise to /dev/null
- NEWDB=false # only use this for creating a blank DB
- SKIPSYNC=false # Skips the feed sync on startup.
- RESTORE=false # This probably not be used from compose... see docs.
- DEBUG=false # This will cause the container to stop and not actually start gvmd
- HTTPS=false # wether to use HTTPS or not
- GMP=9390 # to enable see docs
- GSATIMEOUT=3600
- TZ="America/New_York"
logging:
driver: journald
volumes:
- /root/openvas:/data
container_name: openvas
image: immauss/openvas:latest
restart: unless-stopped
# cat /etc/lsb-release
DISTRIB_ID="VMware Photon OS"
DISTRIB_RELEASE="4.0"
DISTRIB_CODENAME=Photon
DISTRIB_DESCRIPTION="VMware Photon OS 4.0"
VMware Photon OS 4.0 PHOTON_BUILD_NUMBER=2f5aad892
3. Pure single-host docker with just local storage
```bash
# docker info
Client:
Context: default
Debug Mode: false
Server:
Containers: 8
Running: 8
Paused: 0
Stopped: 0
Images: 8
Server Version: 20.10.14
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version:
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.10.103-2.ph4-esx
Operating System: VMware Photon OS/Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.65GiB
Name: photon-machine
ID: YCEH:QITC:ZESO:7R4U:OSLV:YCOQ:5NBU:KQJY:LQTK:2OR4:N6TO:HIKG
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Seems like a thing that just happens to people? https://github.com/yu210148/gvm_install/issues/53
Hi. Thanks for the work you've put into this just to preface.
I am also facing a similar issue with running the image in a KVM vm. running Debian
md manage:WARNING:2023-09-13 04h28.05 UTC:302355: osp_scanner_feed_version: failed to connect to /var/run/ospd/ospd-openvas.sock md main:MESSAGE:2023-09-13 04h28.07 utc:302369: Greenbone Vulnerability Manager version 22.4.1 (DB revision 250)
I have to restart the container and it works for a relatively short time before reverting back to above.
root@214ebf330a9f:/# cd /var/run/ospd root@214ebf330a9f:/var/run/ospd# ls -larth total 16K drwxrwxrwx 1 root root 4.0K Sep 11 15:20 .. lrwxrwxrwx 1 root root 31 Sep 11 15:20 ospd.sock -> /var/run/ospd/ospd-openvas.sock -rw-r--r-- 1 root root 3 Sep 11 15:20 ospd-openvas.pid srwxrwx--- 1 root gvm 0 Sep 11 15:20 ospd-openvas.sock drwxrwx--- 2 gvm gvm 4.0K Sep 11 15:20 . root@214ebf330a9f:/var/run/ospd#
Would appreciate any feedback in this matter.
Hi Scott, this issue is back in immauss/openvas:latest
md manage:WARNING:2022-07-13 17h50.52 UTC:22654: Could not connect to Scanner at /run/ospd/ospd-openvas.sock
root@photon-machine:/run/ospd# ln -s ospd.sock ospd-openvas.sock
fixes itOriginally posted by @kjake in https://github.com/immauss/openvas/issues/107#issuecomment-1183517582