Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APM Down on cloudservice #405

Open
adamzwoniarski opened this issue Aug 16, 2023 · 5 comments
Open

APM Down on cloudservice #405

adamzwoniarski opened this issue Aug 16, 2023 · 5 comments

Comments

@adamzwoniarski
Copy link

Hi,
Recently we are facing ConstraintViolationException while creating a property under the script file.

This was working fine before

  1. Install the package , check the installation Active logs console in the package manager .
  2. Manually create a property under a file with name "apm:launchRunModes".

The same works fine in SDK as well as with Rapid Dev environment

Stack trace:
[org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED 14.08.2023 14:27:09.663 [cm-p35702-e148937-aem-author-65944dfdc9-r2qrt] ERROR [92.29.91.38 [1692023229659] POST /bin/apm/scripts/upload HTTP/1.1] com.cognifide.apm.core.scripts.ScriptStorageImpl No matching property definition: apm:launchRunModes = [] javax.jcr.nodetype.ConstraintViolationException: No matching property definition: apm:launchRunModes = [] at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.setProperty(NodeDelegate.java:514) [org.apache.jackrabbit.oak-jcr:1.52.0.T20230629133256-25c01b8] at org.apache.jackrabbit.oak.jcr.session.NodeImpl$39.perform(NodeImpl.java:1495) [org.apache.jackrabbit.oak-jcr:1.52.0.T20230629133256-25c01b8] ....

Passed to adobe as well, could you please assist?

@dprzybyl
Copy link
Collaborator

Hi,
please add following details:

  • which version do you use
  • APM dependency part from pom.xml
  • steps to reproduce

@adamzwoniarski
Copy link
Author

Hey, here you are

APM Version latest : https://github.com/wttech/APM/releases/tag/apm-5.6.25

AEM Cloud Version : 2023.7.12874.20230726T072051Z

Steps to reproduce : The latest APM version should be installed on AEM cloud sandbox instance (NOT on local SDK or RDE), and try to create new script file, and the save fails with 500 error request in the console.

@dprzybyl
Copy link
Collaborator

Do you use this dependency?

<dependency>
  <groupId>com.cognifide.apm.crx</groupId>
  <artifactId>apm-ui.apps.cloud</artifactId>
  <version>5.6.26</version>
  <type>zip</type>
</dependency> 

@adamzwoniarski
Copy link
Author

adamzwoniarski commented Aug 22, 2023 via email

@adamzwoniarski
Copy link
Author

Hey,
Seems the root cause for this issue is the bold one below is missing in cloud env, and exists in local.

It is there in the repoinit configs of APM package but it's not getting updated to the cloud env.

[apm:Script]
mixin

  • apm:launchEnabled (boolean)
  • apm:launchMode (string)
  • apm:launchEnvironment (string)
    - apm:launchRunModes (string) multiple
  • apm:launchHook (string)
  • apm:launchSchedule (date)
  • apm:lastExecuted (date)
  • apm:checksum (string)
  • apm:verified (string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants