Cannot create backup in self hosted

Hi,

I’m running Invoice Ninja 5.13.26 self-hosted on Ubuntu with nginx/PHP 8.2.

When creating a backup/export, Invoice Ninja generates a protected download link, but opening it returns:

404 — File not found

Initially there was a permission error for:

/usr/share/nginx/invoiceninja/public/storage/backups

I created the directory, set it to www-data:www-data, and confirmed PHP can write to it.

However, when starting a new export:

  • no backup/ZIP file is created

  • public/storage/backups stays empty

  • Laravel/nginx/PHP logs show no new errors

  • PHP ZIP/ZipArchive is installed and working

  • database connection is OK

Any idea why the download link gets generated but the actual backup file isn’t created, or which job/log I should check?

Thanks!

Hi,

I suggest asking in a discussion on GitHub.

1 Like

General hint:

Inmanage would be my two cents for self-hosted Invoice Ninja:
For any of your tasks: Fix issues, install, configure, update, back up, monitor, and receive notifications for your self-hosted Invoice Ninja, from a single CLI. Requires SSH access.

Focus on saving time, less stress, certainty, and convenience.

There’s also a migration scenario covered in the docs. But most importantly the health system checks in advance if you have any „itches“ in your installation.

https://github.com/DrDBanner/inmanage