roadrunner: [🐛 BUG]: invalid socket DSN (tcp://:6001, unix://file.sock) while trying to run rr workers and rr reset commands

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn’t find any solutions.

What happened?

Hello! I can’t run commands rr workers and rr reset on prod environment (runs on Kubernetes) because of following error:

invalid socket DSN (tcp://:6001, unix://file.sock)

But in case if I use rr workers -o rpc.listen=tcp://localhost:6001 it works just fine. There was also an attempt to use rr workers -c /app/.rr.yaml but unfortunately error still remained with the -c argument as well.

Unfortunately, I can’t share any deployment configs here because of security reasons but I would really appreciate any idea that hint me what I should check to solve this problem.

Version (rr --version)

2.8.0 and higher, on lower versions it works ok

How to reproduce the issue?

There is no way to reproduce it because locally it works without any problems

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

I had the same issue. I am running RR in Docker and I set the container environment variables using Compose env_file for my app to use, and one of them was called RR_RPC. RR currently prefers this system environment variable instead of the one you set in your .rr.yaml. This confuses RR and on top of that theres something weird going on between Docker’s network and RR.

TLDR: Make sure you don’t have RR_RPC system environment variable set.

I think the only possible way to resolve it somehow is to debug on prod 🥲 So, there is no way you can help me at this moment. Thank you very much for your comments, much appreciated