Skip to content

Troubleshooting

Jump to your symptom:

Symptom Section
“Scanner unavailable” or old definitions ClamAV is missing
Window is blank or gray Blank window
Daemon backend fails Daemon unavailable
Flatpak cannot reach a folder Flatpak access
Preferences cannot save host settings Helper not trusted
No tray icon or file-manager action Integration
Scheduled scan never ran Schedules

ClamUI uses host ClamAV for every package format, including Flatpak.

Check host ClamAV
clamscan --version
freshclam --version
sudo freshclam

If a command is missing, follow install ClamAV on the host. The Components view shows what ClamUI found. More: ClamAV FAQ.

If a manual update stops for inactivity, check freshclam output and network access. Preferences → Behavior → Database Updates sets the allowed time without output (default 10 minutes). Active updates have no total time limit.

The native app needs WebKitGTK 4.1 and GTK 3.

Debian / Ubuntu
dpkg -l libwebkit2gtk-4.1-0 libgtk-3-0

For a source build, install the development prerequisites.

A blank main window with a working tray has several possible causes (#315). WebKitGTK’s DMA-BUF path can also fail on some Wayland systems with Error 71 (#282). Since v0.6.1, the Flatpak forces shared-memory buffers to avoid both.

  1. Quit ClamUI fully with Quit in the tray menu. Closing the window may leave it running.

  2. Try shared-memory transport for one launch. This also works on the 0.6.0 Flatpak:

    Terminal window
    flatpak run --env=WEBKIT_DISABLE_DMABUF_RENDERER=0 \
    --env=WEBKIT_DMABUF_RENDERER_FORCE_SHM=1 io.github.linx_systems.ClamUI
  3. Look for old renderer overrides and remove only those:

    Terminal window
    flatpak override --user --show io.github.linx_systems.ClamUI
    flatpak override --system --show io.github.linx_systems.ClamUI
  4. Still blank? Trace startup (next section) and report it with the terminal output, ClamUI and Flatpak versions, GPU and driver, and session type (Wayland or X11).

Opt out of the shared-memory workaround

Hardware DMA-BUF may be used again and Error 71 can return:

Terminal window
flatpak run --env=WEBKIT_DISABLE_DMABUF_RENDERER=0 \
--env=WEBKIT_DMABUF_RENDERER_FORCE_SHM=0 io.github.linx_systems.ClamUI

Background: WebKit bug 324730.

If the interface fails to render, ClamUI shows the error in the window. Include that text in reports. To print every native startup stage:

Trace startup
flatpak run --env=CLAMUI_STARTUP_TRACE=1 io.github.linx_systems.ClamUI

After ten seconds without an interface, the terminal and debug log (~/.var/app/io.github.linx_systems.ClamUI/data/clamui/debug/clamui.log for Flatpak) get a startup-watchdog line:

Message starts with Where it is stuck
native startup did not finish; the last milestone was ... Native setup. The milestone names the last completed stage.
the UI thread did not run a queued task The GTK thread is blocked, usually by a D-Bus, portal, or accessibility call.
... but the web page never reported that it mounted The web view: bundle not loaded, JavaScript error, or IPC not answering. A frontend-startup line carries the error if the page reported one.
Inspect the web view with WebKit’s remote inspector

Start ClamUI with the local inspector, then run the read-only diagnostic script from a checkout in a second terminal. It talks only to 127.0.0.1.

Terminal window
flatpak run --env=WEBKIT_INSPECTOR_HTTP_SERVER=127.0.0.1:9222 io.github.linx_systems.ClamUI
python3 scripts/inspect-blank-window.py

Script source: scripts/inspect-blank-window.py.

The Daemon backend needs a running clamd. Pick Auto or Clamscan in Preferences → Scanner if you do not need it.

Terminal window
sudo systemctl enable --now clamav-daemon
systemctl status clamav-daemon
clamdscan --ping 1

Socket paths and the daemon_socket_path override: scan backends.

Flatpak cannot scan a location or update ClamAV

Section titled “Flatpak cannot scan a location or update ClamAV”

Grant only the directory you need:

Terminal window
flatpak override --user --filesystem=/path/to/directory io.github.linx_systems.ClamUI

Database updates run host freshclam with its usual permissions.

Preferences → Database, Scanner, On-Access need the helper at /usr/bin/clamui-apply-preferences. ClamUI blocks a helper unless it is a regular file, owned by root, not a symlink, owner-executable, and not group- or world-writable. It never runs an untrusted helper.

Inspect the helper
ls -l /usr/bin/clamui-apply-preferences
ls -l /usr/share/polkit-1/actions/io.github.linx_systems.ClamUI.policy

Missing helper: on Debian-family and Fedora hosts ClamUI offers Install Helper. It installs only the signed package published for your exact version and architecture. See privileged helper.

Outdated, untrusted, or no published package: repair it manually.

Reinstall the application and helper .deb pair for the same version and architecture, after verifying them. See Debian packages.

After a repair, click Save in the Preferences header to retry the pending changes. Settings saved before the failure stay saved. If it still fails, open Technical details in the error dialog and include the text, package format, version, and architecture in an issue.

If a save fails after ClamUI prepared clamd.conf or freshclam.conf, click See Configuration in the failure report. It shows each target path and the exact content from that attempt, read-only.

  1. Click Copy Path and Copy Configuration.

  2. Inspect the existing target first: the helper may have written some files before it failed.

  3. Edit with an administrative editor:

    Terminal window
    sudoedit /etc/clamav/clamd.conf

File-manager action or tray icon is absent

Section titled “File-manager action or tray icon is absent”
  • File manager: rerun Preferences → Behavior → Configure Integration, then restart the file manager or sign out and in.
  • Tray: needs a StatusNotifierItem host. GNOME needs AppIndicator Support. ClamUI stays fully usable without a tray. See tray.

Scans are slow, fail, or find a false positive

Section titled “Scans are slow, fail, or find a false positive”
  • Use Auto with a running daemon for frequent scans; clamscan reloads definitions every time.
  • Make sure your account can read the targets. Do not unplug media during a scan.
  • Daemon scans pass very long paths and names with line breaks to clamd one by one instead of through the file list, so they are still scanned.
  • Keep archive limits finite. Malicious archives can exhaust resources.
  • False positive? See the FAQ.
  • A restore refusal means the destination exists or the hash check failed. Never bypass the hash check.
  • Clear All in Logs is permanent. Export first.
  • Scheduled scans need a user systemd timer or cron, and a running machine at that time.
Check the scheduler
clamui-scheduled-scan --dry-run
systemctl --user list-timers clamui-scheduled-scan.timer
crontab -l | grep clamui

Collect the log entry, clamscan --version, package format, desktop environment, and the exact error, then search or open an issue. Report vulnerabilities through the security policy, not a public issue.