Trouble Using display Dspace on Omeka S

We got the following error using the DSpace connector:

2021-03-08T19:13:48+00:00 ERR (3): Laminas\Http\Client\Adapter\Exception\TimeoutException: Read timed out after 10 seconds in /srv/www/adhc/lib/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php:650
Stack trace:
#0 /srv/www/adhc/lib/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php(454): Laminas\Http\Client\Adapter\Socket->_checkSocketReadTimeout()
#1 /srv/www/adhc/lib/vendor/laminas/laminas-http/src/Client.php(1464): Laminas\Http\Client\Adapter\Socket->read()
#2 /srv/www/adhc/lib/vendor/laminas/laminas-http/src/Client.php(945): Laminas\Http\Client->doRequest(Object(Laminas\Uri\Http), 'GET', true, Array, '')
#3 /srv/www/adhc/lib/modules/DspaceConnector/src/Job/Import.php(189): Laminas\Http\Client->send()
#4 /srv/www/adhc/lib/modules/DspaceConnector/src/Job/Import.php(70): DspaceConnector\Job\Import->getResponse('/rest/collectio...', 'items', 0)
#5 /srv/www/adhc/lib/modules/DspaceConnector/src/Job/Import.php(54): DspaceConnector\Job\Import->importCollection('/rest/collectio...')
#6 /srv/www/adhc/lib/application/src/Job/DispatchStrategy/Synchronous.php(34): DspaceConnector\Job\Import->perform()
#7 /srv/www/adhc/lib/application/src/Job/Dispatcher.php(105): Omeka\Job\DispatchStrategy\Synchronous->send(Object(Omeka\Entity\Job))
#8 /srv/www/adhc/lib/application/data/scripts/perform-job.php(44): Omeka\Job\Dispatcher->send(Object(Omeka\Entity\Job), Object(Omeka\Job\DispatchStrategy\Synchronous))
#9 {main}```

Does anyone have any ideas?


Hi! I assume this is happening when trying to import–can you please share your module configuration including the site URL and collection you’re importing?

Yes we are!
I’ve attached our info below!

The first thing I’d try is lowering the Limit–the default is 100, and 2000 is quite high. I was successfully able to import the collection with the default setting, and had it fail in the same way when I set the limit to 2000.

The background here is that “Limit” is the number of records the DSpace Connector will request at once. The error you’re seeing is a timeout error: the DSpace server you’re connecting to took too long to respond.

Lowering the Limit reduces the strain on the DSpace server by asking it for fewer items at a time, but doesn’t affect your ability to do large imports: when the limit is lower, we simply make more requests, but will still get all the items.

1 Like

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.