1st Time Harvest

Good Afternoon!

I am working on integrating SOPAC at the Arlington Heights Memorial Library and seem to be having some difficulties with my first harvest. I have ran through all of the installation instructions about 3 times now just to make sure that I didn't miss anything.

At this point when I run the harvest.php from the CLI nothing happens. The database is not being populated with data. I have also tried to execute this file in my web browser and all I get is a blank white page.

Where would be a good place to start on troubleshooting this issue?

Thanks in advance for any and all assistance!
-Rich

Is there a specific or different connector that has to be used if I am using the III 2009-A server?

I am not sure if that would require something different than the Locum_III_2007 connector that was suggested. Thanks for your help!

I haven't written a connector for 2009 yet. However, since the harvester scrapes xrecord, the harvest should theoretically still work. Have you verified that xrecord is enabled on your III web server? Have you configured your locum.ini and locum_iii_2007.ini files?

Also, you might want to do a dump of phpinfo() and see if pcntl is compiled in. If not, you'll need to disable it in the locum config.

My plan is to release 2.1 then upgrade to 2009 here in Darien then release a 2009 connector (unless, of course, someone else writes one in the interim)

As a follow up to this post, it turned out the issue I was having was with the PHP PEAR installation. If you are having a problem getting your harvest to begin, I would suggest typing "pear", without quotes, into the command line and see what happens. If you get a BASH: -Command Not Found, then you have a problem with your PEAR installation. If it comes up with a list of possible commands, then PEAR is installed correctly. After that, if you still can't connect, I would double check if MDB2 is correctly installed.

STEP 1: If you did get an error when you typed "pear" into the command line, type the following. If you did not get an error and you saw a list of commands available for "pear", skip to STEP 2 below.

sudo apt-get install php-pear
sudo pear upgrade-all

STEP 2:
sudo pear install mdb2
(MySQLi Extension)
sudo pear install pear/MDB2#mysqli
(MySQL Extension)
sudo pear install pear/MDB2#mysql

Also, make sure that you have included the path to your 'pear' directory in the php.ini file located most likely here: /etc/php5/apache2/php.ini

That should look like:
include_path = ".:/path/to/pear"

If that path is incorrect, then you may get an error out of your "locum.php" file, somewhere close to Line 43, because the server is unable to locate your call: "require_once ('MDB2.php'). DO NOT change the path of this file to an absolute path as this will just screw up all sorts of other references. So, make sure that you have things properly configured in your .ini file and that you have your PEAR and MDB2 installations double checked.

I thought I would share these steps that I took to help resolve my issue in case others are new to the world of Linux, like myself.