GithubHelp home page GithubHelp logo

Comments (10)

miry avatar miry commented on June 9, 2024

jdbc:mysql://{proxy_server_ip}:3306/{DB_name}

Should be jdbc:mysql://{proxy_server_ip}:26379/{DB_name}

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

@miry I did change it to "jdbc:mysql://{proxy_server_ip}:26379/{DB_name}". It was a typo. Apologies. Request you to help me here.

from toxiproxy.

miry avatar miry commented on June 9, 2024

@ashish-k I propose to check toxiproxy with simple commands:

  1. Make sure toxiproxy server and client are uptodated:
$ toxiproxy-server --version
toxiproxy-server version 2.5.0

$ toxiproxy-cli --version
toxiproxy-cli version 2.5.0
  1. Run server with debug log level.
LOG_LEVEL=debug toxiproxy-server 
  1. Create a new proxy
toxiproxy-cli create -l 0.0.0.0:26379 -u {RDS Aurora DB endpoint}:3306 rds
toxiproxy-cli inspect rds
  1. Test that port is open
curl -v 0.0.0.0:26379
curl -v 127.0.0.1:26379
  1. Check logs from toxiproxy-server.

Pls share output of commands and logs, it would help me to identify the problem.

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

@miry Thank you for your inputs.

After running command "LOG_LEVEL=debug toxiproxy-server", following output is printed and nothing happens after that.
Can you please suggest if there is some alternative way to change LOG_LEVEL. Thanks again!

{"level":"info","host":"localhost","port":"8474","version":"2.5.0","caller":"api.go:119","time":"2022-10-14T11:54:21Z","message":"Starting HTTP server on endpoint localhost:8474"}

from toxiproxy.

miry avatar miry commented on June 9, 2024

@ashish-k Have you done commands with curl? According the logs, it looks there were no any requests done.

Can you please suggest if there is some alternative way to change LOG_LEVEL.

It is not possible right now, sorry for this. Probably we can move log level in config later.

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

@miry Please find below the output of curl commands.

curl -v 0.0.0.0:26379

Output:

  • Trying 0.0.0.0:26379...
  • Connected to 0.0.0.0 (127.0.0.1) port 26379 (#0)

GET / HTTP/1.1
Host: 0.0.0.0:26379
User-Agent: curl/7.81.0
Accept: /

  • Received HTTP/0.9 when not allowed
  • Closing connection 0
    curl: (1) Received HTTP/0.9 when not allowed

curl -v 127.0.0.1:26379

Output:

  • Trying 127.0.0.1:26379...
  • Connected to 127.0.0.1 (127.0.0.1) port 26379 (#0)

GET / HTTP/1.1
Host: 127.0.0.1:26379
User-Agent: curl/7.81.0
Accept: /

  • Received HTTP/0.9 when not allowed
  • Closing connection 0
    curl: (1) Received HTTP/0.9 when not allowed

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

@miry Request you to help me here. Do let me know if any other inputs are required.

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

Can anyone else help me here please if @miry is not available

from toxiproxy.

ashish-k avatar ashish-k commented on June 9, 2024

@miry Can you please help me here

from toxiproxy.

miry avatar miry commented on June 9, 2024

@ashish-k As I see toxiproxy shows the reply from Aurora DB. You did not provide logs from toxiproxy during your experiments with curl.
I am not familiar with Aurora DB, I could guess that some sort Handshake verification enabled. Example SSL or encription, where server see that proxy used.

You should check Toxiproxy server logs and Aurora DB logs.

from toxiproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.