mathworks / jupyter-matlab-proxy

MATLAB Integration for Jupyter enables you to run MATLAB code in Jupyter Notebooks and other Jupyter environments. You can also open MATLAB in a browser directly from your Jupyter environment to use more MATLAB features.
Other
283 stars 36 forks source link

Stuck in Online License Manager #17

Closed rocthered closed 1 year ago

rocthered commented 2 years ago

Hi,

I was triyng to use the jupyter-matlab. After clicking Matlab in the jupyter lab, I got stuck in this:

Screen Shot 2022-04-28 at 2 42 45 PM

It seem to be in this stage forever.

I am using python 3.7 and matlab R2021b.

I tried both MAC os and Ubuntu. Similar problem for both OS.

What can I do?

Thanks,

Dapeng

diningPhilosopher64 commented 2 years ago

Hi @rocthered ,

Thank you for trying the MATLAB Jupyter integration.

This maybe related to write permissions. We'll need the debug logs generated to help resolve the issue. For this, set the environment variable MWI_LOG_LEVEL to DEBUG and then launch jupyter lab process.

$ env MWI_LOG_LEVEL="DEBUG" jupyter lab

The jupyter-matlab-proxy depends on the matlab-proxy package.

The environment variable MWI_LOG_LEVEL influences the verbosity of logs generated by the matlab-proxy package.

For more information on the environment variables that can be set, refer Advanced Usage.md file.

rocthered commented 2 years ago

Hi @diningPhilosopher64,

Thank you so much for the timely reply!

Somehow it works now in the linux system, probably after I intalled xvfb (not 100% sure if that is the reason)!

Anyway thank you for your help!

belafdil-chakib commented 1 year ago

Hello,

I have the exact same issue but it did not resolve as the author.

I put the env MWI_LOG_LEVEL="DEBUG" prefix and here is the output:

env MWI_LOG_LEVEL="DEBUG" jupyter lab
[...]

[W 2023-03-01 17:15:32.254 LabApp] Could not determine jupyterlab build status without nodejs
DEBUG:MATLABProxyApp:inside decorator_authenticate_access
DEBUG:MATLABProxyApp:inside decorator_authenticate_access
DEBUG:MATLABProxyApp:Environment variable MWI_CUSTOM_HTTP_HEADERS is not set, hence no custom HTTP headers are applied.
DEBUG:MATLABProxyApp:Successfully validated provided jupyter configuration
DEBUG:MATLABProxyApp:DDUX value for matlab-proxy "MATLAB_PROXY:JUPYTER:V1"
DEBUG:MATLABProxyApp:Combined DDUX value to be used for MATLAB process: "MATLAB_PROXY:JUPYTER:V1"
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:MATLABProxyApp:Using MWI_APP_PORT to launch the server
DEBUG:MATLABProxyApp:Starting MATLAB proxy app
DEBUG:MATLABProxyApp: with base_url: /matlab and app_port:47003.
DEBUG:MATLABProxyApp:Server info stored into: /home/xxxx/.matlab/MWI/ports/47003/mwi_server.info
INFO:MATLABProxyApp:
======================================================================================================================================================
                                                              MATLAB can be accessed at:
                                                            http://127.0.0.1:47003/matlab
======================================================================================================================================================
DEBUG:MATLABProxyApp:Registering handler for signal: 1
DEBUG:MATLABProxyApp:Registering handler for signal: 2
DEBUG:MATLABProxyApp:Registering handler for signal: 3
DEBUG:MATLABProxyApp:Registering handler for signal: 15
DEBUG:MATLABProxyApp: inside authenticate_access for request:<Request GET /matlab/ >
DEBUG:MATLABProxyApp: inside authenticate_request for request:<Request GET /matlab/ >
DEBUG:MATLABProxyApp: Token Authentication is NOT Enabled!!
DEBUG:MATLABProxyApp: Request is authenticated, proceed to endpoint:<function root_redirect at 0x7f4944a8c8b0><Request GET /matlab/ >
[I 2023-03-01 17:15:37.428 ServerApp] 302 GET /matlab/ (ccd02b71c10241d983aa6a7a3a4c37cf@127.0.0.1) 661.63ms
DEBUG:MATLABProxyApp: inside authenticate_request for request:<Request GET /matlab/authenticate_request >
DEBUG:MATLABProxyApp: Token Authentication is NOT Enabled!!
DEBUG:MATLABProxyApp:!!!!!! REQUEST IS AUTHORIZED !!!!
[W 2023-03-01 17:15:54.125 ServerApp] 400 PUT /matlab/set_licensing_info (ccd02b71c10241d983aa6a7a3a4c37cf@127.0.0.1) 23.31ms referer=http://127.0.0.1:9996/matlab/index.html
diningPhilosopher64 commented 1 year ago

Hello @belafdil-chakib ,

Thank you for trying the MATLAB Jupyter integration.

Can you share more information about your environment:

prabhakk-mw commented 1 year ago

@belafdil-chakib Please re-open this issue if you are still facing login issues.

If yes, please retry after running the following command:

rm -rf ~/.matlab/MWI