Hi, I’m experiencing " POST request exceeded maximum size" error on Red Hat when running dockerised Omeka-s (https://github.com/artturimatias/omeka-s-docker-npm). Docker setup works on Debian but with RHEL I can’t make POST requests (Omeka works otherwise so there is db connection and I can make GET requests to api).
I can’t make POST request even from inside container.
I know that this is not an Omeka issue but maybe some one could give a hint where the problem could be.
Omeka S encountered an error
Omeka\Mvc\Exception\RuntimeException
POST request exceeded maximum size
Details:
Omeka\Mvc\Exception\RuntimeException: POST request exceeded maximum size in /var/www/html/application/src/Mvc/MvcListeners.php:257
Stack trace:
#0 /var/www/html/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Omeka\Mvc\MvcListeners->checkExcessivePost(Object(Zend\Mvc\MvcEvent))
#1 /var/www/html/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#2 /var/www/html/vendor/zendframework/zend-mvc/src/Application.php(311): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#3 /var/www/html/index.php(17): Zend\Mvc\Application->run()
#4 {main}
This might be Docker version related. Version in Debian is 17.03.0-ce and in RHEL 1.10.3. This same problem also exists on Mac with Docker version 1.13.1.
That is a new check, yes. Is it still true that it works on a Debian version, or was that just using an older Omeka S version? If there is a difference between the two that would indicate some strange issue. If not, it’s probably just a bug in the check as it interacts with the API.
Hello, Is there a resolution to this issue? I have tried to use both “CSV Import” and “Omeka 2 Import” and am getting similar errors. The csv file is not a large one and I have tried setting the number of records to import to 1 to decrease the size as well. I am running Omeka S version 1.0.0-rc.1.
It’s currently set to 160M but when I first examined the .ini file it wasn’t set at all and I added it. I am running on Reclaim Hosting so there may be something with the configuration there because there were tweaks that needed to be done for 2.x to run some plugins (setting the php background path).
Yes the system information listed by Omeka S shows the 160M number and I just uploaded a 20mb image with no trouble.
For both the CSV import and Omeka 2 Import plugins the first screen goes fine (where you select your csv file and input the api endpoint respectively) but on the second page when you click import the error pops up in the log immediately. The jobs show up in the “jobs” tab just listed as “Starting”.