cancel
Showing results for 
Search instead for 
Did you mean: 

Change Alfresco port and share stops working.

jpearson
Champ in-the-making
Champ in-the-making
I need to run jboss and tomcat on the same machine, long story but its just for dev purposes. So I decided to switch the port that tomcat (alfresco and share) runs on from 8080 to 8180. I edited TOMCAT_HOME/conf/server.xml to reflect this. Restarted tomcat and localhost:8180/alfresco worked just fine. I then tried share and it fails to log me in with the message "The remote server may be unavailable or your authentication details have not been recognized." After some reading I find that I needed to do this http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration to let share know what port alfresco was on. So I did that and rebooted. Still same problem. I dropped alfresco's database and removed alf_data. Still I get the same error. I dont understand what is going on. In my catalina.out there is a strange "Unable to retrieve License information from Alfresco". I found https://forums.alfresco.com/en/viewtopic.php?f=8&t=41253 which reports a similar problem but slightly different. There was a bug filed but it looks like it was closed as not being able to reproduce. The lines at the bottom of my catalina.out are produced when I try to login to alfresco share. Again, alfresco itself lets me log in and appears to work fine. Does any one have any advice? Thanks

By the way I am running Alfresco 4.0.a that I installed from the war distribution of Alfresco.

catalina.out

Nov 2, 2011 5:20:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 2, 2011 5:20:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 462 ms
Nov 2, 2011 5:20:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 2, 2011 5:20:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.33
Nov 2, 2011 5:20:47 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Nov 2, 2011 5:20:47 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Nov 2, 2011 5:20:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
2011-11-02 17:21:04,717  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2011-11-02 17:21:04,809  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
Nov 2, 2011 5:21:13 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
2011-11-02 17:21:14,727  WARN  [alfresco.util.AbstractTriggerBean] [main] Job ehCacheTracerJob is not active/enabled
2011-11-02 17:21:18,380  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl
2011-11-02 17:21:18,383  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js
2011-11-02 17:21:27,441  INFO  [domain.schema.SchemaBootstrap] [main] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
Nov 2, 2011 5:21:30 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine activitiBootstrapEngine created
2011-11-02 17:21:30,890  INFO  [domain.schema.SchemaBootstrap] [main] No changes were made to the schema.
Nov 2, 2011 5:21:31 PM org.activiti.engine.impl.jobexecutor.JobAcquisitionThread run
INFO: JobAcquisitionThread starting to acquire jobs
2011-11-02 17:21:31,169  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, lucene]
2011-11-02 17:21:31,594  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Search' subsystem, ID: [Search, managed, lucene] complete
2011-11-02 17:21:32,962  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
2011-11-02 17:21:33,053  ERROR [content.transform.RuntimeExecutableContentTransformerWorker] [main] 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
2011-11-02 17:21:33,130  ERROR [transform.magick.AbstractImageMagickContentTransformerWorker] [main] ImageMagickContentTransformerWorker not available: 10020000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /home/james/servers/apache-tomcat-6.0.33/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_7332648883190769241.gif[0], /home/james/servers/apache-tomcat-6.0.33/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_6974370125739749975.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
2011-11-02 17:21:33,131  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
2011-11-02 17:21:33,131  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
2011-11-02 17:21:34,000  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
2011-11-02 17:21:35,013  INFO  [repo.admin.ConfigurationChecker] [main] The Alfresco root data directory ('dir.root') is: /srv/alfresco4/alf_data
2011-11-02 17:21:35,151  INFO  [admin.patch.PatchExecuter] [main] Checking for patches to apply …
2011-11-02 17:21:36,297  INFO  [admin.patch.PatchExecuter] [main] No patches were required.
2011-11-02 17:21:36,317  INFO  [repo.module.ModuleServiceImpl] [main] Found 2 module(s).
2011-11-02 17:21:36,437  INFO  [repo.module.ModuleServiceImpl] [main] Starting module 'org_alfresco_module_wcmquickstart' version 1.0.
2011-11-02 17:21:36,474  DEBUG [repo.module.ModuleComponentHelper] [main] Started module 'ModuleDetails[{module.version=1.0, module.description=Web Quick Start, module.id=org_alfresco_module_wcmquickstart, module.repo.version.max=999, module.title=Web Quick Start, module.repo.version.min=3.3, module.installState=INSTALLED, module.installDate=2011-10-13T11:27:13.685-06:00}]' including 0components.
2011-11-02 17:21:36,564  INFO  [repo.module.ModuleServiceImpl] [main] Starting module 'com_company_module' version 1.0.
2011-11-02 17:21:36,600  DEBUG [repo.module.ModuleComponentHelper] [main] Started module 'ModuleDetails[{module.version=1.0, module.description=Company Extension AMP, module.id=com_company_module, module.repo.version.max=999, module.title=Company Extension AMP, module.repo.version.min=3.1, module.installState=INSTALLED, module.installDate=2011-10-31T13:24:39.765-06:00}]' including 0components.
2011-11-02 17:21:36,639  DEBUG [repo.module.ModuleComponentHelper] [main] Installed module found in distribution: org_alfresco_module_wcmquickstart
2011-11-02 17:21:36,639  DEBUG [repo.module.ModuleComponentHelper] [main] Installed module found in distribution: com_company_module
2011-11-02 17:21:36,640  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'fileServers' subsystem, ID: [fileServers, default]
2011-11-02 17:21:37,474  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2011-11-02 17:21:37,638  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2011-11-02 17:21:37,729  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2011-11-02 17:21:37,729  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'imap' subsystem, ID: [imap, default]
2011-11-02 17:21:37,729  ERROR [org.alfresco.fileserver] [FTP Server] [FTP] FTP Socket error : java.net.BindException: Permission denied
2011-11-02 17:21:37,746  ERROR [org.alfresco.fileserver] [FTP Server] java.net.BindException: Permission denied
2011-11-02 17:21:37,746  ERROR [org.alfresco.fileserver] [FTP Server]    at java.net.PlainSocketImpl.socketBind(Native Method)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at java.net.ServerSocket.bind(ServerSocket.java:336)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at java.net.ServerSocket.<init>(ServerSocket.java:202)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at java.net.ServerSocket.<init>(ServerSocket.java:158)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:554)
2011-11-02 17:21:37,747  ERROR [org.alfresco.fileserver] [FTP Server]    at java.lang.Thread.run(Thread.java:636)
2011-11-02 17:21:37,758  ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
2011-11-02 17:21:37,767  ERROR [org.alfresco.fileserver] [CIFS Server] org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
2011-11-02 17:21:37,767  ERROR [org.alfresco.fileserver] [CIFS Server]    at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
2011-11-02 17:21:37,767  ERROR [org.alfresco.fileserver] [CIFS Server]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:472)
2011-11-02 17:21:37,767  ERROR [org.alfresco.fileserver] [CIFS Server]    at java.lang.Thread.run(Thread.java:636)
2011-11-02 17:21:37,838  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'imap' subsystem, ID: [imap, default] complete
2011-11-02 17:21:37,838  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'email' subsystem, ID: [email, outbound]
2011-11-02 17:21:37,885  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'email' subsystem, ID: [email, outbound] complete
2011-11-02 17:21:37,885  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'email' subsystem, ID: [email, inbound]
2011-11-02 17:21:37,956  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'email' subsystem, ID: [email, inbound] complete
2011-11-02 17:21:37,956  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'googledocs' subsystem, ID: [googledocs, default]
2011-11-02 17:21:38,057  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
2011-11-02 17:21:38,058  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default]
2011-11-02 17:21:38,072  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
2011-11-02 17:21:38,080  INFO  [repo.usage.UserUsageTrackingComponent] [main] Enabled - calculate missing user usages …
2011-11-02 17:21:38,089  INFO  [repo.usage.UserUsageTrackingComponent] [main] Found 0 users to recalculate
2011-11-02 17:21:38,089  INFO  [repo.usage.UserUsageTrackingComponent] [main] … calculated missing usages for 0 users
2011-11-02 17:21:38,089  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
2011-11-02 17:21:38,195  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
2011-11-02 17:21:38,328  INFO  [service.descriptor.DescriptorService] [main] Alfresco JVM - v1.6.0_20-b20; maximum heap size 1020.813MB
2011-11-02 17:21:38,333  INFO  [service.descriptor.DescriptorService] [main] Alfresco started (Community). Current version: 4.0.0 (a 3755) schema 5,018. Originally installed version: 4.0.0 (a 3755) schema 5,018.
2011-11-02 17:21:38,333  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2011-11-02 17:21:38,438  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
2011-11-02 17:21:38,438  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Replication' subsystem, ID: [Replication, default]
2011-11-02 17:21:38,485  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2011-11-02 17:21:53,047  WARN  [extensions.webscripts.DeclarativeRegistry] [main] Unable to register script classpath:webscripts/org/springframework/extensions/cmis/content.get.desc.xml due to error: 10020000 Web Script document org/springframework/extensions/cmis/content.get.desc.xml is attempting to define the url '/cmis/content:GET' already defined by org/alfresco/cmis/client/content.get.desc.xml
2011-11-02 17:21:53,048  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 472 Web Scripts (+1 failed), 740 URLs
2011-11-02 17:21:53,048  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 2 Package Description Documents (+0 failed)
2011-11-02 17:21:53,048  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 1 Schema Description Documents (+0 failed)
2011-11-02 17:21:53,050  INFO  [extensions.webscripts.AbstractRuntimeContainer] [main] Initialised Repository Web Script Container (in 5740.5854ms)
2011-11-02 17:21:53,069  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
2011-11-02 17:21:53,071  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
Nov 2, 2011 5:21:53 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Nov 2, 2011 5:21:57 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Nov 2, 2011 5:21:58 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Nov 2, 2011 5:21:58 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
2011-11-02 17:22:02,857  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
2011-11-02 17:22:02,942  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
2011-11-02 17:22:02,942  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
2011-11-02 17:22:02,947  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
2011-11-02 17:22:04,880  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 313 Web Scripts (+0 failed), 323 URLs
2011-11-02 17:22:04,881  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 8 Package Description Documents (+0 failed)
2011-11-02 17:22:04,881  INFO  [extensions.webscripts.DeclarativeRegistry] [main] Registered 0 Schema Description Documents (+0 failed)
2011-11-02 17:22:05,191  INFO  [extensions.webscripts.AbstractRuntimeContainer] [main] Initialised Spring Surf Container Web Script Container (in 2223.189ms)
2011-11-02 17:22:05,197  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor freemarker for extension ftl
2011-11-02 17:22:05,202  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor javascript for extension js
Nov 2, 2011 5:22:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 2, 2011 5:22:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 2, 2011 5:22:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 2, 2011 5:22:05 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 2, 2011 5:22:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 78310 ms
2011-11-02 17:24:12,529  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 498
2011-11-02 17:24:12,558  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:24:24,885  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:24:24,889  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:24:27,152  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:24:27,157  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:48:00,262  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 498
2011-11-02 17:48:00,267  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500
2011-11-02 17:48:00,306  INFO  [web.site.EditionInterceptor] [http-8180-1] Unable to retrieve License information from Alfresco: 500

5 REPLIES 5

mrogers
Star Contributor
Star Contributor
Can't see any obvious problems.

Are any of your configurations in the shared folder working.   In particular have you added the shared folder to the tomcat classloader?

jpearson
Champ in-the-making
Champ in-the-making
Thanks for the reply. I am pretty sure that $TOMCAT_HOME/shared/classes/alfresco-global.properties is being read because if its using my postgres db settings. I verified this by changing the db user and alfresco had the expected exception.

fviry
Champ in-the-making
Champ in-the-making
Hello,

I met the same problem and same error messages with alfresco 4.0.b. The installation of alfresco was done manually. I wanted to modify the port number to 8083. I modified the file  <TOMCAT_HOME>/shared/classes/alfresco-global.properties

I modified these lines in this file :

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8083
alfresco.protocol=http
#
share.context=share
share.host=127.0.0.1
share.port=8083
share.protocol=http

Then, I created the file <TOMCAT_HOME>/shared/classes/alfresco/web-extension/share-config-custom.xml. This file was not present.

I had to copy this file from another alfresco server. I had to install a second alfresco application on second server ( with the installation file alfresco-community-4.0.b-installer-linux-x64.bin) in order to generate the file share-config-custom.xml and to copy it.

Then, I modified the port number to 8083.

file share-config-custom.xml

<alfresco-config>

   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8083/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8083/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8083/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>

<!–         <endpoint>
            <id>activiti-admin</id>
            <name>Activiti Admin UI - user access</name>
            <description>Access to Activiti Admin UI, that requires user authentication</description>
            <connector-id>activiti-admin-connector</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
            <identity>user</identity>
         </endpoint> –>
      </remote>
   </config>

</alfresco-config>

Then, I copied the directory licenses (from the second alfresco server) to <TOMCAT_HOME>.

I restarted process and it was OK. I was able to connect to explorer and share on port number 8083.

jevon
Champ in-the-making
Champ in-the-making
As posted at http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration, if you have used a port other than 8080, it is critical that you set the port settings in classes/alfresco/web-extension/share-config-custom.xml.

The supplied share-config-custom.xml.sample has this configuration provided, but the entire block is commented out!

In my case, my logs were displaying "Unable to retrieve License information from Alfresco: 400".

jungie
Champ in-the-making
Champ in-the-making
Is it possible to change the port when logging in as admin? separate port number of admin account to regular user only?

Thanks.