Page MenuHomePhabricator

User get logged out while uploading files with UploadWizard
Open, Needs TriagePublic

Description

What's happening
User select files in UploadWizard and complete every steps. On the last step, while uploads are finalized, somes files are succesful but then we see a message saying "You must be logged in to upload this file.". Opening a new page indeed show we are logged out.

Logging In again and retrying may result in the same behavior when pressing "Retry failed upload".

The session is not expired or timed out when uploading, I tried with a fresh new session and another browser.

Because of this issue I now upload in batch of ~200, and after 100 files or so the session "expires".

An IRC user suggested I open an issue in case someone else eventually face the same issue. I hope I provided enough information.

Versions
MediaWiki 1.32.0
PHP 7.2.15 (fpm-fcgi)
APCU 5.1.17
MariaDB 10.3.12-MariaDB
ICU 50.1.2
Upload Wizard 1.5.0

https://gamewiki.kuelio.org/Special:Version (Information on this page is subject to change)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper changed the task status from Open to Stalled.Feb 22 2019, 2:52 AM

Please see and follow https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems and report back here. Thanks!

session.auto_start is set to 0
session.referer_check is empty
$wgCookieDomain and $wgCookiePath are not set
$wgCookieSecure is not set.
$wgMainCacheType is set to CACHE_ACCEL;
$wgSessionCacheType is not set, as per the MediaWiki website, it should be used with Memcached, I'm using APCu. It also defaults to 'CACHE_ANYTHING'

I cleared all cookies related to the domain, logged in (HAR file with password hash removed below) and uploaded ~120 images. The error occurred again on Pokemon-720-sprite.png, image 20 of the queue, which uploaded successfully before errors appeared.

I wasn't able to upload the second HAR file with the logs where I actually upload the files and the error happened because I get "Upload Failure 'Upload 19-02-21 22-33-19.har' Exception: No configured storage engine can store this file. See "Configuring File Storage" in the documentation for information on configuring storage engines.' from Phabricator. File size is 6.1MB. Also unable to upload the debug log mediawiki created, which weight 9.6MB (Was emptied before logging in and making the uploads to reproduce).

Please let me know how I can safely upload the missing files.

Aklapper changed the task status from Stalled to Open.Feb 22 2019, 6:08 AM

Which browser(s) has this been tested with?

Firefox 64 on Linux.

I couldn't upload the rest of the files requested here though. (Just confirming)