I encountered the same issue and found that the cause of the deployment failure was insufficient memory.
In the application log, prior to the error message "Could not retrieve version information from system tables," there was a message indicating "STDOUT Exit status 137," which is typically associated with memory issues. I’m concerned that the lack of memory may have prevented the system tables from being fully created.
To resolve this, I increased the app memory from 8GB to 16GB during the first deployment attempt, and it was successful.
Hope this helps!