opnsense / opnsense/plugins

git-backup crash

Open
#5,480 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
863
Avg merge
2d 6h
Merged PRs (30d)
10

Description

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
Git-backup plugin crash.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce
Steps to reproduce the behavior:

  1. Enable git backup with password and/or ssh key

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Relevant log files

User-Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
FreeBSD 14.3-RELEASE-p14 stable/26.1-n272114-8616e879e31a SMP amd64
OPNsense 26.1.9 b11d6b340
Plugins os-acme-client-4.16_1 os-adguardhome-maxit-1.16 os-auto-recovery-community-1.0 os-cpu-microcode-intel-1.1 os-cronscripts-maxit-1.0 os-ddclient-1.31 os-dec-hw-1.1_3 os-dmidecode-1.2 os-dnscrypt-proxy-1.16_2 os-git-backup-1.1_3 os-homeassistant-maxit-1.0 os-hw-probe-1.0_1 os-iperf-1.0_2 os-nextcloud-backup-1.2 os-smart-2.4 os-speedtest-community-0.9_6 os-tailscale-1.4 os-theme-solarized-community-0.4_1 os-tor-1.10 os-upnp-1.9 os-wol-2.5_4
Time Fri, 05 Jun 2026 15:27:50 +0000
OpenSSL 3.0.20
Python 3.13.13
PHP 8.3.31
[04-Jun-2026 01:40:49 Etc/UTC] PHP Fatal error:  Uncaught Exception: unknown error, check log for details in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php:198
Stack trace:
#0 /usr/local/opnsense/scripts/system/remote_backup.php(17): OPNsense\Backup\Git->backup()
#1 {main}
  thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php on line 198

Additional context
Add any other context about the problem here.

Environment
OPNsense 26.1.9 b11d6b340 (amd64).
Intel i5-8500T

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mvc/app/library/OPNsense/Backup/Git.php at line 198 and the remote_backup.php entry point at line 17. Reproduce the crash after enabling Git backup with a password or SSH key, then inspect the relevant log details. Done means the backup no longer terminates with the reported fatal exception in the stated OPNsense environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.