Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
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.
More help is available in this list of resources.
2018-07-24 06:09:43 GMT <Chandu> Hello All, Can you please help on call activiti in APS. how to pass called element, in and out parameters to the process? I did not find any example in google.
2018-07-24 07:20:06 GMT <alfresco-discord> <yreg> Good morning everyone
2018-07-24 07:34:20 GMT <alfresco-discord> <mikel_asla> morning!
2018-07-24 07:34:28 GMT <alfresco-discord> <mikel_asla> Egunon
2018-07-24 08:03:14 GMT <alfresco-discord> <digcat> morning all
2018-07-24 08:03:35 GMT <alfresco-discord> <digcat> i just caught Axels tweet,
2018-07-24 08:04:52 GMT <alfresco-discord> <digcat> My 201806 GA Maven gripe-summary: #alfresco WAR = renamed + different version scheme Share = old name + version scheme ROOT WAR / MMT JAR = old name + different version scheme "alfresco-platform-distribution" BOM = dead acs-community-packaging = fails (missing public AOS 1.2.0)
2018-07-24 08:05:14 GMT <alfresco-discord> <digcat> @Francesco Corti hey hope your day is going well, did you see this ?
2018-07-24 08:14:53 GMT * DarkStar1 greets you all "Good summer morning"
2018-07-24 08:17:32 GMT <AFaust> digcat: Francesco is already aware of some of this since we discussed it multiple times during Office Hours
2018-07-24 08:18:50 GMT <AFaust> Since I started adapting my own Docker builds on the weekend and ran into some more inconsistencies / issues (i.e. failing build of the Alfresco project) I just wanted to summarise it in a public form, and luckily, I managed to fit it all in one tweet (was quite a fight though)
2018-07-24 08:19:14 GMT <alfresco-discord> <digcat> ha nice
2018-07-24 08:40:02 GMT <Chandu> Can anyone give the solution which i ask to before.
2018-07-24 08:47:53 GMT <dgradecak> regarding the dockerized installation: at this moment I am building my own alfresco war, with the usual packaging and just creating my own dockerfile with it. Since in the repository docker nothing else is done than applying mmt
2018-07-24 08:49:44 GMT <AFaust> I guess it is the same for most regular use cases...
2018-07-24 08:50:33 GMT <dgradecak> I did not check twitter, what are the issues you are having?
2018-07-24 08:50:36 GMT <AFaust> The only thing I am doing a bit different in my Docker setup is that I have a base image that has no WAR / AMPS et al, and is capable of dynamically loading those from a Maven repository and aggregating it on initialisation
2018-07-24 08:51:04 GMT <AFaust> Oh, I was just complaining about the inconsistency of the Maven artifacts now, and that their official Docker build is failing...
2018-07-24 08:51:09 GMT <dgradecak> aha mainly you are doing a packaging in the docker itself
2018-07-24 08:51:26 GMT <AFaust> Yes, but only in the base image and only if not already packaged with a pre-built WAR
2018-07-24 08:51:51 GMT <dgradecak> I see. I am also heavily using bitbucket pipelines which work exactly that way
2018-07-24 08:52:08 GMT <AFaust> For real systems, I would still built a Docker image with pre-packaged application, but at least for smaller customers / demo use cases, it does not require to build an image for every minor use
2018-07-24 08:52:11 GMT <dgradecak> about the inconsistencies I completely agree
2018-07-24 08:53:05 GMT <alfresco-discord> <mikel_asla> Also i think that AMPS/JARS is another consideration, you will have different combinations on each use case....
2018-07-24 08:53:35 GMT <dgradecak> indeed, that is what I am also doing but I do not assemble anything in docker itself, just use the COPY command to copy the final war
2018-07-24 08:54:00 GMT <alfresco-discord> <mikel_asla> i use docker multi-stage building for that
2018-07-24 08:54:22 GMT <alfresco-discord> <mikel_asla> so you don't end up with the AMP + "augmented" WAR
2018-07-24 08:54:40 GMT <angelborroy> mikel_asla, AFaust is producing customised WARs including directly source code, so that approach is not valid
2018-07-24 08:57:22 GMT <alfresco-discord> <mikel_asla> I see, it looks like a big complexity tought
2018-07-24 08:57:55 GMT <Chandu> Hi @angelborroy, Can you please help me on this.
2018-07-24 09:01:08 GMT <AFaust> mikel_asla: I don't know where you see the complexity. It is just a simple base image which has a small init script to load WAR / AMP / JAR based on ENV variables, install AMP into WAR, move JAR into modules directory, delete AMPs and move WAR into webapp
2018-07-24 09:02:59 GMT <AFaust> And again, for stable, production systems I would still build a pre-packaged image (derived from this base)...
2018-07-24 09:03:43 GMT <AFaust> I just don't want to end up with 1000 images / tags and whatnot because I have been forced to build one for every minor difference
2018-07-24 09:03:58 GMT <alfresco-discord> <mikel_asla> Looks nice. At the end is not that different to what we do.... so you mean using a ENTRYPOINT script on your base image that covers all your needs, or so 😃
2018-07-24 09:04:59 GMT <alfresco-discord> <mikel_asla> let's see what we see on the next TTL
2018-07-24 09:05:11 GMT <AFaust> Something like that, though not an ENTRYPOINT - I use baseimage from phusion (Ubuntu-based) which has a bit of a custom init system
2018-07-24 09:07:48 GMT <AFaust> I have yet to delete my old Git repository (update on the weekend led to a restructuring), so I can point to the old state here: https://github.com/Acosix/docker-images/tree/baseimage-alfresco-repository
2018-07-24 09:07:49 GMT <alfbot> Title:GitHub - Acosix/docker-images at baseimage-alfresco-repository (at github.com)
2018-07-24 09:11:51 GMT <alfresco-discord> <mikel_asla> nice stuff @AFaust
2018-07-24 09:11:54 GMT <AFaust> New state has not been pushed yet
2018-07-24 09:12:19 GMT <AFaust> the prepareWarFiles.js is a Nashorn script to download the artifacts from a Maven repository
2018-07-24 09:12:53 GMT <alfresco-discord> <mikel_asla> Like i said, we've done similar ENV sustitution with docker entrypoint functionallity
2018-07-24 09:13:32 GMT <alfresco-discord> <mikel_asla> like for example porstgres does on his official image (always a good reference i guess)
2018-07-24 09:14:10 GMT <alfresco-discord> <mikel_asla> https://github.com/docker-library/postgres/blob/5d0b6adfd8c4b967d9fbbdc0fb96c869fcaba4f0/11/docker-entrypoint.sh
2018-07-24 09:14:11 GMT <alfbot> Title:postgres/docker-entrypoint.sh at 5d0b6adfd8c4b967d9fbbdc0fb96c869fcaba4f0 · docker-library/postgres · GitHub (at github.com)
2018-07-24 09:15:08 GMT <AFaust> I must admit, I have not looked at other images (much) for inspiration, but indeed that looks quite similar
2018-07-24 09:15:27 GMT <AFaust> I guess one comes naturally to the same kind of approaches when all things are considered properly
2018-07-24 09:18:30 GMT <dgradecak> I also use the entrypoint approach for my images
2018-07-24 09:18:41 GMT <dgradecak> that works also easily with any spring boot apps etc
2018-07-24 09:19:04 GMT <AFaust> Oh, and mikel_asla, I guess I am avoiding multi-stage builds altogether by using Maven as my build wrapper, so a lot of stuff already happens outside of the actual Docker build
2018-07-24 09:27:56 GMT <alfresco-discord> <mikel_asla> i see, and do you use any docker-maven plugin?
2018-07-24 09:28:18 GMT <alfresco-discord> <mikel_asla> (just learning here) 😛
2018-07-24 09:34:23 GMT <rkchan> Hi I have created a project in ADF(with APS) I have deployed that project in APS workspace when I try to open my project it is not opening .Is it support ADF project in APS workspace ? please tell me .
2018-07-24 09:36:53 GMT <dgradecak> mikel_asla: which plugin do you use? I am using the spotify's one, fabric8 is not of need for me atm
2018-07-24 10:11:37 GMT <AFaust> mkel_asla: same as dgradecak for me, using the spotify one (though an earlier, no longer actively developed version, since I had issues when trying to use a private Docker registry with the newer one)
2018-07-24 10:12:30 GMT <AFaust> Planning to at least try out fabric8 some time to determine effective differences / adaptation need if a switch ever becomes relevant
2018-07-24 11:08:23 GMT <kkore> getting A value for the mandatory parameter star_rating has not been set on the rule item rate-node error with custom ftl
2018-07-24 11:08:49 GMT <kkore> where to set that star_rating param ???
2018-07-24 11:17:09 GMT <kkore> not returning ftl value to param star_rating my ftl and share https://bpaste.net/show/7a86df3b5f54
2018-07-24 11:17:10 GMT <alfbot> Title:show at bpaste (at bpaste.net)
2018-07-24 11:46:50 GMT <kkore> if I use oob ftl like selectone.ftl then it's works instead of custom ftl https://bpaste.net/show/a6fc299da6a4
2018-07-24 11:46:51 GMT <alfbot> Title:show at bpaste (at bpaste.net)
2018-07-24 12:36:01 GMT <kkore> https://community.alfresco.com/message/835421-actionexecuter-mandatory-parameter-with-custom-ftl
2018-07-24 12:36:02 GMT <alfbot> Title:actionExecuter mandatory parameter with custom ftl | Alfresco Community (at community.alfresco.com)
2018-07-24 12:38:32 GMT <AFaust> kkore: So far you have not shown any code which is supposed to ensure that whatever is selected in the star rating control of yours is included in the "save" request to the backend. I doubt there is such code and that is the cause for your error
2018-07-24 12:39:13 GMT <AFaust> If you look at the selectone.ftl, it includes a form field which is then submitted along with all the other form fields. I am missing something like this in your widget (can be a hidden field you set via your jQuery logic)
2018-07-24 12:41:34 GMT <kkore> AFaust: only that ftl is having no hidden code in ftl it self I am just returning $(this).attr('data-value') which contains rating value
2018-07-24 12:42:46 GMT <AFaust> I saw that, but did not understand what purpose that is meant to have...
2018-07-24 12:43:15 GMT <AFaust> That is not interacting with any of the Alfresco form handling and so appears to be pointless to me
2018-07-24 12:43:48 GMT <AFaust> Again, to ensure your values are actually transmitted during save, the easiest option is to have a form field (hidden) included in your markup containing the selected value
2018-07-24 12:44:10 GMT <kkore> yes actual I struck there not getting how to return that value
2018-07-24 12:54:26 GMT <richet_dan> Hello to all guys, I'm finally trying to grapple with the deployment of alfresco 6 with docker compose. These are the first attempts to use Docker, Could you help me with the template shared by @angelborroy? (Https://github.com/keensoft/alfresco-docker-template/tree/master/templates/201806-GA) I copied the entire folder 201806-GA into my file system Centos 7 and positioned myself in the path with the file docker-compose.yml and
2018-07-24 12:54:27 GMT <alfbot> Title:alfresco-docker-template/templates/201806-GA at master · keensoft/alfresco-docker-template · GitHub (at github.com)
2018-07-24 12:55:17 GMT <richet_dan> But I recieve the following error: "ERROR: Service 'alfresco' failed to build: COPY failed: stat / var / lib / docker / tmp / docker-builder237294534 / target / amps: no such file or directory". The standard ACS Community deployment with docker compose it works. What's wrong? Can you give me some entry point? Thanks
2018-07-24 12:55:53 GMT <angelborroy> richet_dan thanks for pointing that
2018-07-24 12:56:07 GMT <angelborroy> it looks like I forgot to upload some directories
2018-07-24 12:56:09 GMT <angelborroy> let me fix it
2018-07-24 12:57:20 GMT <richet_dan> oh... thanks a lot to you Angel
2018-07-24 13:00:16 GMT <angelborroy> richet_dan I’ve updated GitHub, now it should be working
2018-07-24 13:00:28 GMT <angelborroy> richet_dan I’m launching a test in my local
2018-07-24 13:01:09 GMT <richet_dan> I try it immediately and let you know
2018-07-24 13:09:08 GMT <dgradecak> angelborroy: did you see that alfresco community acs went back to use docker version 2 deployment? because of memory issues
2018-07-24 13:09:30 GMT <angelborroy> I saw it, but I tested this approach in the past without success
2018-07-24 13:09:46 GMT <angelborroy> now I’m limiting resources inside the container, by tweaking postgresql, tomcat and jetty
2018-07-24 13:09:50 GMT <angelborroy> It looks safer for me
2018-07-24 13:10:27 GMT <dgradecak> ok, I am using the version 2 also, works better with all the alf containers, at least my experiance
2018-07-24 13:10:43 GMT <angelborroy> Why “better”?
2018-07-24 13:10:58 GMT <alfresco-discord> <mikel_asla> you can use memory settings with compose version 3, there is a "--compatibility" flag for that. no need to downgrade to 2
2018-07-24 13:11:27 GMT <angelborroy> anyway using limits in Docker Compose does not work in real deployments
2018-07-24 13:11:46 GMT <dgradecak> mikel_asla, did not check that one, will give it a go
2018-07-24 13:12:04 GMT <alfresco-discord> <mikel_asla> yes with swarm, i'm just writing a post about it
2018-07-24 13:12:19 GMT <dgradecak> paste the link please ;)
2018-07-24 13:12:30 GMT <angelborroy> Who uses
2018-07-24 13:12:37 GMT <angelborroy> Swarm nowadays?
2018-07-24 13:12:43 GMT <angelborroy> It’s a discontinued product...
2018-07-24 13:13:15 GMT <alfresco-discord> <mikel_asla> that's what kubernetes people says 😛
2018-07-24 13:13:33 GMT <angelborroy> no, that’s what Docker people says…
2018-07-24 13:13:36 GMT <angelborroy> … let me find it
2018-07-24 13:15:17 GMT <angelborroy> ah, ok Docker Cloud is what it’s discontinued...
2018-07-24 13:15:31 GMT <angelborroy> … but this is the only hosting for Swarm, so it’s more ore less the same
2018-07-24 13:16:17 GMT <alfresco-discord> <mikel_asla> dgradecak: https://github.com/docker/compose/pull/5684
2018-07-24 13:16:19 GMT <alfbot> Title:Compatibility mode by shin- · Pull Request #5684 · docker/compose · GitHub (at github.com)
2018-07-24 13:18:53 GMT <dgradecak> thank you mikel
2018-07-24 13:19:25 GMT <dgradecak> btw, does anyone know if the old audit urls are deprecated, since there are those new ones?
2018-07-24 13:20:28 GMT <dgradecak> regarding the version issue: "The v3 format is specifically designed to run with Swarm mode and the docker stack features"
2018-07-24 13:23:46 GMT <dgradecak> seems I will need to dive in something I did not want to :)
2018-07-24 13:37:36 GMT <richet_dan> @angelborroy now it's working (thank you so much!) but I think there is still some issue with solr6 cores (both alfresco and archive) initialization. Now I'm doing a "docker system prune" and retrying. I'll keep you in touch.
2018-07-24 13:40:04 GMT <angelborroy> richet_dan what OS are you using as host for Docker?
2018-07-24 13:40:37 GMT <richet_dan> @angelborroy i'm using CentOs 7
2018-07-24 13:40:54 GMT <angelborroy> Ok so you have to give permissions for UID 1000 to solr_data folder
2018-07-24 13:41:11 GMT <angelborroy> as solr6 container is using a “solr” user with UID 1000
2018-07-24 13:41:41 GMT <angelborroy> just find your UID 1000 on your centos and run a “chown -R” on solr_data folder
2018-07-24 13:46:55 GMT <richet_dan> ah ok. thank you. is it possible for you to customize the script which create the folder in order to do that automatically?
2018-07-24 13:47:23 GMT <angelborroy> no, you have to perform this operation locally in your host
2018-07-24 13:47:29 GMT <angelborroy> it’s not a Docker issue
2018-07-24 13:54:31 GMT <richet_dan> it's logged the following error
2018-07-24 13:54:53 GMT <richet_dan> org.apache.solr.common.SolrException: java.nio.file.AccessDeniedException: /opt/alfresco-search-services/data/alfresco
2018-07-24 13:55:17 GMT <angelborroy> who is you “uid=1000” user in your centos?
2018-07-24 13:59:53 GMT <richet_dan> i don't know, there is only root user
2018-07-24 14:00:08 GMT <angelborroy> so you have to create a user with uid 1000
2018-07-24 14:00:23 GMT <richet_dan> ok
2018-07-24 14:00:26 GMT <angelborroy> and make a “chow -R” to that user on your local “data/solr_data” folder
2018-07-24 14:00:35 GMT <angelborroy> before running “docker-compose"
2018-07-24 14:09:37 GMT <richet_dan> on. now it worked
2018-07-24 14:10:11 GMT <richet_dan> thank you. this is a very useful entry point.
2018-07-24 14:10:35 GMT <angelborroy> you’re welcome
2018-07-24 14:10:41 GMT <angelborroy> any feedback will be appreciated
2018-07-24 14:12:04 GMT <richet_dan> It is exactlu what i was looking for, but I have to understand the job you have done. next step is to switch to mysql image or maria db.
2018-07-24 14:13:20 GMT <richet_dan> @angelborroy. your template is using apache over tomcat?
2018-07-24 14:19:47 GMT <richet_dan> I've noticed that alfresco 6 (also with official acs-community-deployment) does not generates preview (and thumbnail) of .docx file.
2018-07-24 14:20:07 GMT <richet_dan> someone has noticed this issue?
2018-07-24 14:34:06 GMT <AxelFaust> dgradecak Not aware of any Audit-related deprecations. Are you talking about audit URLs now part of ReST API (haven't checked)?
2018-07-24 14:36:55 GMT <AxelFaust> Ok, yes, you mean the audit operations added in Alfresco 5.2.3 for ReST v1
2018-07-24 14:38:09 GMT <AxelFaust> They look like almost 1-to-1 conversions, only with some alignment in how parameters / selectors are being used.
2018-07-24 14:38:27 GMT <AxelFaust> And one operation does not make any sense to me in a generalised audit API
2018-07-24 15:20:08 GMT <fwu> hello all
2018-07-24 15:29:42 GMT <fwu> ppl, looking to the different languages of the search rest api, is the Alfresco Full Text Search (FTS) related with searching for content with some text on it or it is just a name given to a specific search mechanism?
2018-07-24 15:30:19 GMT <fwu> with this name I would only relate this kind of search for text search, but it seems we can do much more with it
2018-07-24 15:30:37 GMT <AxelFaust> It is just the name for the search mechanism - you can use it to search for metadata and/or text in content
2018-07-24 15:31:15 GMT <AxelFaust> It has always been named that way since I believe Alfresco 3.0 in 2009 or so...
2018-07-24 15:33:56 GMT <fwu> axelfaust, nice! But then what would be the best language to use with the rest API? I understand that cmis have the portability advantage, but should I only use this language?
2018-07-24 15:34:28 GMT <fwu> for instance, on the ADF platform, it seems Alfresco is using AFTS. Is this for some special reason?
2018-07-24 15:35:09 GMT <fwu> what about performance indicators? Is there any?
2018-07-24 15:40:22 GMT <AxelFaust> Use whatever is best for your use case...
2018-07-24 15:40:43 GMT <AxelFaust> There is no real difference in performance as the runtime execution for both is almost identical after query rewriting
2018-07-24 15:41:30 GMT <AxelFaust> And though CMIS may have a portability advantage, its restrictions (based on being SQL-based) sometimes disqualify it for certain use cases or at least make those use cases extremely hard to deal with
2018-07-24 15:42:17 GMT <AxelFaust> Think about queries like this: TYPE:"X" AND (ASPECT:"B" OR my:property:"X") - you cannot express well that in a single CMIS query
2018-07-24 15:42:29 GMT <AxelFaust> well <-> that
2018-07-24 15:42:51 GMT <fwu> yes, its true
2018-07-24 15:51:10 GMT <fwu> axelfaust, and what about date ranges with AFTS? are they poossible and do they return expected results?
2018-07-24 15:51:46 GMT <fwu> on the API explorer I only see an example using "range" Is this the only way to search by range of dates?
2018-07-24 15:51:55 GMT <AxelFaust> Date ranges work in AFTS, but only when SOLR has been setup. They do not work with AFTS against the database, whereas with CMIS, date ranges can be executed against the DB
2018-07-24 15:52:08 GMT <AxelFaust> That is also a minor difference to consider when deciding which language to use
2018-07-24 15:52:20 GMT <AxelFaust> It definitely is not a hard "always use X" case
2018-07-24 15:52:47 GMT <fwu> but where do I specify to execute agains the databse or not?
2018-07-24 15:53:18 GMT <AxelFaust> You cannot via the ReST API. Based on the query Alfresco will determine what to try / use
2018-07-24 15:53:27 GMT <AxelFaust> Via Java API you can specify what to use
2018-07-24 15:54:19 GMT <AxelFaust> This is one of the many things where the ReST API has been left incomplete
2018-07-24 15:55:27 GMT <AxelFaust> And quite few restrictions have been put in the ReST API without necessity, either because someone did not think hard enough or simply ignored specific use cases... (i.e. custom stores, custom query languages etc.)
2018-07-24 15:55:40 GMT <fwu> then it means the date ranges may or may not execute as expected?
2018-07-24 15:56:23 GMT <AxelFaust> If you do not have SOLR setup and use AFTS with date ranges, the query will fail. If you use CMIS, date ranges should always work
2018-07-24 15:56:46 GMT <AxelFaust> Since SOLR is part of any proper Alfresco setup, there should be no real difference...
2018-07-24 15:57:11 GMT <fwu> well I do believe Im using solr
2018-07-24 15:57:47 GMT <fwu> with standard installations solr is setup
2018-07-24 16:05:09 GMT <fwu> axelfaust, just a last question. What is the correct syntax to wuery a date range? Do I really need to use the "range" part?
2018-07-24 16:31:41 GMT <fwu> brb
The other logs are at http://esplins.org/hash_alfresco