Unable to seed sitemaps

Created on 6 February 2023, almost 2 years ago
Updated 8 February 2023, almost 2 years ago

Problem/Motivation

Getting error when trying to seed sitemaps which seems to be due to the base of the URL being the ddev domain rather than http://localhost.

TYPE	quant
DATE	Sunday, February 5, 2023 - 16:10
USER	admin
LOCATION	https://quantdrupal7rc4.ddev.site/batch?id=88&op=do_nojs&op=do
REFERRER	https://quantdrupal7rc4.ddev.site/batch?op=start&id=88
MESSAGE	Unable to seed https://quantdrupal7rc4.ddev.site/sitemap.xml Service Temporarily Unavailable {"request":"GET \/sitemap.xml HTTP\/1.0\r\nHost: www.example.com\r\nUser-Agent: Quant (+http:\/\/quantcdn.io)\r\nquant-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoicXVhbnQiLCJyb3V0ZSI6Ilwvc2l0ZW1hcC54bWwiLCJleHBpcmVzIjoiMTY3NTY0MjI4MSJ9.yUJC7_jkm4R8zLBiEl1NKzn0RkMSXlW9dwJaOlW_WZ0\r\n\r\n","data":"<!DOCTYPE html>\n<html>\n<head>\n <title>503: No ddev back-end site available<\/title>\n <style>\n body {\n width: 35em;\n margin: 0 auto;\n font-family: Tahoma, Verdana, Arial, sans-serif;\n }\n <\/style>\n<\/head>\n<body>\n<h1>503: No ddev back-end site available.<\/h1>\n<p>This is the ddev-router container: There is no back-end webserver at the URL you specified. You may want to use \"ddev start\" to start the site.<\/p>\n<\/body>\n<\/html>\n","protocol":"HTTP\/1.1","status_message":"Service Temporarily Unavailable","headers":{"server":"nginx\/1.20.1","date":"Mon, 06 Feb 2023 00:10:21 GMT","content-type":"text\/html","content-length":"479","connection":"close","etag":"\"62981019-1df\""},"code":"503","error":"Service Temporarily Unavailable"}
SEVERITY	error
HOSTNAME	
OPERATIONS	

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant, quant_api, quant_sitemap and xmlsitemap modules
  • Use devel_generate to generate content
  • Generate the sitemap.xml file and check it's working
  • Go to Seed tab (/admin/config/services/quant/seed)
  • Check Export sitemaps and Trigger the batch
  • Click Save configuration button
  • Look at Quant Dashboard and see sitemap.xml isn't listed
  • Look at logs
  • Result: Error above is shown
  • Expected result: Sitemaps should get seeded
  • Proposed resolution

    Fix sitemap seeding.

    Remaining tasks

    1. Debug
    2. Update code
    3. Review and test
    4. Commit :)

    User interface changes

    API changes

    Data model changes

    πŸ› Bug report
    Status

    Fixed

    Version

    1.0

    Component

    Code

    Created by

    πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

    Comments & Activities

    Production build 0.71.5 2024