Cannot acquire lock for source node / 0 This error showing when I tried to import a CSV file on my live site. Same file I tried in local site working fine.


  Cannot acquire lock for source node / 0.


The modules I am using are the following:


Feeds
Feed Excel
Libraries (PHP Excel)


I examine the issue and found that the error occurred when I tried to import an image. Have anyone faced this issue?
To release the lock, remove it from semaphore table, e.g.:

drush sqlq "DELETE FROM semaphore WHERE name LIKE 'feeds_source_%'"




If you got different error like:


  The feed is currently importing.


then you need to clear out state and fetcher_result data from feeds_source table, e.g.:

drush sqlq "UPDATE feeds_source SET state = NULL, fetcher_result = NULL WHERE id = 'FEEDS_MACHINE_NAME' AND feed_nid = 'NID'"


Note: Change FEEDS_MACHINE_NAME and NID into appropriate values.