-
Notifications
You must be signed in to change notification settings - Fork 7
Unsupported OP_QUERY command #59
Comments
Interesting. Yeah, that redash/requirements_all_ds.txt Line 9 in d63ef90
We're updating other dependencies over the last days and weeks anyway, so we might as well try a newer pymongo and see if it builds without needing other changes. |
@Adityak4201 I've just created a PR with that change, mostly to see if it passes our test suite. No idea if it'll work or not, but it's worth trying out just in case. 😄 |
The newer PyMongo passed the current Redash test suite, though I'm not sure how much that actually tests the Mongo part of things. That being said, I've merged it the PR into our https://hub.docker.com/r/redashcommunity/redash/tags You might need to give it an hour or so to finish the tests and building, then you could try that docker build out with your Mongo version 6 data source and see if it works ok. 😄 |
It looks like the updated docker hub image has already built, so you should be ok to try it out. 😄 |
Hey @justinclift. Thanks for the quick response. I will test it and let you know |
Thanks, please do. If the updated PyMongo library doesn't work properly, we'll probably need to change the version back to the older one until we can look at it properly. |
I have been trying to run the https://hub.docker.com/r/redashcommunity/redash/tags with docker. I have been following https://redash.io/help/open-source/dev-guide/docker for running the application on docker. But, when I am running the command Starting redash_redis_1 ... done |
Interesting. It looks like an error happening in the DynamoDB connection library. Looking at that library on GitHub (https://github.com/stevearc/dql), it seems pretty much dead or close to it. My first thought is we could just remove the DynamoDB library support for now, in order to get things working. But it might actually be something else (simple) instead. @gaecoli Would you have a few minutes to take a look at this? |
Tonight, i will look at this. I'm busy right now. Sorry. |
Tonight is completely fine, thank you. 😄 |
Please show me how do you connect it. |
I think our docker image not build |
Oh. I wonder if our docker image build is not using the requirements_all_ds.txt during build then... |
Yes, you understand me. |
Cool. We need to fix that. 😄 @junnplus @hazmeister It looks like our preview images on Docker Hub aren't being built with all of the libraries from requirements_all_ds.txt. Any idea how to get them included? |
Hmmm, it looks like GitHub now enforces a very narrow "maximum width" for wiki pages, making them useless for tables. That's not good. 😦 |
I think there's a cut-n-paste mistake here too: redash/redash/settings/__init__.py Lines 167 to 174 in d2ac245
Both That |
Yes. It will be fixed.
… On Jun 20, 2023, at 18:47, Aditya Khandelwal ***@***.***> wrote:
Also, while I have been trying to run docker image for redashcommunity/redash:preview, I am getting error:
2023-06-20 10:43:44.157 UTC [1] FATAL: database files are incompatible with server
2023-06-20 10:43:44.157 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 15.3.
I think postgresql version needs to be cross checked again.
—
Reply to this email directly, view it on GitHub <#59 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALBBQNGDJG4OJRDOM3IOOBTXMF5UBANCNFSM6AAAAAAZLXQQD4>.
You are receiving this because you were mentioned.
|
@jezdez Back in the day (~2019) you added a commit for Redash with this code fragment in it: redash/redash/settings/__init__.py Lines 167 to 174 in d2ac245
That code fragment seems to have a cut-n-paste typo in it. Any idea if Not sure if you remember this code in question, but figured it doesn't hurt to ask... 😄 |
Yeah, definitely a typo, |
Any ideas what ds stands for? I'm a few days without access to a proper machine- can you pip install it manually using docker exec? I seem to recall python needs updating- perhaps that version only installs on a newer python base? |
DS means "Data Source". 😄 I can probably take a look at it tomorrow. Badly need sleep at the moment after being up all night again. 🤦♂️ |
We can move ds lib to requirement.txt. Just a idea. |
When you build images with docker, i want to know what args are you used? |
In theory, it should be done by this: https://github.com/RedashCommunity/redash/blob/master/.github/workflows/docker-preview.yml That file seems to be mostly pre-defined GitHub Action er... "actions". I'm not sure if the docker image build is being done by Those actions have docs: But after skimming those, it's still unclear if the build action is just directly running through the Dockerfile to create the image, or perhaps it's using the Makefile. If it's building the image directly using the Dockerfile, then I thought it would be automatically using requirements_all_ds.txt already: Lines 93 to 94 in d844f20
That's supposed to install all of the data source dependencies unless the variable "skip_ds_deps" is set to any value and passed to it. When I run
That's the Lines 3 to 4 in d844f20
Which will be using the docker-compose.yml file: Which in turn will build the docker image from the Dockerfile if it's not already created by the GitHub actions run this time around. To me, I'd think this would also be including all of the data source library dependencies already as per the above. It uses the same Dockerfile for the build. Alternatively, there's the build process available through yarn instead: Line 10 in d844f20
That seems to be for just the front end though, so is probably called by other stuff as part of the build.
Yeah, it's probably the fastest way to get to a working result, while we're still getting a better idea of how all the pieces fit together. a) Make it work <-- we're still here 😉 |
Initial draft PR created. No idea if it'll pass our CI though. We may need to drop some of the data sources which pip (in my local install) complained about. Lets see how it goes... 😄 |
@Adityak4201 In the main Is that something you'd be ok doing? |
@justinclift I have checked the connection to mongoDB 6 from Thanks for the quick update 😄 |
I have mongoDB 6.0. When I am trying to connect it from redash 8.0, I am getting error:
Unsupported OP_QUERY command: connectionStatus. The client driver may require an upgrade. For more details, see https://dochub.mongodb.org/core/legacy-opcode-removal.
After going through redash's code, I realized they are using pymongo 3.9.0 which only supports till mongo 4.2. Please upgrade the pymongo version to 4.3.3
The text was updated successfully, but these errors were encountered: