Continuum
  1. Continuum
  2. CONTINUUM-1552

When trying to export the user database -> FileNotFoundException: backups/users/keys.xml (No such file or directory)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1-beta-3
    • Fix Version/s: 1.1
    • Component/s: Data Management
    • Labels:
      None
    • Environment:
      Linux / Http Proxy
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      java -Xmx512m -jar data-management-cli-1.1-beta-3-app.jar -usersJdbcUrl jdbc:derby:continuum-1.1-beta-3/data/users/database -mode EXPORT -directory backups/users
      0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
      2605 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
      2854 [main] INFO JPOX.JDO - PersistenceManagerFactory - Vendor: JPOX Version: 1.1.6
      2854 [main] INFO JPOX.JDO - PersistenceManagerFactory initialised for datastore URL=jdbc:derby:continuum-1.1-beta-3/data/users/database driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa
      4378 [main] INFO JPOX.RDBMS - ================ DatabaseAdapter ==================
      4378 [main] INFO JPOX.RDBMS - Adapter : org.jpox.store.rdbms.adapter.DerbyAdapter
      4378 [main] INFO JPOX.RDBMS - Datastore : name="Apache Derby" version="10.1.3.1" (major=10, minor=1, revision=3)
      4378 [main] INFO JPOX.RDBMS - Driver : name="Apache Derby Embedded JDBC Driver" version="10.1.3.1" (major=10, minor=1)
      4378 [main] INFO JPOX.RDBMS - ===================================================
      4427 [main] INFO JPOX.RDBMS.Schema - Initialising Catalog "", Schema "SA" using "SchemaTable" auto-start option
      5305 [main] INFO JPOX.JDO - Managing Persistence of org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey since it was managed previously
      5327 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
      3974 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey [Table : JDOAUTHENTICATIONKEY, InheritanceStrategy : new-table]
      5870 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table JDOAUTHENTICATIONKEY
      5897 [main] INFO JPOX.RDBMS - Validated 1 index(es) for table JDOAUTHENTICATIONKEY
      5899 [main] INFO JPOX.RDBMS.Schema - Catalog "", Schema "SA" initialised - managing 1 classes
      Exception in thread "main" java.io.FileNotFoundException: backups/users/keys.xml (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at java.io.FileWriter.<init>(FileWriter.java:73)
      at org.codehaus.plexus.redback.management.JdoDataManagementTool.backupKeyDatabase(JdoDataManagementTool.java:115)
      at org.apache.maven.continuum.management.redback.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:66)
      at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:238)
      at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:153)

        Activity

        Hide
        Luca added a comment -

        the same problem occurs exporting from continuum 1.1 users db
        the export of continuum db is ok.

        java -Xmx512m -jar data-management-cli-1.1-app.jar -usersJdbcUrl jdbc:derby:$DB/users -mode EXPORT -directory backups/users

        0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
        1976 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
        2150 [main] INFO JPOX.JDO - PersistenceManagerFactory - Vendor: JPOX Version: 1.1.6
        2150 [main] INFO JPOX.JDO - PersistenceManagerFactory initialised for datastore URL=jdbc:derby:/var/continuum/database/users driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa
        2799 [main] INFO JPOX.RDBMS - ================ DatabaseAdapter ==================
        2799 [main] INFO JPOX.RDBMS - Adapter : org.jpox.store.rdbms.adapter.DerbyAdapter
        2799 [main] INFO JPOX.RDBMS - Datastore : name="Apache Derby" version="10.1.3.1" (major=10, minor=1, revision=3)
        2800 [main] INFO JPOX.RDBMS - Driver : name="Apache Derby Embedded JDBC Driver" version="10.1.3.1" (major=10, minor=1)
        2800 [main] INFO JPOX.RDBMS - ===================================================
        2833 [main] INFO JPOX.RDBMS.Schema - Initialising Catalog "", Schema "SA" using "SchemaTable" auto-start option
        3373 [main] INFO JPOX.JDO - Managing Persistence of org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey since it was managed previously
        3391 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
        3509 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey [Table : JDOAUTHENTICATIONKEY, InheritanceStrategy : new-table]
        3612 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table JDOAUTHENTICATIONKEY
        3634 [main] INFO JPOX.RDBMS - Validated 1 index(es) for table JDOAUTHENTICATIONKEY
        3636 [main] INFO JPOX.RDBMS.Schema - Catalog "", Schema "SA" initialised - managing 1 classes
        Exception in thread "main" java.io.FileNotFoundException: backups/users/keys.xml (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at java.io.FileWriter.<init>(FileWriter.java:73)
        at org.codehaus.plexus.redback.management.JdoDataManagementTool.backupKeyDatabase(JdoDataManagementTool.java:115)
        at org.apache.maven.continuum.management.redback.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:66)
        at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:265)
        at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:177)

        Show
        Luca added a comment - the same problem occurs exporting from continuum 1.1 users db the export of continuum db is ok. java -Xmx512m -jar data-management-cli-1.1-app.jar -usersJdbcUrl jdbc:derby:$DB/users -mode EXPORT -directory backups/users 0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database... 1976 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored 2150 [main] INFO JPOX.JDO - PersistenceManagerFactory - Vendor: JPOX Version: 1.1.6 2150 [main] INFO JPOX.JDO - PersistenceManagerFactory initialised for datastore URL=jdbc:derby:/var/continuum/database/users driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa 2799 [main] INFO JPOX.RDBMS - ================ DatabaseAdapter ================== 2799 [main] INFO JPOX.RDBMS - Adapter : org.jpox.store.rdbms.adapter.DerbyAdapter 2799 [main] INFO JPOX.RDBMS - Datastore : name="Apache Derby" version="10.1.3.1" (major=10, minor=1, revision=3) 2800 [main] INFO JPOX.RDBMS - Driver : name="Apache Derby Embedded JDBC Driver" version="10.1.3.1" (major=10, minor=1) 2800 [main] INFO JPOX.RDBMS - =================================================== 2833 [main] INFO JPOX.RDBMS.Schema - Initialising Catalog "", Schema "SA" using "SchemaTable" auto-start option 3373 [main] INFO JPOX.JDO - Managing Persistence of org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey since it was managed previously 3391 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored. 3509 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey [Table : JDOAUTHENTICATIONKEY, InheritanceStrategy : new-table] 3612 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table JDOAUTHENTICATIONKEY 3634 [main] INFO JPOX.RDBMS - Validated 1 index(es) for table JDOAUTHENTICATIONKEY 3636 [main] INFO JPOX.RDBMS.Schema - Catalog "", Schema "SA" initialised - managing 1 classes Exception in thread "main" java.io.FileNotFoundException: backups/users/keys.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at java.io.FileWriter.<init>(FileWriter.java:73) at org.codehaus.plexus.redback.management.JdoDataManagementTool.backupKeyDatabase(JdoDataManagementTool.java:115) at org.apache.maven.continuum.management.redback.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:66) at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:265) at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:177)

          People

          • Assignee:
            Emmanuel Venisse
            Reporter:
            Francis De Brabandere
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: