Unable to login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2006 09:57 AM
I tried admin/admin, but I get a Unable to login - unknown username/password error.
The only authentication-related message in alfresco.log is
WARN [app.servlet.AuthenticationHelper] Unable to login as Guest: Access Denied. You do not have the appropriate permissions to perform this operation.‍‍
.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2006 07:13 PM
19:41:20,406 WARN [app.servlet.AuthenticationHelper] Unable to login as Guest: Access Denied. You do not have the appropriate permissions to perform this operation.
in the catalina.out. The install is completely fresh, Ubuntu/Debian with Alfresco 1.2/Tomcat. I had a 1.12 Alfresco install with exactly the same platform and setup which worked fine. Since I did not have anything worth keeping I refrormatted and installed fresh but now have the inability to login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2006 04:13 AM
Apart from the database being cleaned out, were there any existing indexes or content stores lurking around?
Did you point the dir.root location to a fixed location?
The system expects the database and indexes to by synchronized. If one or the other is out of synch, then these types of symptoms tend to appear.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2006 08:09 AM
But, following http://www.alfresco.org/mediawiki/index.php/Repository_Configuration, I had created a TOMCAT_HOME/shared/classes/alfresco/extension/custom-services-context.xml file, containing:
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'><beans> <!– import further configurations –> <import resource="file:/etc/alfresco/more-config.xml" /></beans>‍‍‍‍‍‍‍‍‍
Then, I created a /etc/alfresco/more-config.xml exactly like the one in the document above linked.
I created a TOMCAT_HOME/shared/classes/alfresco/alfresco/repository.properties, with dir.root=/var/lib/alfresco, but Alfresco created an alf_data directory under TOMCAT_HOME/logs/!!!
What is wrong with this setup? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2006 08:23 AM
After restarting Tomcat, I can no longer login as neither admin nor guest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2006 08:31 AM
Change
<import resource="classpath*:alfresco/extension/*-context.xml" />‍
to<import resource="classpath:alfresco/extension/custom-services-context.xml" />‍
This is just a test to see where the classloader is going wrong. If Spring doesn't complain about the file being missing when you start the server, then change the custom-services-context.xml to be invalid XML. If that doesn't fail, change to
<import resource="file:(yourpath)/alfresco/extension/custom-services-context.xml" />‍
You might also do a search for a similarly named file elsewhere on the classpath. Spring will not load the same named file twice.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2006 08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2006 07:52 AM
I tried your first suggestion and nothing changed. So I changed custom-services-context.xml to be invalid XML, and Spring complained:
org.springframework.beans.factory.BeanDefinitionStoreException: Line 10 in XML document from class path resource [alfresco/extension/custom-services-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.‍‍
Tomcat is running as root, so I don't think it's a permission problem.
Where do we go from here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2006 08:23 AM
OK. That is at good news. The server is picking the files up. Could you post the other files, please.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2006 12:31 PM
… <!– overriding to point to custom properties –> <bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="ignoreUnresolvablePlaceholders"> <value>true</value> </property> <property name="locations"> <list> <value>classpath:alfresco/repository.properties</value> <value>classpath:alfresco/version.properties</value> <value>classpath:alfresco/domain/transaction.properties</value> <!– override core properties –> <!– <value>file:/etc/alfresco/live.repository.properties</value> –> </list> </property> </bean>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
but my configuration lives in /etc/alfresco/live.repository.properties. The reference to this file was commented out!!! (/me hides in shame ) ops:Thank you very much for your help, and I hope others will benefit from this thread.