Error with local solr server

I’m running Autopsy 4.19.2 on Ubuntu 20.04

After a couple of minutes starting the program, I get a ‘timeout error when connecting to local solr server’. This is used by the KeywordSearch plugin (so disabling the plugin also avoids the error)

I believe there is an error in autopsy-4.19.2/autopsy/solr/bin/autopsy-solr.in.sh, as I replaced line 96 of by
SOLR_OPTS="$SOLR_OPTS -Dbootstrap_confdir=…/server/solr/configsets/AutopsyConfig/conf -Dcollection.configName=AutopsyConfig -Dsolr.default.confdir=…/server/solr/configsets/AutopsyConfig/conf"

And then it worked