When trying to backup either to Nextcloud or Webdav i get this error
Warning
An error occurred while saving the entity changes. See the inner exception for details.
Any idea as why it might be happening?
When trying to backup either to Nextcloud or Webdav i get this error
Warning
An error occurred while saving the entity changes. See the inner exception for details.
Any idea as why it might be happening?
Here are the logs when running a backup and it fails.
2025-01-17 07:36:52,072|ERROR|[47]|ASC.Data.Backup.Services.BackupProgressItem - RunJob - Params: id: fdfef29c-371c-47af-b4c3-bd40efbc9f2a, tenantId: 1, file: /var/www/docspace/services/ASC.Data.Backup.BackgroundTasks/temp/backup/denali_2025-01-17_07-36-28.tar.gz, basePath: sbox-1-L0RlbmFsaSBiYWNrdXBz|Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
---> MySqlConnector.MySqlException (0x80004005): Column 'storage_path' cannot be null
at MySqlConnector.Core.ServerSession.ReceiveReplyAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ServerSession.cs:line 894
at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 37
at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130
at MySqlConnector.MySqlDataReader.InitAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 483
at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56
at MySqlConnector.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 357
at MySqlConnector.MySqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 350
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at ASC.Data.Backup.Storage.BackupRepository.SaveBackupRecordAsync(BackupRecord backupRecord) in /home/jenkins/workspace/appserver.deb/install/deb/debian/build/server/common/ASC.Data.Backup.Core/Storage/BackupRepository.cs:line 37
at ASC.Data.Backup.Storage.BackupRepository.SaveBackupRecordAsync(BackupRecord backupRecord) in /home/jenkins/workspace/appserver.deb/install/deb/debian/build/server/common/ASC.Data.Backup.Core/Storage/BackupRepository.cs:line 37
at ASC.Data.Backup.Services.BackupProgressItem.DoJob() in /home/jenkins/workspace/appserver.deb/install/deb/debian/build/server/common/ASC.Data.Backup.Core/Service/ProgressItems/BackupProgressItem.cs:line 128
By what i understand is that once webdav is configured and a path is chosen, it does not get stored in the database and when the backup is done it can not figure out the path where to transfer the data.
Hello @irdi
Was the setup of settings on the Backup page successful? Please reproduce the issue and provide us with the entire DocSpace logs folder.
Additionally, please clarify how exactly you installed the portal and specify its component versions.
Yes, the Nextcloud/WebDAV connections are successful. I can choose a dir where the backups will be stored, but after i run the backup, it does not manage to transfer the data there.
The installation was done using the DEB installer script.
Current version: 3.0.1.475
Logs and testing so far. It seems the issue might be related to bigger backup files.
I have multiple spaces on the same instance. When backing up to Nextcloud/WebDAV a space with a small amount of data it works fine. While backing up a space with over 4gb of data (which I can not really call big) it fails.
Logs here: RedlineDCS
Thanks for the support!
We are checking the situation and I will contact you shortly.
P.S. The provided logs link seems outdated. Could you please re-upload the logs?
Here it is RedlineDCS
Thanks for the support
Thank you! We are looking into it.
Hello @irdi
We have found a bug in the described scenario. We have started working on it.
Thank you for bringing our attention to this situation!
Thank you @Alexandre .
Hope you can solve it.