Ratnam_Raju_Varsala encountered a Passenger error indicating the Discourse application could not spawn because the database ‘discourse’ was not found, as referenced in config/database.yml. They followed the suggested fix — running bin/rails db:create — but the error persisted. Ratnam_Raju_Varsala confirmed the databases (including ‘discourse’, ‘discourse_development’, etc.) were present in PostgreSQL. Canapin asked for context, to which Ratnam_Raju_Varsala clarified the issue occurred in a development install. Ultimately, Ratnam_Raju_Varsala resolved the issue by migrating from a Ruby on Rails setup to a Docker-based application, bypassing the original configuration problem.
[ E 2023-02-09 19:25:44.6204 217094/T1o age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/feedback/discourse: The application encountered the following error: We could not find your database: discourse. Which can be found in the database configuration file located at config/database.yml.
To resolve this issue:
Did you create the database for this app, or delete it? You may need to create your database.
Has the database name changed? Check your database.yml config has the correct database name.
To create your database, run:
bin/rails db:create
(ActiveRecord::NoDatabaseError)
Error ID: 5e2f7fa7
Error details saved to: /tmp/passenger-error-P0l1rQ.html
I created db followed by your steps but still geting same error
Could you explain the context in which you encounter the error? Is the issue encountered in a standard install? Or a development install? Or another context?