805 questions
0
votes
0
answers
38
views
Cannot run the custom built erlang container
Here is the Dockerfile
# ===== Stage 1: BUILD OTP 27.2 =====
FROM debian:bookworm AS build
RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
automake \
...
2
votes
0
answers
53
views
Is it possible to connect two erlang nodes to run a distributed erlang system over LoRa?
I'm wondering I can use devices with LoRa antennas to run a distributed erlang cluster. Some of these devices would have no direct internet connection. Are there limitations to the protocol that would ...
0
votes
1
answer
69
views
Install Erlang in docker image on Windows Server 2019 build machine
I'm trying to install RabbitMQ in my custom docker image. For RabbitMQ I need Erlang and I install it in the docker file like this:
RUN powershell -Command Start-Process -Wait -FilePath C:\...
1
vote
0
answers
58
views
When running rabbitmqctl in RabbitMQ version 4.0, an error of function "undef" is reported
When running RabbitMQ version 4.0, I encountered a problem where a function was undefined.
[test@rabbitmq4-2:~/workspace/rabbitmq-server-4.0/deps/rabbit] ((v4.0.0))$ rabbitmqctl status
Status of node ...
0
votes
1
answer
100
views
Erlang/OTP node connectivity issues running under WSL2 and using "longnames" for the `name_domain`
Trying to RPC to another node from a script, everything works when using "shortnames" but fails when using "longnames".
Where my local machine name is "Pandora", and ...
1
vote
1
answer
47
views
Having trouble interpreting this Eshell crash report
I'm trying to use the ecpool library to pool Mongo db connections.
My supervisor's init looks like what I added in the first code snippet.
mongo_client is a module that I use to setup the connection ...
2
votes
1
answer
54
views
How to convert gb_trees to json?
Is there an efficient way to convert gb_trees to json in erlang or maps? Here is a truncated example:
{46,
{{25,56},
{fld,{25,56},0},
{{25,30},
...
1
vote
1
answer
495
views
Erlang/OTP with elixir fails
I am trying to set elixir up as a back-end for React, and I have done a bunch of stuff to get it running. I cannot seem to make it work.
"10:09:43.125 [error] beam/beam_load.c(206): Error loading ...
1
vote
1
answer
96
views
Erlang OTP supervisor: start_child does not work when another child is executing
I am writing a simple Erlang application that manages auctions. When a new auction is created I would like to create a new child process to handle it. The function call is the following one:
...
1
vote
1
answer
75
views
How to execute an exit function before closing rebar3 shell?
I have a rebar3 app with a supervisor and some modules I want to execute a function before aborting the shell
I have tried adding an exit function in the supervisor,but its not working.I wanted to ...
1
vote
0
answers
37
views
Snmp_ex2_simple_standard_test throws an error “failed retrieving agent data”
The SNMP test module snmp_ex2_simple_standard_test has different test cases to test various SNMP operations. I considered the test case related to the SNMP GET operation to simplify the debugging. I ...
0
votes
1
answer
55
views
Supervision strategy of a separately started process
Consider the following module-based Supervisor:
defmodule MyApp.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
...
0
votes
6
answers
173
views
Using data from a supervised processes to start another
The documentation details the following:
When the supervisor starts, it traverses all child specifications and
then starts each child in the order they are defined. This is done by
calling the ...
0
votes
1
answer
60
views
I'm trying to run the chess timer example found in the wxErlang - Getting Started booklet written by Arif Ishaq in 2017
In Arif Isaq booklet there is an example where the gen_server behaviour is replace with wx_object. I'm trying to run this example, but somehow or other the message I send to the processes
Eshell V13.1....
1
vote
1
answer
123
views
Timeout issue facing on creating new shortcode Erlang
I was trying to implement an emoji server and write codes for it. But when I test it in the terminal it is showing timeout error. For checking the code please check the alias function for it:
-spec ...
1
vote
1
answer
67
views
How supervisor behavior in Elixir Umbrella Apps: Managing Failures Across Applications
In Elixir umbrella apps, when an error occurs in one application (e.g., appA) and its supervisor determines that the error cannot be recovered, the supervisor might terminate the entire umbrella ...
1
vote
1
answer
115
views
Issue with running a compiled rebar3 erlang application with erl -pa
An erlang OTP application (nerlnetApp) that depends on cowboy compiled and run successfully when executed using the command: rebar3 shell, from application directory.
However, erlang shell cannot run ...
2
votes
0
answers
39
views
remote gen_server process crashes instantly
I have a main controller controller.erl that acts with gen_server behavior, that controller is supposed create 4 other processes called tower.erl, on 4 different pcs and communicate with them ...
0
votes
1
answer
53
views
Counter implemented using Client Server in Erlang OTP
I am trying to implement a counter using the Erlang/OTP Client Server. In the following code I can set a count to count up from, but the incr() function does not work. Could someone please explain to ...
1
vote
1
answer
698
views
Elixir install dependencies command `mix deps.get` is throwing error
Getting error when installing Elixir dependencies, all Mix command are throwing same exception
23:31:44.447 [notice] Application ssl exited: exited in: :ssl_app.start(:normal, [])
** (EXIT) an ...
2
votes
1
answer
2k
views
RabbitMQ install error: Unrecognized option logic
im trying to install RabbitMQ Server 3.12.0. Before i have installed compatible Erlang OTP 26.0 (have tried it also with 25.3).
In the setup i get the error message rabbitmq-service.bat install exited ...
-1
votes
1
answer
218
views
Facing error in installing RabbitMQ on windows
I am trying to install RabbitMQ but it is giving error
image of error
please help me fix it.
I'm using windows-10 64-bit
I tried uninstalling and reinstalling RabbitMQ and Erlang/OTP but nothing seems ...
0
votes
1
answer
139
views
Rebar3 failed to fetch dependencies in docker container
Rebar3 dependencies installing locally but when I'm trying to run it inside the container raising error for all dependencies e.g:
#0 1.936 ===> Failed to fetch and copy dep: {git,"https://...
0
votes
1
answer
50
views
How to connect a windows erlang project to ubuntu's ejabberd?
I have configured the YML file of Ejabberd 23.04.
I am able to see the Ejabberd dashboard in Firefox when I enter the username and password (screenshot attached below).
Using the IP address and Port ...
3
votes
1
answer
559
views
Creating a child process in Erlang correctly
I'm trying to create a child process for each connection and the problem is, it won't return until the the child process exited.
-module(nodesupervisor).
-export([start_link/0, init/1, start_child/2])...