Some IOL nodes crashing after start

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

debugnetiq1
Posts: 8
Joined: Sun Sep 10, 2017 11:22 pm

Re: Some IOL nodes crashing after start

Post by debugnetiq1 » Sun Jul 06, 2025 3:10 am

Looking at very old eve-ng source code on github (vers 0.9)
https://github.com/dainok/unetlab/tree/master
I can see the error in iol_functions.c : int mk_afsocket(int *wrapper_socket, int *iol_socket) {
...
int iol_id = device_id;
int wrapper_id = iol_id + 512;
...
sprintf(tmp, "%u", wrapper_id);
strcat(wrapper_socketfile, tmp);

// Creating sockets
if ((rc = afsocket_listen(wrapper_socketfile, iol_socketfile, wrapper_socket, iol_socket)) != 0) {
UNLLog(LLERROR, "Cannot listen at AF_UNIX (%s). ERR: Cannot open AF_UNIX sockets (%i).\n", tmp, rc);
return 2;
}

return 0;
}

In afsocket.c
// AF_UNIX socket: listen
int afsocket_listen(char *server_socketfile, char *remote_socketfile, int *server_socket, int *remote_socket) {
...
remote_addr.sun_family = AF_UNIX;
strncpy(remote_addr.sun_path, remote_socketfile, sizeof(remote_addr.sun_path) - 1);
while (connect(*remote_socket, (struct sockaddr *)&remote_addr, sizeof(struct sockaddr_un)) < 0) {
rc = 2;
UNLLog(LLERROR, "Error while connecting local AF_UNIX: %s (%i)\n",strerror(errno), rc);
return rc;
}
...

Unfortunately there is no way to rebuild the executable with more debug info - the newer source code is no longer open-source.
Anyone has any idea of how to fix it?

debugnetiq1
Posts: 8
Joined: Sun Sep 10, 2017 11:22 pm

Re: Some IOL nodes crashing after start

Post by debugnetiq1 » Sun Jul 06, 2025 3:19 am

Maybe helpwire is a more affordable (https://www.helpwire.app/pricing/) alternative to Anydesk (US$46/mo rip-off)

rusty725
Posts: 368
Joined: Thu Mar 29, 2018 4:19 pm

Re: Some IOL nodes crashing after start

Post by rusty725 » Sun Jul 06, 2025 3:36 am

debugnetiq1 wrote:
Sun Jul 06, 2025 3:19 am
Maybe helpwire is a more affordable (https://www.helpwire.app/pricing/) alternative to Anydesk (US$46/mo rip-off)
anydesk is free to use a for a certain time.

rusty725
Posts: 368
Joined: Thu Mar 29, 2018 4:19 pm

Re: Some IOL nodes crashing after start

Post by rusty725 » Sun Jul 06, 2025 6:54 am

You have an old Eve version 2 which is no longer supported. Download and install Eve CE version 6.x

debugnetiq1
Posts: 8
Joined: Sun Sep 10, 2017 11:22 pm

Re: Some IOL nodes crashing after start

Post by debugnetiq1 » Sun Jul 06, 2025 12:17 pm

Once again: I am using latest & greatest 6.3 EVE-NG. But it has this issue with IOL images. The issue reported is for 6.3.
But to check whether the cause is the images or something else I ran the same images on eve-ng 2.0.77 and they run fine.
This does not solve the issue with 6.3 however

debugnetiq1
Posts: 8
Joined: Sun Sep 10, 2017 11:22 pm

Re: Some IOL nodes crashing after start

Post by debugnetiq1 » Sun Jul 06, 2025 1:21 pm

According to https://www.eve-ng.net/index.php/community/
"EVE-NG Community is free and open-source, under the Apache License 2.0. You can download, use, modify, and share it without any cost"

However the source code is nowhere to be found and certainly is not present on the distribution iso for the CE edition.

The master branch in https://github.com/dainok/unetlab is 9 years old (v 0.9) whereas the branch 3.0-dev (https://github.com/dainok/unetlab/tree/3.0.0-dev) does not seem to contain the code (at least wrappers is missing)

Where then is the source code for the current CE edition?

Post Reply