Closed alternativesurfer closed 8 months ago
do you have any errors in your console?
Looks like it
Attaching to app-1
app-1 | fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
app-1 | An unhandled exception has occurred while executing the request.
app-1 | System.UnauthorizedAccessException: Access to the path '/App/data/cartrac ker.db' is denied.
app-1 | ---> System.IO.IOException: Permission denied
app-1 | --- End of inner exception stack trace ---
app-1 | at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnl ySpan1 buffer, Int64 fileOffset) app-1 | at System.IO.Strategies.OSFileStreamStrategy.Write(ReadOnlySpan
1 buff er)
app-1 | at System.IO.Strategies.BufferedFileStreamStrategy.WriteSpan(ReadOnlyS pan1 source, ArraySegment
1 arraySegment)
app-1 | at System.IO.Strategies.BufferedFileStreamStrategy.Write(Byte[] buffer , Int32 offset, Int32 count)
app-1 | at LiteDB.Engine.DiskService.Write(IEnumerable`1 pages, FileOrigin ori gin)
app-1 | at LiteDB.Engine.WalIndexService.CheckpointInternal()
app-1 | at LiteDB.Engine.WalIndexService.TryCheckpoint()
app-1 | at LiteDB.Engine.LiteEngine.Dispose(Boolean disposing)
app-1 | at LiteDB.Engine.LiteEngine.Dispose()
app-1 | at LiteDB.LiteDatabase.Dispose(Boolean disposing)
app-1 | at LiteDB.LiteDatabase.Dispose()
app-1 | at CarCareTracker.External.Implementations.VehicleDataAccess.GetVehicl es() in /App/External/Implementations/VehicleDataAccess.cs:line 34
app-1 | at CarCareTracker.Controllers.HomeController.Garage() in /App/Controll ers/HomeController.cs:line 43
app-1 | at lambda_method25(Closure, Object, Object[])
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncAc tionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Inv okeActionMethodAsync()
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Nex t(State& next, Scope& scope, Object& state, Boolean& isCompleted)
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Inv okeNextActionFilterAsync()
app-1 | --- End of stack trace from previous location ---
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Ret hrow(ActionExecutedContextSealed context)
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Nex t(State& next, Scope& scope, Object& state, Boolean& isCompleted)
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Inv okeInnerFilterAsync()
app-1 | --- End of stack trace from previous location ---
app-1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.
`
seems like your docker container didn't mount the volume /data/ correctly. Can you re-check your docker-compose?
Checking it now. Nothing changed between yesterday and today (when it was working) But I am going to rewrite it so Data is on the local VM rather than a mount.
@alternativesurfer kk let me know if that worked, this seems more like a setup/configuration issue.
I am going to rebuild the whole thing After updating my mapping for the volumes the Restore feature broke.
Ill check in after I get it back up
@alternativesurfer any chance you might be mapping the temp volume to the same directory as other volumes? see #128
I wish it were that simple:
- /home/lubelogger/lubelogger-app/config:/App/config
- /mnt/media/lubelogger/data:/App/data
- /home/lubelogger/lubelogger-app/translations:/App/wwwroot/translations
- /mnt/media/lubelogger/documents:/App/wwwroot/documents
- /mnt/media/lubelogger/images:/App/wwwroot/images
- /home/lubelogger/lubelogger-app/temp:/App/wwwroot/temp
- /home/lubelogger/lubelogger-app/log:/App/log
- /home/lubelogger/lubelogger-app/keys:/root/.aspnet/DataProtection-Keys
Sorry on the delay. Rebuilding today, ran out of bandwidth yesteday.
Rebuilt and this no longer is occurring. closing
If I try and pull up the lubelogger dash I see this error.