9,694 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 \
...
0
votes
0
answers
27
views
Why does Erlang/OTP 28 debugger:start() not open the monitor window immediately?
I am following the instructions described in https://www.erlang.org/doc/apps/debugger/debugger_chapter to start the debugger. However, after debugger:start()., I only get the message Command is taking ...
2
votes
1
answer
72
views
Why in Erlang do i need to specify `-module` if it is equal to filename?
For example, if I create file jopa.erl with this code inside ...
-module(jopa).
...everything compiles without errors
However, if I put this code inside jopa.erl ...
-module(lol).
and try to compile....
2
votes
0
answers
41
views
Connect to oracle db using proxy user in erlang
Please tell me how to connect using a proxy user, and is such a connection supported?
For example, user like “proxy_user[actual_user]”
ConnOpts = [
{host, Host},
{port, Port},
{user, “proxy_user[...
2
votes
1
answer
93
views
If an Erlang C-node exits while `erl_errno` is 0, could that be construed that the issue is probably not Erlang related?
There is a native Erlang node that has been running flawlessly in outbound mode with a FreeSWITCH v1.10.1 instance and its mod_erlang_event C-node for years, but when updating FreeSWITCH to v1.10.12 ...
1
vote
0
answers
34
views
How to ensure RabbitMQ comes back on line when all cluster nodes are shutdown
I am new to RabbitMQ and am trying to implement a clustered node setup. We are using RabbitMQ 3.11.11 with Erlang 25.3. I also have an HA policy to mirror queues in the cluster with the following ...
1
vote
1
answer
33
views
Configuration Essue while embeding yaws to rebar3 for serverside operatios
i am attempting to start the yaws via yaws_api:embedded_start_conf/1,2,3,4 in supervisor. but getting configuration issue. As i am only using Yaws to serve dynamic content via handlers (for example, ...
1
vote
0
answers
68
views
I need to abort a mnesia transaction after a certain time
I need to abort a mnesia transaction for a certain time. I have tried everything and it doesn't work.
If I kill the process, some remote locks remain hung around though their pid is died.
func1(...
-3
votes
1
answer
50
views
How can I escape double quotes in a json string consisting of more than one qutoed key value pair sepeated by a clon in Erlang?
Here is my Json String
{"Timestamp":"2025-02-18T10:20:37.144Z","Values":{"Slave 1 (EL1008).Channel 1.Input":true,"Slave 1 (EL1008).Channel 2.Input":...
1
vote
0
answers
41
views
Function_clause error when executing Erlang query in CouchDB
I am trying to use an Erlang query in CouchDB. I created an erlang.erl file and a design document in JSON with the language set to Erlang. However, when I execute the query, I get a function_clause ...
1
vote
3
answers
291
views
Why insert_all does not work with changesets?
Does someone know, what is the limitation in Ecto that the insert all is not made to be working with changesets? Usually I need to create change sets for all entries and then map them to normal map(at ...
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 ...
1
vote
1
answer
59
views
Erlang server SQS implementation
I want to access SQS service through Erlang's public library erlcloud. So far I have the following :
-module(server).
-export([start/0, loop/1, handle_sqs_request/1]).
start() ->
application:...
1
vote
1
answer
78
views
Ejabberd custom module
I am trying to create a custom module for my Ejabberd server.
I am using relatively newer version so ejabberd.hrl is not available.
The module is supposed to do two things:
When user A sends a ...
1
vote
1
answer
251
views
Failed to write to erl_child_setup: 32. Crash dump is being written to: erl_crash.dump...done
may be similar to Erlang Crash Dump is being written to: erl_crash.dump...done but the solution didn't work for me.
I am trying to run this "Hello World" Erlang program but keep getting the ...
2
votes
1
answer
77
views
How can I create a tarfile in memory in Erlang
I'm trying to write an Erlang function that takes a list of binaries and packs them into a single binary.
Looking at erl_tar in the standard lib, it seems the create function will only take a filename,...
1
vote
0
answers
70
views
Working with ERLANG on a windows machine with IPv6 only
I’m running erl.exe on a machine with IPv6 only and I get an error. I discovered it trying to run RabbitMQ on an IPv6 machine.
Here’s what I have done
Installed Windows 2019 VM with both IPv4 + IPv6
...
1
vote
1
answer
46
views
asdf: after modifying downloaded code of a plugin, how do I then use asdf in the normal way?
asdf install erlang 12.3.4.11 failed to compile due to openssl 3.0 having removed FIPS_mode.
By setting the environment variable KERL_AUTOCLEAN=0 the sources are preserved and I was able to fix the ...
2
votes
0
answers
87
views
Rabbitmq memory usage at the startup
I'm trying to figure out how to configure RabbitMQ + Erlang to have the smallest memory footprint possible at startup. Using RabbitMQ 3.13.6 and Erlang/OTP 26 (14.2.5.2) with Ubuntu i get about 50 Mb ...
1
vote
1
answer
73
views
Running erlang distributed application using rebar3
I am new to rebar3. I have a simple chat app which consists of two modules namely; my_server and my_client. in ordinar case, I can run the server module by openning the terminal and type:
my_server:...
1
vote
0
answers
99
views
Arrow keys not recognized in iex or erl
I have recently switched from Ubuntu to Manjaro 24.0. I have come across a strange issue with iex and erl. When I run either of them the arrow keys are not being picked up, I am unable to scroll ...
1
vote
1
answer
86
views
Broadcast message to all joined clients when a new client joins the same room in Erlang
I have been developing a chatroom application using message passing. I want to broadcast a message to all joined clients when a new client joins the same room. The codes I'm using as follows:
client....
1
vote
1
answer
62
views
Extract all values from Erlang orddic
fetch_keys(Orddict)
Returns a list of all keys in a dictionary. So, how to return all values from dictionary whatever the keys are? I visited the documentation site and it seems there is no such ...
1
vote
0
answers
37
views
yaws is stucked and can not receive any new HTTP connection
We used yaws server with embedded mode and the server can be started to process some requests.
HAProxy is used in front end to monitor yaws cluster nodes and receive/dispatch new HTTP webpage/...
1
vote
1
answer
97
views
How to split long lines in Erlang modules (like '\' in C)
I probably just used the wrong search phrases, but I didn't find it in the docs. I'd like to know if there is a way to divide long content into multiple lines in an Erlang module.
E.g. If I have to ...