Locations Plugin

With 2.7.0.beta1 and discourse-locations e18de2a we seem to have lost the ability to add a location in the user’s profile.

Typing in the location field does not trigger a lookup.

Log
Message (2 copies reported)

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb

Backtrace

/var/www/discourse/lib/discourse_ip_info.rb:81:in `rescue in mmdb_load'
/var/www/discourse/lib/discourse_ip_info.rb:77:in `mmdb_load'
/var/www/discourse/lib/discourse_ip_info.rb:15:in `open_db'
/var/www/discourse/lib/discourse_ip_info.rb:10:in `initialize'
/usr/local/lib/ruby/2.7.0/singleton.rb:125:in `new'
/usr/local/lib/ruby/2.7.0/singleton.rb:125:in `block in instance'
/usr/local/lib/ruby/2.7.0/singleton.rb:123:in `synchronize'
/usr/local/lib/ruby/2.7.0/singleton.rb:123:in `instance'
/var/www/discourse/lib/discourse_ip_info.rb:149:in `get'
/var/www/discourse/app/serializers/concerns/user_auth_tokens_mixin.rb:22:in `location'

Changing the location geocoding provider to any of the available choices results in an error:

4 Likes