Closed jseverinson closed 3 years ago
I believe I found the issue. This was a bug in Alpine Linux. It can be fixed by replicating this commit, by editing /etc/conf.d/syslog
and change the "-Z" to "-t".
Leaving this open as it might make sense to patch the image or upgrade the Alpine Linux version. I imagine more people will want to have crond running for their Sphinx container. Thanks!
@jseverinson - do you want to run syslog
daemon inside Sphinx Docker container? Or am I getting this wrong?
Hi Maciej! Not really, I want to run crond inside it to reindex the Sphinx index, but crond wonโt start because of this error in how syslogd is called. ๐
lรถr 31 okt. 2020 kl. 19:55 skrev Maciej Brencz notifications@github.com:
@jseverinson https://github.com/jseverinson - do you want to run syslog daemon inside Sphinx Docker container? Or am I getting this wrong?
โ You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/macbre/docker-sphinxsearch/issues/11#issuecomment-719973541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7EVLC53JQTRYTIKZYIB7TSNRMT5ANCNFSM4SS6DSNQ .
You should rather use cron running on the host machine (not inside the Docker container) and run docker exec sphinx <reindex command>
:
docker exec -i sphinx_container indexer --rotate --print-queries --all
docker kill --signal=HUP sphinx_container # this one will make the Sphinx daemon reload the index files
Best :slightly_smiling_face:
Hi again Maciej. This might be me being entirely incompetent, but I'm using the Jelastic virtualisation platform which means a virtual machine is built from a Docker container. As such I don't have access to any host machine. ๐ In any case, I solved this for my own sake, just figured this change might be something you'd want to introduce in future versions.
All the best, John
On Sat, 31 Oct 2020 at 20:06, Maciej Brencz notifications@github.com wrote:
You should rather use cron running on the host machine (not inside the Docker container) and run docker exec sphinx
. โ You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/macbre/docker-sphinxsearch/issues/11#issuecomment-719974790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7EVLE2IJXOICMK3OKU5HLSNRN4XANCNFSM4SS6DSNQ .
@jseverinson - sure :slightly_smiling_face: Are you using macbre/sphinxsearch
image "directly" or did you create your own Dockerfile
that uses it?
I'm asking because alpine:3.12
base image does not seem to have syslog.conf
file...
Hi, let me first say thanks for this docker image and apologise in advance if this is a noob question, I'm learning as I go. ๐
I've set up this image and got Sphinx to a point where I'm very happy with it, but I'm struggling to get a cronjob set up to periodically re-index. crond seems not to be running and as I try to launch it I get this:
Making it a bit more verbose with the -d option I see this:
The
start-stop-daemon --start --exec /bin/syslogd
seems to have a redundant option with it, and if I remove that I can start syslogd, but then crond will say syslogd is already running and still complain it cannot be started.Any advice on what to do here? Thanks!