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.
2017-06-30 06:27:28 GMT <ayushi> I am working on alfresco simple OCR add-on available on https://github.com/keensoft/alfresco-simple-ocr earlier I have some issues regarding the tiff and jpeg files but after making some changes in script and the java code and after resolving some environment issues,I have made it work in case of pdf files, a new pdf file with updated version in place of earlier pdf file is visible on the alfresco share page but in case of tiff an
2017-06-30 06:27:29 GMT <alfbot> Title: GitHub - keensoft/alfresco-simple-ocr: Simple OCR action for Alfresco (at github.com)
2017-06-30 09:10:27 GMT <MorganP> Hey guys. On some of my Alfresco environments when I perform a start of Alfresco, it sometimes takes at least 5/10 minutes for the first login to be working while on other environments, it is just 30s usually. They are all in ubuntu, same version, same stack, aso... Any idea what might be causing so much delay in the start? I know that the cache has a lot to do in this but still 5 or 10min for the first login... That seems pretty hug
2017-06-30 09:15:01 GMT <mrks_js> Hi MorganP
2017-06-30 09:15:05 GMT <AFaust> Well - the cache itself typically plays a minor role here as there is actually no "active initialisation" of caches...
2017-06-30 09:15:14 GMT <mrks_js> what version? how many cores?
2017-06-30 09:15:34 GMT <yreg> MorganP, caches shouldn't have any thing to do with this, unless you you have a warmup job / a component loading a lot of nodes during its initialization
2017-06-30 09:15:38 GMT <AFaust> The biggest issues are components that do intensive, DB-bound initialisation and a potentially latency-riddled DB connection
2017-06-30 09:16:47 GMT <AFaust> e.g. you have the web scripts initialisation which recursively checks some folders in Data Dictionary, you have the message service which recursively checks some folders in Data Dictionary, you have the IMAP service which recursively preloads details about all folders in IMAP exposed folders
2017-06-30 09:17:26 GMT <MorganP> 5.2.e on ubuntu 14.04 with 2 cores 6gb of ram, aso
2017-06-30 09:17:34 GMT <yreg> AFaust, interesting, I haven't actually thought about that in particular
2017-06-30 09:17:41 GMT <MorganP> I don't have much custom, no intensive bootstrap stuff, aso
2017-06-30 09:17:50 GMT <MorganP> Also Alfresco is up & running in the logs
2017-06-30 09:18:09 GMT <AFaust> In the past I have seen one customer system with an extreme startup time because some Alfresco component was over-eagerly starting transactions and the DB latency meant that a typically cheap routine took ages just for starting-closing no-op transactions
2017-06-30 09:18:14 GMT <yreg> MorganP, is it virtualized infra ?
2017-06-30 09:18:40 GMT <MorganP> Yes... This VM also doesn't help
2017-06-30 09:18:47 GMT <MorganP> but I don't have much choice on this part
2017-06-30 09:19:23 GMT <yreg> MorganP, might be that for some VMs other vVMs of the same host are extensively using resources (disk IO/ RAM bandwith ...)
2017-06-30 09:19:55 GMT <MorganP> Yeah might be but that's not really the impression I have
2017-06-30 09:20:01 GMT <AFaust> MorganP: My advice in this case - use a JDBC logger to collect the DB queries Alfresco submits during startup and check what is either a) taking too long or b) being done excessively
2017-06-30 09:20:14 GMT <MorganP> This is on a low priority group through...
2017-06-30 09:20:35 GMT <MorganP> I will see in a few weeks when I will have upgraded our prod how it goes there
2017-06-30 09:21:00 GMT <MorganP> Yep will try that AFaust
2017-06-30 09:21:03 GMT <AFaust> Disk IO is not that relevant during startup (usually only for the Spring XML + Class loading)
2017-06-30 09:21:23 GMT <yreg> MorganP, is solr being hosted on the same VM/host does it have relatively bigger index than other VMs not shoing this performance issues ?
2017-06-30 09:21:26 GMT <AFaust> ...unless there are custom components that do a lot of loading from disk resources (you never know)
2017-06-30 09:21:46 GMT <yreg> might be solr warmup eating up all your perf during startup
2017-06-30 09:21:48 GMT <AFaust> ... or unless SOLR is run in the same Tomcat, which is a big NO-NO for me...
2017-06-30 09:22:35 GMT <MorganP> Nop it's not on the same vm
2017-06-30 09:23:10 GMT <yreg> same host
2017-06-30 09:23:50 GMT <MorganP> The only customs I have are some common addons like the share-site-creators, the OOTB Support Tools, Java-script console and my own addon which contains data model, 2 custom actions on share and some look&feel custom
2017-06-30 09:24:06 GMT <MorganP> So from my point of view, no real reason for high usage
2017-06-30 09:26:53 GMT <AFaust> Yeah, all of these addons are known to be low-impact
2017-06-30 09:33:37 GMT <yreg> MorganP, it's either infra or DB that is crippling your startup. FYI, you can hook a cpu sampler on startup and examine what is taking so long. If you use something as advanced as JProfiler you can even detect block where java was actually hanging waiting on some external op (IO, network ....)
2017-06-30 09:34:48 GMT <yreg> MorganP, for that you can start your jvm in debug mode with suspend flag, hook your sampler, then connect debugger to un-suspend
2017-06-30 09:34:56 GMT <mrks_js> 2 cores with 1 thread per core or 2 core with 2 threads per core?
2017-06-30 09:36:04 GMT <yreg> mrks_js, IMHO wouldn't matter much, as he stated that he had the same stack/infra on multiple servers with symptoms only showing up on some not all
2017-06-30 09:41:47 GMT <MorganP> Yes these servers have been upgraded from 4.2.c to 5.2.e recently and only some have this behavior
2017-06-30 09:41:55 GMT <AFaust> Hmm - looking at https://issues.alfresco.com/jira/browse/ACE-5499 I can't stop but wonder how much more messed up versioning is going to get if such "features" are implemented...
2017-06-30 09:43:30 GMT <MorganP> Is that really happening?
2017-06-30 09:43:38 GMT <MorganP> Last time I checked, it only created versions when closing the file
2017-06-30 09:47:42 GMT <MorganP> Ok maybe I didn't save twice because it does indeed create several versions, even if you keep the file opened
2017-06-30 09:47:45 GMT <MorganP> That's ugly
2017-06-30 09:48:59 GMT <AFaust> If you do the default "Edit online" then yes, every save is a new version - which is the proper, clean approach to take.
2017-06-30 09:49:31 GMT <MorganP> in AOS
2017-06-30 09:49:33 GMT <AFaust> There is a reason why Office also provides a checkout / checkin feature for documents opened via edit online
2017-06-30 09:49:48 GMT <AFaust> Namely for users to control if they want to have a new version for every save.
2017-06-30 09:50:20 GMT <AFaust> This feature request is basically a capitulation of Alfresco in the face of unqualified users that do not use the tool correctly...
2017-06-30 09:51:34 GMT <MorganP> Yes but from my point of view the huge majority of office users are just opening, updating, saving, updating, saving, aso... closing
2017-06-30 09:51:51 GMT <AFaust> The problem is: There is no "close file" event for Alfresco to react to...
2017-06-30 09:52:46 GMT <AFaust> Every Office version behaves slightly different when it comes to Edit Online, and even the same Office version on the same Windows version can behave differently from user to user depending on some registry magic...
2017-06-30 09:53:37 GMT <AFaust> Case in point: Just yesterday I received a ticket from a customer where 1 in 100 users with identical Windows / Office setup has an issue that whenever the document is closed in Office (from Edit Online) the lock will not be removed from that document.
2017-06-30 09:54:30 GMT <AFaust> The reason for this: The Office client simply does not send the UNLOCK request. Customer re-installed a clean Office several times, reset user profile etc. - no change.
2017-06-30 09:56:21 GMT <MorganP> complicated
2017-06-30 09:56:43 GMT <AFaust> I know IT is often measured against how much they simplify the work of the average user, but at some point you have to realize that having your users work correctly instead of ignoring core concepts and relying on black (unmaintainable) magic might be the better (only) solution in the long run...
2017-06-30 09:57:54 GMT <yreg> AFaust, judging by these tales from a former MS engineer: http://ptgmedia.pearsoncmg.com/images/9780321440303/samplechapter/Chen_bonus_ch01.pdf , I do not wonder why things got that ugly in their software
2017-06-30 10:04:28 GMT <AFaust> yreg: Well, from a quick glimpse that article focusses more on compatibility with 3rd-party applications. Though I would argue that Office is a 3rd-party application for most purposes...
2017-06-30 11:51:25 GMT <yreg> AFaust, It shows how they adapt os (even re-instate bugs as features) to meet compatibility with 3rd parties.... making the solution look more like spaghetti at some point...
2017-06-30 11:51:41 GMT <AFaust> that I got
2017-06-30 12:47:59 GMT <douglascrp> morning guys
2017-06-30 12:48:10 GMT <douglascrp> one more question on faceted-search page
2017-06-30 12:48:22 GMT <douglascrp> is it able to filter results by boolean properties?
2017-06-30 12:49:09 GMT <douglascrp> I have some defined in my custom model, but they are not even shown in the search management page in the select list
2017-06-30 13:55:44 GMT <yreg> has anyone tried remote tests with sdk 3.0.1
2017-06-30 13:56:03 GMT <yreg> sounds like whenever tests fail the output is not readeable
2017-06-30 14:37:55 GMT <mrks_js> douglascrp: i guess you have to do that yourself, have you seen this: http://dev.alfresco.com/resource/docs/java/index.html?org/alfresco/repo/search/impl/solr/facet/handler/ContentSizeBucketsDisplayHandler.html ?
2017-06-30 14:37:56 GMT <alfbot> Title: Alfresco 5.2-SNAPSHOT API (at dev.alfresco.com)
2017-06-30 14:52:07 GMT <douglascrp> mrks_js, tks for the link
2017-06-30 14:56:57 GMT <douglascrp> mrks_js, ah, this is a different case
2017-06-30 14:57:42 GMT <douglascrp> what I meant by "the field is not even show" is that it is not possible to select the field when one is creating a new filter configuration
2017-06-30 15:04:06 GMT <mrks_js> how does your configuration/bean config look like?
2017-06-30 15:06:57 GMT <douglascrp> mrks_js, I do not have one
2017-06-30 15:07:06 GMT <douglascrp> I am using the Search Manager page, inside Share
2017-06-30 15:07:26 GMT <douglascrp> I can select any of the custom properties, except the ones defined as boolean
2017-06-30 15:07:36 GMT <douglascrp> so I guess it is a limitation
2017-06-30 15:08:09 GMT <douglascrp> I could not find any documentation containing the list of supported properties types
2017-06-30 15:10:50 GMT <mrks_js> i have not used them for years but it really sound like you have to write your own displayhander: https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/config/alfresco/solr-facets-context.xml
2017-06-30 15:10:51 GMT <alfbot> Title: community-edition-old/solr-facets-context.xml at master · Alfresco/community-edition-old · GitHub (at github.com)
2017-06-30 15:12:50 GMT <mrks_js> interesting: https://issues.alfresco.com/jira/browse/MNT-14538
2017-06-30 15:22:53 GMT <mrks_js> douglascrp: does this webscript work for you? http://docs.alfresco.com/5.0/references/RESTful-FacetFacetable-propertiesGet.html
2017-06-30 15:22:55 GMT <alfbot> Title: GET facetable properties defined within the repository | Alfresco Documentation (at docs.alfresco.com)
2017-06-30 15:34:45 GMT <fwu> hi all!
2017-06-30 15:40:52 GMT <douglascrp> weird, those webscripts do not work for me
2017-06-30 15:40:58 GMT <douglascrp> I guet a 404 error
2017-06-30 15:41:08 GMT <douglascrp> ok, it's lunch time here
2017-06-30 15:41:12 GMT <douglascrp> I'll be back later
2017-06-30 15:41:16 GMT <douglascrp> tks mrks_js
2017-06-30 16:15:16 GMT <fwu_> back!
2017-06-30 17:11:50 GMT <douglascrp> back
2017-06-30 18:54:29 GMT <fwu> hi all!
2017-06-30 20:22:28 GMT *** Luiz is now known as Guest1135
2017-06-30 23:18:54 GMT <fwu> back!
2017-06-30 23:19:28 GMT <fwu> ppl, anyone had ever tried to compile pdftoolkit as a jar file?
2017-06-30 23:19:49 GMT <fwu> it is creating a jer file but two small, so I dont think it is working
2017-06-30 23:19:59 GMT <fwu> im specifying make-jar
2017-06-30 23:20:11 GMT <fwu> and im trying to compile using sdk 2.2.0
2017-06-30 23:24:12 GMT <fwu> the amp is 20kb, the jar 6kb...
2017-06-30 23:25:25 GMT <fwu> inside the amp in the lib folder I have excatly the jar im able to create when compiling to a jar file
2017-06-30 23:26:02 GMT <fwu> so everything else inside the amp not countiong with the jar inside the lib folder, is not deployed to the jar
2017-06-30 23:27:54 GMT <fwu> the config folder is not being put inside the jar. So what may be the problem? Is not possible to compile the pdftoolkit repo to a jar file. I thought this eas not dependent on the module itself.
The other logs are at http://esplins.org/hash_alfresco