magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Magento ver. 2.4.0 Cron scheduler not working XML site map.

Open vermarajesh60 opened this issue 4 years ago • 19 comments

I have setup cron scheduler to create dynamic sitemap.xml over the website it's not working manual is working.

Preconditions (*)

  1. Magento 2.4-develop
  2. Setup cron over the server

Steps to reproduce (*)

  1. Admin - Enable Sitemap (Stores - Configuration - Catalog - XML Sitemap)
  2. Generate sitemap (Marketing - Seo & Search - Sitemap - Add Site map and Generate) - Sitemap is generated in Magento Root/pub/sitemap.xml
  3. Setup and run Magento cron over the server

Expected result (*)

  1. Sitemap should be updated after running cron

Actual result (*)

  1. Sitemap is not getting updated from the Cron. Note: Manual sitemap generation is working fine

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

vermarajesh60 avatar Jun 04 '21 08:06 vermarajesh60

Hi @vermarajesh60. Thank you for your report. To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] avatar Jun 04 '21 08:06 m2-assistant[bot]

Hi @engcom-Echo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Jun 04 '21 13:06 m2-assistant[bot]

Hi @vermarajesh60 ,

Can you please elaborate the steps to reproduce and expected/actual result so that we can re-produce the same.

Thanks

engcom-Echo avatar Jun 04 '21 13:06 engcom-Echo

Hi Anirban,

Thank you for your reply.

I have just configured the xml sitemap setting in the admin section and manually generated the sitemap, after that i have set up the magento cron over the server but the sitemap was not updated from cron. I have watched sitemp after 2 -3 day but still the sitemap is not updated.

Even in the cron table there is no scheduler to update the sitemap.

Let me know if you need more clarification on the same.

Thanks again.

On Fri, Jun 4, 2021 at 7:21 PM Anirban Choudhury @.***> wrote:

Hi @vermarajesh60 https://github.com/vermarajesh60 ,

Can you please elaborate the steps to reproduce and expected/actual result so that we can re-produce the same.

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/33147#issuecomment-854738683, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULCME37AUVIFBTAUHRQPFDTRDK4TANCNFSM46CKCTBQ .

vermarajesh60 avatar Jun 06 '21 06:06 vermarajesh60

Hi Anirban,

Have you checked anything on the above problem ?. Let me know if there is anything required from my side.

On Sun, Jun 6, 2021 at 12:01 PM Rajesh Verma @.***> wrote:

Hi Anirban,

Thank you for your reply.

I have just configured the xml sitemap setting in the admin section and manually generated the sitemap, after that i have set up the magento cron over the server but the sitemap was not updated from cron. I have watched sitemp after 2 -3 day but still the sitemap is not updated.

Even in the cron table there is no scheduler to update the sitemap.

Let me know if you need more clarification on the same.

Thanks again.

On Fri, Jun 4, 2021 at 7:21 PM Anirban Choudhury @.***> wrote:

Hi @vermarajesh60 https://github.com/vermarajesh60 ,

Can you please elaborate the steps to reproduce and expected/actual result so that we can re-produce the same.

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/33147#issuecomment-854738683, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULCME37AUVIFBTAUHRQPFDTRDK4TANCNFSM46CKCTBQ .

vermarajesh60 avatar Jun 08 '21 00:06 vermarajesh60

Hi Anirban,

Have you found anything to solve this problem?.

On Tue, Jun 8, 2021 at 6:21 AM Rajesh Verma @.***> wrote:

Hi Anirban,

Have you checked anything on the above problem ?. Let me know if there is anything required from my side.

On Sun, Jun 6, 2021 at 12:01 PM Rajesh Verma @.***> wrote:

Hi Anirban,

Thank you for your reply.

I have just configured the xml sitemap setting in the admin section and manually generated the sitemap, after that i have set up the magento cron over the server but the sitemap was not updated from cron. I have watched sitemp after 2 -3 day but still the sitemap is not updated.

Even in the cron table there is no scheduler to update the sitemap.

Let me know if you need more clarification on the same.

Thanks again.

On Fri, Jun 4, 2021 at 7:21 PM Anirban Choudhury < @.***> wrote:

Hi @vermarajesh60 https://github.com/vermarajesh60 ,

