zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.71k stars 639 forks source link

zellij not opening but crashed - "thread 'main' panicked at zellij-client/src/lib.rs:219:44" #3617

Open aruprakshit opened 1 day ago

aruprakshit commented 1 day ago
  1. Issues with the Zellij UI / behavior / crash

Please attach the files that were created in /tmp/zellij-1000/zellij-log/ to the extent you are comfortable with.

 tail -f zellij.log

INFO   |zellij_client            | 2024-09-21 12:03:06.189 [main      ] [zellij-client/src/lib.rs:178]: Starting Zellij client!

INFO   |zellij_client            | 2024-09-21 12:03:37.797 [main      ] [zellij-client/src/lib.rs:178]: Starting Zellij client!
INFO   |zellij_client            | 2024-09-21 12:04:24.834 [main      ] [zellij-client/src/lib.rs:178]: Starting Zellij client!

Basic information

╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:04:24
╰─⠠⠵ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:05:04
╰─⠠⠵ uname -a
Linux deadpool 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:05:09
╰─⠠⠵ stty size
40 170
╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:05:28
╰─⠠⠵ zellij --version
zellij 0.40.1

Issue description

When I run zellij I see a quick text appears, and then no session window. I am back to the window from where I ran the command. I checked the zellij.log it doesn't have anything printed about the error. So somehow I manged to get atleast to the see the text was comming and disappearing like below.

 zellij > ~/.stderr.log
thread 'main' panicked at zellij-client/src/lib.rs:219:44:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Minimal reproduction

I have it installed locally. Still wanted to check if the error is my setup. But I see when I run this bash <(curl -L zellij.dev/launch) I see the same issue as I said above.

Other relevant information

╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:15:30
╰─⠠⠵ RUST_BACKTRACE=1 zellij > ~/stderr.log
thread 'main' panicked at zellij-client/src/lib.rs:219:44:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
╭─arup at deadpool in ~/elxr-containers on main✘✘✘ 24-09-21 - 12:15:47
╰─⠠⠵ RUST_BACKTRACE=full zellij > ~/stderr.log
thread 'main' panicked at zellij-client/src/lib.rs:219:44:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
   0:     0x7f68a094e929 - <unknown>
   1:     0x7f68a05cd6e0 - <unknown>
   2:     0x7f68a0916ab2 - <unknown>
   3:     0x7f68a095185e - <unknown>
   4:     0x7f68a0950fe0 - <unknown>
   5:     0x7f68a095218b - <unknown>
   6:     0x7f68a0951bb0 - <unknown>
   7:     0x7f68a0951b06 - <unknown>
   8:     0x7f68a0951af3 - <unknown>
   9:     0x7f68a046cb54 - <unknown>
  10:     0x7f68a046d0c2 - <unknown>
  11:     0x7f68a0d4f1f5 - <unknown>
  12:     0x7f68a0d475fa - <unknown>
  13:     0x7f68a0c664ed - <unknown>
  14:     0x7f68a0c7e683 - <unknown>
  15:     0x7f68a0ca0353 - <unknown>
  16:     0x7f68a0c7c0fb - <unknown>

Note. I had Ubuntu 20.x before and it was working. I just did an upgrade to my OS to the version I mentioned above, and it is broken now.

imsnif commented 1 day ago

Seems like Zellij does not have permission to create this folder: https://docs.rs/directories/5.0.1/directories/struct.ProjectDirs.html#method.cache_dir

We use it for the IPC files to communicate between the Zellij client and server. Can't run without it...

aruprakshit commented 1 day ago

Seems like Zellij does not have permission to create this folder: https://docs.rs/directories/5.0.1/directories/struct.ProjectDirs.html#method.cache_dir

We use it for the IPC files to communicate between the Zellij client and server. Can't run without it...

Ok. What do I need to do here? It was working, just after the upgrade of OS it broke.