Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to CloudSQL PostgreSQL 15 #123

Open
rafaelrpinto opened this issue Oct 24, 2023 · 0 comments
Open

Error connecting to CloudSQL PostgreSQL 15 #123

rafaelrpinto opened this issue Oct 24, 2023 · 0 comments

Comments

@rafaelrpinto
Copy link

Hello,

Trying motor admin locally with a docker compose works fine, but it does not work for Google CloudSQL (Postgres 15).

Might be some permission configuration on our end, but I will add here in case anyone else is also facing this.

FATAL -- : [b536c455b628533e1e1bed6c9b3c28ca]   
NoMethodError (undefined method `scan' for nil:NilClass):
  
lib/motor/define_ar_models.rb:240:in `fetch_table_indexes'
lib/motor/define_ar_models.rb:301:in `define_model_reflection'
lib/motor/define_ar_models.rb:296:in `block in define_model_reflections'
lib/motor/define_ar_models.rb:284:in `each'
lib/motor/define_ar_models.rb:284:in `define_model_reflections'
lib/motor/define_ar_models.rb:134:in `configure_defined_model'
lib/motor/define_ar_models.rb:77:in `block in call'
lib/motor/define_ar_models.rb:74:in `each'
lib/motor/define_ar_models.rb:74:in `call'
lib/motor/define_connection_classes.rb:29:in `block in call'
lib/motor/define_connection_classes.rb:15:in `map'
lib/motor/define_connection_classes.rb:15:in `call'
config/initializers/set_db_connection_and_define_ar_models.rb:12:in `set_db_connection_and_define_ar_models'

We are running it on kubernetes with docker image motoradmin/motoradmin:0.4.21.

Whenever we add our database on the settings this error starts happening.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant