ylliX - Online Advertising Network

Spring Boot / Spring Security App, geting AWS Redis Elasticache production error (failed: Connection reset by peer)

Getting following connection error with AWS Elasticache (production) 2024-10-19T08:33:26.374Z INFO 1 — [BFFApplication] [xecutorLoop-3-4] f.b.a.r.s.RedisSecurityContextRepository : SAVING AUTHORIZATION REQUEST 2024-10-19T08:33:26.379Z INFO 1 — [BFFApplication] [xecutorLoop-3-4] f.b.a.r.s.RedisSecurityContextRepository : Saved Authorization Request org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest@117c1dd in WebSession: org.springframework.security.config.web.server.ServerHttpSecurity$OAuth2LoginSpec$OidcSessionRegistryWebFilter$OidcSessionRegistryServerWebExchange$OidcSessionRegistryWebSession@1420e939 2024-10-19T08:33:26.379Z INFO 1 — [BFFApplication] [xecutorLoop-3-4] f.b.a.r.s.RedisSecurityContextRepository : Authorization Request state: O2Ltdm7yaOIpkBYzAl7k5YY0XktgoAqh3T04kYfIfYI= 2024-10-19T08:33:26.379Z INFO 1 — [BFFApplication] [xecutorLoop-3-4] c.f.b.a.r.OAuth2ServerRedirectStrategy : RUNNING […]

Connection refused with MYSQL db when node app dockerized

I have a problem with connecting my node app container to MySQL database. When -compose up I keep getting error from container logs: server-1 | Unable to connect to database ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 172.20.0.2:3306 Here is my db instance: const { Sequelize } = require(“sequelize”); require(“dotenv”).config(); const sequelize = new Sequelize(“admin”, “password”, “table”, { […]

The JDBC Connection URLs and driver names of the most popular RDBMS

Need to connect to your RDBMS with JDBC and don’t have the JDBC connection URL or driver name at hand? No problem, just look up your RDBMS below: // BigQuery driver = “com.simba.googlebigquery.jdbc42.Driver”; url = “jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=<project-id>;OAuthType=0;OAuthServiceAcctEmail=<service-account>;OAuthPvtKeyPath=path-to-key.json”; // CockroachDB driver = “org.postgresql.Driver”; url = “jdbc:postgresql://<host>/<database>”; // Db2 driver = “com.ibm.db2.jcc.DB2Driver”; url = “jdbc:db2://<host>:50000/<database>”; // Derby driver […]