Seafile Docker upgrade from 8.0.7fails

Docker Seafile 8.0.7 is running fine.
Upgrade to 8.0.7-1 runs fine.
Upgrade to any later version (9.0.0, latest) fails with error messages in the container log.

*** Running /etc/my_init.d/
*** Booting runit daemon...
*** Runit started as PID 25
*** Running /scripts/
2023-05-15 10:22:11 Waiting Nginx 
2023-05-15 10:22:12 Nginx ready 
2023-05-15 10:22:12 This is a idle script (infinite loop) to keep container running. 
[05/15/2023 10:22:12][upgrade]: The container was recreated, start fix the media symlinks
mv: cannot stat '/opt/seafile/seafile-server-8.0.7/seahub/media/avatars/*': No such file or directory
[2023-05-15 10:22:12] Skip running because there is existing seafile-data folder.
Traceback (most recent call last):
  File "/scripts/", line 86, in <module>
  File "/scripts/", line 58, in main
  File "/scripts/", line 95, in check_upgrade
  File "/scripts/", line 79, in fix_media_symlinks
    call('mv -n %s/* %s' % (avatars_dir, dst_avatars_dir))
  File "/scripts/", line 70, in call
    return subprocess.check_call(*a, **kw)
  File "/usr/lib/python3.8/", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mv -n /opt/seafile/seafile-server-8.0.7/seahub/media/avatars/* /shared/seafile/seahub-data/avatars' returned non-zero exit status 1.

Any ideas?