Missing /opt/solr-4.3.1 in both 12.04 and 14.04

I’m trying to setup circleci with my ckan fork: https://github.com/HighwayThree/ckan and it keeps failing on this command: cp -R /opt/solr-4.3.1 $SOLR_HOME
Error message:

cp: cannot stat ‘/opt/solr-4.3.1’: No such file or directory

cp -R /opt/solr-4.3.1 $SOLR_HOME returned exit code 1

Action failed: cp -R /opt/solr-4.3.1 $SOLR_HOME

I’ve tried both ubuntu images (12.04, 14.04) and ssh into the vm and there’s no solr on the machine. From the docs, I get the impression that it should be there but it’s not. Is there something I need to do to ensure that solr will present at /opt/solr-4.3.1?

I just took a look into /opt/ and I see it there:

ubuntu@box1837:~$ sudo ls -la /opt
total 114448
drwxr-xr-x 1 root      root            192 Apr 25 02:29 .
drwxr-xr-x 1 root      root            196 Sep  1 22:03 ..
drwxr-xr-x 1 root      root             10 Apr 24 23:40 alex
-rw-r--r-- 1 root      root      117194169 Apr 25 02:28 apache-solr-4.3.1.tgz
drwxr-xr-x 1 root      root              8 Apr 24 23:40 cabal
drwxr-xr-x 1 root      root            134 Apr 25 02:21 chef
drwxr-xr-x 1 couchbase couchbase       178 Apr 25 02:00 couchbase
drwxr-xr-x 1 root      root           1024 May 25  2015 firefox38
drwxr-xr-x 1 root      root             74 Apr 24 23:41 ghc
drwxr-xr-x 1 root      root             12 Apr 25 02:00 google
drwxr-xr-x 1 ubuntu    ubuntu          282 Apr 25 02:01 google-cloud-sdk
drwxr-xr-x 1 root      root             12 Apr 24 23:41 happy
drwxr-xr-x 1 solr      solr             14 Apr 25 02:29 solr
drwxr-xr-x 1 root      root            190 Apr 25 02:29 solr-4.3.1

That was on Ubuntu 12.04. For Ubuntu 14.04, you would have to install Solr yourself.

Note: If you did not see Solr on Ubuntu 12.04, it’s likely because you rebuilt the commit after changing build images. You’ll need to actually send up a new commit to GitHub in order for CircleCI to use a new build image for your build.

Ah, ok, I did what you suggested and it works now. Thanks for the help =)

1 Like

Thank you for bringing this up. We’ll make sure to clarify in Docs that this is for Ubuntu 12.04 only. :slight_smile: