Cron imports fail with temp file does not exist error

Created on 6 August 2020, almost 4 years ago
Updated 10 August 2023, 11 months ago

Problem/Motivation

The cron import run does not import any new content or update any existing content. Each run ends with messages like this:

[error] RuntimeException: File /tmp/feeds_http_fetcherQAvgBZ does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetcherL04ABf does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetcher2yxqwq does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetcherMReb9M does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetcher9PHNuy does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetchertp6NXg does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetcherJ3kpu3 does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[error] RuntimeException: File /tmp/feeds_http_fetchermM4dMX does not exist. in Drupal\feeds\Result\FetcherResult->checkFile() (line 53 of /var/www/html/web/modules/contrib/feeds/src/Result/FetcherResult.php).
[notice] Message: There are no new Location items.

If I manually run the import via Edit->Save and import, new items are added, and existing items are updated.

I am using the default /tmp directory for temporary:// files. I did try changing that and it didn't do anything other change the path in the error messages.

I have spent a good while searching Google and both Feeds and Feeds Extensible Parsers issue queues. The closest issue I found was this: https://www.drupal.org/project/feeds/issues/3069717 β†’ but there aren't enough details to tell if it's the same issue. There also is https://www.drupal.org/project/feeds/issues/2912130 πŸ“Œ Missing temporary files in load balanced environments Fixed , but I'm not load balancing. My /tmp directory is not changing.

Steps to reproduce

I'll try to reproduce on a new D8 instance soon, I'll update this with my results.

In the meantime, I'd assume adding a QueryPath XML feed, and then trying to get it to update via cron would fail.

The one extra would be to run it in a docker container. Mine is running in a php:7.3-apache based container.

System info

  • Docker container based on php:7.3-apache with the needed extensions enabled.
  • Feeds Extensible Parsers 8.x-1.0-alpha4
  • Drupal 8.9.2

Thanks in advance for any help.

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jerrac

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024