Error upgrading Firebase Cloud Functions from v1 to v2

I deleted the v1 function and uploaded the v2 function, but I got the following error:

!  functions: HTTP Error: 400, Validation failed for trigger projects/unicard-83f52/locations/us-central1/triggers/matchmaker-471173: The request was invalid: generic::invalid_argument: generic::not_found: pattern cannot match any databases in region us-central1
!  functions:  failed to create function projects/unicard-83f52/locations/us-central1/functions/matchmaker
Failed to create function projects/unicard-83f52/locations/us-central1/functions/matchmaker

Only functions using Oncall were successfully uploaded, and only trigger functions failed to upload.