Comments (10)
jdbc:mysql://{proxy_server_ip}:3306/{DB_name}
Should be jdbc:mysql://{proxy_server_ip}:26379/{DB_name}
from toxiproxy.
@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.
@ashish-k I propose to check toxiproxy with simple commands:
- 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
- Run server with debug log level.
LOG_LEVEL=debug toxiproxy-server
- Create a new proxy
toxiproxy-cli create -l 0.0.0.0:26379 -u {RDS Aurora DB endpoint}:3306 rds
toxiproxy-cli inspect rds
- Test that port is open
curl -v 0.0.0.0:26379
curl -v 127.0.0.1:26379
- Check logs from toxiproxy-server.
Pls share output of commands and logs, it would help me to identify the problem.
from toxiproxy.
@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.
@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.
@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.
@miry Request you to help me here. Do let me know if any other inputs are required.
from toxiproxy.
Can anyone else help me here please if @miry is not available
from toxiproxy.
@miry Can you please help me here
from toxiproxy.
@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)
- Add ability to specify toxics in the config file HOT 1
- is it possible to use ssh to connect to toxiproxy with a SSH server as backend. HOT 5
- Fails to connect after peer-reset HOT 6
- ToxiproxyContainer.ContainerProxy deprecated HOT 3
- How to proxy MTLS connections using Toxiproxy HOT 1
- Create a toxic, connection loss, for Server --> Client ( donwstream)? HOT 13
- Migrate the GH default branch to main HOT 1
- Reopen all the PRs that were closed unintentionally because of master -> main rename HOT 2
- RemoveToxic: HTTP 503: Unexpected response code, expected 204 HOT 5
- Possible to add toxics in config? HOT 1
- non-local API server connection refused when using '-config' HOT 1
- Dynamic / Conditional Toxics? HOT 2
- Tag and release v2.6.0? HOT 2
- panic: runtime error: slice bounds out of range [808:773]
- Difficulty Implementing Proxy for OpenAI API with App Calling and curl Insufficiency
- Proxy does not foward custom HTTP headers
- Unable to update toxic using prebuilt windows server
- Documentation for distribution of latency with different jitter values
- Is Redis Cluster/ PostGresDB Connection(based on master/slave architecture) supported for ToxiProxy ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toxiproxy.