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

Error whe starting #118

Closed
chmod777john opened this issue Apr 14, 2024 · 8 comments
Closed

Error whe starting #118

chmod777john opened this issue Apr 14, 2024 · 8 comments
Labels
bug Something isn't working weird stuff

Comments

@chmod777john
Copy link

Describe the bug
When starting the project, I encoutered this error.

@chmod777john ➜ /workspaces/wolfram-js-frontend (devcontainer) $ wolframscript -f Scripts/start.wls host 0.0.0.0 http 8080 ws 8081 ws2 8082 docs 8085 
>> LPM >> project directory >> /workspaces/wolfram-js-frontend
>> LPM >> last updated >> Sun 14 Apr 2024 22:12:01
>> CSockets >> Unix >> Linux-x86-64
>> CSockets >> Unix >> Loading library... LLink JustTryToFind

LibraryFunction::libload: The function run_uvloop was not loaded from the file /workspaces/wolfram-js-frontend/wl_packages/KirillBelov_CSockets/LibraryResources/7/Linux-x86-64/csockets.so.
>> CSockets >> Unix >> It did not work! LLink 7
>> CSockets >> Unix >> Trying LLink 6

LibraryFunction::libload: The function run_uvloop was not loaded from the file /workspaces/wolfram-js-frontend/wl_packages/KirillBelov_CSockets/LibraryResources/6/Linux-x86-64/csockets.so.
>> CSockets >> Unix >> Loading process failed. LLink 6

To Reproduce
Visit https://github.com/chmod777john/wolfram-js-frontend, then press ,, Github will guide you to create a codespace with a clean environment. This can eliminate problems caused by differences in system environments.

Please read this guide: https://github.com/chmod777john/wolfram-js-frontend?tab=readme-ov-file#cloud-based-quick-start

Finally when executing wolframscript -f Scripts/start.wls host 0.0.0.0 http 8080 ws 8081 , the error occured.

@chmod777john chmod777john added the bug Something isn't working label Apr 14, 2024
@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

I will have look for sure 👌🏼

PS: how did you manage to solve the licensing issues?

@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

Tried clean installation on Debian x86 machine

Linux pc105ep5 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

It did started well. However inside the container so no reason Wolfram Engine refuses to load .so files. It highlights some deeper problem with LibraryLink

@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

PS: I am using WL14

>> CSockets >> Unix >> Linux-x86-64
>> CSockets >> Unix >> Loading library... LLink JustTryToFind
>> CSockets >> Unix >> Succesfully loaded! LLink 7

@chmod777john
Copy link
Author

chmod777john commented Apr 15, 2024

I will have look for sure 👌🏼

PS: how did you manage to solve the licensing issues?

Thanks.

There's a "On-demand License". First, register for a Wolfram Cloud account (it's free). Then, create a Wolfram Cloud Notebook. Within the notebook, execute the function CreateLicenseEntitlement, which will return a string token. Set this token as the WOLFRAMSCRIPT_ENTITLEMENTID environment variable. When wolframscript starts, it will automatically recognize and verify the license through this token.

This license is not tied to a specific machine, meaning you can use it on many machines or virtual containers. It's billed on-demand, costing a few cents per core-hour. However, I found that you can use it without linking any credit card, so I believe each account should have a certain amount of free usage credits.

This approach is completely legal and compliant; there's no cracking or registration bypass involved.

It's all written in the following link.
https://hub.docker.com/r/wolframresearch/wolframengine#activate-ondemand

image

image

@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

Just a comment for other people. After the discussion, we have found that for network operations Wolfram Engine requires

sudo apt-get install avahi-daemon

it is also recommended by Wolfram Research

@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

And for some reason only normal licensing using an email address is working properly for both Wolfram Kernel

i will probably close this issue.

@JerryI
Copy link
Owner

JerryI commented Apr 15, 2024

Related #96

@chmod777john
Copy link
Author

And for some reason only normal licensing using an email address is working properly for both Wolfram Kernel

i will probably close this issue.

Confirmed. If we activate the kernel with Node-Locked Licensing, all things works fine.
If we activate the kernel with On-Demand Licensing, the kernel won't answer the frontend evaluation call.
Weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working weird stuff
Projects
None yet
Development

No branches or pull requests

2 participants