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

Not able to use with Hyperleadger Fabric SDK. #14

Closed
bdzo opened this issue Jan 10, 2020 · 3 comments
Closed

Not able to use with Hyperleadger Fabric SDK. #14

bdzo opened this issue Jan 10, 2020 · 3 comments

Comments

@bdzo
Copy link

bdzo commented Jan 10, 2020

Hello,

First of all thank you for building such module. :)

But I am having trouble using this module with Hyperleadger Fabric SDK..

Here is error I am getting:

1:M 10 Jan 2020 13:59:19.156 # <PB> failed to load ledger/queryresult/kv_query_result.proto                                                                 
error:google/protobuf/timestamp.proto:-1:0:File not found.                                           
error:ledger/queryresult/kv_query_result.proto:11:0:Import "google/protobuf/timestamp.proto" was not found or had errors.                
error:ledger/queryresult/kv_query_result.proto:26:4:"google.protobuf.Timestamp" is not defined.                                                                                              
1:M 10 Jan 2020 13:59:19.156 # Module /usr/lib/redis/modules/libredis-protobuf.so initialization failed. Module not loaded                                                                     
1:M 10 Jan 2020 13:59:19.156 # Can't load module from /usr/lib/redis/modules/libredis-protobuf.so: server aborting          

And here is my Dockerimage:

https://github.com/bdzo/fabric-redis-protobuf

Thanks
Đorđe

@sewenew
Copy link
Owner

sewenew commented Jan 10, 2020

Hi @bdzo

You got this error, because google/protobuf/timestamp.proto is not saved under /usr/lib/redis/proto directory. This is a related issue, and I've fixed the problem. However, you still need to copy these standard proto files to /usr/lib/redis/proto directory.

Also I'll copy these files to sewenew/redis-protobuf docker image. When that's done, you can pull the latest image, and your proto file should be loaded successfully. I'll let you know, when I'm done with that.

Regards

@sewenew
Copy link
Owner

sewenew commented Jan 10, 2020

Hi @bdzo

The Dockerfile has been updated, and it will copy these standard proto files to /usr/lib/redis/proto directory.

You can try the latest image, and I think it should work now. If you still have any problem with this module, feel free to let me know :)

Regards

@bdzo
Copy link
Author

bdzo commented Jan 16, 2020

Hello,

Thanks for fast response!

It works great!

Kind regards

@bdzo bdzo closed this as completed Jan 16, 2020
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