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

permission denied #4101

Open
Abbath opened this issue Dec 5, 2024 · 4 comments
Open

permission denied #4101

Abbath opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Abbath
Copy link

Abbath commented Dec 5, 2024

Describe the bug
lazygit crashes on start with

2024/12/05 10:54:28 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*fs.PathError open /dev/tty: permission denied
/home/runner/work/lazygit/lazygit/pkg/app/app.go:55 (0xbd2e5d)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:167 (0xbd4fa5)
/home/runner/work/lazygit/lazygit/main.go:23 (0xbd68f8)
/opt/hostedtoolcache/go/1.22.7/x64/src/runtime/internal/atomic/types.go:194 (0x43ff5d)
/opt/hostedtoolcache/go/1.22.7/x64/src/runtime/asm_amd64.s:1695 (0x477e81)

latest master crashes with

2024/12/05 11:03:16 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*fs.PathError open /dev/tty: permission denied
/home/lizanets/C/lazygit/pkg/app/app.go:55 (0xbd9f5d)
        Run: newErr := errors.Wrap(err, 0)
/home/lizanets/C/lazygit/pkg/app/entry_point.go:167 (0xbdc0a5)
        Start: Run(appConfig, common, appTypes.NewStartArgs(cliArgs.FilterPath, parsedGitArg, integrationTest))
/home/lizanets/C/lazygit/main.go:23 (0xbdd9f8)
        main: app.Start(ldFlagsBuildInfo, nil)
/usr/lib/go-1.22/src/runtime/internal/atomic/types.go:194 (0x441d5d)
        (*Uint32).Load: return Load(&u.value)
/usr/lib/go-1.22/src/runtime/asm_amd64.s:1695 (0x479ec1)
        goexit: BYTE    $0x90   // NOP
exit status 1

To Reproduce
just run lazygit

Expected behavior
lazygit running

Version info:
commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=linux, arch=amd64, git version=2.43.0

OS: Kubuntu 24.04 6.8.0-49-generic

@Abbath Abbath added the bug Something isn't working label Dec 5, 2024
@mark2185
Copy link
Collaborator

mark2185 commented Dec 5, 2024

/home/runner sounds like it's running some sort of a container. Is it?

@Abbath
Copy link
Author

Abbath commented Dec 5, 2024

No

@suimong
Copy link

suimong commented Dec 19, 2024

Got the same problem here:

2024/12/19 06:36:32 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*fs.PathError open /dev/tty: permission denied
github.com/jesseduffield/lazygit/pkg/app/app.go:55 (0xbd6b1d)
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:167 (0xbd8c65)
github.com/jesseduffield/lazygit/main.go:23 (0xbda5b8)
runtime/internal/atomic/types.go:194 (0x441dbd)
runtime/asm_amd64.s:1695 (0x479f21)

OS Information:

yjx@absolut:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
yjx@absolut:~$ uname -r
6.8.0-51-generic
yjx@absolut:~$ 

Extra info: I'm running lazygit over a SSH connection.

@suimong
Copy link

suimong commented Dec 23, 2024

I disabled apparmor.service, and lazygit just runs fine. On ubuntu 23.04 lazygit runs fine with AppArmor on (which is the default). Not sure what exactly changed in Ubuntu 24.04. I think its because of this: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890/1#p-99950-unprivileged-user-namespace-restrictions.

Disabling this behavior makes lazygit start normally on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants