wingunder / redis-plus-plus-modules

This library aims to supply a C++ interface to all major/popular Redis modules.
Other
15 stars 3 forks source link

Issue building the solution #1

Closed ajeetraina closed 3 years ago

ajeetraina commented 3 years ago

I tried building Docker Image and running Docker compose as shown below:

Starting redis-plus-plus-modules_redis_1 ... done
Starting redis-plus-plus-modules_test_1        ... done
Starting redis-plus-plus-modules_multi_info_1  ... done
Starting redis-plus-plus-modules_single_info_1 ... done
Attaching to redis-plus-plus-modules_redis_1, redis-plus-plus-modules_single_info_1, redis-plus-plus-modules_test_1, redis-plus-plus-modules_multi_info_1
multi_info_1   | make: Entering directory '/usr/src/redis-plus-plus-modules/examples/multiInfo'
multi_info_1   | make: Nothing to be done for 'all'.
multi_info_1   | make: Leaving directory '/usr/src/redis-plus-plus-modules/examples/multiInfo'
redis_1        | 1:C 19 Jul 2021 10:25:00.707 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1        | 1:C 19 Jul 2021 10:25:00.707 # Redis version=6.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1        | 1:C 19 Jul 2021 10:25:00.707 # Configuration loaded
test_1         | cmake -DCMAKE_SYSTEM_PREFIX_PATH=. -DCMAKE_INSTALL_PREFIX=. -DHIREDIS_HEADER=include -DHIREDIS_LIB=lib/libhiredis.so -S redis-plus-plus -B build-redis-plus-plus
single_info_1  | make: Entering directory '/usr/src/redis-plus-plus-modules/examples/singleInfo'
single_info_1  | make: Nothing to be done for 'all'.
single_info_1  | make: Leaving directory '/usr/src/redis-plus-plus-modules/examples/singleInfo'
redis_1        | 1:M 19 Jul 2021 10:25:00.708 * Running mode=standalone, port=6379.
redis_1        | 1:M 19 Jul 2021 10:25:00.708 # Server initialized
redis_1        | 1:M 19 Jul 2021 10:25:00.708 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
multi_info_1   | Expansion rate: 2
multi_info_1   | Number of items inserted: 0
multi_info_1   | Capacity: 100
multi_info_1   | Number of filters: 1
multi_info_1   | Size: 232
test_1         | -- redis-plus-plus version: 1.2.3
single_info_1  | Expansion rate: 2
single_info_1  | Number of items inserted: 0
single_info_1  | Capacity: 100
single_info_1  | Number of filters: 1
single_info_1  | Size: 232
redis_1        | 1:M 19 Jul 2021 10:25:00.708 * <ai> Redis version found by RedisAI: 6.0.1 - oss
redis_1        | 1:M 19 Jul 2021 10:25:00.708 * <ai> RedisAI version 10003, git_sha=7f808a934dff121e188cb76fdfcc3eb1f9ec7cbf
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * Module 'ai' loaded from /usr/lib/redis/modules/redisai.so
multi_info_1   | Max iterations: 0
multi_info_1   | Expansion rate: 1
multi_info_1   | Number of buckets: 16
multi_info_1   | Number of filters: 1
multi_info_1   | Number of items inserted: 0
multi_info_1   | Number of items deleted: 0
multi_info_1   | Size: 216
multi_info_1   | Bucket size: 10
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * <search> Redis version found by RedisSearch : 6.0.1 - oss
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * <search> RediSearch version 2.0.9 (Git=v2.0.9)
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * <search> Low level api version 1 initialized successfully
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results:  1000000, search pool size: 20, index pool size: 8, 
test_1         | -- redis-plus-plus build type: Release
test_1         | -- redis-plus-plus build with CXX standard: c++11
test_1         | -- redis-plus-plus TLS support: OFF
redis_1        | 1:M 19 Jul 2021 10:25:00.709 * <search> Initialized thread pool!
redis_1        | 1:M 19 Jul 2021 10:25:00.710 * Module 'search' loaded from /usr/lib/redis/modules/redisearch.so
redis_1        | 1:M 19 Jul 2021 10:25:00.713 * <graph> Starting up RedisGraph version 2.4.5.
redis_1        | 1:M 19 Jul 2021 10:25:00.714 * <graph> Thread pool created, using 6 threads.
redis_1        | 1:M 19 Jul 2021 10:25:00.714 * <graph> Maximum number of OpenMP threads set to 6
redis_1        | 1:M 19 Jul 2021 10:25:00.714 * Module 'graph' loaded from /usr/lib/redis/modules/redisgraph.so
redis_1        | 1:M 19 Jul 2021 10:25:00.715 * <timeseries> RedisTimeSeries version 10409, git_sha=39b28c092dd03264ad76e5e5bcb4bca1f05752ef
redis_1        | 1:M 19 Jul 2021 10:25:00.715 * <timeseries> Redis version found by RedisTimeSeries : 6.0.1 - oss
redis_1        | 1:M 19 Jul 2021 10:25:00.715 * Module 'timeseries' loaded from /usr/lib/redis/modules/redistimeseries.so
redis_1        | 1:M 19 Jul 2021 10:25:00.715 # <ReJSON> JSON data type for Redis v1.0.7 [encver 0]
redis_1        | 1:M 19 Jul 2021 10:25:00.715 * Module 'ReJSON' loaded from /usr/lib/redis/modules/rejson.so
redis_1        | 1:M 19 Jul 2021 10:25:00.715 * Module 'bf' loaded from /usr/lib/redis/modules/redisbloom.so
test_1         | -- redis-plus-plus build static library: ON
test_1         | -- redis-plus-plus build static library with position independent code: ON
test_1         | -- redis-plus-plus build shared library: ON
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> RedisGears version 1.0.6, git_sha=71740d307029c2b0ef49633ec7b1f12da23290c8, compiled_os=linux-buster-x64
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> Redis version found by RedisGears : 6.0.1 - oss
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> MaxExecutions:1000
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> MaxExecutionsPerRegistration:100
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> ProfileExecutions:0
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> PythonAttemptTraceback:1
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> DependenciesUrl:http://redismodules.s3.amazonaws.com/redisgears/redisgears-dependencies.linux-buster-x64.1.0.6.tgz
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> DependenciesSha256:a5f059df229e515ee888a683ef80834f1d003fbc057778124479c075e87ba5ce
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> CreateVenv:0
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> ExecutionThreads:3
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> ExecutionMaxIdleTime:5000
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> PythonInstallReqMaxIdleTime:30000
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> PythonInstallationDir:/var/opt/redislabs/modules/rg
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> DownloadDeps:1
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> ForceDownloadDepsOnEnterprise:0
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> SendMsgRetries:3
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> PythonHomeDir:/opt/redislabs/lib/modules/python3
redis_1        | 1:M 19 Jul 2021 10:25:00.717 * <rg> RedisAI api loaded successfully.
test_1         | -- redis-plus-plus build test: ON
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> PYENV_DIR: /var/opt/redislabs/modules/rg//python3_1.0.6/
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> PYENV_HOME_DIR: /var/opt/redislabs/modules/rg//python3_1.0.6//.venv/
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> PYENV_BIN_DIR: /var/opt/redislabs/modules/rg//python3_1.0.6//.venv//bin
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> PYENV_ACTIVATE: /var/opt/redislabs/modules/rg//python3_1.0.6//.venv//bin/activate_this.py
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> PYENV_ACTIVATE_SCRIPT: /var/opt/redislabs/modules/rg//python3_1.0.6//.venv//bin/activate
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <module> log file is 
redis_1        | 
redis_1        | 1:M 19 Jul 2021 10:25:00.723 * <rg> Found python installation under: /var/opt/redislabs/modules/rg//python3_1.0.6/
redis_1        | 1:M 19 Jul 2021 10:25:00.767 * Module 'rg' loaded from /var/opt/redislabs/lib/modules/redisgears.so
redis_1        | 1:M 19 Jul 2021 10:25:00.767 * Ready to accept connections
test_1         | -- Debian package name: .deb
test_1         | -- Configuring done
redis-plus-plus-modules_single_info_1 exited with code 0
redis-plus-plus-modules_multi_info_1 exited with code 0
test_1         | -- Generating done
test_1         | -- Build files have been written to: /usr/src/redis-plus-plus-modules/build-redis-plus-plus
test_1         | make -C build-redis-plus-plus install
test_1         | make[1]: Entering directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | make[2]: Entering directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | make[3]: Entering directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | make[3]: Leaving directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | [ 47%] Built target redis++
test_1         | make[3]: Entering directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | make[3]: Leaving directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | [ 94%] Built target redis++_static
test_1         | make[3]: Entering directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | make[3]: Leaving directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | [100%] Built target test_redis++
test_1         | make[2]: Leaving directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | Install the project...
test_1         | -- Install configuration: "Release"
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/lib/libredis++.a
test_1         | -- Installing: /usr/src/redis-plus-plus-modules/lib/libredis++.so.1.2.3
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/lib/libredis++.so.1
test_1         | -- Set runtime path of "/usr/src/redis-plus-plus-modules/lib/libredis++.so.1.2.3" to ""
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/lib/libredis++.so
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/share/cmake/redis++/redis++-targets.cmake
test_1         | -- Installing: /usr/src/redis-plus-plus-modules/share/cmake/redis++/redis++-targets-release.cmake
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/command.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/command_args.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/command_options.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/connection.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/connection_pool.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/errors.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/tls.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/pipeline.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/queued_redis.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/queued_redis.hpp
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/redis++.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/redis.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/redis.hpp
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/redis_cluster.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/redis_cluster.hpp
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/reply.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/sentinel.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/shards.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/shards_pool.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/subscriber.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/transaction.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/include/sw/redis++/utils.h
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/share/cmake/redis++/redis++-config.cmake
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/share/cmake/redis++/redis++-config-version.cmake
test_1         | -- Up-to-date: /usr/src/redis-plus-plus-modules/lib/pkgconfig/redis++.pc
test_1         | make[1]: Leaving directory '/usr/src/redis-plus-plus-modules/build-redis-plus-plus'
test_1         | touch lib/libredis++.so
test_1         | make -C test test_redismodules
test_1         | make[1]: Entering directory '/usr/src/redis-plus-plus-modules/test'
test_1         | make[1]: 'test_redismodules' is up to date.
test_1         | make[1]: Leaving directory '/usr/src/redis-plus-plus-modules/test'
test_1         | make -C test test_redismodules
test_1         | make[1]: Entering directory '/usr/src/redis-plus-plus-modules/test'
test_1         | make[1]: 'test_redismodules' is up to date.
test_1         | make[1]: Leaving directory '/usr/src/redis-plus-plus-modules/test'
test_1         | LD_LIBRARY_PATH=./lib ./test/test_redismodules
test_1         | Testing Redis...
test_1         | Testing RedisBloom ('bf') module version 20205
test_1         | Passed BloomFilter tests
test_1         | Passed CuckooFilter tests
test_1         | Passed CountMinSketch tests
test_1         | Passed TopK tests
test_1         | Passed RedisBloom tests
test_1         | Testing RedisJSON ('ReJSON') module version 10007
test_1         | Passed RedisJSON tests
test_1         | Testing RedisGraph ('graph') module version 20405
test_1         | Passed RedisGraph tests
test_1         | Passed all tests
redis-plus-plus-modules_test_1 exited with code 0
docker-compose ps
                Name                               Command               State                     Ports                  
