Closed raidenlal closed 6 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
This is not a container issue, autobackups are definitely working:
If your autobackups are not working that suggests a configuration/permissions issue or an upstream bug with the software itself.
Works here as well.
I noticed that you're mapping windows paths. We recommend against that. When running in wsl2, please use Linux paths so the container uses the Linux filesystem instead of going through an abstraction layer to access ntfs.
I recommend something like -v /home/youruser/unifi:/config
I noticed that you're mapping windows paths. We recommend against that.
I fully understand the performance hit, but this is the only way for me to have this deployed in my homelab. Everything else is fine with this setup. Even previous Unifi controller dockerized by someone else was fine with this.
Works here as well.
And where are the backups stored?
Last backup I have is from 2023-11-12 midnight and it was done using lscr.io/linuxserver/unifi-network-application:latest which I migrated to sometime around 2023-10-31 using exactly the same docker creation command.
So this was working properly before and because of that this is a regression.
I fully understand the performance hit, but this is the only way for me to have this deployed in my homelab. Everything else is fine with this setup. Even previous Unifi controller dockerized by someone else was fine with this.
I'm not talking about a performance hit. I'm talking about data corruption. It's not the only way you can do it. I already explained another way. But you do you.
And where are the backups stored?
/config/data/backup/autobackup
I'm not talking about a performance hit. I'm talking about data corruption. It's not the only way you can do it. I already explained another way. But you do you.
Why are we even discussing this? How is that relevant for this issue? Everything else works with this setup, even the backups were working properly with this setup.
Why are we even discussing this? How is that relevant for this issue? Everything else works with this setup, even the backups were working properly with this setup.
Sounds like you also have other issues going on. Like your mongodb being empty
all of a sudden.
Why the other issues happened does not matter.
I understood two things:
So I am closing this ticket as this is absolutely unhelpful thread.
If you decide you want to troubleshoot this yourself, as you are the only one in this thread that has this issue, there should be application logs in the config volume.
Is there an existing issue for this?
Current Behavior
No backups are found. It seems the files are not creating inside container anywhere.
Few days ago I have found out I am unable to log in (mongdb was empty?), and no autobackups were being done. Had to restore to some older manual backup.
Expected Behavior
Backups are created.
Previously they were inside
(/config)/data/backup/autobackup
.Tooltip inside Backup settings menu says backups will get stored inside
C:\Users\<Username>\Ubiquiti UniFi\data\backups\autobackup
, but we are inside linux environment.Steps To Reproduce
Set-up autobackups: Settings->System->Backups->Auto Backup. No backups are generated.
Environment
CPU architecture
x86-64
Docker creation
Container logs