I have a backup-script that runs as a kubernetes cronjob every night and 3 nights ago the firebase auth:export started just looping. I can see that it exports everything fine and on the last row "Exported 57 account(s) successfully." it is normally done and writes the file to our bucket but now it just loops around and starts exporting again.
This is the command i use: firebase auth:export firebase_auth_$(date +"%Y-%m-%d").json --project ${PROJECT_ID} --token "$(cat /var/secrets/firebase/token.txt)"
I have tried running the CLI locally and run into the same problem, i can't seem to find the issue when i google either. The documentation does not mention any property to loop or stop when all users are exported. Is there any flag/property like that or should this just work?
Turns out that this is a known issue: https://github.com/firebase/firebase-tools/issues/1643
From the GitHub issue:
partially solved in 7.3.1 and probably a new fix coming due to #1642 in the next version.
So basically it's still a bit broken, even in 7.3.1. Better wait for the next version I guess.