cancel
Showing results for 
Search instead for 
Did you mean: 

can login to /alfresco but i can't login to /share

globe
Champ in-the-making
Champ in-the-making
Hi , i have installed Alfresco labs ; decompress it , i have change the server.xml conf ; and change the port other than  8080 ; and then i start normally alfresco;
but i'm not able to connection to share , it give me :

the msg:

[i]Failed to Login
The remote server may be unavailable or your authentication details have not been recognized.[/i]

(i'm tryng to connect true admin/admin)

but using /alfresco i login with admin/admin and no problem !


and thanks for your help
20 REPLIES 20

rliu
Champ in-the-making
Champ in-the-making
In your share.war\WEB-INF\classes\alfresco folder… there are various XML files that references port 8080. You may want to change that to your custom port.

kevinr
Star Contributor
Star Contributor
You can override the port that Share expects to find the Alfresco webapp running on - the Share application makes HTTP connections back to the Alfresco server instance - by default it is 8080 so the poster above is correct.

Look for the file: \tomcat\shared\classes\alfresco\web-extension\webscript-framework-config-custom.xml

Kev

rliu
Champ in-the-making
Champ in-the-making
Ahh..my oversight. I forgot the overriding capabilities. Thanks Kevin.

dpa_74
Champ in-the-making
Champ in-the-making
Hi,
Could you please detail a bit further these re-writing capabilities…?

I have the same log in problem with Share but I didn't change the Tomcat 8080 port. I'm running on a different tomcat (not the one bundled with Alfresco) and with an Apache connector to port 80.

The firewall is configured to allow all internal traffic and I've also tested disabling it… therefore I can access Share on port 8080 and 80 and the result is the same, can't log in.

Could it be because I deployed share.war not at the same time than alfresco.war?

dpa_74
Champ in-the-making
Champ in-the-making
This is how my alfresco.log looks like at start up.

Is there a way to debug the alfresco authentication to figure out where the problem with /share is?

12:06:08,732 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to
perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /var/opt/scalix/h9/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_7040789403202661009.gif, /var/o
pt/scalix/h9/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_6798498335307660930.png]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
12:06:09,467 WARN  [org.springframework.jmx.support.JmxUtils] Found more than one MBeanServer instance. Returning first from list.
12:06:10,288 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.pro
perties]
12:06:14,395 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
12:06:21,291 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
12:06:25,449 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
12:06:27,531 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
12:06:27,560 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
12:06:27,690 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
12:06:27,693 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
12:06:28,036 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
12:06:28,064 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_13-b03; maximum heap size 494.938MB
12:06:28,065 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB
12:06:28,065 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed
version 3.0.0 (Stable 1526) schema 1002
12:06:45,397 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

dpa_74
Champ in-the-making
Champ in-the-making
… I did a brand new redeployment to make sure I didn't have anything messed up and this is how the installation went. Just in case something could go wrong with the installation to prevent this from working…

11:47:56,947 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to
erform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /var/opt/scalix/h9/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_3463023371830635615.gif, /var/o
/scalix/h9/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_3080839206771073114.png]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
11:47:57,542 WARN  [org.springframework.jmx.support.JmxUtils] Found more than one MBeanServer instance. Returning first from list.
11:47:58,490 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.pro
rties]
11:48:03,228 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
11:48:11,011 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
11:48:11,105 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /var/opt/scalix/h9/tomcat/temp/Alfresco/AlfrescoSchemaCreate-
g.hibernate.dialect.PostgreSQLDialect-3992034252827900964.sql (Generated).
11:48:12,305 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /var/opt/scalix/h9/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-
g.hibernate.dialect.PostgreSQLDialect-19818854984168512.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.PostgreSQLDialect/Alf
scoPostCreate-2.2-MappedFKIndexes.sql).
11:48:12,439 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /var/opt/scalix/h9/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-
g.hibernate.dialect.PostgreSQLDialect-5701256894417251151.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.PostgreSQLDialect/A
rescoPostCreate-2.2-Extra.sql).
11:48:12,536 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /var/opt/scalix/h9/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-
g.hibernate.dialect.PostgreSQLDialect-5856111781002118255.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.PostgreSQLDialect/p
t-create-indexes-04.sql).
11:48:12,541 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /var/opt/scalix/h9/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-
g.hibernate.dialect.PostgreSQLDialect-5566220749876985915.sql (Copied from classpath:alfresco/dbscripts/create/3.0/org.hibernate.dialect.PostgreSQLDialect/c
ate-activities-extras.sql).
11:48:12,570 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file /var/opt/scalix/h9/tomcat/temp/Alfresco/Alfresc
chemaUpdate-All_Statements-5492745632181187538.sql.
11:48:35,873 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
11:48:35,935 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
11:48:36,634 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.0-0-CreateActivitiesExtras
RESULT:
Script completed
=====================================
11:48:36,637 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
11:48:42,008 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
11:48:42,008 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
11:48:42,326 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
11:48:42,365 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_13-b03; maximum heap size 494.938MB
11:48:42,365 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB
11:48:42,365 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed
rsion 3.0.0 (Stable 1526) schema 1002
11:48:58,064 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

kevinr
Star Contributor
Star Contributor
Log looks fine. Can you explain again what you have deployed where and using what ports? i.e. Alfresco and Share on separate tomcats? Which ports are they using? Try taking Apache Proxy out of the equation first to get it working, then trying adding it back in.

Kev

dpa_74
Champ in-the-making
Champ in-the-making
Alfresco and Share are installed in the same Tomcat instance. That is the Tomcat bundled with Scalix that comes with the Apache module proxy_ajp pre-configured, listening on port 8009.
Tomcat is running on 8080 and Apache on 80. Therefore it's accessible both ways, http://server:8080/share or http://server/share. The result (failed authentication for /share) is the same. Alfresco (/alfresco) works flawlessly in both ports, as well as the Scalix mail apps.

You have a very good point about taking the proxy_ajp and apache out of the equation. Although accessing http://server:8080/share (tomcat directly) should have the same effect. Shouldn't it?   I can give it a try to make install a fresh/standard tomcat instance and redeploy there.

Looking at the wiki http://wiki.alfresco.com/wiki/Install_Shared_Tomcat, looks really simple (except step 2, which I skiped because the files in <Alfresco_Root>/tomcat/shared/classes/alfresco are already deployed in /var/opt/scalix/h9/tomcat/webapps/alfresco/WEB-INF/classes/alfresco).
I wonder if there may be something else on the tomcat configuration/pre-requisities that I'm missing…

I understand there's a single user store and authentication (unless I modify the default authentication). Meaning that Alfresco users can directly log in into Share. That should also be valid for the default admin (user: admin / pwd: admin). Is that right, or an Alfresco user needs to be flagged somewhere as a Share user…?

kevinr
Star Contributor
Star Contributor
Deploying both Share and Alfresco into the same tomcat is actually the default for our prepackaged bundles when we do release. But we don't have Apache in the equation. The Share web-app uses HTTP as the communication mechanism between itself and the main Alfresco server - no matter where it's deployed - and the key is making sure it's pointing to the correct port for the Alfresco webapp - which by default is set to 8080.

You could turn on some debugging logging for share in your log4j.properties as that might shed some light on why it cannot connect - it will definitely be port/connection related as you are correct in saying that Share users are nothing special in Alfresco - they use the same Person/User objects and if you can login to Alfresco you can login to Share.

try these:

log4j.logger.org.alfresco.web.scripts.servlet.EndPointProxyServlet=debug
log4j.logger.org.alfresco.web.scripts.RemoteStore=debug
log4j.logger.org.alfresco.connector=debug

Thanks,

Kevin