Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2019-05-08 08:25:35 GMT <angelborroy> ~later tell AFaust Finally I’ve implemented your approach: when SOLR_USE_SSL env var is not set or is equals to false, then SOLR is using plain HTTP. When SOLR_USE_SSL is true SOLR is using SSL/TLS. However, default ZIP distribution is released with SSL/TLS, so some configuration is required to run it in plain HTTP. Thanks!

2019-05-08 08:25:35 GMT <alfbot> angelborroy: The operation succeeded.

2019-05-08 08:26:57 GMT <angelborroy> ~later tell AFaust so current Docker Compose files will work as before, with no modifications.

2019-05-08 08:26:57 GMT <alfbot> angelborroy: The operation succeeded.

2019-05-08 09:20:15 GMT <alfbot> AFaust: Sent 54 minutes ago: <angelborroy> Finally I’ve implemented your approach: when SOLR_USE_SSL env var is not set or is equals to false, then SOLR is using plain HTTP. When SOLR_USE_SSL is true SOLR is using SSL/TLS. However, default ZIP distribution is released with SSL/TLS, so some configuration is required to run it in plain HTTP. Thanks!

2019-05-08 09:20:16 GMT <alfbot> AFaust: Sent 53 minutes ago: <angelborroy> so current Docker Compose files will work as before, with no modifications.

2019-05-08 13:50:14 GMT <alfresco-discord> <Spino> Hi everyone ! I'm trying to connecting to Alfresco through JMX on ACS 5.2.3, i have setted alfresco.jmx.connector.enabled=true inside the alfresco-global.properties and i have used the VM Option -Dcom.sun.management.jmxremote to enable JMX Remote, but when i try to connect through JConsole using the JMX url service:jmx:rmi:///jndi/rmi://<hostname>:50500/alfresco/jmxrmi and deafult username and

2019-05-08 13:50:14 GMT <alfresco-discord> password, it doesn't work.

2019-05-08 13:51:29 GMT <alfresco-discord> <Spino> then... does anybody knows a deterministic way to configure Alfresco JMX on Alfresco 5.2.x? It seems to be not easy at all... 😅

2019-05-08 13:52:06 GMT <angelborroy> @Spino have you tried official documentation?

2019-05-08 13:52:07 GMT <angelborroy> http://docs.alfresco.com/5.2/tasks/jmx-access.html

2019-05-08 13:52:08 GMT <alfbot> Title:Connecting through JMX | Alfresco Documentation (at docs.alfresco.com)

2019-05-08 13:52:55 GMT <alfresco-discord> <Spino> Yes , i followed it step by step but nothing..

2019-05-08 13:53:17 GMT <angelborroy> So you created an “alfresco-jmxrmi.password” file, right?

2019-05-08 13:54:24 GMT <alfresco-discord> <Spino> Yes

2019-05-08 13:57:04 GMT <angelborroy> And you are using controlRole/new_pw to access JMX?

2019-05-08 14:00:34 GMT <alfresco-discord> <Spino> Yes, in fact if i check with netstat, the port 50500 is listening, i have configured the alfresco.jmx.dir with the absolute path of the config folder that contains "alfresco-jmxrmi.password " and "alfresco-jmxrmi.access"

2019-05-08 14:01:32 GMT <angelborroy> Can you try JConsole from “localhost”

2019-05-08 14:01:33 GMT <angelborroy> ?

2019-05-08 14:03:04 GMT <angelborroy> Probably you need to declare your remote host

2019-05-08 14:03:14 GMT <alfresco-discord> <Spino> ?

2019-05-08 14:03:36 GMT <angelborroy> com.sun.management.jmxremote.host=<YOUR CLIENT IP>

2019-05-08 14:03:47 GMT <angelborroy> com.sun.management.jmxremote.local.only=false

2019-05-08 14:07:22 GMT <angelborroy> This can be also relevant: https://www.parashift.com.au/2013/08/07/accessing-the-alfresco-jmx-console-remotely-on-linux/

2019-05-08 14:07:24 GMT <alfbot> Title:Accessing the Alfresco JMX Console remotely on Linux (at www.parashift.com.au)

2019-05-08 14:08:01 GMT <angelborroy> Or this one: https://www.appnovation.com/blog/using-ssh-tunneling-jmx-alfresco

2019-05-08 14:08:02 GMT <alfbot> Title:Using SSH tunneling with JMX for Alfresco | Appnovation (at www.appnovation.com)

2019-05-08 14:08:31 GMT <alfresco-discord> <Spino> Priceless, thank you so much , it works.

2019-05-08 14:08:53 GMT <angelborroy> It’s a common problem with JMX

2019-05-08 14:09:04 GMT <angelborroy> I don’t know why we don’t include that on documentation

2019-05-08 14:09:20 GMT <angelborroy> Can you open a ticket on http://docs.alfresco.com/5.2/tasks/jmx-access.html with your problem?

2019-05-08 14:09:21 GMT <alfbot> Title:Connecting through JMX | Alfresco Documentation (at docs.alfresco.com)

2019-05-08 14:09:34 GMT <angelborroy> Using the form “Let us know what you think of the documentation"

2019-05-08 14:09:36 GMT <alfresco-discord> <Spino> Yes, sure

2019-05-08 14:09:42 GMT <angelborroy> Thanks

2019-05-08 14:19:29 GMT <alfresco-discord> <Spino> https://issues.alfresco.com/jira/browse/ALF-22083

2019-05-08 14:19:38 GMT <alfresco-discord> <Spino> Just created . 👌

2019-05-08 14:19:52 GMT <alfresco-discord> <Spino> Feel free to modify or update this issue

2019-05-08 14:20:20 GMT <angelborroy> Ok, thanks

2019-05-08 18:53:10 GMT <gdeverlant> greetings

2019-05-08 18:53:25 GMT <gdeverlant> can someone tell me why it is so complicated to install alfresco 6

2019-05-08 18:53:42 GMT <gdeverlant> i followed the tutorial on the web site for windows with tomcat 8

2019-05-08 18:57:11 GMT <gdeverlant> im on windows 10 and i tried 2 times

2019-05-08 18:57:16 GMT <gdeverlant> it fail badly

2019-05-08 19:07:50 GMT <gdeverlant> there is no installer like 5.2 or is there one I missed?

2019-05-08 19:08:26 GMT <alfresco-discord> <douglascrp> gdeverlant, no, there is no installer anymore

2019-05-08 19:09:01 GMT <gdeverlant> it is so unclear the documentation is really bad

2019-05-08 19:09:22 GMT <gdeverlant> why do they write text they could do videos it is easier

2019-05-08 19:13:32 GMT <gdeverlant> did someone achieved the installation on windows

2019-05-08 19:13:36 GMT <gdeverlant> with version 6+

2019-05-08 19:28:16 GMT <gdeverlant> to be honest at least it should be simple

2019-05-08 19:28:50 GMT <gdeverlant> or they could deliver a ready to use naked zip with alfresco and tomcat 8

2019-05-08 19:29:00 GMT <gdeverlant> ready to just launch

2019-05-08 19:41:34 GMT <phaleth> gdeverlant: try docker

2019-05-08 20:13:03 GMT <gdeverlant> any link ?

2019-05-08 20:15:00 GMT <phaleth> https://hub.docker.com/r/alfresco/alfresco-content-repository-community

2019-05-08 20:15:01 GMT <alfbot> Title:Docker Hub (at hub.docker.com)

2019-05-08 20:15:11 GMT <phaleth> https://github.com/Alfresco/acs-community-packaging/blob/master/docker-alfresco/Dockerfile

2019-05-08 20:15:12 GMT <alfbot> Title:acs-community-packaging/Dockerfile at master · Alfresco/acs-community-packaging · GitHub (at github.com)

2019-05-08 21:23:38 GMT <gdeverlant> i even tried with 5.2 installer and it doesnt work

2019-05-08 21:23:54 GMT <gdeverlant> im getting Cannot find Alfresco Repository on this server. (Does this application have access to alfresco-global.properties? Does this application have cross-context permissions?)

2019-05-08 21:28:25 GMT <gdeverlant> oh my bad

2019-05-08 21:28:37 GMT <gdeverlant> 5.2 works

2019-05-08 21:33:10 GMT <gdeverlant> damn i dont have windows 10 pro

2019-05-08 21:33:13 GMT <gdeverlant> so i cant use docker

2019-05-08 22:14:34 GMT <alfresco-discord> <jpotts> I have a customer that wants to use docker-compose in production for an enterprise clustered deployment of 6.0.1

2019-05-08 22:14:49 GMT <alfresco-discord> <jpotts> They have zero interest in Kubernetes and are moving away from AWS

2019-05-08 22:15:08 GMT <alfresco-discord> <jpotts> So this will run in their data center

2019-05-08 22:15:52 GMT <alfresco-discord> <jpotts> The question is this: What do I specify for the alfresco.cluster.interface?

2019-05-08 22:16:31 GMT <alfresco-discord> <jpotts> Oh, I should have also said that the two acs containers will be on different hosts

2019-05-08 22:21:27 GMT <alfresco-discord> <jpotts> Maybe "*" will work?

2019-05-08 22:22:25 GMT <xkahn> I have a scheduled action which runs a javascript file. It appears that if the script runs for more than 60 seconds, everything is aborted and the transaction is rolled back.

2019-05-08 22:22:27 GMT <xkahn> Is that true?

2019-05-08 22:23:00 GMT <alfresco-discord> <jpotts> xkahn: I have run scripts from the JS Console before that ran MUCH longer than 60s

2019-05-08 22:23:20 GMT <xkahn> Right now we have it configured to run only once (the query is simple: PATH:"/app:company_home") but it acts on other files.

2019-05-08 22:23:26 GMT <AFaust> jpotts: Oh yeah, clustering inside Docker without an overlay or Kubernetes-managed network across multiple hosts is "fun"...

2019-05-08 22:23:46 GMT <xkahn> jpotts: ! In the JS console the same thing happens. We're limited to 60 seconds.

2019-05-08 22:24:09 GMT <xkahn> jpotts: I wonder if it's the load balancer proxy we're using

2019-05-08 22:24:24 GMT <xkahn> jpotts: But that wouldn't explain scheduled actions

2019-05-08 22:25:03 GMT <alfresco-discord> <jpotts> AFaust: Yeah, I'm getting that impression. Right now I'm a bit frustrated with Alfresco's stance which seems to be "k8s or you're on your own"

2019-05-08 22:25:43 GMT <AFaust> So "*" for the interface is likely your best option. Apparently, using "host" network mode would also be the easiest with regards to dealing with the Enterprise cluster auto-discovery / self-registration bits, because otherwise I doubt it will work without specifying "initialMembers", as I do not believe Enterprise is capable of handling address translation from Docker internal to external

2019-05-08 22:26:34 GMT <AFaust> I mean from the private to public IPs and back

2019-05-08 22:26:46 GMT <alfresco-discord> <jpotts> AFaust: I'm trying it out right now, I'll report back

2019-05-08 22:27:18 GMT <AFaust> I can definitely say I had my own bit of fun dealing with address translation in my own clustering module...

2019-05-08 22:29:00 GMT <alfresco-discord> <jpotts> I think 6 may be the point where all but the largest customers finally get fed up and say F this, it shouldn't be this hard.

2019-05-08 22:30:11 GMT <xkahn> AFaust: jpotts: Do either of you have any ideas why I might be seeing 60 second timeouts for requests? (I can test against individual nodes to see if I get the same limits...)

2019-05-08 22:30:33 GMT <xkahn> But I ASSUME scheduled actions are not run as a request back to the server

2019-05-08 22:33:11 GMT <AFaust> Yeah, 6+ and DBP is all about "we are only listening to what the large, phat customers want from now on"

2019-05-08 22:34:26 GMT <AFaust> xkahn: So a script run from JavaScript may "say" it failed after 60s due to Share -> Repository timeout, but it will always run to its completion (success or other sort of failure)

2019-05-08 22:35:30 GMT <AFaust> In the most current JavaScript Console version, there is also a feature / enhancement of mine which no longer suffers from the timeout, as the UI does not wait for the final result of the execution, but regularly checks its status in intervals, so it is not blocked and thus affected by timeout.

2019-05-08 22:35:32 GMT <xkahn> AFaust: hmmm... Should be easy to test that.

2019-05-08 22:35:49 GMT <xkahn> AFaust: Oh! We have that version

2019-05-08 22:35:53 GMT <AFaust> (to be fair, I made that enhancement in 2014 or 2015)

2019-05-08 22:35:58 GMT <xkahn> AFaust: and we're getting the timeout issue

2019-05-08 22:36:04 GMT <xkahn> hmmmm

2019-05-08 22:36:06 GMT <AFaust> That should not be the case...

2019-05-08 22:37:05 GMT <AFaust> Make sure you pull 0.6 from Maven Central - don't use the latest release on GitHub

2019-05-08 22:38:51 GMT <AFaust> A scheduled action though always runs on the Repository and should never be affected by any of the Share -> Repository connection timeouts, or any other execution timeouts (provided it does not perform some timeout-based operations on its own)

2019-05-08 22:39:37 GMT <AFaust> Does your scheduled action maybe perform some SOLR queries and suffer from connection timeouts that way?

2019-05-08 22:58:06 GMT <xkahn> AFaust: No, not really.

2019-05-08 22:58:17 GMT <xkahn> The queries should all be quick.

2019-05-08 22:58:40 GMT <xkahn> I'm trying to run some long running scripts in the js console.

2019-05-08 22:58:50 GMT <xkahn> Got stuck trying to get setTimeout to work. :-/

2019-05-08 22:58:58 GMT <xkahn> I'll just do it a different way

2019-05-08 23:06:41 GMT <AFaust> Hmm, setTimeout in JavaScript console? You know that Repository-tier JS does not support browser functions like setTimeout, right?

2019-05-08 23:07:14 GMT <AFaust> jpotts: Any chance seeing you at the hack-a-thon on Friday, or too busy with projects to join?

2019-05-08 23:24:28 GMT <alfresco-discord> <jpotts> AFaust: I am too busy this Friday. I'm looking forward to seeing what new stuff comes out of it though

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco