Skip to content

[AL2] Author-Standby promotion process failed to start AEM Author Service #427

@mbloch1986

Description

@mbloch1986

Describe the bug
On Amazon Linux 2 the process of promoting the author-standby as author-primary does not work properly. It failed at the stage to start the AEM Author service after it was previously stopped.

To Reproduce
Steps to reproduce the behavior:

  1. Run the Script /opt/shinesolutions/aem-tools/promote-author-standby-to-primary.sh on the author-standby
  2. Wait until script failed

Expected behavior
The Author-Standby promotion should have finished successfully.

Screenshots

Environment (please complete the following information if relevant):

  • AEM OpenCloud possible all versions
  • Amazon Linux 2

Additional context
it seems like that we should manage all service interactions in Amazon Linux 2 via the systemctl command instead of using the service command.

https://github.com/shinesolutions/puppet-aem-curator/blob/master/manifests/action_promote_author_standby_to_primary.pp#L44

Trying to follow the process manually works

  • systemctl stop aem-author
  • Update config files
  • systemctl start aem-author

As an alternative during the process of promoting the author-standby as author-primary, while the process waits for the login/welcome page to appear you can run the following commands in the following order to start AEM:

systemctl stop aem-author <- This will fail as the service is already stopped

systemctl start aem-author

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions