Open thedeviousdev opened 5 years ago
how big are these visualizations? Because Redis is running out of client connections for you to connect to. It sounds like your server is running out of memory.
Is Redis running on the same server as learninglocker? or is it separate? When you say you upgraded the instances, do you mean the server learninglocker is running on? Mongo atlas? Both?
Redis running out of connections is normally a sign you need to configure redis from default settings, and possibly move it to it's own service, read: elastic cache, or standalone server.
it sounds like the visualization is running against data that is bigger then a couple of records. The AMI is really meant for demo purposes, and not for running against bigger record sets (page count). I'd load the AMI, update it using the deploy script, then add a Redis server, and mongo server, have learninglocker connect to those. I'd also use EC2.medium if you are running visualizations against more then a couple of records.
Also, I'd update the url for the worker, "https://example.com" makes it kind of hard to read, I'd use the IP of the server, just in case anything is actually trying to verify the URL.
Also, started at of undefined, looks like it's an error from the front end, client side, maybe the timestamp is coming in wrong, null, or unreadable. I'd have to let Ryan or one of them look at that one.
Having the same issue after an upgrade.
Unhandled rejection TypeError: Cannot read property 'startedAt' of undefined at a (https://xapi.ramped4.com/client.d4c2f5af.js:1:13841) at https://xapi.ramped4.com/client.d4c2f5af.js:1:16853 at r (https://xapi.ramped4.com/vendor.148646e7.js:1:418678) at Generator._invoke (https://xapi.ramped4.com/vendor.148646e7.js:1:419798) at Generator.e.
500 error on
in addition to the above query by my colleague shauncodal, there is now a new issue which is more serious. We can no longer sign into our learning locker account. Takes ages and eventually get an error. Also all xapi calls from our LMS are taking ages and we eventually get a curl error : "cURL Error #:Operation timed out after 30000 milliseconds with 0 bytes received"
I had almost identical error in UI on a new Open Source manual install. Visualize graphs would spin loading then erroring out with
Unhandled rejection TypeError: Cannot read property 'startedAt' of undefined...
api_stderr-1.log had [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
In my case I did not install and start redis at all. Starting redis solved it. To reproduce stop redis and try loading the visualizations.
Now I have a larger LL with many visualisations which load sometimes and would not load the other times with the same UI startedAt
error. Will check redis.
What version were you using?
Open Source - v3.13.0
What steps can we follow to reproduce the behaviour?
Server configuration: OS: Ubuntu 18.10 x64 CPU: 1 vCore RAM: 2048 MB Storage: 55 GB SSD
curl -o- -L http://lrnloc.kr/installv2 > deployll.sh && bash deployll.sh
as root user.What is the actual behaviour?
In a 3 viz dashboard, the server will send continuous API requests and never fully finish loading. For example, one of visualizations will eventually show, but after about 2 minutes, the page refreshes and resets the visualizations again. Mongo Atlas is definitely receiving the requests, as it maxes out on Disk I/O every time.
Eventually, after leaving it for about 5-10 minutes, a new error pops up in the Dev Console:
Looking at the
api_stderr-0.log
, I see errors like this:I have tried to upgrade the the installation to resolve the issues, but that did not help either. Restarting the services has not helped.
What is the expected behavior?
The visualisations should eventually show within the dashboard.
Is there any additional information that will help us replicate/understand the problem?