hassio-onedrive-backup icon indicating copy to clipboard operation
hassio-onedrive-backup copied to clipboard

2.3.6 Unhandled exeption

Open Meckslo opened this issue 1 year ago • 11 comments

With the update to 2.3.5, I still had upload issues. With version 2.3.6, I'm experiencing a permissions problem. Does anyone know how to fix this?

11/26/2024 11:05:35 [4] Error: System.UnauthorizedAccessException: Access to the path '/config/onlineBackupsData/' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at hassio_onedrive_backup.Storage.LocalStorage.InitializeStorage(ConsoleLogger logger) in /src/Storage/LocalStorage.cs:line 46
   at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 54
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/config/onlineBackupsData/' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at hassio_onedrive_backup.Storage.LocalStorage.InitializeStorage(ConsoleLogger logger) in /src/Storage/LocalStorage.cs:line 46
   at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 54
   at hassio_onedrive_backup.Program.<Main>(String[] args)

Meckslo avatar Nov 26 '24 10:11 Meckslo

I actually didn't intend for this to be the save location. But permissions wise this is requested in the addon config. Did you modify any permissions on your config dir? Could you try manually creating that folder and see if it's able to use it ?

lavinir avatar Dec 08 '24 10:12 lavinir

This issue started occurring for me after 12.1 core upgrade. I have attempted to make directory "onlineBackupsData" in /config. There is no improvement or change after starting the addon again.

IamSam-O avatar Dec 17 '24 03:12 IamSam-O

[1] Info: No new settings file. Attempting to restore from legacy configuration 12/16/2024 21:47:50 [11] Error: System.UnauthorizedAccessException: Access to the path '/config/onlineBackupsData/' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode) at System.IO.Directory.CreateDirectory(String path) at hassio_onedrive_backup.Storage.LocalStorage.InitializeStorage(ConsoleLogger logger) in /src/Storage/LocalStorage.cs:line 46 at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 54

IamSam-O avatar Dec 17 '24 03:12 IamSam-O

Strange. Wonder why this would happen to only some installations. Anyway, I want to change that location to be under the addon config folder, will have this in an upcoming update.

lavinir avatar Dec 17 '24 08:12 lavinir

I have found a work around that will allow the addon to launch without errors. All though its not permanent, and it needs more testing to determine if the addons full functionality will work.

IamSam-O avatar Dec 31 '24 17:12 IamSam-O

  1. Utilizing the portatiner addon locate and open the container for OneDrive Backup.
  2. Under Actions Select Duplicate/Edit image
  3. Selected Volumes under Advanced container settings
  4. Delete the Container labeled "/addons" image
  5. Deploy the container image
  6. Open Addon

IamSam-O avatar Dec 31 '24 17:12 IamSam-O

Addon appears to be fully working after applying work around. image

IamSam-O avatar Dec 31 '24 17:12 IamSam-O

I'm not sure why this would be related. In terms of side effects though, the only one which is probably not impactful to most users is you wouldn't be able to sync that folder using the File Sync capability..

lavinir avatar Jan 09 '25 08:01 lavinir

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Feb 09 '25 02:02 github-actions[bot]

Hi I met the same issue, and I reinstalled it but the issue still exists.

There is the log:

Info: No new settings file. Attempting to restore from legacy configuration
02/12/2025 21:36:28 [4] Error: System.UnauthorizedAccessException: Access to the path '/config/onlineBackupsData/' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at hassio_onedrive_backup.Storage.LocalStorage.InitializeStorage(ConsoleLogger logger) in /src/Storage/LocalStorage.cs:line 47
   at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 54
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/config/onlineBackupsData/' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at hassio_onedrive_backup.Storage.LocalStorage.InitializeStorage(ConsoleLogger logger) in /src/Storage/LocalStorage.cs:line 47
   at hassio_onedrive_backup.Program.Main(String[] args) in /src/Program.cs:line 54
   at hassio_onedrive_backup.Program.<Main>(String[] args)

fghpdf avatar Feb 12 '25 12:02 fghpdf

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Mar 16 '25 02:03 github-actions[bot]