cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco is running without Share Services

michael_s1
Champ on-the-rise
Champ on-the-rise

Hi,  I hope someone can help.

I have activated passthru authentication, but since doing so, I am getting the message "Alfresco is running without Share Services. See your System Administrator for more details."

I have made the same change to two servers, one running Alfresco One trial 5.1.1 and one running Alfresco Community 5.1.0 (r127059-b7).  Both are displaying the same issue.

The authentication chain is:

authentication.chain=alfinst:alfrescoNtlm,passthru1Smiley Tongueassthru,ad1:ldap-ad,ad2:ldap-ad

 

ntlm.authentication.sso.enabled=true

ldap.authentication.active=false

Contents of passthru-authentication-context.properties

passthru.authentication.useLocalServer=False

passthru.authentication.domain=

passthru.authentication.servers=AU\\server22.ourdomain.com,server22.ourdomain.com

passthru.authentication.authenticateCIFS=false

passthru.authentication.connectTimeout=5000

passthru.authentication.offlineCheckInterval=300

passthru.authentication.protocolOrder=TCPIP,NetBIOS

passthru.authentication.defaultAdministratorUserNames=jsmith,admin

The LDAP synchronisation is working great.  I have two because I am getting two different groups of people.

Users can sign on with no problem.  admin can sign on using the alfrescoNtlm.

If I remove passthru, the error goes away.

I am using http port 8080 and all other settings are out of the box.

In alfresco-global.properties

The line share.host is fully qualified instead of 127.0.0.1

share.host=server101.ourdomain.com

Any help or pointers appreciated.

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

As Gethin James Said in order to make share work ,you need to install share-service amp into repository and make sure share'version number is equal to shareServices amp's version number.

You have two options to check whether share-service amp is installed correctly and it's version number.

option 1 is using the Module Management Tool (MMT),you can refer to http://docs.alfresco.com/5.0/concepts/dev-extensions-modules-management-tool.html for                 detail information

option 2 : You can turn on your browser's debugging tool, and you'll find something like this on console

      2016-01-21 11:09:24,195  DEBUG [webscripts.connector.RemoteClient] [http-bio-8080-exec-4] Executing (GET) http://localhost:8080/alfresco/api/-               default-/private/alfresco/versions/1/modulepackag...

trace the message you will find the cause of the issue.

After checking the share-service amp status ,if you find it is not installed correctly or version not match,you'd better reinstall the correct share-service amp version using mmt.

if you find it installed correctly and version matches ,you can disable the waring(not recommended) by following steps

open file ${SHARE_ROOT_FOLDER}/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js with a text editor

and find something like this

{

      id: "HEADER_SHARE_SERVICES_WARNING",

      name: "share/services/ServicesWarning",

      config: {

         shareServices: getShareServices(),

         shareVersion: getShareVersion(),

         userIsAdmin: user.isAdmin

      }

   },

comment it out like

/*

{

      id: "HEADER_SHARE_SERVICES_WARNING",

      name: "share/services/ServicesWarning",

      config: {

         shareServices: getShareServices(),

         shareVersion: getShareVersion(),

         userIsAdmin: user.isAdmin

      }

   },

*/

View answer in original post

21 REPLIES 21

gethin
Champ on-the-rise
Champ on-the-rise

To work with Share you need to have the "share-services" amp installed on the repository and the version numbers need to match.  If you call the following url do you see share-services installed as a module?

http://localhost:8080/alfresco/api/-default-/private/alfresco/versions/1/modulepackages/ 

via Share the url is:

http://localhost:8081/share/proxy/alfresco-api/-default-/private/alfresco/versions/1/modulepackages/ 

I don't think your issue is to do with Authentication.  The warning message is only shown for the first 15 seconds of a log in, so that's probably where you see the difference.

michael_s1
Champ on-the-rise
Champ on-the-rise

Thank you for helping.  When I go to http://localhost:8080/alfresco/api/-default-/private/alfresco/versions/1/modulepackages/

I am prompted for a login.  I key in admin and the admin password that works for the admin console and also for logging in to share and this is not accepted.  It keeps prompting.  I have tried my username (I am set up as an admin) and this is also not accepted.

When I cancel from the login pop-up, I get a web page saying "Unauthorised"

"message" : "08300011 Authentication failed for Web Script org\/alresco\/api/\ResourceWebScript.get".

kaynezhang
World-Class Innovator
World-Class Innovator

Please visit following url with admin account and check it's return to see if share servcie amp is correcty installed
http://serverSmiley Tongueort/alfresco/api/default/private/alfresco/versions/1/modulepackages/alfresco-share-serv...

Hi

I cannot get to this link as I cannot logon it.  What credentials do I use as the admin one does not work.

Please note that if I remove passthru from the authentication chain the warning message about share services not running does not come up.  Thank you.

kaynezhang
World-Class Innovator
World-Class Innovator

As Gethin James Said in order to make share work ,you need to install share-service amp into repository and make sure share'version number is equal to shareServices amp's version number.

You have two options to check whether share-service amp is installed correctly and it's version number.

option 1 is using the Module Management Tool (MMT),you can refer to http://docs.alfresco.com/5.0/concepts/dev-extensions-modules-management-tool.html for                 detail information

option 2 : You can turn on your browser's debugging tool, and you'll find something like this on console

      2016-01-21 11:09:24,195  DEBUG [webscripts.connector.RemoteClient] [http-bio-8080-exec-4] Executing (GET) http://localhost:8080/alfresco/api/-               default-/private/alfresco/versions/1/modulepackag...

trace the message you will find the cause of the issue.

After checking the share-service amp status ,if you find it is not installed correctly or version not match,you'd better reinstall the correct share-service amp version using mmt.

if you find it installed correctly and version matches ,you can disable the waring(not recommended) by following steps

open file ${SHARE_ROOT_FOLDER}/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js with a text editor

and find something like this

{

      id: "HEADER_SHARE_SERVICES_WARNING",

      name: "share/services/ServicesWarning",

      config: {

         shareServices: getShareServices(),

         shareVersion: getShareVersion(),

         userIsAdmin: user.isAdmin

      }

   },

comment it out like

/*

{

      id: "HEADER_SHARE_SERVICES_WARNING",

      name: "share/services/ServicesWarning",

      config: {

         shareServices: getShareServices(),

         shareVersion: getShareVersion(),

         userIsAdmin: user.isAdmin

      }

   },

*/

Hi kayne

Thanks so much for pointing me on how to check my versions:

Below is the output of alfresco-mmt.jar

D:\alfresco-community\java\bin>java -jar D:\alfresco-community\bin\alfresco-mmt.jar list D:\alfresco-community\tomcat\webapps\alfresco.war

Module 'alfresco-share-services' installed in 'D:\alfresco-community\tomcat\webapps\alfresco.war'

   -    Title:        Alfresco Share Services AMP

   -    Version:      5.2.0

   -    Install Date: Tue Jun 21 20:17:12 AEST 2016

   -    Description:   Module to be applied to alfresco.war, containing APIs for Alfresco Share

Module 'alfresco-aos-module' installed in 'D:\alfresco-community\tomcat\webapps\alfresco.war'

   -    Title:        Alfresco Office Services Module

   -    Version:      1.1

   -    Install Date: Tue Jun 21 20:17:11 AEST 2016

   -    Description:   Allows applications that can talk to a SharePoint server to talk to your Alfresco installation

Below is the share version installed.  Please note that I only used the one installer and have never upgraded.  This issue is also in the Alfresco One 5.1.1.

Contents of manifest.mf for share

Manifest-Version: 1.0

Implementation-Title: Alfresco Share WAR

Implementation-Version: 5.1.f

Built-By: build

Specification-Vendor: Alfresco Software

Build-Revision: 125711

Build-Name: Alfresco - Share 5.1... - 5.1.f

Created-By: Apache Maven 3.2.5

Implementation-URL: http://www.alfresco.org/alfresco-share-parent/share/

Build-Date: 2016-04-22T22:30:05Z

Implementation-Vendor: Alfresco Software

Build-Number: 6

Implementation-Vendor-Id: org.alfresco

Build-Jdk: 1.7.0_55

Specification-Title: Alfresco Share WAR

Build-Key: ALF-CSHARE15-JOB1-6

Specification-Version: 5.2.0

Archiver-Version: Plexus Archiver

Name: Share Libraries

freemarker: 2.3.20-alfresco-patched

alfresco-core: 6.1

yui: 2.9.0-alfresco-20141223

webscripts: 6.5

alfresco-jlan: 6.0

surf: 5.1.f

aikau: 1.0.63

rhino: 1.7R4-alfresco-patched

spring: 3.2.14.RELEASE

Name: Source-control

Source-Url: https://svn.alfresco.com/repos/alfresco-enterprise/web-apps/Share/tags/5.1.f

Source-Revision: 125711

Last-change-Revision: 125711

I think what I am seeing is a bug in Alfresco since the share version and the share-services version are both 5.2.0.

I will comment the check as per your instructions so as to avoid the error.

Many thanks and regards

Michael

anon26949
Star Contributor
Star Contributor

The same problem:

[bykov@docflow /]$ java -jar /opt/alfresco-community/bin/alfresco-mmt.jar list /opt/alfresco-community/tomcat/webapps/alfresco.war
Module 'alfresco-aos-module' installed in '/opt/alfresco-community/tomcat/webapps/alfresco.war'
   -    Title:        Alfresco Office Services Module
   -    Version:      1.1.4
   -    Install Date: Thu Jan 05 18:29:45 SAMT 2017
   -    Description:   Allows applications that can talk to a SharePoint server to talk to your Alfresco installation
Module 'alfresco-share-services' installed in '/opt/alfresco-community/tomcat/webapps/alfresco.war'
   -    Title:        Alfresco Share Services AMP
   -    Version:      5.2.0
   -    Install Date: Thu Jan 05 18:29:44 SAMT 2017
   -    Description:   Module to be applied to alfresco.war, containing APIs for Alfresco Share

dbiggins
Star Contributor
Star Contributor

FWIW, I get the problem in 5.1.1 if i enable kerberos for 'Browser Based Automatic Login'.  If i disable kerberos, the error goes away.

Module 'alfresco-share-services' installed in 'tomcat/webapps/alfresco.war'
   -    Title:        Alfresco Share Services AMP
   -    Version:      5.1.1
   -    Install Date: Mon Dec 19 22:50:57 EST 2016
   -    Description:   Module to be applied to alfresco.war, containing APIs for Alfresco Share

I can also confirm this. I just installed 5.2 and enabled Kerberos and see the same issue