11-22-2017 08:45 AM
Hi
I build my repo and share projects, and place the amp files in amps and amps_share folder in alfresco-community. When i try apply the amps to create alfresco.war and share.war.apply_amps.bat -force command is also applying all the amps which i placed previously inside of the amps folder also. What is the way to apply only the current amp file.
My database connectivity (MySql) is correct,previously its working fine, now also database is connecting with alfresco,but some other issue is there. After changed the amp files only,its not working fine.
this is my db settings in alfresco-global.properties
### database connection properties ###
db.driver=org.gjt.mm.mysql.Driver
db.username=root
db.password=root
db.name=alfresco
db.url=jdbc:mysql://localhost:3306/${db.name}
# Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
db.pool.max=100
db.pool.validate.query=SELECT 1
db.port=3306
log :
2017-11-22 16:06:15,248 ERROR [solr.tracker.AbstractTracker] [org.alfresco.solr
.AlfrescoCoreAdminHandler@4237c6e6_Worker-2] Tracking failed
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106
)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
java:1116)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
ConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
dBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
ase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
ava:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:323)
at org.alfresco.httpclient.AbstractHttpClient.executeMethod(AbstractHttp
Client.java:135)
at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(Abstract
HttpClient.java:111)
at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(Htt
pClientFactory.java:408)
at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.ja
va:1178)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.j
ava:256)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:
214)
at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:174)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:
190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:563)
2017-11-22 16:09:15,248 ERROR [solr.tracker.AbstractTracker] [org.alfresco.solr
.AlfrescoCoreAdminHandler@4237c6e6_Worker-11] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 10200003 api/solr/aclchangesets re
turn status:404
at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient
.java:169)
at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(Acl
Tracker.java:354)
at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:
320)
at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:111)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:
190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:563)
2017-11-20 16:09:15,258 ERROR [solr.tracker.AbstractTracker] [org.alfresco.solr
.AlfrescoCoreAdminHandler@4237c6e6_Worker-13] Model tracking failed
org.alfresco.error.AlfrescoRuntimeException: 10200004 GetModelsDiff return stat
us is 404
at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.ja
va:1181)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.j
ava:256)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:
214)
at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTrac
ker.java:236)
at org.alfresco.solr.component.EnsureModelsComponent.prepare(EnsureModel
sComponent.java:87)
at org.apache.solr.handler.component.AlfrescoSearchHandler.handleRequest
Body(AlfrescoSearchHandler.java:292)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl
erBase.java:135)
at org.alfresco.solr.Cloud.getResponse(Cloud.java:165)
at org.alfresco.solr.Cloud.getSolrDocumentList(Cloud.java:149)
at org.alfresco.solr.SolrInformationServer.getDocsWithUncleanContent(Sol
rInformationServer.java:722)
at org.alfresco.solr.tracker.ContentTracker.doTrack(ContentTracker.java:
81)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:
190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:563)
2017-11-20 16:09:15,637 ERROR [solr.tracker.AbstractTracker] [org.alfresco.solr
.AlfrescoCoreAdminHandler@4237c6e6_Worker-12] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 10200002 api/solr/aclchangesets re
turn status:404
at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient
.java:169)
at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(Acl
Tracker.java:354)
at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:
320)
at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:111)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:
190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:563)
11-22-2017 11:51 PM
Hi Yuvaraj D,
Use following commands to apply individual amp file to war.
To list out all the installed amp files in your war use: (Use these commands being in <alfresco-home>, if you want to copy and paste)
java -jar bin/alfresco-mmt.jar list tomcat/webapps/alfresco.war
To Install new amps use the following command. Use amps_share and share.war for share amps.
java -jar bin/alfresco-mmt.jar install amps/<amp-file> tomcat/webapps/alfresco.war
To uninstall use the following command. (Use first command to get the name-of-applied-amp).
java -jar bin/alfresco-mmt.jar uninstall 'name-of-applied-amp' tomcat/webapps/alfresco.war
I hope this would help you play with amps.
Please let me know if you have further query.
Thanks,
Kalpesh
11-23-2017 01:03 AM
Hi Kalpesh Patel
Thank you for sharing this, I have applied these commands, I got listed the applied amps in alfresco.war file. But when I try to uninstall it, It is not doing it.
Can you see this log and tell me, why it is showing invalid module,but it is listed as a installed amp in alfresco.war file.
Regards,
Yuvaraj
log :
C:\alfresco-community>java -jar bin/alfresco-mmt.jar list tomcat/webapps/alfresc
o.war
Module 'alfresco-share-services' installed in 'tomcat/webapps/alfresco.war'
- Title: Alfresco Share Services AMP
- Version: 5.2.0
- Install Date: Wed Nov 22 18:45:32 IST 2017
- Description: Module to be applied to alfresco.war, containing APIs for
Alfresco Share
Module 'org.alfresco.integrations.google.docs' installed in 'tomcat/webapps/alfr
esco.war'
- Title: Alfresco / Google Docs Integration
- Version: 3.0.4
- Install Date: Wed Nov 22 18:45:29 IST 2017
- Description: The Repository side artifacts of the Alfresco / Google Do
cs Integration.
Module 'alfresco-aos-module' installed in 'tomcat/webapps/alfresco.war'
- Title: Alfresco Office Services Module
- Version: 1.1.6
- Install Date: Wed Nov 22 18:45:28 IST 2017
- Description: Allows applications that can talk to a SharePoint server
to talk to your Alfresco installation
Module 'alfproject-repo-amp' installed in 'tomcat/webapps/alfresco.war'
- Title: Alfresco Repository AMP Module
- Version: 1.0-SNAPSHOT
- Install Date: Wed Nov 22 18:45:28 IST 2017
- Description: This is a sample Alfresco repository AMP project, depende
d upon by the alfresco WAR aggregator
Module 'DigiGov-repo-amp' installed in 'tomcat/webapps/alfresco.war'
- Title: Alfresco Repository AMP Module
- Version: 1.0-SNAPSHOT
- Install Date: Wed Nov 22 15:44:41 IST 2017
- Description: This is a sample Alfresco repository AMP project, depende
d upon by the alfresco WAR aggregator
Module 'alfmodule-repo-amp' installed in 'tomcat/webapps/alfresco.war'
- Title: Alfresco Repository AMP Module
- Version: 1.0-SNAPSHOT
- Install Date: Thu Nov 16 17:27:08 IST 2017
- Description: This is a sample Alfresco repository AMP project, depende
d upon by the alfresco WAR aggregator
Module 'fme-alfresco-extdl-master-repo-amp' installed in 'tomcat/webapps/alfresc
o.war'
- Title: Alfresco Repository AMP Module
- Version: 1.0-SNAPSHOT
- Install Date: Thu Nov 16 17:12:19 IST 2017
- Description: This is a sample Alfresco repository AMP project, depende
d upon by the alfresco WAR aggregator
C:\alfresco-community>java -jar bin/alfresco-mmt.jar uninstall 'DigiGov-repo-amp
' tomcat/webapps/alfresco.war
10230000 Invalid module. The installation file does not exist for module: 'Digi
Gov-repo-amp'
C:\alfresco-community>java -jar bin/alfresco-mmt.jar uninstall 'DigiGov-repo-amp
' tomcat/webapps/alfresco.war
10230000 Invalid module. The installation file does not exist for module: 'Digi
Gov-repo-amp'
C:\alfresco-community>java -jar bin/alfresco-mmt.jar uninstall 'fme-alfresco-ext
dl-master-repo-amp' tomcat/webapps/alfresco.war
10230000 Invalid module. The installation file does not exist for module: 'fme-
alfresco-extdl-master-repo-amp'
Explore our Alfresco products with the links below. Use labels to filter content by product module.