|
2 | 2 |
|
3 | 3 | This page contains hints for troubleshooting Greenbone Community Container specific issues.
|
4 | 4 |
|
| 5 | +### Facing an issue with the Greenbone Community Containers |
| 6 | + |
| 7 | +If you have an issue with the Greenbone Community Containers because something |
| 8 | +doesn't work as expected and/or you are getting an error in the web UI it is |
| 9 | +necessary to check the log output to get some technical hints about the issue. |
| 10 | + |
| 11 | +To inspect the logs you can use the [`docker compose logs`](https://docs.docker.com/engine/reference/commandline/compose_logs/) |
| 12 | +command. For displaying the complete log output you can run |
| 13 | + |
| 14 | +```{code-block} shell |
| 15 | +--- |
| 16 | +caption: Display all logs |
| 17 | +--- |
| 18 | +docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ |
| 19 | + logs |
| 20 | +``` |
| 21 | + |
| 22 | +To follow the current log output to display log messages as they occur use the |
| 23 | +following command |
| 24 | + |
| 25 | +```{code-block} shell |
| 26 | +--- |
| 27 | +caption: Follow current log output |
| 28 | +--- |
| 29 | +docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ |
| 30 | + logs -f |
| 31 | +``` |
| 32 | + |
| 33 | +It's also possible to just display the logs of a specific container by using |
| 34 | +`docker compose logs <service>` where service is the [name of the container |
| 35 | +within the docker compose file](./index.md#description). |
| 36 | + |
| 37 | +```{code-block} shell |
| 38 | +--- |
| 39 | +caption: Follow the log messages of the gvmd container only |
| 40 | +--- |
| 41 | +docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ |
| 42 | + logs -f gvmd |
| 43 | +``` |
| 44 | + |
| 45 | +Additionally it is possible to bypass the `docker compose log` command and |
| 46 | +access the log files directly. For example run the following command to display |
| 47 | +the content of the OpenVAS scanner log file via {command}`cat` |
| 48 | + |
| 49 | +```{code-block} shell |
| 50 | +--- |
| 51 | +caption: Print messages from /var/log/gvm/openvas.log |
| 52 | +--- |
| 53 | +docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ |
| 54 | + exec ospd-openvas cat /var/log/gvm/openvas.log |
| 55 | +``` |
| 56 | + |
| 57 | +Afterwards using the collected error messages in the [search of our Community Forum](https://forum.greenbone.net/search) |
| 58 | +may bring up possible results to resolve the issue already. |
| 59 | + |
| 60 | +If no fitting results can be found feel free to create a new topic the |
| 61 | +[Community Containers category in our Community Forum](https://forum.greenbone.net/c/community-containers/40). |
| 62 | + |
5 | 63 | ### VTs are up-to-date but not visible on the web interface
|
6 | 64 |
|
7 | 65 | It may be possible, especially for the initial synchronization, that the scanner
|
|
0 commit comments