Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer nodes cannot load modules from the escript archive #26

Open
EarlPitts opened this issue Mar 11, 2024 · 0 comments
Open

Peer nodes cannot load modules from the escript archive #26

EarlPitts opened this issue Mar 11, 2024 · 0 comments

Comments

@EarlPitts
Copy link
Collaborator

For practical purposes, I packaged the whole application as a single escript archive.
This resulted in a rather annoying problem: while the master node has no problem loading modules from this escript archive, the peer nodes do.
I've tried adding the "inside of the archive" to their load path when starting them, similar to how the master node has it on its own load path, but its not possible.
I had to unzip the archive and dump the modules required by the peer nodes to their load paths.
My theory is that the runtime hides the fact that its an archive, and does the same unzipping and loading in the background, so you don't have to do this on the main node.

It would be nice to investigate this further and avoid this hack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant