I can confirm this is not caused by a plugin : I reproduced the same bug with a fresh install + a restore of my last backup and no plugins installed unless docker_manager.
The first stacktrace I get is :
Completed 500 Internal Server Error in 4169ms (ActiveRecord: 0.0ms | Allocations: 72058)
NoMethodError (undefined methodpath' for nil:NilClass) /var/www/discourse/lib/file_store/base_store.rb:150:incache_file’
I patched it this way:
def cache_file(file, filename)
path = get_cache_path_for(filename)
dir = File.dirname(path)
FileUtils.mkdir_p(dir) unless Dir.exist?(dir)if file.nil? return end FileUtils.cp(file.path, path)
Which lead to a second error (the one I mentioned in my initial post):
Started GET “/” for 86.246.127.170 at 2020-05-18 07:37:40 +0000
Processing by CategoriesController#index as HTML
Completed 500 Internal Server Error in 4342ms (ActiveRecord: 0.0ms | Allocations: 60478)
NoMethodError (undefined methodpath' for nil:NilClass) /var/www/discourse/app/models/upload.rb:193:infix_dimensions!’
Which I fixed by forcing local? to true:
def local?
return true
!(url =~ /^(https?:)?///)
end