macbre / docker-sphinxsearch

Docker image for Sphinx search engine
https://hub.docker.com/r/macbre/sphinxsearch/
MIT License
55 stars 24 forks source link

FATAL: failed to open log file '(null)': Bad address #5

Closed glukkkk closed 4 years ago

glukkkk commented 5 years ago

Not sure if it's a Sphinx binary error.

I have a Sphinx config file located in /var/www/app/docker/sphinx/sphinx.conf. My .yaml config is the following:

  sphinx:
    image: macbre/sphinxsearch:3.1.1
    volumes:
      - ./docker/sphinx:/usr/local/var/data/
      - ./docker/sphinx:/opt/sphinx/index
      - ./docker/sphinx:/opt/sphinx/log
      - ./docker/sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf

Everything is fine when running docker compose . However when I use the run command, I get the error:

sudo docker run --name=sphinx --mount type=bind,source=/var/www/app/docker/sphinx/sphinx.conf,target=/opt/sphinx/conf/sphinx.conf --mount type=bind,source=/var/www/app/docker,target=/opt/sphinx/log macbre/sphinxsearch:3.1.1
Sphinx 3.1.1 (commit 612d99f4)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

[Mon Mar  4 09:08:38.133 2019] [1] using config file '/opt/sphinx/conf/sphinx.conf'...
[Mon Mar  4 09:08:38.135 2019] [1] FATAL: failed to open log file '(null)': Bad address

--- crashed SphinxAPI request dump ---

--- request dump end ---
Sphinx 3.1.1 (commit 612d99f4)
Handling signal 11
-------------- backtrace begins here ---------------
Program compiled with gcc 6.4.0
Configured with flags:  '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Host OS is Linux alpine38 4.14.69-0-vanilla #1-Alpine SMP Mon Sep 10 19:33:23 UTC 2018 x86_64 Linux
Stack bottom = 0x7fffb1144657, thread stack size = 0x20000
Trying manual backtrace:
Something wrong with thread stack, manual backtrace may be incorrect (fp=0x1)
Wrong stack limit or frame pointer, manual backtrace failed (fp=0x1, stack=0x7fffb1150000, stacksize=0x20000)
-------------- backtrace ends here ---------------
Please, create a bug report in our bug tracker (http://sphinxsearch.com/bugs) and attach there:
a) searchd log, b) searchd binary, c) searchd symbols.
Look into the chapter 'Reporting bugs' in the documentation
(/usr/share/doc/sphinx/sphinx.txt or http://sphinxsearch.com/docs/current.html#reporting-bugs)
--- BT to source lines (depth 0): ---
conversion failed (error 'No such file or directory'):
  1. Run the command provided below over the crashed binary (for example, 'searchd'):
  2. Attach the source.txt to the bug report.
addr2line -e searchd > source.txt
--- BT to source lines finished ---
--- 0 active threads ---
------- CRASH DUMP END -------
crocodile2u commented 5 years ago

--mount type=bind,source=/var/www/app/docker/sphinx/sphinx.conf,target=/opt/sphinx/conf/sphinx.conf

Can you doublecheck that the source path is correct? I had the same error in the very same situation with docker-compose vs docker run, it turned out I had a wrong path specified in the latter case.

piclez commented 4 years ago

I'm also having this issue.

macbre commented 4 years ago

Please re-open if this issue is still valid.