application throw exception while i try to harvest DSPACE oai

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

application throw exception while i try to harvest DSPACE oai

Ahmet Melih Başbuğ

Hello
I try to connect DSPACE to Vufind. DSPACE is on my localhost. oai is working. I did steps in "https://vufind.org/wiki/indexing:dspace" however, while i run php harvest_oai.php command, it gives error. Moreover, I couldn't see $VUFIND_HOME/web/ file and i create $VUFIND_HOME/web/RecordDrivers/DspaceRecord.php file by myself. I am using Vufind 3. What could the exception be?

ubuntu64@ubuntu64-vb:/usr/local/vufind/harvest$ php harvest_oai.php 
======================================================================
   The application has thrown an exception!
======================================================================
 Zend\ServiceManager\Exception\ServiceNotFoundException
 No valid instance was found for zendservicemanagerservicelocatorInterface(alias: Zend\ServiceManager\ServiceLocatorInterface)
----------------------------------------------------------------------
/usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:652
#0 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate('Zend\ServiceMan...', 'zendservicemana...')
#1 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create(Array)
#2 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/ControllerManager.php(66): Zend\ServiceManager\ServiceManager->get('Zend\ServiceMan...')
#3 [internal function]: Zend\Mvc\Controller\ControllerManager->injectControllerDependencies(Object(VuFindConsole\Controller\HarvestController), Object(Zend\Mvc\Controller\ControllerManager))
#4 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(668): call_user_func(Array, Object(VuFindConsole\Controller\HarvestController), Object(Zend\Mvc\Controller\ControllerManager))
#5 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate('harvest', 'harvest')
#6 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create(Array)
#7 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php(116): Zend\ServiceManager\ServiceManager->get('harvest', false)
#8 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/ControllerManager.php(137): Zend\ServiceManager\AbstractPluginManager->get('harvest', Array, false)
#9 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(76): Zend\Mvc\Controller\ControllerManager->get('harvest')
#10 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#12 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /usr/local/vufind/public/index.php(81): Zend\Mvc\Application->run()
#15 /usr/local/vufind/harvest/harvest_oai.php(32): require_once('/usr/local/vufi...')
#16 {main}
======================================================================
   Previous Exception(s):


Thanks
Melih

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|

Re: application throw exception while i try to harvest DSPACE oai

Demian Katz

The indexing:dspace page refers to VuFind 1.x and thus contains some outdated file paths and details. In VuFInd 2.0 and later, the DSpace example import configurations are included by default and do not need to be created.

 

If you want to create a custom record driver, you’ll find some details at https://vufind.org/wiki/development:plugins:record_drivers (and I’m happy to help with any questions). You only need to do this if you wish to customize the display, however – you should get a reasonable default even if you skip this step, which should be enough for initial testing.

 

Regarding the exception you are seeing, is it possible that the user running the script does not have permission to write to $VUFIND_LOCAL_DIR/cache/cli ? That is a common cause for failure of command line scripts. Also, is $VUFIND_LOCAL_DIR pointing to the correct place (usually $VUFIND_HOME/local, unless you have selected a non-default setting)? Is there a “previous exception” listed, or did you include the complete error dump? If previous exceptions are present, usually the bottom one in the chain is actually the most informative.

 

Anyway, I hope this is helpful, but please let me know if I can do anything more to help you get started!

 

- Demian

 

From: Ahmet Melih Başbuğ [mailto:[hidden email]]
Sent: Monday, January 30, 2017 7:48 AM
To: [hidden email]
Subject: [VuFind-General] application throw exception while i try to harvest DSPACE oai

 


Hello

I try to connect DSPACE to Vufind. DSPACE is on my localhost. oai is working. I did steps in "https://vufind.org/wiki/indexing:dspace" however, while i run php harvest_oai.php command, it gives error. Moreover, I couldn't see $VUFIND_HOME/web/ file and i create $VUFIND_HOME/web/RecordDrivers/DspaceRecord.php file by myself. I am using Vufind 3. What could the exception be?

 

ubuntu64@ubuntu64-vb:/usr/local/vufind/harvest$ php harvest_oai.php 

======================================================================

   The application has thrown an exception!

======================================================================

 Zend\ServiceManager\Exception\ServiceNotFoundException

 No valid instance was found for zendservicemanagerservicelocatorInterface(alias: Zend\ServiceManager\ServiceLocatorInterface)

----------------------------------------------------------------------

/usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:652

#0 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate('Zend\ServiceMan...', 'zendservicemana...')

#1 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create(Array)

#2 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/ControllerManager.php(66): Zend\ServiceManager\ServiceManager->get('Zend\ServiceMan...')

#3 [internal function]: Zend\Mvc\Controller\ControllerManager->injectControllerDependencies(Object(VuFindConsole\Controller\HarvestController), Object(Zend\Mvc\Controller\ControllerManager))

#4 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(668): call_user_func(Array, Object(VuFindConsole\Controller\HarvestController), Object(Zend\Mvc\Controller\ControllerManager))

#5 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate('harvest', 'harvest')

#6 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create(Array)

#7 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php(116): Zend\ServiceManager\ServiceManager->get('harvest', false)

#8 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/ControllerManager.php(137): Zend\ServiceManager\AbstractPluginManager->get('harvest', Array, false)

#9 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(76): Zend\Mvc\Controller\ControllerManager->get('harvest')

#10 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))

#11 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))

#12 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))

#13 /usr/local/vufind/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))

#14 /usr/local/vufind/public/index.php(81): Zend\Mvc\Application->run()

#15 /usr/local/vufind/harvest/harvest_oai.php(32): require_once('/usr/local/vufi...')

#16 {main}

======================================================================

   Previous Exception(s):

 

 

Thanks

Melih


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general