I'm trying to create a CKAN 2.10.1 instance with vagrant and Virtual Box help. The code is in this GitHub repository.
When setup/provision_ckan.sh
file runs, almost everything goes well, except the solr
create session process. When the setup/provision_ckan.sh
arives at line 74 (sudo -u solr /opt/solr/bin/solr create -c ckan
) the Connect to localhost:8983 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
error occurs and the process didn't finish correctly.
This stackoverflow answers seems pretty the same mine, but the accepted answer didn't work, unfortunately.
I also tried this another stackoverflow option but nothing.
I believe that this is a possible user permission issue due to the vagrant machine creation process. If yes, how could I fix it? If not, what I'm missing?
Obs.: CKAN official documentation recommends run sudo bash ./install_solr_service.sh solr-8.11.2.tgz
as root
user. I also tried this option, but the process failed as well.