Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while updating to the latest version. #191

Closed
AdrianSkar opened this issue Jan 11, 2016 · 28 comments
Closed

Error while updating to the latest version. #191

AdrianSkar opened this issue Jan 11, 2016 · 28 comments

Comments

@AdrianSkar
Copy link

Hi, I get this error when I tried to update to the latest version. Same warning when restarting the program.
Device: Win10 x64
This is the info it returns + the log (attached):

>Version: 1.1.0.227; Variant: Installed; Arch: Amd64
Path: C:\Program Files\SyncTrayzor\SyncTrayzor.exe
System.IO.FileNotFoundException: El sistema no puede encontrar el archivo especificado.

   >en Pri.LongPath.Directory.EnumerateNormalizedFileSystemEntries(Boolean includeDirectories, Boolean includeFiles, SearchOption option, String normalizedPath, String normalizedSearchPattern)
   en SyncTrayzor.Services.FilesystemProvider.EnumerateFiles(String path, String searchPattern, SearchOption searchOption) en C:\projects\synctrayzor\src\SyncTrayzor\Services\FilesystemProvider.cs:línea 83
   en SyncTrayzor.Services.Conflicts.ConflictFileManager.FindConflictsImpl(String basePath, SlimObservable`1 subject, CancellationToken cancellationToken) en C:\projects\synctrayzor\src\SyncTrayzor\Services\Conflicts\ConflictFileManager.cs:línea 137
   en SyncTrayzor.Services.Conflicts.ConflictFileManager.<>c__DisplayClass7_0.<FindConflicts>b__0() en C:\projects\synctrayzor\src\SyncTrayzor\Services\Conflicts\ConflictFileManager.cs:línea 110
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en SyncTrayzor.Utils.SlimObservableExtensions.<SubscribeAsync>d__1`1.MoveNext() en C:\projects\synctrayzor\src\SyncTrayzor\Utils\SlimObservable.cs:línea 139
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en SyncTrayzor.Services.Conflicts.ConflictFileWatcher.<ScanFoldersAsync>d__31.MoveNext() en C:\projects\synctrayzor\src\SyncTrayzor\Services\Conflicts\ConflictFileWatcher.cs:línea 204
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en SyncTrayzor.Services.Conflicts.ConflictFileWatcher.<Reset>d__26.MoveNext() en C:\projects\synctrayzor\src\SyncTrayzor\Services\Conflicts\ConflictFileWatcher.cs:línea 97
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.<ThrowAsync>b__3(Object state)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

SyncTrayzor.zip

@Schroedingers-Cat
Copy link

Me too.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Looks like the folder VickyPC doesn't exist. Is that true?

@AdrianSkar
Copy link
Author

It is true, it belongs to other devices (i.e. not synchronized with this device). I used to get some "Unexpected ID folder sent" or similar messages. I though it would be caused by all devices being set to "Introductory" and then corrected those settings, but long before this update.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Hmm, weird, Syncthing manages to fetch the ignores for it, which implies that it exists on-disk. I wonder why I can't access it then...

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

What exactly does C:\Users\Adrian\Desktop\Sync\PcVicky contain?

@AdrianSkar
Copy link
Author

<4GB on half music and half .zip files and/or regular documents and photos

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Oh, so it exists, contains files, everything's file, etc? Was it in use when SyncTrayzor was started?

@AdrianSkar
Copy link
Author

I'm sorry, that is the folder that belongs to the VickyPC's device and it was indeed synced with this one.
It is a linux pc that misses it and gived that message (Id folder sent).

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

I'm confused: which is a linux PC? Does C:\Users\Adrian\Desktop\Sync\PcVicky exist on the computer running SyncTrayzor, or not?

@Schroedingers-Cat
Copy link

AdrianSkar, is that folder "unshared"?

@AdrianSkar
Copy link
Author

It exists, has files and it was a valid folder for this device (win64 using SyncTrayzor). On the other hand, a Linux device (SyncThing GTK) returned those messages but has no PcVicky folder.
EDIT: It was shared only with that device (VickyPC)

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Returned which messages?

@AdrianSkar
Copy link
Author

If I would like to add that folder to the Linux PC(because all devices were set as introductory at first).
But that caused no error.
Sorry about my mistake, I thought that folder to be non existent on this device but it exists. All folders on this device worked well and have files on them.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

OK, that's completely irrelevant to the issue we're trying to debug 😄

My problem is that SyncTrayzor can't enumerate the files and folders in C:\Users\Adrian\Desktop\Sync\PcVicky, for some reason.

  1. Can you access them manually, in Explorer?
  2. Is another program using them?

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

@Schroedingers-Cat is your error exactly the same, as in the same stack trace with the same line numbers?

@AdrianSkar
Copy link
Author

Ok, xD.

I can access them. No program is using them as far as i can tell. I can restart the system If you like.
Explorer does enumerate the files and size, etc on properties window.

@Schroedingers-Cat
Copy link

canton7, I send you a mail with the log files. First I think this is a regression because when I use the version before 1.1.0 it works.
Second I'd like to change the language of the log files to english (currently it's german), however, I've been unable to find a configuration option in the SyncTrayzor/config.xml file.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Thanks - I'll check my email.

The language in the log files is unfortunately driven by whatever .NET language packs you have installed - I can't control that.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

@Schroedingers-Cat right yours is a similar problem, but caused by an UnauthorizedAccessException, implying that I don't have access to look at one of your folders (I'm not sure which at this stage).

I've got a workaround in place: give me 10 minutes to get it built, then I'd be grateful if you could try it 😄

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

In about 7 minutes I'll have an intermediate build which should fix the issue here: https://ci.appveyor.com/project/canton7/synctrayzor/build/1.1.0.229/artifacts . Would you mind testing it? Thanks

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

Righty, that's built. Mind trying it and letting me know if it still crashes? Even if it doesn't crash I'd still be interested in the log (lines containing Failed to enumerate directories in folder or Failed to enumerate files in folder) to try and figure out what the underlying cause of this is.

@Schroedingers-Cat
Copy link

I'm syncing the folder %USERPROFILE/Documents, which on Win7/10 contains hidden, non accessible (system-like protected) folders called "Pictures", "Music" and "Videos". The lines you wanted me to look for only mention these folders. Basically, everybody syncing the document folder from Vista/7 should be affected by this.
The build you uploaded works!

@AdrianSkar
Copy link
Author

It seems to be working now (win10); just a message on a specific file conflict ("choose one").
I've attached the new log. Thank you!!!

SyncTrayzor.zip

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

@Schroedingers-Cat Aah, that makes sense.

@AdrianSkar cool! It looks like it's having trouble with C:\Users\Adrian\Desktop\Sync\PcVicky\00.REVISAR\windows xp\Vic

@AdrianSkar
Copy link
Author

Ok, I'll take a look at it.

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

@AdrianSkar everything's still working fine - it's just ignoring it. Don't worry too much - it's probably got some strange permissions on it (which may mean that Syncthing can't synchronize it either?)

canton7 added a commit that referenced this issue Jan 11, 2016
@AdrianSkar
Copy link
Author

Explorer can't open it either. I'll check the source device files and its Syncthing settings. Tyvm!

@canton7
Copy link
Owner

canton7 commented Jan 11, 2016

(Fixed in 1.1.1)

@canton7 canton7 closed this as completed Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants