XMLSitemap + S3FS issue?

Created on 28 September 2023, about 1 year ago

Problem/Motivation

Hi all,
Thank you for all the amazing work that's gone into this module I'm not sure if this is a XMLSitemap issue or an S3FS issue, but I wanted to start here.

Currently our sitemap only has one link in it (I do have a number of entities selected on the entities page). I'm trying to get the system to create a full sitemap, but whenever I run the drush rebuild command, this is the output I get (see below). There is a 2.xml.gz file in the folder, but 2.xml never gets created. Furthermore, when I open the GZ file, the XML file inside is empty.

Both the XML and XMLwriter PHP extensions are enabled.

>  [notice] Starting XML Sitemap generation. Memory usage: 36.5 MB.
>  [notice] The file  was not deleted because it does not exist.
>  [notice] Generated https://nicic.gov/sitemap.xml?page=1 with 1 links.
>  [warning] Error executing "GetObject" on "https://s3.amazonaws.com/BUCKET/WEBSITE/files/xmlsitemap/SITEID/2.xml"; AWS HTTP error: Client error: `GET https://s3.amazonaws.com/BUCKET/WEBSITE/files/xmlsitemap/SITEID/2.xml` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: M3065FW59KGM5TZ1) - <?xml version="1.0" encoding="UTF-8"?>
> <Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>nicic.gov/files/xmlsitemap/SITEID/2.xml</Key><RequestId>M3065FW59KGM5TZ1</RequestId><HostId>RANDOMSTRING</HostId></Error> StreamWrapper.php:764
>  [warning] file_get_contents(s3://xmlsitemap/SITEID/2.xml): Failed to open stream: "Drupal\s3fs\StreamWrapper\S3fsStream::stream_open" call failed XmlSitemapWriter.php:278
>  [notice] Finished XML Sitemap generation in 0 sec. Memory usage: 48.5 MB.
>  [notice] Message: The sitemaps were regenerated.

Please let me know if you need any additional info.

πŸ’¬ Support request
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

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

Comments & Activities

Production build 0.71.5 2024