2.3.6 Unhandled exeption
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)
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 ?
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.
[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
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.
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.
- Utilizing the portatiner addon locate and open the container for OneDrive Backup.
- Under Actions Select Duplicate/Edit
- Selected Volumes under Advanced container settings
- Delete the Container labeled "/addons"
- Deploy the container
- Open Addon
Addon appears to be fully working after applying work around.
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..
This issue is stale because it has been open for 30 days with no activity.
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)
This issue is stale because it has been open for 30 days with no activity.