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

[Bug]: DBeaver update to 24.1.3 fails #13683

Open
3 tasks done
shaulroyzen opened this issue Jul 24, 2024 · 4 comments
Open
3 tasks done

[Bug]: DBeaver update to 24.1.3 fails #13683

shaulroyzen opened this issue Jul 24, 2024 · 4 comments
Labels

Comments

@shaulroyzen
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

DBeaver

Expected/Current Behaviour

Update succeeds

Steps to Reproduce

`scoop update dbeaver`

Updating one outdated app:
Updating 'DBeaver' (24.1.2 -> 24.1.3)
Downloading new version
Loading dbeaver-ce-24.1.3-win32.win32.x86_64.zip from cache
Checking hash of dbeaver-ce-24.1.3-win32.win32.x86_64.zip ... ok.
Uninstalling 'DBeaver' (24.1.2)
Removing shim 'dbeaver.shim'.
Removing shim 'dbeaver.exe'.
Removing shim 'dbeaver-cli.shim'.
Removing shim 'dbeaver-cli.exe'.
Unlinking ~\scoop\apps\DBeaver\current
Installing 'DBeaver' (24.1.3) [64bit] from 'extras' bucket
Loading dbeaver-ce-24.1.3-win32.win32.x86_64.zip from cache
Extracting dbeaver-ce-24.1.3-win32.win32.x86_64.zip ... Exception: C:\Users\ShaulRoyzen\scoop\apps\scoop\current\lib\core.ps1:889
Line |
 889 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'dbeaver'! (error 11)

Possible Solution

None

Scoop and Buckets Version

Current Scoop version:
be56faf2 (HEAD -> master, tag: v0.5.1, origin/master, origin/HEAD) chore(release): Bump to version 0.5.1 (#6057)

'main' bucket:
b2f979201 (HEAD -> master, origin/master, origin/HEAD) nu: Update to version 0.96.0

'extras' bucket:
b7e4af2b0 (HEAD -> master, origin/master, origin/HEAD) twinkle-tray: Update to version 1.15.5

'versions' bucket:
2f1eff09c (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #1864)

'sysinternals' bucket:
6b2b695 (HEAD -> main, origin/main, origin/HEAD) sysmon: Update to version 15.15

'java' bucket:
7ba2d33f (HEAD -> master, origin/master, origin/HEAD) zulufx21-jre: Update to version 21.36.17

Scoop Config

last_update        use_lessmsi scoop_branch scoop_repo
-----------        ----------- ------------ ----------
24-Jul-24 10:14:29        True master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22621.3880
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.3880
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

@aliesbelik
Copy link
Collaborator

Not reproducible for the same upgrade case:

λ scoop update dbeaver
dbeaver: 24.1.2 -> 24.1.3
Updating one outdated app:
Updating 'dbeaver' (24.1.2 -> 24.1.3)
Downloading new version
Loading dbeaver-ce-24.1.3-win32.win32.x86_64.zip from cache.
Checking hash of dbeaver-ce-24.1.3-win32.win32.x86_64.zip ... ok.
Uninstalling 'dbeaver' (24.1.2)
Removing shim 'dbeaver.shim'.
Removing shim 'dbeaver.exe'.
Removing shim 'dbeaver-cli.shim'.
Removing shim 'dbeaver-cli.exe'.
Unlinking ~\scoop\apps\dbeaver\current
Installing 'dbeaver' (24.1.3) [64bit] from 'extras' bucket
Loading dbeaver-ce-24.1.3-win32.win32.x86_64.zip from cache.
Extracting dbeaver-ce-24.1.3-win32.win32.x86_64.zip ... done.
Linking ~\scoop\apps\dbeaver\current => ~\scoop\apps\dbeaver\24.1.3
Creating shim for 'dbeaver'.
Making C:\Users\scoop\scoop\shims\dbeaver.exe a GUI binary.
Creating shim for 'dbeaver-cli'.
Creating shortcut for DBeaver (dbeaver.exe)
'dbeaver' (24.1.3) was installed successfully!

Depending on the antivirus software you are using and its settings it could block installation or quarantine downloaded binary in case of threat detection.
Please ensure first that it's not your case.

@shaulroyzen
Copy link
Author

shaulroyzen commented Aug 12, 2024

Thanks @aliesbelik, I indeed see that on another machine I'm able to install newest DBeaver.
I'm having same issue on this machine with the packages temurin-jre and temurin8-jre.

What can I check or try? Didn't find any block in Windows Defender.
What exactly this error means? Which directory scoop tries to move and where?

@gentius
Copy link

gentius commented Aug 23, 2024

I had the same, but didn't report it here, as sometimes I just skip an update when I run into similar errors.

Now the update scenario is 24.1.2 -> 24.1.5, but I still get the same error.

@rahil627
Copy link

rahil627 commented Sep 11, 2024

Depending on the antivirus software you are using and its settings it could block installation or quarantine downloaded binary in case of threat detection. Please ensure first that it's not your case.

i found this issue trouble-shooting the same error but for a different package (wezterm). I read that wezterm is simply "unsigned" because the process is stupidly difficult, and so it is often a false-positive. This was indeed my case with BitDefender:

The file C:\Users\ra\scoop\apps\wezterm\20240203-110809-5046fc22\WezTerm-windows-20240203-110809-5046fc22\strip-ansi-escapes.exe is infected with Trojan.GenericKD.72954712 and was moved to quarantine. ...

the error looks like it simply can't find the file, so it makes sense in my case..

may can move this issue to a more general non-package-specific bug/error?

also, it may be nice to catch this error and warn: "file magically disappeared! maybe your anti-virus software didn't like it. >:|"

(just posting info, in case other people run into this.. scoop is god-sent)

update:
hmmm, even with the anti-virus turned off temporarily, 7-zip ran into this error!:

ERROR: Cannot open output file : Access is denied. : > C:\Users\ra\scoop\apps\wezterm\20240203-110809-5046fc22\WezTerm-windows-20240203-110809-5046fc22\strip-ansi-escapes.exe

i just had to manually download and install the nightly build, which was recommended by it's maintainer (wez)... will have to figure out how to really turn off the anti-virus sometime later to install it via a package manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants