New Canvas install on an admittedly underpowered Ubuntu 16.04 VM.
I am getting lots of "You are not currently logged in, possibly due to a long period of inactivity" notifications while poking around Canvas. But, I am logged in and I can (usually) continue to navigate just fine, even in areas that would require authorization. Not all views spring the errors, and some are worse than others. I restored a course from one of our Moodle modules with scores of files, and viewing the files for that course will cause scores and scores of these notification banners.
Viewing the pages in the Developer Tools, I see lots of 401 errors with what I am interpreting as asynchronous API calls (and I can see them now in the apache logs). E.g., on a files view, I see:
Failed to load resource: the server responded with a status of 401 (Unauthorized) /api/v1/files/82:1
Failed to load resource: the server responded with a status of 401 (Unauthorized) /api/v1/files/254:1
and so on…
If I select a single file and delete, it usually is successful. If I select more than one, I will get Unauthorized errors as above on the POST (and the corresponding Canvas notifications).
Running htop on the VM shows resources are pretty well used up. High CPU usage, RAM has only a few hundred megs free.
I thought maybe this was just my test server being maxed out, and these 401s would magically go away if I spun this VM up with more resources on a beefier machine? But adding more resources to the VM did not solve the 401s.
Are there configs I can be tweaking? I am unfamiliar with Passenger and Ruby, and I primarily use nginx on our primary web servers so I have lost a little Apache knowledge too. I don't even know where to begin poking around.
Host machine: 2012 Mac Mini (core i5 2.5 GHz), 8 GB RAM, spinning harddrive
VirtualBox 5.2.20
VM Guest: 4 cores, Ubuntu 16.04, 5 GB RAM, 150 GB Harddrive