How to fix “unprocessable entity”

When I want to send a pm to a user I saw this message: “ unprocessable entity”

So I check my logs and I saw this:

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

activesupport-7.1.4.2/lib/active_support/broadcast_logger.rb:130:in `block in warn'

activesupport-7.1.4.2/lib/active_support/broadcast_logger.rb:231:in `block in dispatch'

activesupport-7.1.4.2/lib/active_support/broadcast_logger.rb:231:in `each'

activesupport-7.1.4.2/lib/active_support/broadcast_logger.rb:231:in `dispatch'

activesupport-7.1.4.2/lib/active_support/broadcast_logger.rb:130:in `warn'

/var/www/discourse/lib/discourse_ip_info.rb:88:in `rescue in mmdb_load'

/var/www/discourse/lib/discourse_ip_info.rb:84: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/3.3.0/singleton.rb:124:in `new'

/usr/local/lib/ruby/3.3.0/singleton.rb:124:in `block in instance'

/usr/local/lib/ruby/3.3.0/singleton.rb:124:in `synchronize'

/usr/local/lib/ruby/3.3.0/singleton.rb:124:in `instance'

/var/www/discourse/lib/discourse_ip_info.rb:175:in `get'

/var/www/discourse/app/models/user_auth_token.rb:41:in `login_location'

/var/www/discourse/app/models/user_auth_token.rb:66:in `is_suspicious'

/var/www/discourse/app/jobs/regular/suspicious_login.rb:6:in `execute'

/var/www/discourse/app/jobs/base.rb:322:in `block (2 levels) in perform'

rails_multisite-6.1.0/lib/rails_multisite/connection_management/null_instance.rb:49:in `with_connection'

rails_multisite-6.1.0/lib/rails_multisite/connection_management.rb:21:in `with_connection'

/var/www/discourse/app/jobs/base.rb:309:in `block in perform'

/var/www/discourse/app/jobs/base.rb:305:in `each'

/var/www/discourse/app/jobs/base.rb:305:in `perform'

sidekiq-6.5.12/lib/sidekiq/processor.rb:202:in `execute_job'

sidekiq-6.5.12/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'

sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:177:in `block in invoke'

/var/www/discourse/lib/sidekiq/pausable.rb:132:in `call'

sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:179:in `block in invoke'

sidekiq-6.5.12/lib/sidekiq/middleware/chain.rb:182:in `invoke'

sidekiq-6.5.12/lib/sidekiq/processor.rb:169:in `block in process'

sidekiq-6.5.12/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'

sidekiq-6.5.12/lib/sidekiq/job_retry.rb:113:in `local'

sidekiq-6.5.12/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'

sidekiq-6.5.12/lib/sidekiq.rb:44:in `block in <module:Sidekiq>'

sidekiq-6.5.12/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'

sidekiq-6.5.12/lib/sidekiq/processor.rb:263:in `stats'

sidekiq-6.5.12/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'

sidekiq-6.5.12/lib/sidekiq/job_logger.rb:13:in `call'

sidekiq-6.5.12/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'

sidekiq-6.5.12/lib/sidekiq/job_retry.rb:80:in `global'

sidekiq-6.5.12/lib/sidekiq/processor.rb:124:in `block in dispatch'

sidekiq-6.5.12/lib/sidekiq/job_logger.rb:39:in `prepare'

sidekiq-6.5.12/lib/sidekiq/processor.rb:123:in `dispatch'

sidekiq-6.5.12/lib/sidekiq/processor.rb:168:in `process'

sidekiq-6.5.12/lib/sidekiq/processor.rb:78:in `process_one'

sidekiq-6.5.12/lib/sidekiq/processor.rb:68:in `run'

sidekiq-6.5.12/lib/sidekiq/component.rb:8:in `watchdog'

sidekiq-6.5.12/lib/sidekiq/component.rb:17:in `block in safe_thread'

do you have this configured?

2 Likes