Issues migrating from Windows to Linux

Issues migrating from Windows to Linux

I'm having trouble migrating a standard SDP installation from Windows to Linux.
I followed the procedure described in the page http://www.zohocorp.com.cn/manageengine/products/service-desk-msp/faq-general-modules.html#moving4 but when trying to restore the database the script is locked indefinitely and does not finish the restore.
the restore log is attached, I noticed that there was some kind of error in the process.

Windows Server 2008 R2 amd64
Ubuntu 16.04.4 LTS amd64
SDP build 9403
Postgresql

                  New to ADSelfService Plus?