cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Node

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        I recently upgraded from Alfresco 3.4.b to Alfresco 4.0.d and now have the following error:

2011-12-27 14:11:45,552  ERROR [extensions.webscripts.AbstractRuntime] [http-844
3-3] Exception from executeScript - redirecting to status template error: 112701
80 Wrapped Exception (with status template): Node without parents does not have
root aspect: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
org.springframework.extensions.webscripts.WebScriptException: 11270180 Wrapped
Exception (with status template): Node without parents does not have root aspect
: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
        at org.springframework.extensions.webscripts.AbstractWebScript.createSta
tusException(AbstractWebScript.java:905)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
e(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(Repositor
yContainer.java:393)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecut
e(RepositoryContainer.java:462)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecut
eAs(RepositoryContainer.java:500)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(Repos
itoryContainer.java:275)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScri
pt(AbstractRuntime.java:372)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScri
pt(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.se
rvice(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(Global
LocalizationFilter.java:58)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:558)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Node without parents does not have root a
spect: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
        at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.prependPaths(Abstra
ctNodeDAOImpl.java:3453)
        at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.getPaths(AbstractNo
deDAOImpl.java:3317)
        at org.alfresco.repo.solr.SOLRTrackingComponentImpl.getNodesMetadata(SOL
RTrackingComponentImpl.java:562)
        at sun.reflect.GeneratedMethodAccessor417.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invok
e(SubsystemProxyFactory.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
        at $Proxy141.getNodesMetadata(Unknown Source)
        at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet.executeImpl(Nodes
MetaDataGet.java:183)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
eImpl(DeclarativeWebScript.java:235)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
e(DeclarativeWebScript.java:64)
        … 25 more


  I've tried entering the URL to look for the node by the id but nothing comes up.  I've checked all my files and they all seem good.  Is there a way to simply delete this node form the system and have done with it?

Cheers,

Neil
10 REPLIES 10

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        If anyone can help quickly here - I would be most grateful as I am posting an error level message to my logs every 30 seconds and generating a damn big log file!

Cheers,

Neil

neil_benn
Champ in-the-making
Champ in-the-making
Apologies I did not upgrade to 4.0.d but 4.0.b!

Any help gratefully received!

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

       If anyone can tell me how to delete an errant node that would be great - I do not need the files associated with it but the amount of error logs I am generating is staggering and it causing Alfresco to break.

  Please, please could someone advise.  I've looked for it on the file system, rebuilt the indexes and cannot find it and searched for it in the database and could not find it but the records must be somewhere or I would not be getting the error.  all I have is the following error desc:

Caused by: java.lang.RuntimeException: Node without parents does not have root a
spect: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74

  Which is reported by solr every 2 seconds therefore generating massive error logs.

  Thanks, I would really appreciate some help.


Regards,

Neil

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

     This issue is really causing me some major grief - our system is close to breaking and we are getting close to dropping Alfresco Smiley Sad.  I'm willing to donate money to a favourite charity picked by nice person who can help us out!

  Please assist - it cannot be that hard to delete a node out of the system; I just cannot work out how to do it if I cannot find a database record or a physical file!

  Thanks - in advance for your help,

Cheers,

Neil

mitpatoliya
Star Collaborator
Star Collaborator
Hi Neil,

This might be the case during migration.
Have you created any custom content model and placed it under the alfresco.war file?
Because during migration you will be replacing the alfresco.war so that custom content model must be removed.
And then the content which are created with the types mentioned in that model will cause the problem in that case.
Ideally best practices recommend to place it under the shared directory.

throwback
Champ in-the-making
Champ in-the-making
Ditto here- same problem, same error- node without parent. Further hampered by being unable to rebuild solr indexes as I cannot locate any documentation describing this.

Likewise my log file is growing at an ever increasing rate.

Thought- turn down logging level for SOLR in log4j.properties? Doesn't fix the error but it might at least reduce the logfile growth.

another thought- (if not impractical) export the whole repo in an alfresco export, and import into a new repo. Filthy but it might do.

If I find a solution to this mate I'll give you a shout.

another option might be to roll back to lucene- it still works in 4.x AFAIK it just isn't enabled by default?

throwback
Champ in-the-making
Champ in-the-making
Oh, moreover I have this error and have created no custom content model whatsoever- my repo is simply for testing and is just a bunch of folders of documents imported from a zip. Everything else apart from Authentication/synchronisation is default.

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

    No custom content but I do have a number of docs in there; about 100 docs totalling a few 10s of gigs.  I turned SOLR off but I'm still getting SOLR errors - I will turn off the SOLR logging level but it basically has to be off so this in only a sticking plaster for now.  I can do an export but I cannot work out how to export and keep the file history which I need to do.

  In addition I have standard auth and synchronisation setups.  I did upgrade from Alfresco 3 because the performance in Office in Alfresco 3 is awful (it takes over 5 minutes to open a small word doc from CMIS; a bit word doc can take up to an hour) - therefore downgrading again is not an option.

  Thanks for replying - any ideas of if one of the Alfresco guys could chip in - offer to donate to charity is still there Smiley Happy?

Regards,

Neil

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

    In fact - if I turn off the errors in the log4f.properties file it will work but it seems liek a fairly fundamental class I woudl be turning the errors off for:

org.springframework.extensions.webscripts.AbstractRuntime

  I'll have to do it but I really really need to get this problem fixed - again anything anyone can do to help would be hugely appreciated and we'd help a charity or pay the person who can help us solve the problem.

Cheers,

Neil