-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Couldn't write out staging user ID #698
Comments
@tobloef The staging message is just a warning, but in general it's a canary that this user's LocalAppData folder can't be written to, which is the Nr. 1 cause that Squirrel fails |
@paulcbetts Ah, good to know. It appears that the folder in the LocalAppData folder is getting created and contains a lot of files, so it seems to be working. Since nothing happens after Setup.exe is done and I cannot launch the application, this is then likely to be a bug in my own code, right? If that's the case, sorry for wasting your time, I just noticed the stacktrace and thought that could be the reason. |
Maybe? If you share the whole log we can tell |
I'll just close the issue for now. Maybe I'll reopen it, but for now I'll just assume that my own code is at fault. |
@paulcbetts I am getting a similar issue regarding this. 2016-05-22 23:34:33> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patod\AppData\Local\electron-app\packages\RELEASES'. 2016-05-22 23:34:45> IEnableLogger: Failed to install package to app dir: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Access to the path 'resources' is denied. Also I am unable to replicate this issue in any other system. I have tried it on 3 more windows 10 systems with admin / non admin accounts its working for them. Any idea what's going wrong here? Target platform: Build Platform: Full log:
|
Any help here? Can we re-open this issue? |
I have been seeing the same issue when installing an app on a PC that has antivirus scan enabled, and I think I have an explanation for the problem: |
@albertsuchvi Interesting, I'd actually rather just rig the unzip target paths, but can you show me your change anyways? |
@albertsuchvi @paulcbetts Confirmed. I disabled the Antivirus (McAfee) and the extract worked like a charm. |
Same issue here. |
@albertsuchvi can you push the fix to a fork? |
.@shoaibmerchant , I've been out of office for a few days, I need to do some other stuff and the reveiw the changes. In a couple of days I will be bale to push iy |
Alright thanks! |
This happens for me too (trying to install Slack); it's only because my work laptop came with the POS McAffee; uninstalled it and just deferring to Windows Defender solved it, so yeah, it does look like it's probably an I/O issue where the virus scanner jumps on the files. |
This is currently closed, but it doesn't look like the core issue was addressed. Can we at least get a link to the workaround? Many of our users are on corporate networks and can't disable their virus protection without admin interventions. This defeats one of the purposes of using electron. Looks like there is just a delay in reading the directory needed? |
There's no workaround for antivirus, other than proper signing |
@paulcbetts we are facing to the same problem although the binaries are properly signed |
@paulcbetts I'm speaking about this: "In the process of unpacking the .nupkg, the contents of the dircetory under lib\net45 is moved up to the package directory. Now, if the virus scan is still scanning files and has some of the files under that directory open, the move fails (hence the System.IO.IOException: Access to the path 'resources' is denied error). My guess is that this conflict may happen for other reasons, but I have seen it with an antivirus (and I have been able to reproduce it by manually opening some of the files in teh directory to be moved) Digital signing probably wouldn't fix this issue if the issue is that the virus protector has locked some files. |
Ah, I fixed this awhile ago by eliminating the move altogether |
Ahh...ok...I'll update to the latest version and see if it goes away. |
I have a similar problem #885. I am using the latest NuGet release (1.4.4) but see reference to 1.4.5 in the source code. Does 1.4.5 fix this issue? @hvassbotn Thanks for the link to this issue. Phil |
I have this exact problem. In 2 cases, I asked our customers to delete our app's folder under LocalAppData and try again, and this worked for them. But other were not lucky. Does updating to the latest, 1.5.0, fix this? |
Still getting this issue |
I am also getting the issue. Is there any other fix for this other than disabling the antivirus? (it worked, but it's not a very practical solution for some users) |
@muhammetalay Thanks, I did the same and it install correctly. |
@muhammetalay That worked for me too, thank you!! |
Great!! It works after:
|
the problem occur when include .gif |
Hi I am getting this error. do you have any idea? 2018-06-29 08:27:46> Program: Starting Squirrel Updater: --install . |
I'm encountering the same issue, and it only happens if I replace the loading gif with a custom one. |
Hello. I've gone through the Getting Started guide and the setup and application works great on my own computer, but whenever I try it on someone else's computer (or in this case a VM) the Setup.exe will briefly run and then crash. It manages to do a few things, like creating the desktop icon and so on, but when I look at the log I get this error:
2016-05-18 20:51:53> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Test User\AppData\Local\MyProject\packages.betaId'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2016-05-18 20:51:53> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Test User\AppData\Local\MyProject\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__3f.MoveNext()
2016-05-18 20:51:53> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Test User\AppData\Local\SquirrelTemp
2016-05-18 20:51:53> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
If anyone could tell me what this error means and possibly how I can fix it, I would very much appreciate it.
The text was updated successfully, but these errors were encountered: