JSON API fails to provide result for newly uploaded Media Images on a Migrated Drupal Instance

Created on 28 July 2022, almost 2 years ago
Updated 13 February 2023, over 1 year ago

Problem/Motivation

Initially, when the Drupal site was set up all the media images were coming properly in the JSON API output. However, after migrating the Drupal site to another instance, the newly uploaded images or the updated images are getting lost in the JSON API results.
Observations:

  • When I hit jsonapi/media/image the updated or uploaded image is not coming in the list
  • However, when I hit jsonapi/media/image/{uuid}, where uuid is the UUID of the newly uploaded image, I am getting the result.

I have tried setting the permissions for the private and public folder but nothing is working.
Also, there are no errors in the logs.

Both the old instance and new instance have the same configuration:

  • PHP 8.1.2
  • MySQL, Percona Server, or equivalent: 8.0.27
  • Drupal v9.3.12

I have exported the database using the command: drush sql-dump --extra-dump=--no-tablespaces > /tmp/dbname.sql and imported the database in the new instance using the command drush sql-cli < /tmp/dbname.sql
I have also exported the private files folder by compressing it using the command: tar cfzv private.tar private
The tar file is extracted by using the command: tar -xf private.tar

Please help me with the issue.

💬 Support request
Status

Closed: outdated

Version

9.3

Component
JSON API  →

Last updated 1 day ago

Created by

🇮🇳India abinshoby

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