NC 20.0.4 (docker) occ db:convert-filecache-bigint not working

Nextcloud version : 20.0.4 (Docker)
Operating system and version: Ubuntu 20.04
Apache or nginx version : 1.14
PHP version : 7.1

After upgrading from 20.0.0 to 20.0.4 nextcloud was complaining that some indices needs to be update to bigint.

Steps to replicate it:

  1. docker exec -u www-data -t nextcloud php occ db:convert-filecache-bigint

After that it asks if to start and after confirm with y it just hangs for hours doing nothing.
The nextcloud instance is very small with maybe 50 files and two users.
It doesn’t make any difference if in maintenance mode or not.