You are here:  » Uplink failed when trying to import


Uplink failed when trying to import

Submitted by AD_Mega on Tue, 2008-09-16 04:12 in

I get this message when I try to import a large feed from the command line. The script say its done but the feed wasn't imported.

root@1973 scripts]# php import.php Shoes_inv2.csv
Content-type: text/html
X-Powered-By: PHP/4.3.11

backfilling reviews...[done]
unlink() failed[root@1973 scripts]#

Submitted by support on Tue, 2008-09-16 07:58

Hi Adrian,

I think this is related to the semaphore code that we added to ensure that your import.php would only operate when there was no other import process going on; so this looks like it is to do with creating / deleting the semaphore file that was part of that modification. For this to work, a folder would have been created beneath the /scripts/ folder where the script can create the semaphore file - did you remember to create that folder and give it world write access on your new server?

If you're not sure of the name, check the code at the top of import.php which should indicate the directory name; alternatively, email me the file if you want me to check it out for you and advice exactly how your new server needs to be setup....

Cheers,
David.

Submitted by AD_Mega on Tue, 2008-09-16 08:22

The semaphore code was created and is working. I have a cronjob to impotrt feeds and noticed that all the small feeds are being imported but not the larger feeds. What is strange is that i was able to import that same feed by using the browser but not at the command line.

Submitted by support on Tue, 2008-09-16 09:37

Hi Adrian,

Could you send me your latest version of import.php so that I can check it out for you...

Cheers,
David.