zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed Auto update failed

Open ArmmGh opened this issue 1 year ago • 1 comments

Check for existing issues

  • [x] Completed

Describe the bug / provide steps to reproduce it

Hi, the issue is "Auto update failed" which appeared today. It also happens when I click on "check for updates" from top menu

I've tried @pan93412's suggestion from closed issue to run sudo pkill -9 mDNSResponder but no luck, it still fails on auto update

Error message:

2024-01-27T12:19:57 [INFO] downloaded update. path:"/var/folders/_f/h88mlptn3ln7d33tv8zfsh_40000gn/T/zed-auto-update.TvCh3cyCn6Mk/Zed.dmg"
2024-01-27T12:20:02 [ERROR] auto-update failed: error:failed to copy app: "rsync: failed to set times on \"/private/var/folders/_f/h88mlptn3ln7d33tv8zfsh_40000gn/T/AppTranslocation/6E6321BB-2A65-4914-9E31-A0DF55A35A1C/d/Zed.app/.\": Operation not permitted (1)\nrsync: failed to set times on \"/private/var/folders/_f/h88mlptn3ln7d33tv8zfsh_40000gn/T/AppTranslocation/6E6321BB-2A65-4914-9E31-A0DF55A35A1C/d/Zed.app/Contents\": Operation not permitted (1)\nrsync:

It seems to me like permission issue to some directories needed for the update of Zed version

Environment

Zed: v0.119.19 (Zed) OS: macOS 14.2.1 Memory: 18 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

Zed.log

ArmmGh avatar Jan 27 '24 12:01 ArmmGh

After upgrading Macos to the latest 14.3 the issue was solved

ArmmGh avatar Jan 27 '24 15:01 ArmmGh

Thanks @ArmmGh - please reopen if you hit this again.

JosephTLyons avatar Jan 28 '24 21:01 JosephTLyons

I'm getting this issue as well

zisra avatar Feb 09 '24 22:02 zisra

I'm getting this issue as well

Do you use macOS, if so have you updated to 14.3? Also consider updating Zed to the newest version

ArmmGh avatar Feb 09 '24 22:02 ArmmGh

I have this issue as well. I'm on macOS 14.3 and using Zed 0.123.2

tuan-h avatar Feb 23 '24 01:02 tuan-h

I have this issue as well. I'm on macOS 14.3.1 and using Zed 0.123.2

watchgou avatar Feb 24 '24 03:02 watchgou

Hey @tuan-h / @watchgou, can you open up a new issue for this?

JosephTLyons avatar Feb 26 '24 21:02 JosephTLyons

@JosephTLyons

For me it was a permissions issue. I installed Zed on user_A and then used it on user_B and couldn't auto update as user_B. I fixed it by changing the ownership to user_B.

sudo chown -R {user_B}:{user_group} /Applications/Zed.app

tuan-h avatar Feb 28 '24 00:02 tuan-h

I also encounter the problem. I was on Zed 0.123.6, updated to 0.124.7 when it became available, but the updating process begins on every startup now, and it fails - even though I was already on the latest version.

Sorry for commenting on a closed issue but I don't have time nor enough repro info to create a new one.

bartekpacia avatar Feb 29 '24 23:02 bartekpacia

as @bartekpacia mentioned, im in the same boat having same issues, and im facing this since i started using but i ignored it everytime

yet today i decided to search up for the fix and landed here-

❯ zed -v Zed 0.143.7 os Arch Linux kernel 6.10.0-zen1-2-zen

Lavishq avatar Jul 28 '24 12:07 Lavishq