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

2018-05-14 07:34:15 GMT <alfbot> angelborroy: Sent 6 days, 23 hours, and 23 minutes ago: <yreg> nice work with the production ready docker stuff

2018-05-14 09:15:56 GMT <yreg> Morning everyone

2018-05-14 09:20:21 GMT <Proto> hi

2018-05-14 09:21:44 GMT <Proto> hi

2018-05-14 09:29:43 GMT <Proto_> hi

2018-05-14 09:31:39 GMT <Proto_> I've installed Alfresco Cont. Services 5.2, Eclipse Oxygen 3, and linked alfresco tomcat to eclipse. So when I run the tomcat server from eclipse, i can browse http://localhost:8080/share....

2018-05-14 09:33:29 GMT <Proto_> How to create and configure a new Dynamic Web Project in eclipse where I could modify my installed Alfresco Content Services and that changes are saved without restarting tomcat?

2018-05-14 09:35:11 GMT <Proto_> Am I still online?

2018-05-14 09:49:32 GMT <yreg> Proto_, check the SDK documentation on docs.alfresco.com

2018-05-14 09:49:53 GMT <yreg> You basically need to have either rebel or hot swap in order to achieve that

2018-05-14 09:50:34 GMT <yreg> JRebel is more powerful and supports more use cases (reloading context files for instance) but on the other hand it is crazy slow

2018-05-14 09:51:05 GMT <yreg> Hotswap is a bit limited feature wise but it does the job, and it does it pretty well considering it is opensource

2018-05-14 09:51:13 GMT <yreg> And free

2018-05-14 09:55:02 GMT <Proto_> hmmm i've expired my jrebel usage already :/

2018-05-14 09:55:38 GMT <Proto_> ill try hotswap then, I guess its documeted in docs.alfresco.com...

2018-05-14 09:57:08 GMT <angelborroy> hotswap does not work with Share archetypes

2018-05-14 09:57:11 GMT <Proto_> by the way, I'm still stuck in the previous step

2018-05-14 09:57:39 GMT <angelborroy> using SDk 2.2.0 with spring loaded everything works fine

2018-05-14 09:57:42 GMT <Proto_> still must recopile info about that tool :/

2018-05-14 09:58:23 GMT <Proto_> SDK 2.2.0 is compatible with new dynamic web project?

2018-05-14 09:58:55 GMT <Proto_> I mean, a comrade told me to develp without using maven

2018-05-14 09:59:02 GMT <angelborroy> I don’t know what “new dynamic web” means

2018-05-14 09:59:11 GMT <Proto_> and use "Create New Dynamic Project" instead

2018-05-14 09:59:22 GMT <angelborroy> Alfresco SDK is based in Maven archetyps

2018-05-14 10:25:15 GMT <Proto_> Ok, now I am told to try with Maven Projects that generates an AMP for the Installed Alfresco...

2018-05-14 10:25:41 GMT <Proto_> thank you yreg and angelborroy!

2018-05-14 11:04:27 GMT <fwu> hi all

2018-05-14 11:37:46 GMT <mmuller_> hiho

2018-05-14 12:02:50 GMT <kkore> can I get share id of document by using cmis service

2018-05-14 12:02:52 GMT <kkore> in java

2018-05-14 12:13:40 GMT <kkore> I am creating document through cmis java now I am trying for shareid of document how we'll get that ?

2018-05-14 12:27:10 GMT <angelborroy> kkore quicksharemodel is an aspect

2018-05-14 12:27:27 GMT <angelborroy> qshare:sharedId

2018-05-14 12:27:32 GMT <angelborroy> is the name of the property

2018-05-14 12:27:42 GMT <angelborroy> you can retrieve properties from cmis client

2018-05-14 12:27:49 GMT <angelborroy> or try a simple SQL-like query

2018-05-14 12:28:05 GMT <angelborroy> “select qshare:sharedId from qshare:shared"

2018-05-14 12:34:33 GMT <yreg> Hey TEKA !

2018-05-14 12:34:38 GMT <yreg> Nice to see you around

2018-05-14 12:35:54 GMT <angelborroy> Who is TEKA?

2018-05-14 12:58:29 GMT <TEKA> yreg, hello dear ! you'll see me all the time, I am focusing on alfresco now :)

2018-05-14 12:59:29 GMT <TEKA> angelborroy, I am a former colleague of yreg :)

2018-05-14 12:59:41 GMT <angelborroy> I see… welcome TEKA!

2018-05-14 13:00:46 GMT <TEKA> angelborroy, thanks :)

2018-05-14 13:39:42 GMT <kkore> angelborroy: I tried wih cmis client like this newDoc = folder.createDocument(properties, contentStream, VersioningState.MAJOR); system.out.println(newDoc.getProperties()); but it's not giving shareid property in it

2018-05-14 13:40:24 GMT <angelborroy> So you want to “click” shared id action from CMIS, right?

2018-05-14 13:41:09 GMT <angelborroy> I mean you want to generate a Shared ID for a new document from a CMIS call

2018-05-14 13:41:22 GMT <angelborroy> This cannot be done, you must use Alfresco Native API

2018-05-14 13:43:04 GMT <kkore> No I creating document from otherportal then after creation of document from cmis I want to get the share id .

2018-05-14 13:43:38 GMT <angelborroy> again: you cannot create a Shared ID from CMIS

2018-05-14 13:43:50 GMT <angelborroy> you need Alfresco Native API to create a Shared ID

2018-05-14 13:46:28 GMT <angelborroy> kkore By default an Alfresco node has no Shared ID, it’s required to call an action to generate such ID

2018-05-14 13:46:49 GMT <angelborroy> So you’ll need to invoke this action before trying to recover Shared ID from CMIS

2018-05-14 14:32:38 GMT <fwu> ppl where I can find the new chat for adf?

2018-05-14 14:42:05 GMT <MorganP_> gitter

2018-05-14 14:42:25 GMT <MorganP_> https://gitter.im/Alfresco/alfresco-ng2-components

2018-05-14 14:42:26 GMT <alfbot> Title: Alfresco/alfresco-ng2-components - Gitter (at gitter.im)

2018-05-14 14:54:19 GMT <fwu> MorganP_ thank you!

2018-05-14 15:44:57 GMT <kkore> angelborroy: if I use Quickshareservice API then I am getting after creation of document noderef https://bpaste.net/show/147b76f464ef now I will try for cmis

2018-05-14 15:44:58 GMT <alfbot> Title: show at bpaste (at bpaste.net)

2018-05-14 15:45:40 GMT <angelborroy> kkore I understand nothing about your paste...

2018-05-14 15:45:49 GMT <angelborroy> … you are using a Java API Service

2018-05-14 15:45:56 GMT <angelborroy> And how is this related with CMIS?

2018-05-14 15:46:00 GMT <angelborroy> I don’t see the point

2018-05-14 15:48:44 GMT <angelborroy> As I said before the only way to get that property in CMIS is to retrieve the properties of the aspect qshare:shared

2018-05-14 15:49:09 GMT <angelborroy> kkore there is no specific API or Service in CMIS to deal with QuickShare nodes

2018-05-14 15:49:31 GMT <angelborroy> CMIS is an standard API, so it has no spec for vendor specific APIs

2018-05-14 15:50:14 GMT <kkore> angelborroy, ok I will do like that as you said

2018-05-14 16:50:11 GMT <eswbitto> I'm using 5.1 and I'm having an issue where my memory shows only 4GB, but I have it configured in the /tomcat/bin/setenv.sh to 10GB anyone else have/had this problem?

2018-05-14 17:38:02 GMT <douglascrp> eswbitto, check if this is not your case https://community.alfresco.com/docs/DOC-7366-default-memory-allocation-issue-in-alfresco-ce-201707-ga-aka-52

2018-05-14 17:38:04 GMT <alfbot> Title: Default memory allocation issue in Alfresco CE ... | Alfresco Community (at community.alfresco.com)

2018-05-14 17:49:29 GMT <eswbitto> douglascrp I've seen that link, but I don't think it is related. I'm still on 5.1 and the ctl.sh file doesn't have any java options to export.

2018-05-14 17:49:49 GMT <eswbitto> all of the options are in setenv.sh

2018-05-14 17:51:17 GMT <douglascrp> eswbitto, ok, I was just confirming

2018-05-14 17:51:29 GMT <douglascrp> check the java process info

2018-05-14 17:51:44 GMT <douglascrp> check if you don't have the duplicate memory config in the startup command

2018-05-14 17:51:53 GMT <douglascrp> if you find it there, you can do a grep search

2018-05-14 17:53:38 GMT <eswbitto> douglascrp you are talking about the command: ps -ef | grep java?

2018-05-14 17:54:33 GMT <douglascrp> yes

2018-05-14 17:54:44 GMT <douglascrp> if you have set it as 10 GB, you have to see it there

2018-05-14 17:55:04 GMT <douglascrp> but if it is using only 4 GB, the explicit amount of memory set should be there twoo

2018-05-14 17:55:33 GMT <eswbitto> this is what comes up

2018-05-14 17:55:35 GMT <eswbitto> https://pastebin.com/8tr98Lfg

2018-05-14 17:55:36 GMT <alfbot> Title: 00:07:08 /opt/alfresco51/java/bin/java -Djava.util.logging.config.file=/opt/alfr - Pastebin.com (at pastebin.com)

2018-05-14 17:55:38 GMT <douglascrp> *too

2018-05-14 17:56:23 GMT <douglascrp> weird, there is no memory configuration in there

2018-05-14 17:56:40 GMT <douglascrp> so it seems not even the setenv.sh is being executed

2018-05-14 17:56:47 GMT <eswbitto> hmm

2018-05-14 17:56:48 GMT <douglascrp> does the file have execution permission?

2018-05-14 17:57:02 GMT <eswbitto> one sec I'll show you what I have in setenv.sh

2018-05-14 17:57:07 GMT <douglascrp> ok

2018-05-14 17:58:07 GMT <douglascrp> if you compare the output of your ps command with the one on the link I sent you before, you will see what you should be seeing there

2018-05-14 17:58:17 GMT <douglascrp> something like "Xms512M -Xmx8192M"

2018-05-14 17:58:19 GMT <eswbitto> https://pastebin.com/fJBfp3uC

2018-05-14 17:58:20 GMT <alfbot> Title: # Load Tomcat Native Library LD_LIBRARY_PATH=/opt/alfresco51/common/lib:$LD_LIB - Pastebin.com (at pastebin.com)

2018-05-14 17:58:25 GMT <douglascrp> if it is not there, then nothing is being set

2018-05-14 17:59:20 GMT <douglascrp> ah, you configuration is killing itself, it seems

2018-05-14 17:59:28 GMT <douglascrp> you set this: JAVA_OPTS="-XX:MaxPermSize:256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Djava.awt.headless=true -Dalfresco.home=/opt/alfresco51 -XX:ReservedCodeCacheSize=128m $JAVA_OPTS "

2018-05-14 17:59:30 GMT <eswbitto> hmm...how do I fix this?

2018-05-14 17:59:36 GMT <douglascrp> then you set this: JAVA_OPTS="-Xms512M -Xmx10240M $JAVA_OPTS " # java-memory-settings

2018-05-14 17:59:44 GMT <douglascrp> and then JAVA_OPTS="-Djavamelody.authorized-users=admin:privatehaha"

2018-05-14 18:00:06 GMT <douglascrp> you should have something like JAVA_OPTS="$JAVA_OPTS ...."

2018-05-14 18:00:17 GMT <douglascrp> like, you should be concatenating the config

2018-05-14 18:00:17 GMT <eswbitto> instead of the three lines?

2018-05-14 18:00:21 GMT <eswbitto> ah ok

2018-05-14 18:00:22 GMT <douglascrp> and not replacing them

2018-05-14 18:00:31 GMT <douglascrp> so, first like, just JAVA_OPTS

2018-05-14 18:00:56 GMT <douglascrp> for the second and third, JAVA_OPTS="$JAVA_OPTS whatever you want to include"

2018-05-14 18:01:37 GMT <douglascrp> actually, your second like is ok, as the $JAVA_OPTS is present

2018-05-14 18:01:45 GMT <douglascrp> the third one is the one breaking everything

2018-05-14 18:02:18 GMT <eswbitto> ok

2018-05-14 18:02:39 GMT <douglascrp> or you should simply try to put everything in a single line

2018-05-14 18:03:41 GMT <eswbitto> something like this?

2018-05-14 18:03:42 GMT <eswbitto> https://pastebin.com/Qkh0qBAY

2018-05-14 18:03:43 GMT <alfbot> Title: JAVA_OPTS="-XX:MaxPermSize:256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC - - Pastebin.com (at pastebin.com)

2018-05-14 18:04:54 GMT <douglascrp> yes, like that

2018-05-14 18:05:12 GMT <eswbitto> coolbeans

2018-05-14 18:05:13 GMT <douglascrp> but if you are going to use a single line, there is no need to include the $JAVA_OPTS inside of the config

2018-05-14 18:05:18 GMT <eswbitto> ok

2018-05-14 18:05:29 GMT <douglascrp> as you are not "reusing" any previous config defined in that variable

2018-05-14 18:05:47 GMT <eswbitto> that makes sense

2018-05-14 18:05:51 GMT <douglascrp> so: JAVA_OPTS="-XX:MaxPermSize:256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Djava.awt.headless=true -Dalfresco.home=/opt/alfresco51 -XX:ReservedCodeCacheSize=128m -Xms512M -Xmx10240M -Djavamelody.authorized-users=admin:privatehaha"

2018-05-14 18:06:22 GMT <douglascrp> and just a tip, for the -Xms param, you can use 10G instead of the M

2018-05-14 18:06:28 GMT <douglascrp> way simpler to ready

2018-05-14 18:06:33 GMT <douglascrp> *read

2018-05-14 18:06:58 GMT <eswbitto> ok :P

2018-05-14 18:07:17 GMT <douglascrp> try it and let me know if it works now

2018-05-14 18:08:22 GMT <eswbitto> restarting the service....see you in like.....2 hours :P

2018-05-14 18:11:19 GMT <douglascrp> wow

2018-05-14 18:11:19 GMT <douglascrp> :D

2018-05-14 18:14:33 GMT <eswbitto> douglascrp so that fixed things....phew....thanks for the help

2018-05-14 18:18:04 GMT <douglascrp> eswbitto, np dude

2018-05-14 19:01:02 GMT <Alf> Hi All, I am tryign to setup Alfresco with Elasticsearch. is there any existing use case where Alfresco-Elasticsearch is used?

2018-05-14 19:02:11 GMT <Alf> i initiated embedded elasticsearch, but i was not able to point Kibana to embedded elasticsearch.. bcoz alfresco is using older version of elasticsearch

2018-05-14 19:02:45 GMT <Alf> let me know if any one has implemented any use case around Alfresco-Kibana which i can refer. thanks.

End of Daily Log

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