Active
Project:
Node import via cron
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2010 at 11:15 UTC
Updated:
28 Aug 2014 at 11:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dealancer commentedHello,
I think you did everetning right. It worked as for me.
I have several questions to you:
- Do you use PostreSQL/MySQL?
- Have you changed content of the file before running cron? If file is not changed, ni_cron won't run import.
Regards,
Vadim
Comment #2
pla_peppermind commentedThanks for the hint. I need some time to check this out.
Comment #3
pla_peppermind commentedI tried your suggestions (I use a MySQL-DB) and it is still not working. Here is what I did:
- Imported file via "new import"
- changed cron settings to "from the beginning" and "delete old nodes"
- I changed one cell in one row within the csv file
- run the job node_import_cron manually via elysia cron
Unfortunately nothing happened. Nothing gets deleted/imported. Are the permissions/owner of the file important? I had to change them, because the upload via Drupal set them to www-data only. I even tried to change the MD5 field in the database, but there is no difference.
Comment #4
pla_peppermind commentedI think I found the problem: i executed the wrong task "node_import_cron" instead of "ni_cron_cron". After some researching I realized that you also have to run both taks.
First ni_cron_cron and after that node_import_cron via elysia. Maybe thats a good thing to put in the README or on the modules website. ;-)
By the way: its a great module!!!
Comment #5
dealancer commentedThank you. Added nodes to the module's page.
Comment #6
smscotten commentedRecycling this thread because I have the same problem, though I'm guessing not the same cause.
I have Node Import 6.x-1.x-dev (2010-Jul-11) and Node import via cron 6.x-1.x-dev (2010-Sep-28).
I created the task (by running it—import went as expected) and selected "Only New Data" for that task at /admin/content/node_import/list/tasks. "Allow FTP Uploads" checked at /admin/content/node_import/settings.
After adding a new line with new information to the CSV file, I ran cron manually and checked the logs. I see ni_cron has started and stopped, but there is no log entry for "node_import_cron" as indicated in comment #4. I don't have Elysia Cron installed... is that a requirement? Is node_import_cron running silently? Is it possible it's not running at all?
I didn't say so before, but I've checked the content list to be sure that the new row wasn't turned into a node.
Comment #7
smscotten commentedSo it seems I had no ni_cron table. At all. Why it failed to install, I couldn't tell you, but I uninstalled and reinstalled Node Import via Cron and got the table.
It's still not working for me, but I'm getting more messages in my log, so my new problem isn't the same as this "nothings happening" post. Closing.
Comment #8
khuramhb commentedI am facing exactly the same issue. I created the task (by running it—import went as expected) and selected "Only New Data" for that task at /admin/content/node_import/list/tasks.
After adding a new line with new information to the CSV file, I ran cron manually using cron.php and checked the logs. I see ni_cron has started and stopped, but there is no log entry for "ni_cron_cron" and "node_import_cron" as indicated in comment #4. I don't have Elysia Cron installed... is that a requirement?
I am new to drupal, can I know what I have done wrong.
Help would be very much appreciated. Thanks in advance.
Comment #9
khuramhb commentedI have changed the csv file in default/files/import but still when cron runs no new nodes are imported. I am not using elysia cron. Do i still need to manually run both of the crons in the required order.
Any help would be great. Thanks!
Comment #10
dealancer commentedElysia is not a requirment. Only if you use it you should fofflow comment #4. When installing ni_cron module it automatically updates own weight in database. You could check in modules table that ni_cron should have weight lower then node_import module.
BTW, what database do you use and what is version of Node Import module that you run?
Comment #11
cj-a-min commentedI had the same problem as khuramhb #9, turns out I was flipping the switch, "from the beginning" after I uploaded the 2nd csv. -- this is wrong.
You need to first upload the 1st csv, manually run the node import, than flip the switch, "from the beginning". This will enable Ni_cron, and it will store the MD5 for the 1st csv. So when you (ftp,robocopy, or whatever upload method you use) the 2nd csv will have a different MD5, therefore it will be processed on the next cron run.
Very nice work, dealancer. What are the odds of ever getting two identical md5 with the same name and file size! - Quite possibly Never.
Comment #12
designate commentedI receive double entries when a 2nd [or later] .csv file is uploaded via FTP to the import directory. At set-up I uploaded the 1st .csv via FTP as well to get the user in NI interface set to Public FTPd instead of the username I'm logged in with [if I upload via the NI interface]. Import runs great. Every 24 hours an updated .csv is uploaded to the import directory from another source. When cron runs, it imports the new uploaded file but NI creates double entries and today I even found out that the new uploaded .csv was deleted from that directory. Will the procedure as described in #11 solve this or does anybody have a different tip/ idea or advice.
N.B. adding 1st .csv via NI interface sets file to chmod 644, upload of 2nd .csv via FTP is not authorized unless I set chmod to 777. Again I receive duplicated entries...
Comment #13
brenjp.0 commentedHi,
I am having an issue with this module where my test CSV file is not importing.
The first time I setup the import I uploaded my file and it imported fine. I then deleted the nodes and wanted to try it again and now whether I upload via the form or via FTP I get an error of "Upload a file first."
Everything looks fine through the process including the preview of the records up until step 7, at which point it shows the records to be imported which look like the below for each record:
So now I am unable to import anything manually or via FTP.
Otherwise everything was looking brilliant.
I have attached a zip file with the .csv file with all rows including the rows with errors and the Node Import debug report.
If anyone can help that would be greatly appreciated.
Cheers,
Brendan
Comment #14
totko123 commentedHello,
I'm using node import "6.x-1.2" and ,import via cron "6.x-1.6+2-dev" and ..yes it importing but the problem is that it its uploading new nodes from CSV but not deleting the old nodes. Actioly it is duplicating the content again and again. Have anyone idea how to solve this problem
Thanks in advance