Rebuild fails on 'bundle exec rake themes:update assets:precompile'

Turns out commenting the maxmind key fixed it, not sure what caused it.

Here is the error, which I found in the discourse-doctor dump:


Compressing: discourse-2a3fa79227edc060cacfac4f6331c3d7917970c2430d65e196751dc69d2c371e.js
gzip -f -c -9 /var/www/discourse/public/assets/discourse-2a3fa79227edc060cacfac4f6331c3d7917970c2430d65e196751dc69d2c371e.js > /var/www/discourse/public/assets/discourse-2a3fa79227edc060cacfac4f6331c3d7917970c2430d65e196751dc69d2c371e.js.gz
****************************************************************************************************
#<Thread:0x0000556a3c8d7f60 /var/www/discourse/lib/tasks/assets.rake:265 run> terminated with exception (report_on_exception is true):
/var/www/discourse/lib/tasks/assets.rake:277:in `rescue in block (2 levels) in <main>': undefined local variable or method `name' for main:Object (NameError)
	from /var/www/discourse/lib/tasks/assets.rake:266:in `block (2 levels) in <main>'
/var/www/discourse/lib/file_helper.rb:76:in `block in download': 401 Error (OpenURI::HTTPError)
	from /var/www/discourse/lib/final_destination.rb:515:in `block (3 levels) in safe_get'
	from /var/www/discourse/lib/final_destination.rb:514:in `catch'
	from /var/www/discourse/lib/final_destination.rb:514:in `block (2 levels) in safe_get'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http.rb:1626:in `block in transport_request'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http/response.rb:185:in `reading_body'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http.rb:1625:in `transport_request'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http.rb:1579:in `request'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/patches/net_patches.rb:19:in `block in request_with_mini_profiler'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/profiling_methods.rb:46:in `step'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/patches/net_patches.rb:18:in `request_with_mini_profiler'
	from /var/www/discourse/lib/final_destination.rb:475:in `block in safe_get'
	from /var/www/discourse/lib/final_destination.rb:535:in `block in safe_session'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http.rb:985:in `start'
	from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/net-http-0.2.2/lib/net/http.rb:628:in `start'
	from /var/www/discourse/lib/final_destination.rb:533:in `safe_session'
	from /var/www/discourse/lib/final_destination.rb:467:in `safe_get'
	from /var/www/discourse/lib/final_destination.rb:149:in `get'
	from /var/www/discourse/lib/file_helper.rb:68:in `download'
	from /var/www/discourse/lib/discourse_ip_info.rb:39:in `mmdb_download'
	from /var/www/discourse/lib/tasks/assets.rake:268:in `block (3 levels) in <main>'
	from /var/www/discourse/lib/tasks/assets.rake:267:in `each'
	from /var/www/discourse/lib/tasks/assets.rake:267:in `block (2 levels) in <main>'
1 Like

Removing my MaxMknd key fixed it, what does that mean?

Soo how can we fix that?

If I knew, I’d have provided that info!

It looks like something is trying to pull something from somewhere and can’t. :person_shrugging:

2 Likes

Ah it seems @darkpixlz gave me a wrong api key…

I gave you what MaxMind gave me. I’ll look into it when I’m home.

2 Likes

Ah. Yes. That explains it. It’s trying to pull from maxind.

A more helpful error message would help.

It means that I should have stopped paying attention to this topic when you wrote that.

2 Likes

I will look into it as I said. It could have been from the wrong service because I did it on my phone

1 Like