Too many folders may cause login timeout
tracked
riejinno Resident
If you have too many folders in the root folder in inventory, it may cause login timeout in the viewer: request to https://login.agni.lindenlab.com/cgi-bin/login.cgi with inventory-skeleton option returns too much data (1.6Mb and 3121 folders in my case), and sometimes it responds very slowly (more than 40 seconds - default login timeout in the viewer).
How did I know that? I intercepted request using mitmproxy and tried the same request using curl.
Log In
Maestro Linden
Merged in a post:
Initial attempt to log in always fails.
Trantryss Muircastle
I use Catznip 14.0.2 primarily, but have seen this on Firestorm as well, most recently with Beta 7.1.12.77526. My initial attempt to log in will fail & then i will immediately try again and that attempt will get me logged in. This has been going on for months.
I do have a large inventory (over 500k items & over 80 folders).
Related - I find there are some sims that I simply cannot log into at all, so wind up just logging in from my home sim.
Maestro Linden
tracked
Maestro Linden
I was able to reproduce this timeout condition by creating a new account and creating ~125 inventory folders in it. Sometimes the agent is able to login, but sometimes it hits the 40 second timeout. I've gathered the necessary logs for that.
Maestro Linden
needs info
Maestro Linden
Hi riejinno Resident, nice sleuthing so far. This might be the same issue as reported in https://secondlife.canny.io/server-bugs/p/initial-attempt-to-log-in-always-fails
Could you do us a favor and share a copy of the viewer log from one of these attempts? I'd like to compare the viewer log to the various server logs for a specific login attempt that failed with timeout.
One way to submit a viewer log is to log into https://support.secondlife.com/ and click the "Submit a Support Case" in the right column, then choose Issue Type: “…” and type “logs for canny issue” and add the link to this issue. Reproduce the viewer failure and then zip up your viewer logs folder and attach it to support ticket. There's an “Attach a file” link at the bottom.
riejinno Resident
Maestro Linden Yes, it seems it's the same issue. I am sorry, I didn't save the log. But as far as I check it didn't contain any useful information, just something like "HTTP request timed out" - I figured out with the problem only when intercepted HTTP request and tried to reproduce it using curl. I guess it happens when the login server has too big load and many people are trying to log in in the same time (for me it usually happened after maintenance or regions restart).
Maestro Linden
riejinno Resident: I'm not surprised that the viewer log is pretty terse, but I would like to line up the main events shown in the viewer log with what the login server and start-location simulator logs show.
riejinno Resident
Maestro Linden Okay, I will try to reproduce the bug and send you the logs then.
riejinno Resident
Maestro Linden Having the issue again. Here are the log files: https://drive.google.com/file/d/1BwpvfUn7dtoloDxMx9Mem7lXtBylxSYc/view?usp=sharing (cannot attach to this message, the reply form shows error when trying). Kokua.log is the newest one, I wasn't able to log in. Kokua.old is previous launch, I was able to log in after many-many attempts, but the world was loading very slow, and it kicked me out when I tried to teleport.
riejinno Resident
Also intercepted and saved request to the https://login.agni.lindenlab.com/cgi-bin/login.cgi (just removed some sensitive data like password hash): https://drive.google.com/file/d/1iLZNrCu-WbI3UbnI-hCP7fRtp3TuP6zq/view?usp=sharing
Maestro Linden
riejinno Resident: Thanks! I compared your viewer log to the corresponding simulator and login logs, and you're hitting the same timeout error that I was able to reproduce.
In my case, I created a new account with 125k folders (mostly nested in each other - not all top level). On some login attempts, the login and connection to initial simulator connection succeeds but takes a long time (say, 20 seconds). On other login attempts, the last step took >40 seconds, and the timeout error was seen. Increasing the timeout value in the viewer would not help much by itself, as there are server-side timeouts as well.
riejinno Resident
Maestro Linden It seems folders nesting doesn't matters - as you may see in the response I sent, the login server sends all the folders anyway. Also I have just 9.5k folders, but still meeting this bug. But I guess if 125k folders causes stable reproduction of the bug - that's great for debugging=)
EricBaldwin Resident
I have this too but not always. I wait always with the second Auth short before the minute is full then and then login works good. I guess it can be a big inventory too mine is 296K. I use Firestorm.
Maestro Linden
Hi Trantryss Muircastle , I was able to find the server logs from your most recent failed login attempt from earlier today. From the server logs, it appears that the failure occurred because the initial sim (Arboretum) didn't get data from your viewer in time.
In order to understand what's going wrong, we'll need viewer logs from a session which hit this failure. If you hit this again, please upload a copy of your viewer log by doing the following:
Log into https://support.secondlife.com/ and click the "Submit a Support Case" in the right column, then choose Issue Type: “…” and type “logs for canny issue” and add the link to this issue. Reproduce the viewer failure and then zip up your viewer logs folder and attach it to support ticket. There's an “Attach a file” link at the bottom.
This page tells you where to find the logs folder for the SL viewer: http://community.secondlife.com/t5/English-Knowledge-Base/How-to-report-a-bug/ta-p/733545#Section_.3
Thank you!