Skip to content

Web UI stops responding when ZFS snapshot are created manually #248

@dsolsona

Description

@dsolsona

Hi folks,

I'm experimenting with the community version and today I found an issue while I was playing around with ZFS.

I don't really know what I am doing 😆 so it is quite possible we are not meant to create snapshots manually.

I have the following filesystem structure

root@postgres-anon:~# zfs list
NAME                                                 USED  AVAIL  REFER  MOUNTPOINT
dblab_pool                                          64.2G   225G  64.1G  /var/lib/dblab/dblab_pool
dblab_pool/branch                                   1.20M   225G    96K  /var/lib/dblab/dblab_pool/branch
dblab_pool/branch/main                              1.11M   225G   104K  /var/lib/dblab/dblab_pool/branch/main
dblab_pool/branch/main/sandbox-v2-long-duration     1.01M   225G    96K  /var/lib/dblab/dblab_pool/branch/main/sandbox-v2-long-duration
dblab_pool/branch/main/sandbox-v2-long-duration/r0   936K   225G   334M  /var/lib/dblab/dblab_pool/branch/main/sandbox-v2-long-duration/r0

I was manually running a postgres instance with /var/lib/dblab/dblab_pool mounted in and I manually restored a backup I had to test some things. Then I was trying to figure out how could I get a new snapshot so any future clones gets the latest data I restored, instead of the initial data.

So I went and created a new snapshot.

root@postgres-anon:~# zfs list -t snapshot
NAME                                 USED  AVAIL  REFER  MOUNTPOINT
dblab_pool@snapshot_20250721202933   131M      -   334M  -
dblab_pool@snapshot_20250723091600  1.91M      -  64.1G  -

dblab_pool@snapshot_20250721202933 is the first snapshot that was created when I ran the dblab server.

dblab_pool@snapshot_20250723091600 is the one I created manually.

After restarting the dblab-server container when I tried to access the console I got a blank screen.

I saw the following javascript error in the browser console

Snapshots.ts:87 RangeError: Invalid time value
    at index.tsx:141:24
    at Array.map (<anonymous>)
    at index.tsx:121:34

index.js:174 Uncaught (in promise) RangeError: Invalid time value
    at index.tsx:141:24
    at Array.map (<anonymous>)
    at index.tsx:121:34

Deleting the manual snapshot and restarting the container works and I get access back.

A few questions:

  1. How can I create a new snapshot for dblab_pool ? The UI only allows me to create snapshots from clones, but I don't want that
  2. Alternative, how do I refresh the dblab_pool@snapshot_20250721202933 snapshot? I can't delete it
  3. I can't crete a new branch, because it would be based on the existing snapshot which I don't want.

So basically, I'll have a process that every few hours updates /var/lib/dblab/dblab_pool/data with the latest data and once that happens, I want to have a new snapshot available so I can created new clonse from it. In the near future I'll most likely have a running postgres instance that replicates data from production and anonymises it, so I will want to be able to generate frequent snapshots.

Thanks for the awesome product and your future help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions