The upgrade might have caused a few changes in configs or certain gem dependencies that Unicorn isn’t able to handle as of now. To solve the problem, you can:
Start by looking at the error log. It will likely lead you to the issue.
Make sure all the gems are up-to-date and compatible with Rails 5.
Check the config/unicorn.rb file for anything that might be causing the issue.
If the above steps don’t work, try reinstalling unicorn.
Hope this helps. Let me know if you have any more problems.