This probably does not have anything to do with the SSH key or the Raspberry Pi, its probably a permissions issue that is common with getting the App Server to start, with most defaults for how to start a PostGreSQL database engine.
This link will not have your answer but it describes the same problem on a different system, there is something wrong with your postgres permissions probably:
So if you can figure out how to get postgres to run it should unpack the rest of the app server with minimal issues.