probonopd / go-appimage

Go implementation of AppImage tools
MIT License
818 stars 71 forks source link

appimaged doesn't run with error "no such file or directory" #241

Closed pahaze closed 1 year ago

pahaze commented 1 year ago

After following the initial setup from src/appimaged/README.md, appimaged fails to run. I've tried manually downloading it to make sure it wasn't wget, and I still had the same issue. Here's a Gist of all output. For my distro, I use openSUSE Tumbleweed.

appimaged failing to run, but it exists

probonopd commented 1 year ago

What is the architecture of your machine, and which distribution are you using?

pahaze commented 1 year ago

I'm using x86_64 (Ryzen 9 3950X), and for my distro, I'm using openSUSE Tumbleweed

probonopd commented 1 year ago

Does the same happen if you run it from bash?

pahaze commented 1 year ago

Yup, different message but same error essentially

image

probonopd commented 1 year ago

Does strace ~/Applications/AppImages/appimaged-*.AppImage give any useful insights?

pahaze commented 1 year ago

Actually, yeah. It looks like it's pointing to a nonexistant file/directory

image

probonopd commented 1 year ago

Check with file ~/Applications/AppImages/appimaged-*.AppImage.

It should something similar to this: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, stripped.

Check that whatever is reported as "interpreter" (e.g., /lib64/ld-linux-x86-64.so.2) actually exists on your system.

pahaze commented 1 year ago

It didn't leave an interpreter...

image

probonopd commented 1 year ago

Ah right, it's statically linked. Well, I'm not sure what's going on there.

pahaze commented 1 year ago

Yeah, it's pretty interesting IMO. I've never seen an error like it before

pahaze commented 1 year ago

I just tried the setup on my laptop (x86_64, openSUSE Tumbleweed) and it worked fine? Strange.

image

pahaze commented 1 year ago

Interestingly, after restarting multiple times, it gave me this:

image image

It's weird because not only is AppImageLauncher not installed, but also because there's no processes named appimaged or services named appimagelauncherd

image image image

pahaze commented 1 year ago

Welp. Yet another restart entirely fixed it. Weird! But it works. I'll close this for now, thanks for helping :joy: