Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Solr 5.x build and Docker Hub tag working #8

Closed
geerlingguy opened this issue Jul 10, 2017 · 2 comments
Closed

Get Solr 5.x build and Docker Hub tag working #8

geerlingguy opened this issue Jul 10, 2017 · 2 comments

Comments

@geerlingguy
Copy link
Owner

Copied over from #6:

So... 5.x is interesting. I can't use the automatic installation script as-is, because of the checks in these lines: https://github.com/apache/lucene-solr/blob/branch_5x/solr/bin/install_solr_service.sh#L55-L59

With the Debian 9/Stretch container at least:

# cat /proc/version
Linux version 4.9.31-moby (root@11fbdc1f630f) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Sat Jun 24 06:29:23 UTC 2017

# uname -a
Linux 4230517c30dd 4.9.31-moby #1 SMP Sat Jun 24 06:29:23 UTC 2017 x86_64 GNU/Linux

There's no Debian in there for the install script to key on... and I'm not sure if I can forcefully tell it "yes, this is Debian... proceed!".

@geerlingguy
Copy link
Owner Author

And to give more to the issue (for search purposes):

TASK [geerlingguy.solr : Run Solr installation script.] ************************
fatal: [solr]: FAILED! => {"changed": true, "cmd": "/root/solr-5.5.4/bin/install_solr_service.sh /root/solr-5.5.4.tgz -i /opt -d /var/solr -u solr -s solr -p 8983", "delta": "0:00:00.070770", "end": "2017-09-28 03:11:27.161285", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2017-09-28 03:11:27.090515", "stderr": "\nERROR: Your Linux distribution (Linux version 4.9.41-moby (root@11fbdc1f630f) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Wed Sep 6 00:05:16 UTC 2017) not supported by this script!\nYou'll need to setup Solr as a service manually using the documentation provided in the Solr Reference Guide.", "stderr_lines": ["", "ERROR: Your Linux distribution (Linux version 4.9.41-moby (root@11fbdc1f630f) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Wed Sep 6 00:05:16 UTC 2017) not supported by this script!", "You'll need to setup Solr as a service manually using the documentation provided in the Solr Reference Guide."], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/tmp/tmpA3nDcN/playbook.retry

PLAY RECAP *********************************************************************
solr                       : ok=8    changed=5    unreachable=0    failed=1

ERROR	Error applying role!	engine=<container.docker.engine.Engine object at 0x7f80b049f5d0> exit_code=2 playbook=[{'hosts': u'solr', 'roles': ['geerlingguy.solr'], 'vars': {u'solr_version': u'5.5.4', u'container_start_command': [u'/opt/solr/bin/solr', u'start', u'-f', u'-force'], u'container_working_dir': u'/', u'java_packages': [u'openjdk-8-jdk'], u'solr_remove_cruft': True}}]
Traceback (most recent call last):
  File "/usr/local/bin/conductor", line 11, in <module>
    load_entry_point('ansible-container', 'console_scripts', 'conductor')()
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/cli.py", line 399, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 813, in conductorcmd_build
    raise RuntimeError('Build failed.')
RuntimeError: Build failed.
Conductor terminated. Cleaning up.	command_rc=1 conductor_id=d9fb2baf4132b97884f90de154f9101c7d48a1555d5f875cb674355ac947256c save_container=False
ERROR	Conductor exited with status 1

@geerlingguy
Copy link
Owner Author

Pushing up 5.x/5.5.4 now. I'll also be pushing up a new 6.6.1 build in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant