jacob-keller/L0G-101086

path's format is not supported

Closed this issue · 14 comments

New-Item : The given path's format is not supported.
At C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1:144 char:5
+     New-Item -ItemType Directory -Path $dir
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-Item], NotSupportedException
    + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.NewItemCommand

Has been happening trying to upgrade to any version past 2.1.0

what is the value in the config file for extra_upload_data, and is it a valid directory?

I can probably add more verbose logging here to make it more obvious what is broken.

It's the default value, same value works fine in 2.1.0

"%UserProfile%\Documents\Guild Wars 2\addons\arcdps\arcdps.uploadextras"
Hard path: "C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.uploadextras\20181219-225638"

I just added a bit more exception handling logic to this. Can you try the latest commit on master? Also, when you do, see if there's any relevant data in upload_log.txt

Powershell

PS C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps> C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1
Write-Exception : 
MyCommand             : New-Item
BoundParameters       : {}
UnboundArguments      : {}
ScriptLineNumber      : 152
OffsetInLine          : 9
HistoryId             : 5
ScriptName            : C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1
Line                  :         New-Item -ItemType Directory -Path $dir
                        
PositionMessage       : At C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1:152 char:9
                        +         New-Item -ItemType Directory -Path $dir
                        +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PSScriptRoot          : C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps
PSCommandPath         : C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1
InvocationName        : New-Item
PipelineLength        : 0
PipelinePosition      : 0
ExpectingInput        : False
CommandOrigin         : Internal
DisplayScriptPosition : 
Data                  : {}
HelpLink              : 
HResult               : -2146233067
InnerException        : 
Message               : The given path's format is not supported.
Source                : mscorlib
StackTrace            :    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
                           at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
                           at Microsoft.PowerShell.Commands.FileSystemProvider.CreateDirectory(String path, Boolean streamOutput)
                           at Microsoft.PowerShell.Commands.FileSystemProvider.NewItem(String path, String type, Object value)
                           at System.Management.Automation.SessionStateInternal.NewItemPrivate(CmdletProvider providerInstance, String path, String type, Object 
                        content, CmdletProviderContext context)
TargetSite            : Void EmulateFileIOPermissionChecks(System.String)
At C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1:154 char:9
+         Write-Exception $_
+         ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Exception
 
Unable to process C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.cbtlogs\Dhuum\20181219-211510.evtc... Press any key to exit...: ```

upload_log.txt

Unable to create extra upload directory 'C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.uploadextras\C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.cbtlogs\Dhuum\20181219-211510.evtc'

nable to create extra upload directory 'C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.uploadextras\C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\arcdps.cbtlogs\Dhuum\20181219-211510.evtc'```

So that line is suspicious hmm.. it looks like it's somehow trying to use the full path to the file...

Oh.. your logs aren't compresed, are they?

They aren't, turned it off when zevtc happened and hadn't turned that back on

ok, I think I accidentally broke that. I have an update I'm about to publish for that :)

Can you try pull request #21 and let me know if it fixes it for you?

At C:\Users\Laurent\Documents\Guild Wars 2\addons\arcdps\upload-logs.ps1:140 char:29
+         If (-not (Test-Path -dir $dir)) {
+                             ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.TestPathCommand```

Woops, typo in a separate commit. I think I just fixed that, sorry about that one. I'm going to rebase the original merge.

Try what's on master when you get a chance, I merged the pull request.

Try out release v2.4.2 when you get a chance, I believe that should fix this for good :)

2.4.2 fixes the issue