Page 1 sur 1

Sauvegarde des données

Posté : mar. déc. 05, 2023 12:30 pm
par new morning
Bonjour,

J'ai voulu sauvegarder les données dans un répertoire différent par sécurité, et j'obtiens cette erreur : Comment faire pour avoir une sauvegarde ? C'est pourtant une petite DB (356 Mo), peut-être que ça vient du répertoire initial Google Drive contenant un espace ?

Code : Tout sélectionner

Echec de la sauvegarde

Impossible d'accéder au résultat de backup to 'E:\openconcerto\OpenConcerto\mardi\Base.zip'
 in jdbc:h2:file:C:\Users\User\Google Drive\COMPTA\pro_HUGO\OpenConcerto\Data\DBData/OpenConcerto;DATABASE_TO_UPPER=false
org.openconcerto.utils.ExceptionHandler: Echec de la sauvegarde
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:145)
	at org.openconcerto.sql.utils.BackupPanel$2.run(BackupPanel.java:410)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Impossible d'accéder au résultat de backup to 'E:\openconcerto\OpenConcerto\mardi\Base.zip'
 in jdbc:h2:file:C:\Users\User\Google Drive\COMPTA\pro_HUGO\OpenConcerto\Data\DBData/OpenConcerto;DATABASE_TO_UPPER=false
	at org.openconcerto.sql.model.SQLDataSource.execute(SQLDataSource.java:650)
	at org.openconcerto.sql.model.SQLDataSource.execute(SQLDataSource.java:558)
	at org.openconcerto.sql.model.SQLDataSource.execute(SQLDataSource.java:538)
	at org.openconcerto.sql.model.SQLDataSource.execute(SQLDataSource.java:467)
	at org.openconcerto.sql.utils.BackupPanel$2.run(BackupPanel.java:329)
	... 1 more
Caused by: org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.IOException: Espace insuffisant sur le disque"; "E:\openconcerto\OpenConcerto\mardi\Base.zip"; SQL statement:
backup to 'E:\openconcerto\OpenConcerto\mardi\Base.zip' [90031-175]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)
	at org.h2.message.DbException.get(DbException.java:161)
	at org.h2.message.DbException.convertIOException(DbException.java:318)
	at org.h2.command.dml.BackupCommand.backupTo(BackupCommand.java:101)
	at org.h2.command.dml.BackupCommand.update(BackupCommand.java:52)
	at org.h2.command.CommandContainer.update(CommandContainer.java:79)
	at org.h2.command.Command.executeUpdate(Command.java:253)
	at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:181)
	at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:156)
	at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
	at org.openconcerto.sql.model.SQLDataSource$ExecutorThread.run(SQLDataSource.java:1243)
Caused by: java.io.IOException: Espace insuffisant sur le disque
	at java.io.FileOutputStream.writeBytes(Native Method)
	at java.io.FileOutputStream.write(Unknown Source)
	at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
	at java.util.zip.DeflaterOutputStream.write(Unknown Source)
	at java.util.zip.ZipOutputStream.write(Unknown Source)
	at org.h2.store.PageStore.copyDirect(PageStore.java:266)
	at org.h2.command.dml.BackupCommand.backupPageStore(BackupCommand.java:116)
	at org.h2.command.dml.BackupCommand.backupTo(BackupCommand.java:72)
	... 7 more

Re: Sauvegarde des données

Posté : mer. déc. 06, 2023 10:01 pm
par guillaume
Bonjour,

Dans le message d'erreur on peut lire "Espace insuffisant sur le disque"

Le mieux reste de sauvegarder sur une clef USB.

Cordialement,