-
Notifications
You must be signed in to change notification settings - Fork 102
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
Error from database "devdb": 'AsyncioEngine' object has no attribute 'hide_parameters' #62
Comments
@andy812 I had the same problem. The new oracledb 19.6 has this problem. The oracledb version 11.2.0.4 works fine. |
same problem today with default user right. I don't know exactly which rights from the list helped
|
connect to Oracle 19.* doesn't work? I have same problem with connect? |
I have the same issue on "Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production" But "1.4.0" is working fine. Just give this access is enough. But our "security team" still need the reason why need this. |
Hi. I unfortunately don't have access to an oracle db to test. Is there any way to setup a test server locally with docker? |
Issue also exists in 'query-exporter:latest/2.5.0', connecting to MySQL 5.7. I receive the following message:
My
|
Thanks for the info, I'll try to reproduce locally |
I just tested with the same config and 2.5.0, it works fine for me. |
Does running with |
thanks for looking at it so quickly @albertodonato . Running with
UPDATE: It was my mistake after all, I was connecting to a proxysql host. I changed the DSN to the proper hostname and this fixed the error, also added custom DNS resolvers. False alarm. Thanks again @albertodonato for your help. |
This seems to point at a DNS issue. Maybe the hostname for the db doesn't
get resolved. Can you try with the IP?
…On Wed, Nov 25, 2020 at 1:18 PM aorfanos ***@***.***> wrote:
thanks for looking at it so quickly @albertodonato
<https://github.com/albertodonato> . Running with -LDEBUG showed the
following:
socket.gaierror: [Errno -2] Name or service not known
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2PWD75B4FW2TCCLMS2UQ3SRTYYNANCNFSM4RLRBUOA>
.
|
FTR I just released 2.5.1, which adds tracebacks for errors when |
Im having the same issue using with an informix database databases: Im running in debug mode and this is what I get 2020-12-28 19:49:55,690 - INFO - aiohttp.web - Listening on http://0.0.0.0:9560 |
@igna-v what version are you using, and is it via snap, docker or directly installed from pip? |
@albertodonato Im using via docker and the latest tag I tried running the same query from the container and it worked (this comands in the python console): import sqlalchemy Thanks for the quick responce |
@igna-v I've never used informix. could you paste some instructions on how to set up the test db (database, user, ...) with that docker so I can run query-exporter against it? |
It also is my first experience with it, so sorry I cant provide much information, I have to test the tool so the DBA can then create the queries to monitor the productive instances. I used the instructions here, and use the default informix user (informix:in4mix). Here I checked and the ibm-db-sa dialect is mentioned in sql alchemy as usefull for both db2 and informix. And I tried the connection from the query exporter container using this ibm guide (which is aimed at db2, but worked perfectly with informix) |
@albertodonato Nevertheless if you can figure out how to use this query exporter with informix that would be really appreciated. Trying manually with ibm_db and ibm_db_dbi works perfectly. |
I suspect the issues is actually RazerM/sqlalchemy_aio#36. I pushed a test image to @igna-v (or anyone else hitting this issue) mind testing with that? |
Hi it solves the 'AsyncioEngine' object has no attribute 'hide_parameters'. Here is the error I get in case it is useful for someone. If I find a solution or work around for informix I´ll post it. 2020-12-30 12:08:58,157 - ERROR - query-exporter - query "query2" on database "db2" failed: (ibm_db_dbi.Error) ibm_db_dbi::Error: SystemError(' returned a result with an error set') Thanks! |
I know its a bit off topic but if someone is having the same issues with informix I fixed it by adding sqlalchemy-informix python package. ibm_db_sa can stay for db2 support if needed. I made a simple Dockerfile to add the package:
And the dsn for informix should look like this informix://user:pass@host[:port]/database Thank you very much @albertodonato for all the help |
@igna-v thatnks for testing, I'll leave this open until the issue is fixed in sqlalchemy_aio (RazerM/sqlalchemy_aio#37) |
added a workaround for now |
I still have this issue with 2.6.1 for an oracle database. Running with -LDEBUG it only says
Running the same query with test-sqlalchemy_aio it works and I get the following output:
|
I did some tests using this image and everything worked perfectly Can we have a new release with this fix? |
I use query-exporter with oracle database. My config:
I added instantclient 19.8 in adonato/query-exporter:2.4.0 image according fb08e31
Logs:
Any ideas how to fix it?
The text was updated successfully, but these errors were encountered: