java.io.IOException: Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs

Atlassian JIRA | Marcel Müller | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We plan to implement Jira in our company and for this we must prove that regular updates from our old issue tracking system are possible. For this I am writing a Jira service that should get all the issues that have changed in the old system and create/update the issues in Jira. For the update I have to check whether an issue has already been imported or not, thus I need to search a Jira issue by a custom field value. I use the code proposed in JRA-7031but then the service crashes when I re-index all bugs after the import. The simplest code (not very functional ;-) ) to demonstrate this behavior: public void run() { SearchRequest sr = new SearchRequest(true); // search without security checks sr.addParameter(new ProjectParameter(new Long(10001))); // id of existing project try { com.opensymphony.user.User adminUser = UserUtils.getUser("admin"); // the super user ManagerFactory.getIssueManager().execute(sr, adminUser); // if this line is commented, no exception raised at reindex ManagerFactory.getIndexManager().reIndexAll(); // THIS WILL CRASH } catch (Exception e) { // ignore } } This leads to the following problem: [INFO] Http11Protocol - -Initialisation de Coyote HTTP/1.1 sur le port 8080 DTmarrage du service Tomcat-Standalone Apache Tomcat/4.1.29 [INFO] RAMJobStore - RAMJobStore initialized. [INFO] StdSchedulerFactory - Quartz scheduler 'JiraQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' [INFO] StdSchedulerFactory - Quartz scheduler version: 1.4.5 2005-06-21 19:34:52,482 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.2-#89 2005-06-21 19:34:52,482 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: hsql [INFO] QuartzScheduler - Scheduler JiraQuartzScheduler_$_NON_CLUSTERED started. [Filter: profiling] Using parameter [jira_profile] [Filter: profiling] defaulting to off [autostart=false] [Filter: profiling] Turning filter off [jira_profile=off] [WARN] ServletDispatcher - Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir [INFO] ServletDispatcher - Action dispatcher initialized [INFO] Http11Protocol - -DTmarrage de Coyote HTTP/1.1 sur le port 8080 2005-06-21 19:34:55,420 INFO [sims.jira.service.WatsonUpdateService] started 1 [ERROR] LuceneUtils - Problem with path D:\atlassian-jira-enterprise-3.2-standalone\index/issues: Cannot delete _1.cfs < java.io.IOException: Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:144) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:105) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:173) at com.atlassian.jira.util.LuceneUtils.getIndexWriter(LuceneUtils.java:46) at com.atlassian.jira.issue.index.DefaultIndexManager.getIndexWriter(DefaultIndexManager.java:556) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:275) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:245) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:185) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:137) at com.sims.jira.service.WatsonUpdateService.run(WatsonUpdateService.java:176) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2005-06-21 19:34:55,904 ERROR [jira.issue.index.DefaultIndexManager] !!! issueWriter was null - bad !!! Any ideas why I cannot search issues and the reIndex the database?!?

    Atlassian JIRA | 1 decade ago | Marcel Müller
    java.io.IOException: Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs
  2. 0

    We plan to implement Jira in our company and for this we must prove that regular updates from our old issue tracking system are possible. For this I am writing a Jira service that should get all the issues that have changed in the old system and create/update the issues in Jira. For the update I have to check whether an issue has already been imported or not, thus I need to search a Jira issue by a custom field value. I use the code proposed in JRA-7031but then the service crashes when I re-index all bugs after the import. The simplest code (not very functional ;-) ) to demonstrate this behavior: public void run() { SearchRequest sr = new SearchRequest(true); // search without security checks sr.addParameter(new ProjectParameter(new Long(10001))); // id of existing project try { com.opensymphony.user.User adminUser = UserUtils.getUser("admin"); // the super user ManagerFactory.getIssueManager().execute(sr, adminUser); // if this line is commented, no exception raised at reindex ManagerFactory.getIndexManager().reIndexAll(); // THIS WILL CRASH } catch (Exception e) { // ignore } } This leads to the following problem: [INFO] Http11Protocol - -Initialisation de Coyote HTTP/1.1 sur le port 8080 DTmarrage du service Tomcat-Standalone Apache Tomcat/4.1.29 [INFO] RAMJobStore - RAMJobStore initialized. [INFO] StdSchedulerFactory - Quartz scheduler 'JiraQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' [INFO] StdSchedulerFactory - Quartz scheduler version: 1.4.5 2005-06-21 19:34:52,482 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.2-#89 2005-06-21 19:34:52,482 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: hsql [INFO] QuartzScheduler - Scheduler JiraQuartzScheduler_$_NON_CLUSTERED started. [Filter: profiling] Using parameter [jira_profile] [Filter: profiling] defaulting to off [autostart=false] [Filter: profiling] Turning filter off [jira_profile=off] [WARN] ServletDispatcher - Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir [INFO] ServletDispatcher - Action dispatcher initialized [INFO] Http11Protocol - -DTmarrage de Coyote HTTP/1.1 sur le port 8080 2005-06-21 19:34:55,420 INFO [sims.jira.service.WatsonUpdateService] started 1 [ERROR] LuceneUtils - Problem with path D:\atlassian-jira-enterprise-3.2-standalone\index/issues: Cannot delete _1.cfs < java.io.IOException: Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:144) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:105) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:173) at com.atlassian.jira.util.LuceneUtils.getIndexWriter(LuceneUtils.java:46) at com.atlassian.jira.issue.index.DefaultIndexManager.getIndexWriter(DefaultIndexManager.java:556) at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:275) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:245) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:185) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:137) at com.sims.jira.service.WatsonUpdateService.run(WatsonUpdateService.java:176) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2005-06-21 19:34:55,904 ERROR [jira.issue.index.DefaultIndexManager] !!! issueWriter was null - bad !!! Any ideas why I cannot search issues and the reIndex the database?!?

    Atlassian JIRA | 1 decade ago | Marcel Müller
    java.io.IOException: Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs
  3. 0

    newbie help: getting started w/textIndexer

    Google Groups | 1 decade ago | Zach
    java.io.IOException: Cannot delete lazy
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to fix 'collection1' which is not available due to init failure: Cannot create directory?

    Stack Overflow | 3 years ago | user2366280
    org.apache.solr.common.SolrException: Cannot create directory: /opt/solr/example/solr/collection1/data/index
  6. 0

    IOException: read past EOF

    GitHub | 2 years ago | kjlubick
    java.io.IOException: read past EOF

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Cannot delete _1.cfs>java.io.IOException: Cannot delete _1.cfs

      at org.apache.lucene.store.FSDirectory.create()
    2. Lucene
      IndexWriter.<init>
      1. org.apache.lucene.store.FSDirectory.create(FSDirectory.java:144)
      2. org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:105)
      3. org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
      4. org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:173)
      4 frames
    3. com.atlassian.jira
      DefaultIndexManager.reIndexAll
      1. com.atlassian.jira.util.LuceneUtils.getIndexWriter(LuceneUtils.java:46)
      2. com.atlassian.jira.issue.index.DefaultIndexManager.getIndexWriter(DefaultIndexManager.java:556)
      3. com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:275)
      4. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:245)
      5. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:185)
      6. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:137)
      6 frames
    4. com.sims.jira
      WatsonUpdateService.run
      1. com.sims.jira.service.WatsonUpdateService.run(WatsonUpdateService.java:176)
      1 frame
    5. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59)
      2. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50)
      2 frames
    6. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames