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

Missing QINFO command #8

Open
Niek opened this issue Jul 5, 2021 · 3 comments
Open

Missing QINFO command #8

Niek opened this issue Jul 5, 2021 · 3 comments

Comments

@Niek
Copy link

Niek commented Jul 5, 2021

Great redis module! I had to compile from scratch since I got this error:

$ wget "https://github.com/taskforcesh/bullmq-redis/releases/download/v1.1.0/libbullmq.so" -O /tmp/libbullmq.so
$ chmod a+rx /tmp/libbullmq.so
$ ls /tmp/libbullmq.so -al
-rwxr-xr-x 1 root root 953416 Jan 11 10:27 /tmp/libbullmq.so
echo "MODULE LOAD /tmp/libbullmq.so" | redis-cli
(error) ERR Error loading the extension. Please check the server logs.
$ tail -1 /var/log/redis/redis-server.log
3208472:M 05 Jul 2021 10:56:39.907 # Module /tmp/libbullmq.so failed to load: /tmp/libbullmq.so: cannot open shared object file: No such file or directory

After a manual compile everything works fine. However, the QINFO command as references in the README is not working:

echo "QINFO" | redis-cli
(error) ERR unknown command `QINFO`, with args beginning with:

I don't see any references in the code either - is it still pending implementation?

@manast
Copy link
Contributor

manast commented Jul 6, 2021

Thanks for trying out the module.
The error you got is really strange, it is complaining that it did not find the module even though the file is there. The module is compiles automatically as a github action, I wonder how that differs from compiling it locally :/.

Yes, QINFO is not implemented yet, I forgot to remove it from the README when I was doing the clean up.

@Niek
Copy link
Author

Niek commented Jul 6, 2021

Thanks for the reply! Here's another look at the different .so files:

$ ldd /tmp/libbullmq.so
	linux-vdso.so.1 =>  (0x00007ffc4d90b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f172082b000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1720522000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1720305000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1720101000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f171fef9000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f1720bf5000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f171fcf6000)
$ ldd /usr/local/lib/libbullmq.so # my own compiled version
	linux-vdso.so.1 =>  (0x00007ffc7cbe7000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7b24d73000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7b24b56000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7b2478c000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7b24588000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f7b24380000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f7b2507c000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f7b2417d000)

In the pre-compiled version I'm missing libc.so.6 - maybe due to differences in glibc in the GitHub action instance and my server.

The only other difference is that I used Zig 0.8 to compile.

@Niek
Copy link
Author

Niek commented Dec 25, 2022

Same missing command issue with QDEL by the way.

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

No branches or pull requests

2 participants