Can you please elaborate the steps to reproduce and expected/actual result so that we can re-produce the same.

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/33147#issuecomment-854738683, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULCME37AUVIFBTAUHRQPFDTRDK4TANCNFSM46CKCTBQ .

vermarajesh60 avatar Jun 11 '21 06:06 vermarajesh60

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Jun 15 '21 07:06 m2-assistant[bot]

Verified the issue on Magento 2.4-develop version and the issue is reproducible. Steps to reproduce:

  1. Admin - Enable Sitemap (Stores - Configuration - Catalog - XML Sitemap)
  2. Generate sitemap (Marketing - Seo & Search - Sitemap - Add Site map and Generate) - Sitemap is generated in Magento Root/pub/sitemap.xml
  3. Setup and run Magento cron over the server Issue: Sitemap is not getting updated after running Cron jobs even after scheduled time.

engcom-November avatar Jun 23 '21 14:06 engcom-November

Are you guys looking into it?.

On Wed, Jun 23, 2021 at 8:27 PM Girija Bhavani Kudupudi < @.***> wrote:

Verified the issue on Magento 2.4-develop version and the issue is reproducible. Steps to reproduce:

  1. Admin - Enable Sitemap (Stores - Configuration - Catalog - XML Sitemap)
  2. Generate sitemap (Marketing - Seo & Search - Sitemap - Add Site map and Generate) - Sitemap is generated in Magento Root/pub/sitemap.xml
  3. Setup and run Magento cron over the server Issue: Sitemap is not getting updated after running Cron jobs even after scheduled time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/33147#issuecomment-866911357, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULCME6T5JRKC5GV2MTMWNTTUHY4ZANCNFSM46CKCTBQ .

vermarajesh60 avatar Jun 26 '21 08:06 vermarajesh60

:white_check_mark: Confirmed by @sdzhepa Thank you for verifying the issue. Based on the provided information internal tickets MC-42767 were created

Issue Available: @sdzhepa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

magento-engcom-team avatar Jul 01 '21 13:07 magento-engcom-team

@magento give me 2.4-develop instance

Bashev avatar Aug 27 '22 09:08 Bashev

Hi @Bashev. Thank you for your request. I'm working on Magento instance for you.

Hi @Bashev, here is your Magento Instance: https://f7a570c9b1f4e05c717549aa2304152b.instances.magento-community.engineering Admin access: https://f7a570c9b1f4e05c717549aa2304152b.instances.magento-community.engineering/admin_bb60 Login: 22bd1ea0 Password: 9c8bff6c3d52

this looks like to be fixed.

May cause problems if you are migrated from magento 1 and in the core_config_data you have migrated records for sitemaps.

Check SELECT * FROM core_config_data where path like 'crontab/default/jobs/sitemap_generate/%'; and remove all of them. After that will be triggered correct instance of Sitemap Observer.

Bashev avatar Aug 27 '22 11:08 Bashev

Is there any update on this? We are running into the same issue on 2.4.4-p2. Any workaround?

May cause problems if you are migrated from magento 1 and in the core_config_data you have migrated records for sitemaps.

Check SELECT * FROM core_config_data where path like 'crontab/default/jobs/sitemap_generate/%'; and remove all of them. After that will be triggered correct instance of Sitemap Observer.

For us, this is not the case (not migrated from Magento 1, and that query returns 0 rows)

lauraseidler avatar Nov 11 '22 10:11 lauraseidler

Any update on this? I have a similar issue on Magento community 2.4.5 - cron is running successfully, but there's no sitemap job

mpurish avatar Mar 09 '23 12:03 mpurish

@mpurish : for the time being use the Wyomind cron schedular module for cron job schedules and executions.

mohammedceil avatar May 12 '23 12:05 mohammedceil

Any updates? Same issue there.

JMLucas96 avatar Jan 02 '24 09:01 JMLucas96

Keep in mind, that the sitemap generation does not update the file if nothing is changed. I tried to schedule the sitemap generation a few times and it only changed the file If I created a new product/cms page it can add to the sitemap.

frekvent-szabolcs avatar Feb 29 '24 08:02 frekvent-szabolcs

Hi @vermarajesh60,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is no more reproducible.Kindly refer the screenshots.

Screenshot 2024-06-17 at 09 31 26

The sitemap got generated after running Cron.

Hence we are closing this issue.

Thanks.

engcom-Bravo avatar Jun 17 '24 04:06 engcom-Bravo