Error:the user running the script ("root") is not the owner of "/shared/seafile/seafile-data" folder, you should use the user "UNKNOWN" to run the script

hay hi
even i facesd the same issues
this issue is when you use external derive or hard disk path for the volumes it cannot transfer the owner ship of the seafile-mysql for /var/lib/ so at your docker.yml file for the first volumes :
insted of /mnt/user(external hardware path ) just give a system path as fallowing or any path in system itself

volumes : 
-  /opt/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.

second volume can be any of the external drive path