Troubleshooting
Check the status of running containers:
docker container list
or docker container list -a
to see ALL the containers, including stopped status.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1c6b85d1732a greenbone/gsa:stable "/usr/local/bin/entr…" 58 minutes ago Up 37 minutes 127.0.0.1:9392->80/tcp ccscanner_gsa_1
f0aba441e52a greenbone/gvmd:stable "/usr/local/bin/entr…" 58 minutes ago Up 37 minutes ccscanner_gvmd_1
ef6739989f98 greenbone/ospd-openvas:stable "/usr/local/bin/entr…" 58 minutes ago Up 37 minutes ccscanner_ospd-openvas_1
aae36445e1ba greenbone/notus-scanner:stable "/usr/local/bin/entr…" 58 minutes ago Up 37 minutes ccscanner_notus-scanner_1
23b9d178259d greenbone/mqtt-broker "/bin/sh -c 'mosquit…" 58 minutes ago Up 38 minutes 127.0.0.1:1883->1883/tcp ccscanner_mqtt-broker_1
b069c0365bb3 greenbone/pg-gvm:stable "/usr/local/bin/entr…" 58 minutes ago Up 38 minutes ccscanner_pg-gvm_1
3e3e2121aeb9 greenbone/redis-server "/bin/sh -c 'rm -f /…" 58 minutes ago Up 38 minutes ccscanner_redis-server_1
484ec4f40d39 mongo:latest "docker-entrypoint.s…" About an hour ago Up About an hour 127.0.0.1:27017->27017/tcp ccscanner_mongoDB_1
View the logs of a container:
docker container logs CONTAINER_ID
# Example: Looking at the greenbone/gvmd:stable container.
docker container logs f0aba441e52a
Use Mongo Shell to view tasks in the local database:
mongosh
user_name@scanner-1:~$ mongosh
Current Mongosh Log ID: 666c374f4e0b789d5ca26a12
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.6
Using MongoDB: 7.0.9
Using Mongosh: 2.2.6
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.
------
The server generated these startup warnings when booting
2024-05-14T18:45:43.350+00:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
2024-05-14T18:45:44.799+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
2024-05-14T18:45:44.799+00:00: vm.max_map_count is too low
------
test> use core /* <= change to the core database */
switched to db core
core> coll = db.tasks /* <= set the collection you will work with */
core.tasks
core> coll.find() /* <= find all the current tasks */
[
{
_id: ObjectId('666c37554da12a358dc5f16b'),
name: 'Web Application Discovery CLOUD_SG:1718367643',
task_id: Long('5853645'),
status: 'SUCCESS',
content: {
integration_type: '',
project_name: '',
repourl: '',
branch_name: '',
function: 'url_inspection',
tech: '',
args: {
nmapparams: '',
hosts: '',
excludes: '',
dns: null,
urls: {
webapp_id: '',
url_list: [ 'https://hostname.domain.com/' ]
},
configuration: '',
disabled_nvts: null
},
dast_config_list: null,
ip: null,
port: 0,
hostname: '',
api: false,
tls: false,
ssh: false
},
secret_data: {
repouser: '',
snyk_secret: { snyk_api_key: '', snyk_org_id: '' },
username: '',
password: '',
token: '',
key: '',
secret: '',
fortios_api_key: ''
},
percent: 100,
nmap_result: null,
openvas_result: null,
owasp_zap_json_result: null,
owasp_zap_html_result: null,
sast_result: null,
net_recon_result: null,
container_id: null,
service_url_data: null,
name_info: null,
ssh_port: null,
url_ins_result: [
{
final_location: 'https://hostname.domain.com/',
url_list: [ 'https://hostname.domain.com/' ],
status_code: 200,
data: {
server: '',
x_powered_by: '',
content_type: 'text/html; charset=utf-8',
title: '',
unique_id: 'ccc17473598e3284fadc6f4af6fb0174'
}
}
],
screen_shot_result: null
}
]
core>
Services:
systemctl status ccscanner.service cctaskmanager.service
user_name@scanner-1:~$
● ccscanner.service - command center scanner service
Loaded: loaded (/lib/systemd/system/ccscanner.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-06-14 08:58:02 UTC; 4h 17min ago
Main PID: 1391522 (ccscanner)
Tasks: 10 (limit: 9381)
Memory: 9.5M
CPU: 1min 58.847s
CGroup: /system.slice/ccscanner.service
└─1391522 /usr/bin/ccscanner --config=/etc/ccscanner/config.json
● cctaskmanager.service - command center scanner task-manager service
Loaded: loaded (/lib/systemd/system/cctaskmanager.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-06-10 16:01:33 UTC; 3 days ago
Main PID: 397721 (cctaskmanager)
Tasks: 10 (limit: 9381)
Memory: 53.5M
CPU: 1h 15min 54.330s
CGroup: /system.slice/cctaskmanager.service
└─397721 /usr/bin/cctaskmanager --config=/etc/ccscanner/config.json
avery_rozar@scanner-1:~$ ^C
System logs:
sudo tail -f /var/log/syslog
Updated 3 months ago