Nova Spatie Backup: Keeps spinning / 422 error: "This disk is not configured as a backup disk."
Tags: laravel, laravelnova, b2, backups
Published: 2020-04-21 21:08:20

---
title: Nova Spatie Backup: Keeps spinning / 422 error: "This disk is not configured as a backup disk."
published: true
date: 2020-04-16 00:00:00 UTC
tags:
  - Laravel
  - Laravel Nova
  - B2
  - Backups
canonical_url: https://peterthaleikis.com/posts/nova-spatie-backup:-keeps-spinning-422-error:-%22this-disk-is-not-configured-as-a-backup-disk.%22/
---

Spatie's Laravel Components are surely known to most and are great helpers to build any kind of Laravel application or website. I've been using the [Laravel Backup component](https://github.com/spatie/laravel-backup) on my projects. With my recent shift to [Laravel Nova](https://nova.laravel.com/) on my new project [BiteSizedInsights.com](https://bitesizedinsights.com/), I've started to look at the related [Nova component](https://github.com/spatie/nova-backup-tool). It worked fine, once I got over some initial trouble.

Once completed installing Spatie Backups, I've run a `artisan backup:run` to see if it works: local backups worked as to expect and are considered "healthy":

![local backups are working](https://peterthaleikis.com/static/images/How-to-fix-Laravel-Nova-This-disk-is-not-configured-as-a-backup-disk/working.png)

As usual, I've continued to set up B2 as my cloud filesystem and backup solution. The setup of [B2 as your Laravel backup system](https://bringyourownideas.com/blog/backing-up-your-laravel-project-to-backblaze-b2/) is easy and done in a few minutes.

After this, I've installed the Nova component for Laravel backups using composer: `composer require spatie/nova-backup-tool` and configured the tools as explained. While checking the Nova admin interface I've noticed that it isn't working as expected. The loading icons kept spinning without any data showing up:

![Nova loading error](https://peterthaleikis.com/static/images/How-to-fix-Laravel-Nova-This-disk-is-not-configured-as-a-backup-disk/nova-backup-error-spinning.gif)

After checking the Firefox browser console I've noticed an odd HTTP-422 request with this message:

![422 Request](https://peterthaleikis.com/static/images/How-to-fix-Laravel-Nova-This-disk-is-not-configured-as-a-backup-disk/422-request.png)

The message contained an error message, which I've not seen on the admin-panel:

`This disk is not configured as a backup disk.`

After some research in the code, I've found out this error was caused by a small misconfiguration in the `config/backup.php` file:

![Nova-Backup Misconfiguration](https://peterthaleikis.com/static/images/How-to-fix-Laravel-Nova-This-disk-is-not-configured-as-a-backup-disk/Nova-Backup-Misconfiguration.png)

Once I've set this to B2 the backup overview & creation worked as expected:

![Nova-Backup Working](https://peterthaleikis.com/static/images/How-to-fix-Laravel-Nova-This-disk-is-not-configured-as-a-backup-disk/working.png)

I'm solving & documenting random issues I encounter in the daily coder life. Besides this, I'm writing about business and my side-projects. If you are interested in either of them, subscribe to my [newsletter](https://peterthaleikis.com/newsletter)!