Trouble Running Typesense Docker Image on AMD Phenom II X4 955 Processor
TLDR Ian struggles to run Typesense on an AMD Phenom II X4 955 Processor, experiencing the docker image to shut down immediately upon startup. Jason and Kishore Nallan suggest multiple troubleshooting steps, identifying the potential issue as the processor's lack of support for MSSE4 flags.
Oct 17, 2022 (12 months ago)
$ sudo rm -Rf /tmp/typesense_data
$ mkdir /tmp/typesense_data; docker run -p8108:8108 -v/tmp/typesense_data:/data typesense/typesense:0.23.1 --data-dir /data --api-key=anything --enable-cors
$ docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
91cfa8a0e989 typesense/typesense:0.23.1 "/opt/typesense-serv…" 8 seconds ago Exited (132) 6 seconds ago pensive_mendeleev
$ docker logs 91cfa8a0e989
--platform=linux/amd64to the docker run command?
AMD Phenom(tm) II X4 955 Processorwas first released in 2009. Code 132 essentially means there was a CPU instruction that was sent that the CPU didn’t understand. So I suspect your processor’s instruction set doesn’t support the docker image.
We only started publishing Docker images in 2018, so I don’t think older versions of the Typesense docker image would work either…
Your best bet would be to rebuild the docker image on your host machine
typesense/typesense:nightlyas the image name in your docker run command
And then use that development image in
cp $PROJECT_DIR/docker/deployment.Dockerfile $PROJECT_DIR/$BUILD_DIR
Oct 18, 2022 (12 months ago)
$ docker image ls | grep typesense typesense/typesense nightly b6ffb22b8f1c 6 minutes ago 822MB typesense/typesense-development nightly e960b42ed3e4 17 minutes ago 5.17GB
$ git diff --cached diff --git a/docker-build.sh b/docker-build.sh index 059afaa..e69e84b 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -29,7 +29,7 @@ if [[ "$@" == *"--depclean"* ]]; then fi -TYPESENSE_DEV_IMAGE="typesense-development:27-JUN-2022-1" +TYPESENSE_DEV_IMAGE="typesense-development:nightly" ARCH_NAME="amd64" if [[ "$@" == *"--graviton2"* ]]; then
TYPESENSE_VERSION=nightly ./docker-build.sh --build-deploy-image --create-binary --clean
Creating deployment image for Typesense nightly server ... + cp /home/ian/workspace/laspilitas-project/typesense/docker/deployment.Dockerfile /home/ian/workspace/laspilitas-project/typesense/build-Linux + docker build --file /home/ian/workspace/laspilitas-project/typesense/build-Linux/deployment.Dockerfile --tag typesense/typesense:nightly /home/ian/workspace/laspilitas-project/typesense/build-Linux Sending build context to Docker daemon 435.4MB Step 1/7 : FROM ubuntu:16.04 ---> b6f507652425 Step 2/7 : RUN apt-get -y update && apt-get -y install ca-certificates ---> Using cache ---> fcdd8e825033 Step 3/7 : RUN mkdir -p /opt ---> Using cache ---> 4f5e1feca84b Step 4/7 : COPY typesense-server /opt ---> e35dad4a35cd Step 5/7 : RUN chmod +x /opt/typesense-server ---> Running in b6e9a1f0d73e Removing intermediate container b6e9a1f0d73e ---> 2d20f833c3f6 Step 6/7 : EXPOSE 8108 ---> Running in 4819a975c579 Removing intermediate container 4819a975c579 ---> 07f38aafca69 Step 7/7 : ENTRYPOINT ["/opt/typesense-server"] ---> Running in fd683bf4b494 Removing intermediate container fd683bf4b494 ---> b6ffb22b8f1c Successfully built b6ffb22b8f1c Successfully tagged typesense/typesense:nightly + [[ --build-deploy-image --create-binary --clean == *\-\-\p\a\c\k\a\g\e\-\b\i\n\a\r\y* ]] + echo 'Done... quitting.' Done... quitting.
docker build --file docker/development.Dockerfile --tag typesense-development:nightly docker
$ docker image ls | grep typesense typesense/typesense nightly b6ffb22b8f1c 14 minutes ago 822MB typesense-development nightly e960b42ed3e4 26 minutes ago 5.17GB typesense/typesense-development nightly e960b42ed3e4 26 minutes ago 5.17GB
Kishore Nallan01:39 AM
docker run -p8108:8108 -v/tmp/typesense_data:/data typesense/typesense:nightly gdb /opt/typesense-server --data-dir /data --api-key=anything
Kishore Nallan04:28 AM
root@124a97b7c5a0:/build-Linux# TYPESENSE_DATA_DIR=/data TYPESENSE_API_KEY=anything gdb --args typesense-server GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from typesense-server...done. (gdb) run Starting program: /build-Linux/typesense-server warning: Error disabling address space randomization: Operation not permitted [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7f228a47f700 (LWP 552)] Thread 2 "typesense-serve" received signal SIGILL, Illegal instruction. [Switching to Thread 0x7f228a47f700 (LWP 552)] 0x0000000000780305 in bvar::detail::PercentileSamples<1022ul>::get_number (this=0x7f2289426140, ratio=<optimized out>) at /usr/local/include/bvar/detail/percentile.h:293 293 /usr/local/include/bvar/detail/percentile.h: No such file or directory. (gdb)
0x780305 <bvar::detail::PercentileSamples<1022ul>::get_number(double)+37> roundsd $0xa,%xmm0,%xmm0
Oct 20, 2022 (12 months ago)
Kishore Nallan04:40 AM
Indexed 2779 threads (79% resolved)
Trouble with DocSearch Scraper and Pipenv Across Multiple OSs
James ran into errors when trying to build Typesense DocSearch Scraper from scratch, and believes it’s because of a bad Pipfile.lock. Jason attempted to replicate the error, and spent hours trying to isolate the issue but ultimately fixed the problem and copied his bash history for future reference. The conversation touches briefly on the subject of using a virtual machine for testing.
Troubleshooting Typesense Docsearch Scraper Setup Issue
Vinicius experienced issues setting up typesense-docsearch-scraper locally. Jason identified a misconfiguration with the Typesense server after checking the .env file, and recommended using ngrok or port forwarding for development purposes. Vinicius successfully resolved the issue with port forwarding.
Resolving Connection Issues on Ubuntu 21.10
Philipe faced a problem with TypeSense running on Ubuntu 21.10. After troubleshooting, Jason and Kishore Nallan suggested a binary to solve the compatibility issue, which resolved the issue.
Resolving Multilingual Search Function in Typesense Software
Bill is having difficulty with multilingual search functionality in Typesense software. Developer Kishore Nallan suggested setting a language locale and provided a demo build. The build solution had some issues, and after multiple rounds of software updates and troubleshooting, the problem still persists.
Troubleshooting Typesense Server Error on Docker
vikram was facing an error with Typesense Server Docker container and loss of data on restart. Kishore Nallan guided to avoid mounting tmp directory from localhost and explained stopping the Docker container.