cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access alfresco - SOLVED

quark0x
Champ in-the-making
Champ in-the-making
Hi guys,
I've been using Alfresco 2.0 Release for almost a year now and couple of days ago I restarted the server that runs it and now I'm unable to access it anymore. I tried manually restarting it using the shell script provided (alf_start.sh) in the command line and I'm getting the following messages:
Using CATALINA_BASE:   /data/Alfresco/tomcat
Using CATALINA_HOME:   /data/Alfresco/tomcat
Using CATALINA_TMPDIR: /data/Alfresco/tomcat/temp
Using JRE_HOME:       /data/Alfresco/java

When I tried accessing its web client (http://ip_address:8080/alfresco), it will keep on and on trying to access it and wouldn't give me any login page or anything like that. It wouldn't even say "Page cannot be found" and I tried doing a netstat on my linux machine and it shows that the port 8080 is listening
for any requests (seems that tomcat is running but not serving any page)…

I appreciate any suggestions you may have.

Chris
8 REPLIES 8

quark0x
Champ in-the-making
Champ in-the-making
Hi,
The database has been configured already just because I've been using Alfresco for almost a year now. However, regarding the alfresco.log file, I have it but it's empty..

Chris

quark0x
Champ in-the-making
Champ in-the-making
I've taken a look at the catalina.out log file and it seems that the Exception messages weren't really helpful at all, and it's also truncated… Whenever I restart the Alfresco service, nothing gets appended in this log file since I started getting this issue…


Here's the contents that I got:
17:37:36,320 ERROR [node.integrity.IntegrityChecker] Found 1 integrity violations:
Invalid property value:
   Node: workspace://SpacesStore/227576ba-6fda-11dd-bb92-77e721bdaacf
   Type: {http://www.alfresco.org/model/content/1.0}content
   Property: {http://www.alfresco.org/model/content/1.0}name
   Constraint: Value 'Sask%20Min%20of%20Health.jpg' matches regular expression: (.*[\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\+\;]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)
17:37:36,405 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit
org.alfresco.repo.node.integrity.IntegrityException: Integrity failure
        at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:619)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.flush(AlfrescoTransactionSupport.java:524)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:595)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:657)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:482)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:405)
        at org.alfresco.filesys.server.SrvSession.endTransaction(SrvSession.java:627)
        at org.alfresco.filesys.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2368)
        at org.alfresco.filesys.ftp.FTPSrvSession.run(FTPSrvSession.java:4253)
        at java.lang.Thread.run(Thread.java:595)
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedConstructorAccessor583.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
        at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
        at org.alfresco.repo.content.transform.PoiHssfContentTransformer.transformInternal(PoiHssfContentTransformer.java:87)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:245)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:210)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.indexProperty(LuceneIndexerImpl2.java:1639)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.createDocuments(LuceneIndexerImpl2.java:1273)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.updateFullTextSearch(LuceneIndexerImpl2.java:2014)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:177)
        at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy5.index(Unknown Source)
        at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:44)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
        at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        … 28 more
[WARNING] Unknown Ptg 3c (60)
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedConstructorAccessor583.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
        at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
        at org.alfresco.repo.content.transform.PoiHssfContentTransformer.transformInternal(PoiHssfContentTransformer.java:87)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:245)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:210)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.indexProperty(LuceneIndexerImpl2.java:1639)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.createDocuments(LuceneIndexerImpl2.java:1273)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.updateFullTextSearch(LuceneIndexerImpl2.java:2014)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:177)
        at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy5.index(Unknown Source)
        at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:44)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
        at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        … 28 more
17:45:07,287 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit
org.alfresco.repo.search.IndexerException: Failed to prepare: requires rollback
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.prepare(LuceneIndexerAndSearcherFactory2.java:711)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:599)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:657)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:482)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:405)
        at org.alfresco.filesys.server.SrvSession.endTransaction(SrvSession.java:627)
        at org.alfresco.filesys.ftp.FTPSrvSession.run(FTPSrvSession.java:4445)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.repo.search.impl.lucene.LuceneIndexException: Index failed to prepare
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.prepare(LuceneIndexerImpl2.java:748)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.prepare(LuceneIndexerAndSearcherFactory2.java:706)
        … 9 more
Caused by: org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed to flush index
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.flushPending(LuceneIndexerImpl2.java:967)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.prepare(LuceneIndexerImpl2.java:732)
        … 10 more
Caused by: java.io.IOException: No space left on device
        at java.io.RandomAccessFile.writeBytes(Native Method)
        at java.io.RandomAccessFile.write(RandomAccessFile.java:456)
        at org.apache.lucene.store.FSIndexOutput.flushBuffer(FSDirectory.java:514)
        at org.apache.lucene.store.BufferedIndexOutput.flush(BufferedIndexOutput.java:84)
        at org.apache.lucene.store.BufferedIndexOutput.close(BufferedIndexOutput.java:98)
        at org.apache.lucene.store.FSIndexOutput.close(FSDirectory.java:517)
        at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:91)
        at org.apache.lucene.index.IndexWriter$1.doBody(IndexWriter.java:262)
        at org.apache.lucene.store.Lock$With.run(Lock.java:99)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:259)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:224)
        at org.alfresco.repo.search.impl.lucene.index.IndexInfo.makeDeltaIndexWriter(IndexInfo.java:702)
        at org.alfresco.repo.search.impl.lucene.index.IndexInfo.getDeltaIndexWriter(IndexInfo.java:743)
        at org.alfresco.repo.search.impl.lucene.LuceneBase2.getDeltaWriter(LuceneBase2.java:218)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.indexImpl(LuceneIndexerImpl2.java:1164)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.indexImpl(LuceneIndexerImpl2.java:1158)
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.flushPending(LuceneIndexerImpl2.java:961)
        … 11 more
log4j:ERROR Failed to flush writer,
java.io.IOException: No space left on device
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:260)
        at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
        at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
        at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
        at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:49)
        at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:306)
        at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:349)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
        at org.apache.log4j.Category.callAppenders(Category.java:187)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.log(Category.java:864)
        at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:409)
        at org.alfresco.filesys.server.SrvSession.endTransaction(SrvSession.java:627)
        at org.alfresco.filesys.ftp.FTPSrvSession.run(FTPSrvSession.java:4445)
        at java.lang.Thread.run(Thread.java:595)
17:45:07,319 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit
org.alfresco.repo.search.IndexerException: Failed to prepare: requires rollback
        at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.prepare(LuceneIndexerAndSearcherFactory2.java:711)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:599)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(Abst

quark0x
Champ in-the-making
Champ in-the-making
Hi,
I've tried that, and restarted Alfresco, and I'm still unable to access it. It looks to me that the issue is more with the tomcat server itself because I couldnt access http://my_ip_address:8080 … Is there anyway I can troubleshoot this? I apologize but I am not really familiar with tomcat server.
Also, like I mentioned in my previous post, I did a netstat in the server and I see port 8080 listening to requests.

Thanks,
Chris

quark0x
Champ in-the-making
Champ in-the-making
Hi belmekki,
The fact that my catalina.out log file was truncated would mean that I ran out of disk space. Maybe that's the reason why I couldn't run my tomcat application server because I checked my disk space and I've totally ran out… I'm going to increase my disk space and see if it would fix it…

Thanks alot for your help
Chris

quark0x
Champ in-the-making
Champ in-the-making
Hi belmekki,

Yes, it was indeed due to insufficient disk space.. I'm now able to access Alfresco once again after freeing up some disk space…  Smiley Very Happy

Chris

mikeh
Star Contributor
Star Contributor
The disk space warning was in the exception trace:
java.io.IOException: No space left on device

Glad you got it sorted out.
Mike

quark0x
Champ in-the-making
Champ in-the-making
Hi ,
Set index.recovery to FULL instead of VALIDATE or AUTO in repository.properties file.
Locate on Tomcat\webapps\alfresco\web-inf\classes\alfresco
It will be rebuild all your lucene indexes.
Kind Regards
BELMEKKI

Hi guys,
Now that I'm able to access the Alfresco login page, another issue came up where I couldn't login using my existing account or even using the admin account.. I keep getting the error message "Unable to login - unknown username/password"..
- Could this be the effect of changing the settings for index.recovery in repository.properties (see quote above)?
- Is there any configuration I need to modify in order for me to get to the admin account?
- Does it mean that my repository has been corrupted? If so, is there anyway to recover my data and be able to login again using the user accounts that I created before?

Thanks,
Chris

quark0x
Champ in-the-making
Champ in-the-making
Hi guys,
I got this sorted out and I'm able to login to Alfresco and made sure that all my files are intact…
Like what belmekki said, I learned that setting index.recovery to FULL (in repository.properties) rebuilds my indexes when I restarted my server. Because I've got lots of files in Alfresco, it took awhile for it to rebuild the entire index that's why I thought nothing's happening. But then after few hours, I attempted to login again and it now works! Smiley Very Happy

Chris