CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
201 stars 38 forks source link

Datastore Calculate usage proton /root permission denied #1110

Closed Nypheena closed 3 weeks ago

Nypheena commented 4 weeks ago
[1] (IOException) : Permission denied
Unable to calculate instance size for InstanceName01 (f10fa5a8-58c4-4dbd-909e-455a9e666422)
UnauthorizedAccessException
[0] (UnauthorizedAccessException) : Access to the path '/home/amp/.ampdata/instances/InstanceName01/ark-sa/.proton/compatdata/pfx/dosdevices/z:/root' is denied.
at IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (String path, Boolean ignoreNotFound) at IO.Enumeration.FileSystemEnumerator`1[TResult].DequeueNextDirectory () at IO.Enumeration.FileSystemEnumerator`1[TResult].DirectoryFinished () at IO.Enumeration.FileSystemEnumerator`1[TResult].FindNextEntry (Byte* entryBufferPtr, Int32 bufferLength) at IO.Enumeration.FileSystemEnumerator`1[TResult].MoveNext () at Collections.Generic.LargeArrayBuilder`1[T].AddRange (Collections.Generic.IEnumerable`1[T] items) at Collections.Generic.EnumerableHelpers.ToArray[T] (Collections.Generic.IEnumerable`1[T] source) at IO.FrameworkLinqHelper.ToArray[T] (Collections.Generic.IEnumerable`1[T] source) at IO.Directory.GetFiles (String path, String searchPattern, IO.EnumerationOptions enumerationOptions) at IO.Directory.GetFiles (String path, String searchPattern, IO.SearchOption searchOption) at ADSModule.InstanceDatastoreManager.CalculateInstanceSizeMB (InstanceManagerPlugin.AMPInstanceBase instance)

Since I'm being ignored on the discord

This is the error when dalculating use on debian 12 with docker, because proton symlinks to / https://github.com/ValveSoftware/Proton/issues/3979 which of course AMP cannot access

PhonicUK commented 3 weeks ago

The method AMP uses to calculate instance sizes has been reworked to not follow symlink.

Nypheena commented 3 weeks ago

when is this gonna be a thing because I still get this issue

p0t4t0sandwich commented 3 weeks ago

It would be in the dev branch (commit messages available in dev-feed channel if you want to look for it), so it'll probably be around in the next update if I were to guess.

IceOfWraith commented 3 weeks ago

Watch for the 2.5.0.14 release. Likely Wednesday next week since that's the day we do them.