Unauthorized: could not find stored client data for ... is this client registered?

Hello y’all!

I am developing an app for jira software. I am able to install the app and use it on a project fine, however if the server I am hosting it on terminates and restarts, the app gives the following error:

unauthorized: could not find stored client data for … is this client registered?

I readthis post but I never had a /installed endpoint in my app.js?

I am hosting it on AWS ec2 instance. I have set NODE_ENV=production. In the config.json. I commented out the section with the database because my app does not require a database, is that what is causing this issue? Is so, is there any way to resolve this issue without adding a database?

Thank you guys in advance.

See When should I have to delete and reinstall the app?