Page MenuHomePhabricator

Documentation is misleading about the unit that "storage.mysql-engine.max-size" is measured in
Closed, ResolvedPublic

Description

I realize this is not necessarily a bug, it could be I'm missing something.
Anyway. I have a new install on my own server, and I can't upload any files, regardless of size. I get the error message:

Upload Failure
Exception: No configured storage engine can store this file. See "Configuring File Storage" in the documentation for information on configuring storage engines.

I have:
nginx: client_max_body_size 32
php.ini:
post_max_size = 32
memory_limit = -1 (disabled)
max_input_vars = 200000
upload_max_filesize = 32

And also storage.mysql-engine.max-size at 8 MB.

Just trying to use the default MySQL storage, so nothing fancy.

Could this be a bug, or am I missing something? Everything is up to date, I update everything each time I start this up, and I have everything solved except this now.

So I guess my steps to reproduce are:

Use nginx, MariaDB and PHP via Supervisord in a rkt pod. (It is basically very similar to a Debian Jessie install.)
Install everything, change all variables that need to be changed (see above), have it still not work. I could upload my Docker and script files and everything if anyone wants them.

I can connect to the database just fine doing everything else. Adding users and tasks etc.

Event Timeline

Can you browse to https://your.install.com/applications/view/PhabricatorFilesApplication/ and post a screenshot of the "Storage Engines" panel on that page? It should look a little bit like this (example from this install), although your settings are presumably different:

engines.png (1×1 px, 142 KB)

Sure, here goes:

storage-engines.png (357×1 px, 31 KB)

I guess the chunks not being writable is the problem?

In the first row of that table, it appears that you have configured a storage.mysql-engine.max-size of 8 ("8 bytes"). Try using 8388608 ("8 megabytes") instead?

Omg. I feel so stupid now. In the guide I read, that should be interpreted as 8MB, but I guess it wasn't... Works fine now, thanks a bunch!
This can be closed..

THANK YOU!

D17037 should fix the documentation, it definitely wasn't very clear as written. That should land some time today and the docs should be updated in about 24 hours.

Thanks for the report!

epriestley renamed this task from Upload Failure to Documentation is misleading about the unit that "storage.mysql-engine.max-size" is measured in.Dec 13 2016, 12:59 PM
epriestley triaged this task as Normal priority.
epriestley added projects: Documentation, Files.