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

Docker image is not usable #15

Open
MartinMikita opened this issue Nov 5, 2015 · 3 comments
Open

Docker image is not usable #15

MartinMikita opened this issue Nov 5, 2015 · 3 comments
Assignees

Comments

@MartinMikita
Copy link

Clear build using Dockerfile results in not properly set environment variable IMAGESEARCH_DB, which results in throwing exception basic_string::_S_construct null not valid.

When I switched Dockefile into using nginx instead of lighttpd with correctly set IMAGESEARCH_DB variable, than I am receiving errors System exception: Cannot map file into shared memory: \/shared\/dhash from URL v1/searchIdentical?blockHash=ffff816180a18239c731a381e087b8cf883df971dc01bc858003800dd80fffff&dHash=2592989844c4e0d8

I tried following this exception, which results in failing function ::mmap(const_cast<void*>(addrHint), _size, access, MAP_SHARED, _fd, 0); (poco/Foundation/src/SharedMemory_POSIX.cpp:105)
with errno set to EINVAL (22, Invalid argument)
called by new Poco::SharedMemory(*data_fd, Poco::SharedMemory::AM_READ) (fcgi/MemoryManager.cpp:125)
called by MemoryManager::getData(HashType hashType) (fcgi/HashManager.cpp:114)

How is this docker image used on domain http://imagesearch.mzk.cz/?

@klokan
Copy link
Collaborator

klokan commented Nov 6, 2015

Have you tried to point IMAGESEARCH_DB to the file from the release: https://github.com/moravianlibrary/imagesearch.mzk.cz/releases?

@klokan
Copy link
Collaborator

klokan commented Nov 6, 2015

@michalbecak could you please comment here?

@MartinMikita
Copy link
Author

Well, it is weird, but after downloading imagesearch.db from the release, everything is working.
But this docker image should be working also with empty DB, or at least create some data necessary to run. (now it only creates tables)

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

No branches or pull requests

3 participants