Open NewlineDotBlog opened 3 weeks ago
Thanks for the report! Means we need to rework this query.
To add a bit of info, I did some googling when I encountered the error first. My hypothesis is that the issue is due to (unlike SQLite) Postgres does not support pragma_page_count
and other pragma_*
functions natively. So this would either need to be created on the server as (IE) SQL stored procedure, or in the client be replaced by Postgres equivalent SQL queries.
Describe the bug When using an external Postgres database as storage for Gowitness results, the dashboard (in the server web UI) is non-functional (see the screenshot below). Additionally, the following error is shown in the logs of the Gowitness server:
To Reproduce Steps to reproduce the behavior:
Expected behavior The dashboard shows statistics and overview of database metrics.
Screenshots
Version Information:
Gowitness server, using the
ghcr.io/sensepost/gowitness
Docker image:gowitness: 3.0.4 git hash: d837746 build env: go1.23.2_linux/amd64 build time: 2024-10-14T10:34:21Z
|| | | . | . | | | | | | | -| -| -| |_ |_|___||||||||| || v3, with <3 by @leonjza
gowitness: 3.0.5 git hash: 6b0000e build env: go1.23.2_linux/arm64 build time: 2024-10-21T19:22:14Z