cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Multi-tenent and SMTP

tnielsen91
Champ in-the-making
Champ in-the-making
OK Everyone - after hours and hours, I have finally resorted to the community for help.  I am installing Alfresco 4.0.c on Windows 2008 R2 64Bit.  Everything installs and works.  I am enabling Mulit-Tenant support.  When I do, everything works as designed, but I cannot send out the invites.  It fails.  I have changed alot and gone though the logs.

Questions is:  Do others have this issue?  I hear SOLR is the issues and I tried to disable it.  I see that Activiti may be the issue - tried removing that. 

I would love to get SMTP working in MT - can anyone help?
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
So what errors are you seeing?

tnielsen91
Champ in-the-making
Champ in-the-making
The errors are random.  If I have SOLR enabled (default) I get errors related to if cant seeing the Workspace for the Tenant.  I have set it to disabled (False) in the alfresco-global.properties and enabled JBPM by setting the following below.  If I have Activiti disabled and JBPM enabled I think it can see the workspace, but there is no permission (it seems) for the Tenant to run the workflow.  That led me here: 

https://forums.alfresco.com/en/viewtopic.php?f=34&t=36488

So, what I am asking, are there any issues to get the invites (email) to work with the multi-tenants.  I have no issues with email when not in MT mode, but I need the invites to work in MT mode too.

### BPM Engine ###
# Determines if the JBPM engine is enabled
#system.workflow.engine.jbpm.enabled=false
system.workflow.engine.jbpm.enabled=true
# Determines if JBPM workflow definitions are shown.
# Default is false. This controls the visibility of JBPM
# workflow definitions from the getDefinitions and
# getAllDefinitions WorkflowService API but still allows
# any in-flight JBPM workflows to be completed.
#system.workflow.engine.jbpm.definitions.visible=false
system.workflow.engine.jbpm.definitions.visible=true

tnielsen91
Champ in-the-making
Champ in-the-making
Also - here is what the logs say…  the domain DOES exist.. Smiley Happy

Caused by: org.alfresco.scripts.ScriptException: 00290027 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': Node does not exist: workspace://@testdomain.com@SpacesStore/bb37e72b-b7a6-4eb4-83e6-86a9d57559ef(null)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:195)
   at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1194)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   … 25 more
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://@testdomain.com@SpacesStore/bb37e72b-b7a6-4eb4-83e6-86a9d57559ef(null)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:176)

vuilled
Champ in-the-making
Champ in-the-making
I experiment exactly the same problem but I installed Alfresco 4c on an Ubuntu server. I have the same kind of error saying that the node does not exist

Have you found a solution to the problem? It is really annoying because i cannot use share site since i cannot invite user to them

Cheers

dhd
Champ in-the-making
Champ in-the-making
I think I might have the same issue on 4c and 4d.

Could possibly be the same issue as https://forums.alfresco.com/en/viewtopic.php?f=47&t=42484

If you enable multi-tenancy and create a few tenants, then login to share as, say admin@tenant1 and Invite a user it will work OK.  If you then login as, say admin@tenant2 and Invite a user it will fail.  If you restart tomcat and try again, it will work … but when you switch tenants again it won't.

Typical error log on failure:

2012-02-08 11:32:08,195  ERROR [extensions.webscripts.AbstractRuntime] [http-8080-16] Exception from executeScript - redirecting to status template error: 01080019 Wrapped Exception (with status template): 01080139 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': Node does not exist: workspace://@tenant3@SpacesStore/a81a06f3-44a0-436a-a608-4c1061188baf(null)

I think what happens is this: when you are logged on as admin@tenant1 it works, but somehow it gets stuck referring to the root node of tenant1 … so that when you login as admin@tenant2 is still thinks the root node is the root node for tenant1 - which it then says "does not exist" - which indeed it does not for tenant2.

I hope that's useful info

ebogaard
Champ on-the-rise
Champ on-the-rise
As Alfresco doesn't seem to be bothered by this bug much (there's seems to be no progress, see: https://issues.alfresco.com/jira/browse/ALF-12646), has someone in the community found out how to fix this yet?