cancel
Showing results for 
Search instead for 
Did you mean: 

web interface fine but can't log into slingshot

nadaoneal
Champ in-the-making
Champ in-the-making
We're getting "The remote server may be unavailable or your authentication details have not been recognised," when we attempt to log into http://ourserver/share , though the web interface works fine from http://ourserver/alfresco . I've looked around for other people having the same problem, and it seems they usually have it when the web interface isn't running either.

The one "weird" thing about our setup is that we're running Alfresco's tomcat on port 8099 instead of 8080, since there's another tomcat running on the same machine, already using 8080. Could Slingshot still be trying to talk on 8080? Maybe it's talking on some random blocked port? Is there some config file I should be poking at?

I'm watching tomcat/logs/catalina.out as I try to log in, and I don't see the attempt, but I don't know that I would. I've turned up the logging of "log4j.logger.org.alfresco" in /tomcat/webapps/share/WEB-INF/classes/log4j.properties to "debug" just in case.

share.war seems to come up fine:
INFO: Deploying web application archive share.war
17:11:23,035  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.config.xml.XMLConfigService
17:11:23,036  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,222  INFO  [web.scripts.DeclarativeRegistry] Registered 21 Web Scripts (+0 failed), 23 URLs
17:11:23,223  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 129.49567ms)
17:11:23,223  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,528  INFO  [web.scripts.DeclarativeRegistry] Registered 134 Web Scripts (+0 failed), 136 URLs
17:11:23,528  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 302.61185ms)
17:11:23,528  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,533  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,534  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,535  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,536  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,537  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,569  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,570  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,571  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,572  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,573  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,574  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,575  DEBUG [alfresco.util.AbstractLifecycleBean] Bootstrapping component org.alfresco.web.scripts.SearchPath$ProcessorLifecycle
17:11:23,590  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jan 16, 2009 5:11:23 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8099
Jan 16, 2009 5:11:23 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 16, 2009 5:11:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 44049 ms
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
There are a number of configuration files you have to update if you're moving the Alfresco Repository to a port other than 8080.

These are:
* $ALF_HOME/tomcat/webapps/share/WEB-INF/urlrewrite.xml
* $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/pagerenderer-config.xml
* $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config-test.xml
* $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config.xml
* $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscripts/org/alfresco/indexall.get.mediawiki.ftl

To double-check that's all of them, search for "8080" under the Share webapp and update to 8099 to match your configuration.

This deployment situation is something we plan to make easier to configure in the future.

Thanks,
Mike

norgan
Champ in-the-making
Champ in-the-making
Hi there,
it wont work in your case, but generally as alternative, you can define a second connector on port 8080. The external connections come in on 80 and the local services can then go on to localhost:8080

Regards, Norgan

P.S. : I stole Mikes summary and made it into a wiki entry. If you have updates, please edit it in the wiki as well.

http://wiki.alfresco.com/wiki/Changing_Default_Port_Configuration

nadaoneal
Champ in-the-making
Champ in-the-making
Thanks, that was exactly what I needed to know.

geoffm
Champ in-the-making
Champ in-the-making
Norgan, great solution for my site, and easy to implement, thank you!  Smiley Very Happy

jlavric
Champ in-the-making
Champ in-the-making
Hi!
I have this situation with port changing. I would to setup alfresco to work on port 9090. By following upper posts and searching over the files I have changed this files:
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\file-servers.xml
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\web-client-config.xml
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\webscript-framework-config.xml
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\webscript-framework-config-test.xml
D:\Alfresco\tomcat\webapps\docs\appdev\sample\build.xml
D:\Alfresco\tomcat\webapps\mobile\WEB-INF\classes\alfresco\web-framework-config-remote.xml
D:\Alfresco\tomcat\webapps\mobile\WEB-INF\classes\alfresco\webscript-framework-config.xml
D:\Alfresco\tomcat\webapps\mobile\WEB-INF\classes\alfresco\webscript-framework-config-test.xml
D:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\web-framework-config-remote.xml
D:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\webscript-framework-config.xml
D:\Alfresco\tomcat\webapps\studio\WEB-INF\classes\alfresco\web-extension\web-framework-config-custom.xml
D:\Alfresco\tomcat\webapps\studio\WEB-INF\classes\alfresco\web-framework-config-application.xml
D:\Alfresco\tomcat\webapps\studio\WEB-INF\classes\alfresco\web-framework-config-remote.xml
D:\Alfresco\tomcat\webapps\studio\WEB-INF\classes\alfresco\webscript-framework-config.xml
D:\Alfresco\virtual-tomcat\conf\server.xml
D:\Alfresco\virtual-tomcat\conf\server-minimal.xml

D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\vti.properties
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\repository.properties
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\fileServers\default\file-servers.properties
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\imap\default\imap-server.properties

D:\Alfresco\tomcat\webapps\studio\overlay\default\minimized\alf-web-studio.min.js
D:\Alfresco\tomcat\webapps\studio\overlay\default\applications\abstract-application.class.js
D:\Alfresco\tomcat\webapps\studio\overlay\default\applets\webcontent\webcontent.class.js
D:\Alfresco\tomcat\webapps\studio\overlay\default\applets\spaces\spaces.class.js
D:\Alfresco\tomcat\webapps\studio\overlay\default\applets\sites\sites.class.js

D:\Alfresco\tomcat\webapps\studio\WEB-INF\classes\alfresco\webscripts\org\alfresco\indexall.get.mediawiki.ftl

And the result is almost perfect. Alfresco Webclient works, Share works, Mobile site works but Alfresco Studio won't let me in. I get the login page but login fails.
Log in console says:
14:18:25,201  ERROR [web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 09160101 Script url /api/login does not map to a Web Script.
org.alfresco.web.scripts.WebScriptException: 09160101 Script url /api/login does not map to a Web Script.
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:129)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:391)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

It looks like standard error for beginnersSmiley Happy but I can't find any configuration files or anything else that I should change.
Any help ideas??
Thank you all in advance.
Janez

jlavric
Champ in-the-making
Champ in-the-making
Hi!
It looks like port have nothnig to do with this problem. I've setup alfresco on another workstation on default port (8080) and Studio stil doesn't work.
Previous version 3.2 was working.
So, what now? Give up? Switch something else for page authoring? Liferay? Or, maybe just wait for another release.
Janez