--------------------------------------------------------------------------------------------------------------------------
redis-plus-plus-modules_multi_info_1    bash -c make -C examples/m ...   Exit 0                                           
redis-plus-plus-modules_redis_1         redis-server --loadmodule  ...   Up       0.0.0.0:6379->6379/tcp,:::6379->6379/tcp
redis-plus-plus-modules_single_info_1   bash -c make -C examples/s ...   Exit 0                                           
redis-plus-plus-modules_test_1          make test                        Exit 0                                           
ajeetraina@Ajeets-MacBook-Pro redis-plus-plus-modules % 

Any idea?

wingunder commented 3 years ago

Hi @ajeetraina,

It all seems good to me, as all redis-plus-plus-modules tests succeeded (see the last line of the following):

test_1         | Testing Redis...
test_1         | Testing RedisBloom ('bf') module version 20205
test_1         | Passed BloomFilter tests
test_1         | Passed CuckooFilter tests
test_1         | Passed CountMinSketch tests
test_1         | Passed TopK tests
test_1         | Passed RedisBloom tests
test_1         | Testing RedisJSON ('ReJSON') module version 10007
test_1         | Passed RedisJSON tests
test_1         | Testing RedisGraph ('graph') module version 20405
test_1         | Passed RedisGraph tests
test_1         | Passed all tests

Docker compose also worked, as otherwise the tests would not have run successfully.

What exactly fails, from your point of view?

Regards

wingunder commented 3 years ago

Closing, due to no response or feedback from issue creator.