Posted by pla_peppermind on September 20, 2010 at 11:15am
6 followers
Jump to:
| Project: | Node import via cron |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
I just tried to setup the module, but unfortunately nothing gets imported when cron is running. I did the following steps:
- Drupal 6 installation
- install node_import 6.x-1.x-dev and ni_cron 6.x-1.x-dev (2010-Jul-19)
- create task
- the task got executed correctly and the nodes were created
- set "Forced import in cron" -> "from the beginning" and "Delete old nodes" -> true
- installed elysia cron module to edit cron settings and run cron manually
- nothing happened
Maybe someone can help me.
Regards
Comments
#1
Hello,
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
#2
Thanks for the hint. I need some time to check this out.
#3
I 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.
#4
I 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!!!
#5
Thank you. Added nodes to the module's page.
#6
Recycling 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.
#7
So 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.
#8
I 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.
#9
I 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!
#10
Elysia 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?
#11
I 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.
#12
I 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...