Hello erlang community,
We have an Erlang project that is functioning perfectly with Erlang 20, but we’re encountering issues when trying to run it with Erlang 24. We’ve reviewed the changes between these versions, but we’re struggling to pinpoint the exact cause of the problem.
Our project is available in this public GitHub repository: GitHub - omayerg/-Erlang-Traffic-Management
We suspect issue is within the communication initialization, this is how we do:
start_link() -> gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
start() -> gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
start(NODE1,NODE2,NODE3,NODE4,Master) -> gen_server:start_link({local, ?SERVER}, ?MODULE, [NODE1,NODE2,NODE3,NODE4,Master], []).
Here’s what we’ve tried so far:
Compilation: We have successfully compiled the code in both Erlang 20 and Erlang 24 without any errors.
Logs: Unfortunately, the logs aren’t providing much insight into the issue. The application starts up in Erlang 24, but certain functionalities don’t work as expected, unlike in Erlang 20.
Differences: We’ve compared the release notes and documentation for Erlang 24, but we haven’t identified any specific changes that directly affect our project.
Error:
Backup completed successfully!
The node "NODE3010.0.2.15’ is up.
The node ‘NODE3010.0.2.15’ is currently down.
Connected PCS: [ ‘NODE1@10.0.2.15’, ‘NODE2@10.0.2.15’, ‘NODE3@10.0.2.15’,
‘NODE4010.0.2.15’1
sic Backing up PCs connected to ‘NODE3@10.0.2.15°
-Backup completed successfully!
The node ‘NODE3010.0.2.15’ is up.
There is a problem: {badpc,
{‘EXIT’
There is a problem: {badpc,
{поргос, {gen_server, call, [server ,getCarsState 1333)
There is a problem: {badrpc
{noproc, (gen_server, call, [server ‚getCarsstate]3]]]
(‘EXIT’ {noproc, {gen_server, call, [server ,getcarsstate]331)
Ad
There is a problem: {badpc
(’ EXIT’,
(noproc, (gen_server, call, [server ‚getCarsState]3333
(master@10.0.2.15)10>
Image for full error: