I'm having issue setting up my development environment for Alfresco 6.2

cancel
Showing results for 
Search instead for 
Did you mean: 
viperboys
Active Member II

I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi guys..

I am new working with Alfresco.. At first I had issue with the installation of the Alfresco 5.2 development environment. This was overcome thanks to the help of some boys.

Now I am working with Alfresco 6.2 and I need to install my development environment. This version is based on docker and docker compose. I have install, docker, docker-compose, Java 11.0.7, Apache Maven 3.6.3, Eclipse. I am use Ubuntu 20.04.

I followed these steps

https://hub.alfresco.com/t5/alfresco-content-services-forum/problem-when-creating-an-all-in-one-proj...

I stayed in step 7. So far so good.

Then I ran this command ./run.sh build_start

I'm in that step.

My question is. Should I follow the same steps as I did when I imported it with Alfresco 5.2? I am reading this but it says I have to install mysql or postgres. https://hub.alfresco.com/t5/alfresco-content-services-hub/alfresco-sdk-4-0/ba-p/289257 

Do you have anything that can help me?

Thank you.. 

 

3 Solutions

Accepted Solutions
abhinavmishra14
Advanced

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Either should work, The reason why you got expired message because you are using enterprise verison "https://docs.alfresco.com/6.0/tasks/deploy-docker-compose.html", You have to apply the license if you use enterprise version. You might have installed enterprise version earlier.

Else use this one instead: https://github.com/Alfresco/acs-community-deployment

git clone https://github.com/Alfresco/acs-community-deployment.git
cd acs-community-deployment

use master branch. other steps should be same.  

Base project generated via SDK4.1 should work as well. That's the right way to develop your custom extensions and test.

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View solution in original post

adelaidenx
Alfresco Employee

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @viperboys 

There is also an equivalent page in the Community Edition documentation that you can use:  https://docs.alfresco.com/community/tasks/deploy-docker-compose.html. This page shows you how to deploy the last release of Alfresco Community Edition (using a tagged release branch). I'd welcome any feedback on this content.

Technical Writer in Alfresco User Assistance Team
Problem solved? Click Accept as Solution!

View solution in original post

viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @abhinavmishra14 

Now work fine.. I am happy! 

Only one thing, I understand Alfresco 6.x is based on Docker and containers. How did I configure Eclipse with the Alfresco code to make my own customizations?

View solution in original post

16 Replies
abhinavmishra14
Advanced

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

You don't need to install anything manually except docker for desktop, java and maven. Java, maven and docker are basic requirements to start with SDK4.1 and ACS 6.x

 

In your base project which you generated, you can find a sub-project/sub-directory named as "docker". You will find a docker-compose.yml file, it has everything basic configuration to startup acs, share, search and db etc.

run.sh/run.bat build_start should launch all the containers. 

This post may be helpful as well: 

https://hub.alfresco.com/t5/alfresco-content-services-forum/no-plugin-found-for-prefix-alfresco-in-t...

you can also refer this post

above post talks about setting up everything step by step, it has steps to use VSCode instead of Eclipse but you can always use eclipse. First post link to setup eclipse 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @abhinavmishra14 

Thank you forr you helping.. 

I have this issue when I run this command "Docker-compose up" with the file docker-compose.yml

ERROR: Invalid interpolation format for "ports" option in service "project.sdk4-share": "${share.port}:8080"

sudo docker -v
Docker version 19.03.12, build 48a66213fe

sudo docker-compose -v
docker-compose version 1.26.2, build eefe0d31

I try to google but can't find anything like it.

Thank you very much

abhinavmishra14
Advanced

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

I have not see this error before, are you manually using  "Docker-compose up" with the file docker-compose.yml ? If yes, then i would say not to do that. 

you should always use run.bat/run.sh file to launch containers for sdk4.1 generated projects.

There are certain steps that run.bat/run.sh script's build_start function does, which includes building (maven clean and package steps) the project and starting.

After you run run.bat/run.sh build_start, notice a target directory under your project. You would see the docker-compose.yml file (under target\classes\docker folder) with all updated values including the ports. Port values are configured in project's parent pom.xml file.

After build ports will change from ""${share.port}:8080"" to ""8180:8080"". 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @abhinavmishra14 

Now work fine.. When I open Alfresco in my browser this appears to me.

Captura de pantalla de 2020-07-10 13-41-54.png

I should open to see "share" and log in.

What I can be doing wrong?

abhinavmishra14
Advanced

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Looking at your screenshot, looks like there is some problem during startup. Check the logs and see if anything failed.

Alfresco can be accessed at: localhost:8080/alfresco

Share can be accessed at: localhost:8180/share

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @abhinavmishra14 

I share this video with you 

https://www.loom.com/share/5b07afe023374be182814f5f7b2183bd

There you can find the log.

I hope that you can help me.. Thank you

abhinavmishra14
Advanced

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

As mentioned earlier, share the error log. Seems ACS container did not start or terminated abruptly after startup. 

Run following command and see if all the containers are running:

docker ps

It is likely a memory issue with acs. 

Run this command to see allocated resources:

docker stats

Please share full startup log text here to better understand error. Actual reason for failure would be somewhere in the middle of startup log.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

Hi @abhinavmishra14 

Good morning.. Thank you very much for you helping

I changed computers. This one has 16 GB. I think it is enough to run all these applications. ON this new computer I have the same problem. I share what you request.

Captura de pantalla de 2020-07-14 08-07-11.png

 

sudo docker stats

Captura de pantalla de 2020-07-14 08-08-19.png

Java Version

edgar@edgar:~/Descargas/proyecto.appropia$ sudo javac -version
javac 11.0.7
edgar@edgar:~/Descargas/proyecto.appropia$ sudo java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode)

Docker Version

edgar@edgar:~/Descargas/proyecto.appropia$ sudo docker -v
Docker version 19.03.12, build 48a66213fe

edgar@edgar:~/Descargas/proyecto.appropia$ sudo docker-compose -v
docker-compose version 1.26.0, build d4451659

Maven version 

edgar@edgar:~/Descargas/proyecto.appropia$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.7, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: es_VE, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-26-generic", arch: "amd64", family: "unix"

 

viperboys
Active Member II

Re: I'm having issue setting up my development environment for Alfresco 6.2

Jump to solution

 

LOG

Spoiler
proyecto.appropia-ass_1 | 2020-07-14 12:31:20.011 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-33) [ ] o.a.s.t.AbstractTracker Tracking failed for ModelTracker - archive
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140071 archive GetModelsDiff return status is 404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:209)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-ass_1 | 2020-07-14 12:31:20.012 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-15) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140072 api/solr/aclchangesets return status:404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-acs_1 | 14-Jul-2020 12:31:30.004 INFO [QuartzScheduler_Worker-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-acs_1 | java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-acs_1 | at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1380)
proyecto.appropia-acs_1 | at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1109)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.getResourceAsStream(ConfigFileFinder.java:181)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.readFromJar(ConfigFileFinder.java:139)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.readFiles(ConfigFileFinder.java:87)
proyecto.appropia-acs_1 | at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl.readConfig(RenditionDefinitionRegistry2Impl.java:249)
proyecto.appropia-acs_1 | at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl$1.readConfig(RenditionDefinitionRegistry2Impl.java:139)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigScheduler.readConfigAndReplace(ConfigScheduler.java:205)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigScheduler$ConfigSchedulerJob.execute(ConfigScheduler.java:64)
proyecto.appropia-acs_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
proyecto.appropia-acs_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
proyecto.appropia-acs_1 | 2020-07-14 12:31:30,004 ERROR [repo.rendition2.RenditionDefinitionRegistry2Impl] [QuartzScheduler_Worker-1] Config read failed. Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-acs_1 | java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-acs_1 | at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1380)
proyecto.appropia-acs_1 | at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1109)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.getResourceAsStream(ConfigFileFinder.java:181)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.readFromJar(ConfigFileFinder.java:139)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigFileFinder.readFiles(ConfigFileFinder.java:87)
proyecto.appropia-acs_1 | at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl.readConfig(RenditionDefinitionRegistry2Impl.java:249)
proyecto.appropia-acs_1 | at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl$1.readConfig(RenditionDefinitionRegistry2Impl.java:139)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigScheduler.readConfigAndReplace(ConfigScheduler.java:205)
proyecto.appropia-acs_1 | at org.alfresco.util.ConfigScheduler$ConfigSchedulerJob.execute(ConfigScheduler.java:64)
proyecto.appropia-acs_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
proyecto.appropia-acs_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
proyecto.appropia-ass_1 | 2020-07-14 12:31:30.006 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-40) [ ] o.a.s.t.AbstractTracker Tracking failed for ModelTracker - archive
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140073 archive GetModelsDiff return status is 404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:209)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-ass_1 | 2020-07-14 12:31:30.011 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-23) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140074 api/solr/aclchangesets return status:404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.getSomeAclChangeSets(AclTracker.java:427)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackAclChangeSets(AclTracker.java:655)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:307)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-ass_1 | 2020-07-14 12:31:30.017 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-30) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - archive
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140075 api/solr/aclchangesets return status:404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.getSomeAclChangeSets(AclTracker.java:427)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackAclChangeSets(AclTracker.java:655)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:307)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-acs_1 | 2020-07-14 12:31:40,003 ERROR [repo.rendition2.RenditionDefinitionRegistry2Impl] [QuartzScheduler_Worker-2] Config read failed. Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-acs_1 | java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
proyecto.appropia-ass_1 | 2020-07-14 12:31:40.006 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-27) [ ] o.a.s.t.AbstractTracker Tracking failed for AclTracker - alfresco
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140076 api/solr/aclchangesets return status:404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:169)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:326)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:303)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:95)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
proyecto.appropia-ass_1 | 2020-07-14 12:31:40.007 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@29a5f4e7_Worker-1) [ ] o.a.s.t.AbstractTracker Tracking failed for ModelTracker - archive
proyecto.appropia-ass_1 | org.alfresco.error.AlfrescoRuntimeException: 06140077 archive GetModelsDiff return status is 404
proyecto.appropia-ass_1 | at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:291)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:249)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:209)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:215)
proyecto.appropia-ass_1 | at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
proyecto.appropia-ass_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
proyecto.appropia-ass_1 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)