-1

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.

  • As the vagrant tag states: GENERAL VAGRANT SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Please delete this. – Rob Aug 26 '23 at 07:24
  • Hello Rob, thanks for your help. I [created the question in superuser.com as suggested](https://superuser.com/questions/1806127/connection-refused-when-running-solr-create-from-vagrant-provision-file), but prefer just edit my question here instead of deleting. Honestly, I don't know whether the problem is with vagrant, VirtualBox or Solr. During the question review process, I deleted the vagrant tag and included de VirtualBox one. – Gabriel Braico Dornas Aug 28 '23 at 19:48

0 Answers0