DougReeder

DougReeder

In a project where none of the original developers are available, the central component is a Phoenix server named “reticulum” or “ret” for short. The old environment is a Kubernetes server, and I’m porting it to run using docker compose. There’s only one container running the Phoenix server. It’s currently running on elixir 1.16-otp-25 and erlang 25.3, and the dependencies are very old. (Yes, we plan to update both, but we have more acute problems currently.)

In the log, when the app is idle, I’m seeing this message all the time, with no apparent correlation with other log messages, which I don’t see in the log of the version running in Kubernetes:

[error] 

** Cannot get connection id for node :ret@reticulum

Grepping the source files for our code and the dependencies doesn’t find anything that can definitely be connected with the log message. JetBrains’ Junie LLM says

the message format `[error] ** Cannot get connection id for node :ret@reticulum` strongly
suggests it's coming from an Erlang process or an Elixir GenServer.

What should I be looking at to track down and deal with what’s happening here?

Showing Posts 1 to 5

rhcarvalho

rhcarvalho

Hi! What was the exact command that you ran?

DougReeder

DougReeder OP

grep -ri “connection id” .

found

./deps/cowboy/src/cowboy_http2.erl: ‘Connection idle longer than configuration allows.’});
./deps/cowboy/src/cowboy_http.erl: ‘Connection idle longer than configuration allows.’}).
./deps/hackney/NEWS.md:- pool: cache connection IDs

grep -ri “Cannot get” .

found no occurrences

grep -ri “node” deps/peerage

found 50 matches, none of which reference “connection id”

grep -ri “Cannot” . | grep -i “connection id”

finds no occurrences

find . -name “*.ex" -o -name "*.erl” | xargs grep -i “connection id” | grep “node”

finds no occurrences

grep -ri “connection” deps | grep “node”

finds

deps/recon/src/recon.erl:%%%         and connections currently on the node.

… and a bunch of variations on that.

jstimps

jstimps

The error appears to come from libcluster.

https://github.com/search?q=repo%3Abitwalker%2Flibcluster+cannot+get+connection+id&type=issues

Unfortunately I can’t provide more guidance as I’ve never used this library. I hope this provides a lead for you though.

Edit: for some reason I had to escape the url because the generated link was not displaying the correct issue query. Apologies to the mods.

DougReeder

DougReeder OP

Thanks, I’ll take a look!

DougReeder

DougReeder OP

I don’t know that I fully understand what’s going on, but when I changed from “Peerage.Via.Dns” to “Peerage.Via.Udp”, the warning went away. I then changed it back to “Peerage.Via.Dns” and renamed the service from “reticulum” to “ret”, and the warning also went away. :-S

The file in question is

import Config

import_config "prod.exs"

config :peerage, log_results: true, via: Peerage.Via.Dns, dns_name: "foo.bar", app_name: "foo"

config :ret, RetWeb.Router, secure?: false

config :sentry,
  environment_name: :turkey,
  json_library: Poison,
  included_environments: [:turkey],
  tags: %{
    env: "turkey"
  }

so it’s not clear to me where it’s getting the service name “ret” from.

Currently there’s only a single Phoenix node, but there may have been more than one in the original incarnation.

Thanks for your help!

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews