'Could not find file' error on backup

Hi,


On attempting to back up my Manager data I get the error shown in the attached image.

I am using version 21.5.27 on Zorin OS 15.3 (which I believe is based on Ubuntu 18.04).

I have searched through the forum but couldn’t find a solution to this error.

Many thanks for your help.

Internal Error

Manager 21.5.27
System.IO.FileNotFoundException: Could not find file ‘/tmp/557039f1-5d44-46b5-ba94-d45aa11684df.manager’.
File name: ‘/tmp/557039f1-5d44-46b5-ba94-d45aa11684df.manager’
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at ManagerServer.HttpHandlers.Businesses.Business.BackupDownload.Post() in C:\projects\manager\ManagerServer\HttpHandlers\Businesses\Business\BackupDownload.cs:line 31
at ManagerServer.Startup.<>c.<b__1_1>d.MoveNext() in C:\projects\manager\ManagerServer\Startup.cs:line 108
— End of stack trace from previous location —
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

Exactly when during the backup process do you get the error? What triggers it?

Also, you are more than 100 versions behind, so whatever is causing this may have already been fixed. Try updating your software to see it the problem persists.

Thanks, I’ll try updating.

The error message pops up after I’ve selected the location to store the backup file. A file does appear in the correct place, though I haven’t tried restoring it yet. I guess my concern is that if there’s an error message it may mean my backup file isn’t sound and my data is vulnerable.

Upgraded to v21.7.24 and I can now back up without any error message - many thanks Tut.

Haven’t yet tested restoring from backup but no reason to think it’s not working.

:slightly_smiling_face: :+1:

I spoke too soon. After posting the above message I switched tabs to do something else, then after 5 minutes clicked back to the Manager window and it immediately jumped from the Backup screen to the same or similar error message, pasted below.

Any thoughts?

Internal Error

Manager 21.7.24
System.IO.FileNotFoundException: Could not find file ‘/tmp/99967062-6ed0-4c43-969f-fae5de2e40ea.manager’.
File name: ‘/tmp/99967062-6ed0-4c43-969f-fae5de2e40ea.manager’
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at ManagerServer.HttpHandlers.Businesses.Business.BackupDownload.Post() in C:\projects\manager\ManagerServer\HttpHandlers\Businesses\Business\BackupDownload.cs:line 31
at ManagerServer.Startup.<>c.<b__1_1>d.MoveNext() in C:\projects\manager\ManagerServer\Startup.cs:line 89
— End of stack trace from previous location —
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Go back

Why were you still on the “backup screen,” whatever you are referring to? Your post #4 said you completed the backup without any error.

I am moving this topic to bugs, because any internal error indicates a bug. But answering my question will help with identifying exactly what happened.

Here is a screenshot of the screen I referred to above as “backup screen”. I’ve never actually successfully completed a backup without the error appearing so I don’t know what it’s supposed to look like after a backup…


It seems that the current behaviour when attempting a backup is to display this screen for a couple of minutes and then display the error screen as posted in my first post. If I click the “go back” link on the error screen it returns to the “backup screen” above with the blue Backup button greyed out, I am then able to navigate by clicking on the tabs on the left hand side.

Did you click the Backup button after having this opportunity to include or exclude attachments, emails, and history?

Yes. I leave the attachments, emails, history boxes ticked then initiate the backup by clicking on the blue backup button. Then the few minutes elapse with than screen showing, followed by the error message.

Please show us that screen where you specify the location. I would like to know the “path” you enter.

creating a ‘tmp’ folder with read write permission in manager installation folder may help you to solve the problem.

As the image shows manager try to create a temporary file in /tmp folder before performing the main backup and can not find that “tmp” folder. that throwing an exception or showing an error message of that information.

This my not be the real problem hence for asking the screenshot for the save file path.

1 Like

See screenshot that you asked for below, Eko.

Since I downloaded the Manager appimage I have always executed it from the Downloads folder.

When I launch the application it says in the bottom left hand corner “/home/d/.local/share/Manager” (don’t know if this is relevant info or not)

To add to the confusion I have been backing up to a folder on an internal partition - as depicted in the screenshot below.

However to exclude the partition as a factor I attempted to backup within the same partition that Manager (and the Zorin OS) is running from, and the same error message appeared so I didn’t think the fact that i was backing up to a separate partition was likely to be relevant.

Sorry but is not the one I asked for. I want the one that shows after you click the blue button and will prompt for a file location and want to know what you entered there. The error you showed most likely is related to the path you entered there, so if you want help please provide it.

@elderberry correct me if I’m wrong, but ignoring the error message, the backup still goes through right? I mean when you are saving backup somewhere, the file is saved. Correct?

Fixed in the latest version (21.7.31)