Stuck at the Welcome Screen

Hello,

I’ve installed PerceptiLabs using the procedure described on your website via Anaconda, without any errors. However, when I start Perceptilab on localhost port 8080 and go on the welcome page, i get stuck.

I can actually navigate through the “Whats new in PerceptiLab” panels but clicking on the Get Started button gives no results.

**

**

Tried copy/pasting the link in different browsers like Chrome and Brave, same issue.

I also tried starting PerceptiLab using the “perceptilabs” and “perceptilabs -v=3” commands. Both time, it stated, with the same issue in the end.

Here are the messages I get when sending the perceptilab -v=3 command :


(dl) C:\Users\LENOVO>perceptilabs -v=3
Information : impossible de trouver des fichiers pour le(s) modèle(s) spécifié(s).
PerceptiLabs: Your environment does not have git installed, so interactions with GitHub will not be available
Operations to perform:
Apply all migrations: admin, api, auth, contenttypes, sessions
Running migrations:
No migrations to apply.
PerceptiLabs: Starting
2020-12-17 18:28:59.150761: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_100.dll’; dlerror: cudart64_100.dll not found
2020-12-17 18:28:59.161221: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Performing system checks…

Performing system checks…

Performing system checks…

System check identified no issues (0 silenced).
December 17, 2020 - 18:29:02
Django version 3.1.4, using settings ‘static_file_server.settings’
Starting development server at …
Quit the server with CTRL-BREAK.
System check identified no issues (0 silenced).
December 17, 2020 - 18:29:02
Django version 3.1.4, using settings ‘fileserver.settings’
Starting development server at …
Quit the server with CTRL-BREAK.
System check identified no issues (0 silenced).
December 17, 2020 - 18:29:02
Django version 3.1.4, using settings ‘rygg.settings’
Starting development server at …
Quit the server with CTRL-BREAK.
[17/Dec/2020 18:29:04] “GET /?token=gGzU-hejAl94idCIW3JuHDeErcaGRV7tjU2doYRM5e8 HTTP/1.1” 200 493
[17/Dec/2020 18:29:04] “GET /static/styles/vendors.61376754cfe10c5d685c.css HTTP/1.1” 304 0
[17/Dec/2020 18:29:04] “GET /static/js/1.2f5b54002809d2d24644.js HTTP/1.1” 304 0
[17/Dec/2020 18:29:04] “GET /static/js/app.30e936c0fb11295e16cd.js HTTP/1.1” 304 0
[17/Dec/2020 18:29:05] “GET /kernel_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:05] “GET /fileserver_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:05] “GET /rygg_url HTTP/1.1” 200 0
WARNING:tensorflow:From e:\anaconda_64bits\installation\envs\dl\lib\site-packages\tensorflow_core\python\compat\v2_compat.py:68: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
[17/Dec/2020 18:29:06] “GET /static/img/favicon.ico?v=0.9.8 HTTP/1.1” 304 0
[17/Dec/2020 18:29:06] “GET /?token=gGzU-hejAl94idCIW3JuHDeErcaGRV7tjU2doYRM5e8 HTTP/1.1” 200 493
[17/Dec/2020 18:29:06] “GET /kernel_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:06] “GET /fileserver_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:06] “GET /rygg_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:07] “GET /rygg_url HTTP/1.1” 200 0
[17/Dec/2020 18:29:07] “GET /static/img/whats-new/whats-new-1.png HTTP/1.1” 304 0
[17/Dec/2020 18:29:07] “GET /static/fonts/nunito-sans-v5-latin-regular.9c6a1ff.woff2 HTTP/1.1” 304 0
[17/Dec/2020 18:29:07] “GET /static/fonts/nunito-sans-v5-latin-600.b56c7e1.woff2 HTTP/1.1” 304 0
[17/Dec/2020 18:29:07] “GET /static/fonts/icomoon.9d6c449.woff HTTP/1.1” 304 0
[17/Dec/2020 18:29:07] “GET /static/fonts/nunito-sans-v5-latin-700.d0b6d0f.woff2 HTTP/1.1” 304 0
[17/Dec/2020 18:29:07] “GET /version?token=gGzU-hejAl94idCIW3JuHDeErcaGRV7tjU2doYRM5e8 HTTP/1.1” 200 21
2020-12-17 18:29:07,787 - INFO - :1 - Reporting errors with commit id: 59c6eb77a64f0885d25b8c8a60507e4925d2bb91
PerceptiLabs is ready…
2020-12-17 18:29:07,869 - INFO - :1 - Trying to listen to: 0.0.0.0 5000
PerceptiLabs: PerceptiLabs Started
PerceptiLabs: PerceptiLabs is running at …
PerceptiLabs: Use Control-C to stop this server and shut down all PerceptiLabs processes.
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
Error in connection handler
Traceback (most recent call last):
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\server.py”, line 191, in handler
await self.ws_handler(self, path)
File “perceptilabs\server\web_serverlib.py”, line 114, in interface
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 509, in recv
await self.ensure_open()
File “e:\anaconda_64bits\installation\envs\dl\lib\site-packages\websockets\protocol.py”, line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1001 (going away), no reason
2020-12-17 18:29:08,076 - INFO - server.py:191 - Created coreLogic for network ‘None’
2020-12-17 18:29:08,392 - INFO - server.py:191 - Frontend receiver: , Frontend request: setUser
2020-12-17 18:29:08,393 - INFO - server.py:191 - Created coreLogic for network ‘’
2020-12-17 18:29:08,400 - INFO - server.py:191 - User has been set to …
[17/Dec/2020 18:29:09] “GET /static/img/whats-new/whats-new-2.png HTTP/1.1” 304 0
[17/Dec/2020 18:29:09] “GET /static/img/whats-new/whats-new-3.png HTTP/1.1” 304 0


**Could you help me with that matter ? Thank you ! **

Charles

Summary

This text will be hidden

Hi Charles :wave:,

Would you be willing to share what you see in the Console tab in the browser’s dev tools?
Here’s a link to help to show how to do it; I normally just press F12 :).

Thanks in advance! :pray:

Here it is ! Thanks for the quick reply. It is kind of a mess to copy paste since I am restricted to a max of 2 links as a new user but essentially, I guess I can pinpoint where the error comes from :


localhost/:1 Access to XMLHttpRequest at ‘http://localhost:8000/projects’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
1.2f5b540….js:26 Error: Network Error
at e.exports (1.2f5b540….js:6)
at XMLHttpRequest.d.onerror (1.2f5b540….js:158)
at XMLHttpRequest.r (1.2f5b540….js:26)


Charles

HI Charles, the FAQ: “Why does PerceptiLabs not open an in browser after I execute PerceptiLabs on the command line?” on https://www.perceptilabs.com/docs/faq may help. Basically if there is another service blocking the port then PL may not work.

I don’t know for sure if thats the problem here, but it might be worth checking if you have any other web services running that may be using or blocking various ports.

I’ve solved it. Port 8000 was used by another program. Thank you !

Hi folks,

I am experiencing the same problem. In my case though the port seems to be in use by perceptilabs. Once I run perceptilabs from the command line I see ports 5000, 8000, 8011, and 8080 in use. As soon as I shut down perceptilabs all four ports are no longer in use.

I have installed perceptilabs in a WSL environment on Windows 10. Not sure if that matters.

Here is the console output that I am seeing. (Note: I removed the data payload for readability purposes)

Some messages have been moved to the Issues panel.
1.8c0664ea67f2799973cc.js:158 Loaded claygl, version 1.2.1
1.8c0664ea67f2799973cc.js:158 Loaded echarts, version 4.1.0
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/app/updates_available' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
1.8c0664ea67f2799973cc.js:26 Error: Network Error
at e.exports (1.8c0664ea67f2799973cc.js:6)
at XMLHttpRequest.d.onerror (1.8c0664ea67f2799973cc.js:158)
at XMLHttpRequest.r (1.8c0664ea67f2799973cc.js:26)
(anonymous) @ 1.8c0664ea67f2799973cc.js:26
:8000/app/updates_available:1 Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/projects' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
1.8c0664ea67f2799973cc.js:26 Error: Network Error
at e.exports (1.8c0664ea67f2799973cc.js:6)
at XMLHttpRequest.d.onerror (1.8c0664ea67f2799973cc.js:158)
at XMLHttpRequest.r (1.8c0664ea67f2799973cc.js:26)
(anonymous) @ 1.8c0664ea67f2799973cc.js:26
:8000/projects:1 Failed to load resource: net::ERR_FAILED
app.c9919acbe7fb053d455f.js:1 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
at app.c9919acbe7fb053d455f.js:1
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/decide/?verbose=1&version=1&lib=web&token=148&ip=1&_=1609116877625' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/decide/?verbose=1&version=1&lib=web&token=148&ip=1&_=1609116877625:1 Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/track/?data=...' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/track/?data=...Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/track/?data=...' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/track/?data=... Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/projects' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
1.8c0664ea67f2799973cc.js:26 Error: Network Error
at e.exports (1.8c0664ea67f2799973cc.js:6)
at XMLHttpRequest.d.onerror (1.8c0664ea67f2799973cc.js:158)
at XMLHttpRequest.r (1.8c0664ea67f2799973cc.js:26)
(anonymous) @ 1.8c0664ea67f2799973cc.js:26
:8000/projects:1 Failed to load resource: net::ERR_FAILED
app.c9919acbe7fb053d455f.js:1 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
at app.c9919acbe7fb053d455f.js:1
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/decide/?verbose=1&version=3&lib=web&token=148&distinct_id=%40gmail.com&ip=1&_=1609116882499' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/decide/?verbose=1&version=3&lib=web&token=148&distinct_id=%40gmail.com&ip=1&_=1609116882499:1 Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/engage/?data=...' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/engage/?data=... Failed to load resource: net::ERR_FAILED
localhost/:1 Access to XMLHttpRequest at 'localhost:8000/mixpanel/engage/?data=...' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
:8000/mixpanel/engage/?data=... Failed to load resource: net::ERR_FAILED
1.8c0664ea67f2799973cc.js:26 [KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead.
(anonymous) @ 1.8c0664ea67f2799973cc.js:26

I temporarily allowed access-control-cross-origin requests for my localhost to see if that solves the problem. I now get a 404 error where localhost:8000/projects is not found. I am not sure which folder perceptilabs uses as its root folder and hence cannot add a projects folder inside of that. I would have expected though that perceptilabs creates such a projects folder if it expected one to be present. Hopefully that helps in resolving this issue?

Hi @christowm,
Thank you for the logs!
Would you mind also sending the output of the tool if you run it as “perceptilabs -v=3”?
I suspect something else is going wrong as well.

As for localhost:8000/projects not being found, it does indeed exist, but I believe it’s packaged into a .html file. If you are interested, you will find all the related files under the folder “static_file_server” in the installation location of PerceptiLabs.

All the best,
Robert

Hi Robert,

I tried again to run Perceptilabs and this time it worked flawlessly. I ran the exact same commands. I started my Anaconda environment and then ran the Perceptilabs command. I am not certain why it now works. The only difference between now and a month ago is that I ran apt update / upgrade. So I can only assume that there was a package that was not at the up-to-date version. Although I would expect that Perceptilabs checks on all versions during install. Thanks for your help.

Cheers,
Mitch

Hi Mitch,

I’m glad it started working. Feel free to let me know if it stops working again and we can trace down what happened in the first place.

All the best,
Robert

HI Robert,

I think I figured it out. It seems to be related to using Perceptilabs under WSL in Windows. Apparently after following the installation instructions one has to stop and restart WSL. Otherwise the app will not start properly. I encountered the problem again after updating Perceptilabs with the latest version. As soon as I ran the update I tried starting it and it failed again. Once I stopped and restarted WSL it worked as advertised. It may be worth updating your install documentation with this little nuance in case others are using WSL to run Perceptilabs. Maybe someone else can try to do the same to see if the error is reproducible.

Cheers,
Mitch

Hi Mitch,

That’s great to know, thank you!
We’ll add it to our docs :slight_smile:

All the best,
Robert

Hi, I am having this issue, this is what my console tab shows me

Firefox can’t establish a connection to the server at ws://localhost:5000/.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8011/directories?path=~/Documents/Perceptilabs/Default&token=3X6MU0VAdbpFsWheW6Xs73OTVZYJ8nWJsy1JMCmPW10. (Reason: CORS request did not succeed).

Error: Network Error
exports http ://localhost:8080/static/js/1.11edefcb41731e37af99.js:6
onerror
r http

Uncaught (in promise) TypeError: n is undefined
getDefaultModeProject

Firefox can’t establish a connection to the server at ws://localhost:5000/

Hi @RajGandhi,

Have you tried any other browser or incognito mode?
Also, if you start the tool using perceptilabs -v=3, what does it say in that terminal?

All the best,
Robert

Yeah, I have tried a different browser and incognito mode, but the problem remains the same.

Ok, would you mind pasting the printout from perceptilabs -v=3 here? :slight_smile:
Also, what machine/setup are you running on?