[SIMPROVE-5] Active Siteimprove Plugin behind firewall causing no page editing possible Created: 25/Aug/20  Updated: 03/Dec/20  Resolved: 06/Oct/20

Status: Closed
Project: Siteimprove
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2, 1.1.6

Type: Bug Priority: Critical
Reporter: Doreen Heigener Assignee: Adrien Manzoni
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Author environment behind a firewall


Attachments: JPEG File 25-08-_2020_16-48-44.jpg     Text File GuiceUtils_error.log     Text File PackServicesLicenceModul__error.log     File magnolia-siteimprove-1.2-SNAPSHOT.jar     Text File siteimprove_504.log    
Issue Links:
Relates
relates to SIMPROVE-6 Siteimprove Plugin does not use syste... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Sprint 3

 Description   

We activated the siteimprove plugin, which is working fine on an local magnolia author instance. Activating it on a development environment behind a firewall, leads to a 504 Bad Gateway Error and none working ui widget for editing pages. You kann not simply open a page to edit content anymore.  
See screenshot and attached log file.

We would suggest, in an error case, simply the included plugin does not work, without causing other side effects.



 Comments   
Comment by Adrien Manzoni [ 03/Sep/20 ]

Hi dheigener

I have generated a SNAPSHOT version 1.2-SNAPSHOT

The page editor should load now properly the page even if the siteimprove rest api is not accessible.

Could you please give it a try ?

Thanks

Adrien

Comment by Doreen Heigener [ 03/Sep/20 ]

Hi @Adrien Manzoni,
thanks a lot for the response.
I can not receive the snapshot version, when I change it from version 1.1.5 to 1.2-SNAPSHOT I receive the following error:
Failed to execute goal on project <projectname>-webapp: Could not resolve dependencies for project <projectname>:<projectname>-webapp:war:1.36.0-SNAPSHOT: Failure to find info.magnolia.seo:magnolia-siteimprove:jar:1.2-SNAPSHOT

Any ideas?
Kind regards,
Doreen

Comment by Adrien Manzoni [ 03/Sep/20 ]

Could you please attach your effective Maven settings.xml?

Comment by Doreen Heigener [ 04/Sep/20 ]

Hi Adrien,
I could solve the settings issue, so the snapshot could be download. Thanks for the hint.
Now the build is successful, but the instance won't start due to a error:
2020-09-04 13:28:40,194 ERROR info.magnolia.init.MagnoliaServletContextListener : Oops, Magnolia could not be started
java.lang.NoClassDefFoundError: info/magnolia/services/licence/PackServicesLicenceModulePackServicesLicenceModul__error.log

Kind regards
Doreen

Comment by Adrien Manzoni [ 04/Sep/20 ]

<!-- Services licence module -->
<dependency>
  <groupId>info.magnolia</groupId>
  <artifactId>magnolia-services-licence</artifactId>
  <version>1.0.2</version>
</dependency>

Hi Doreen,

The missing class comes from that dependency. It should be retrieved together with the siteimprove module but it will not hurt to explicitly add it.

Best regards

Adrien

 

Comment by Doreen Heigener [ 04/Sep/20 ]

Hi Andrien,

can you please give me the exact mvn settings to repo-address the snapshot? 
I have truble on different environments having different repo addresses configured. 
So what are the "<repository>" and the "<pluginRepository>" settings?
Since I ran into an errors again, it would be really helpful to know in which repo all the snapshot-release dependencies are available.

Kind regards,

Doreen

Comment by Adrien Manzoni [ 09/Sep/20 ]

Hi dheigener

For simplicity sake, I have attached the SNAPSHOT jar file. The dependencies should be the same anyway.

Let me know if stg goes wrong

Regards

Adrien

Comment by Doreen Heigener [ 09/Sep/20 ]

Hi Adrian,

thank you, locally I've already added the jar manually, but on our server environments I am not able to do this. Therefore I really need the repo where I can get the siteimprove SNAPSHOT version and all other dependencies if needed (with magnolia version 6.1.4), so I could stop guessing repo urls with try and error.

So these settings won't work:

<repository>
<id>magnolia.public.group</id>
<url>https://nexus.magnolia-cms.com/content/groups/public</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>magnolia.enterprise.releases</id>
<url>https://nexus.magnolia-cms.com/content/repositories/magnolia.enterprise.releases</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>magnolia.enterprise.snapshots</id>
<url>https://nexus.magnolia-cms.com/content/repositories/magnolia.enterprise.snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

Thank you and kind regards,

Doreen

Comment by Adrien Manzoni [ 09/Sep/20 ]

Sure, the 2 repositories to add are:

 

Comment by Doreen Heigener [ 09/Sep/20 ]

Thanks a lot!
the permission settings are not set to public 
 
...Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Authentication failed for https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.releases/info/magnolia/seo/magnolia-siteimprove/1.2-SNAPSHOT/magnolia-siteimprove-1.2-SNAPSHOT.pom 401 Unauthorized

Can you please have a look?

Comment by Adrien Manzoni [ 10/Sep/20 ]

Hi dheigener

the pom is actually located in magnolia.incubator.snapshots

Could you please set the snapshots enabled to false for the magnolia.incubator.releases ?

 

Comment by Doreen Heigener [ 11/Sep/20 ]

Hi Adrien,
thank you for the hint. I did so, but unfortunately the error still occurs but for the snapshot repo:

"[INFO] Downloading from magnolia.incubator.snapshots: https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots/info/magnolia/seo/magnolia-siteimprove/1.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata info.magnolia.seo:magnolia-siteimprove:1.2-SNAPSHOT/maven-metadata.xml from/to magnolia.incubator.snapshots (https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots): Authentication failed for https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots/info/magnolia/seo/magnolia-siteimprove/1.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized
[WARNING] Failure to transfer info.magnolia.seo:magnolia-siteimprove:1.2-SNAPSHOT/maven-metadata.xml from https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots was cached in the local repository, resolution will not be reattempted until the update interval of magnolia.incubator.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata info.magnolia.seo:magnolia-siteimprove:1.2-SNAPSHOT/maven-metadata.xml from/to magnolia.incubator.snapshots (https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots): Authentication failed for https://nexus.magnolia-cms.com/content/repositories/magnolia.incubator.snapshots/info/magnolia/seo/magnolia-siteimprove/1.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized"

Comment by Adrien Manzoni [ 11/Sep/20 ]

Hi dheigener

Could you please tell me which user you use to connect to our Nexus ?

Comment by Doreen Heigener [ 14/Sep/20 ]

Hey Adrien,

thanks for the hint, I've checked the settings and the user wasn't configured for the new but restricted repo, the last failure could be solved by that.
Best regards,

Doreen

Comment by Adrien Manzoni [ 14/Sep/20 ]

Perfect

Please let me know the outcome of your tests, I'll generate a stable version if everything goes well.

Comment by Doreen Heigener [ 14/Sep/20 ]

Hey Adrien,

unfortunately I'm still facing problems on magnolia startup. GuiceUtils_error.log

Do you have an advice for me, how to proceed?
Kind regards,

Doreen

Comment by Adrien Manzoni [ 14/Sep/20 ]

Hi Doreen,

Sorry I misunderstood, I thought you were using Magnolia 6.2.

Could you please change the version from 1.2-SNAPSHOT to  1.1.6-SNAPSHOT ?

 

That would be the version made for 6.1

 

Regards

Adrien 

Comment by Doreen Heigener [ 15/Sep/20 ]

Thank you Adrien,

this last change helped a lot. We could successfully install the plugin on our developing system and the page editing ist still possible, although the plugin itself is not visible and still there are some errors regarding the connection.
But I will move with this issue to SIMPROVE-6

Thank you and kind regards,

Doreen

Generated at Mon Feb 12 10:56:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.