Lukas-Heiligenbrunner / AURCache

A cache build server for Archlinux AUR packages and serving them
MIT License
53 stars 0 forks source link

Issue with Appimage packages #69

Open vwidmer opened 2 weeks ago

vwidmer commented 2 weeks ago

Seems to fail with any package I tried with appimages?

==> Validating source_x86_64 files with sha256sums...
    obsidian-bin-1.6.7-x86_64.AppImage ... 
Passed
==> Making package: obsidian-bin 1.6.7-1 (Sun Sep  1 12:34:12 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found obsidian-bin-1.6.7-x86_64.AppImage
==> Validating source_x86_64 files with sha256sums...
    obsidian-bin-1.6.7-x86_64.AppImage ... 
Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
/var/ab/.cache/paru/clone/obsidian-bin/PKGBUILD: line 28: ./obsidian-bin-1.6.7-x86_64.AppImage: cannot execute: required file not found
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'obsidian-bin-1.6.7-1': 
error: packages failed to build: obsidian-bin-1.6.7-1
No files found in build directory

and

==> Validating source_x86_64 files with sha256sums...
    via-3.0.0-linux.AppImage ... 
Passed
==> Making package: via-appimage 3.0.0-1 (Mon Sep  2 10:58:39 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found via-3.0.0-linux.AppImage
==> Validating source_x86_64 files with sha256sums...
    via-3.0.0-linux.AppImage ... 
Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
/var/ab/.cache/paru/clone/via-appimage/PKGBUILD: line 24: ./via-3.0.0-linux.AppImage: cannot execute: required file not found
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'via-appimage-3.0.0-1': 
error: packages failed to build: via-appimage-3.0.0-1
No files found in build directory

Let me know what else I can provide to help

Lukas-Heiligenbrunner commented 2 weeks ago

Might be a FUSE problem? https://itsfoss.com/cant-run-appimage-ubuntu/

Did you enable fuse when running docker in an lxc container? 🤔 (for me both work fine)

vwidmer commented 2 weeks ago

It is running on Manjaro I have no problem installing the packages directly on the system.

This is my compose file I have both

devices:
      - /dev/fuse:/dev/fuse
    privileged: true
 version: "3"
services:
  aurcache:
    image: ghcr.io/lukas-heiligenbrunner/aurcache:latest
    ports:
      - 9080:8080
      - 9081:8081
    volumes:
      - /docker/aurcache/db:/app/db
      - /docker/aurcache/repo:/app/repo
    devices:
      - /dev/fuse:/dev/fuse
    privileged: true
networks: {}

in it am I missing something else?

Lukas-Heiligenbrunner commented 2 weeks ago

hmm, should work actually^^ The Manjaro system is not virtualized, right.

My server runs in an ubuntu LXC container on proxmox with this config:

arch: amd64
cores: 12
features: fuse=1
hostname: docker
memory: 20000
mp0: /media/3TBRaid,mp=/media/3TBRaid,replicate=0
nameserver: 127.0.0.1 192.168.0.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=96:41:1D:10:75:5C,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: SSD240G:112/vm-112-disk-1.raw,size=150G
swap: 0
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.cap.drop: 
.
<<some device passthroughs between here>>
.
lxc.autodev: 1

You could try to run the build container manually and try to build the package in there with paru:

docker run -it docker.io/greyltc/archlinux-aur:paru /bin/bash

and then build your package with

paru -S <pkgname> If it fails then too your host system might miss some kernel module or sth?

vwidmer commented 1 week ago

No not virtualized. ok so doesnt work with docker.io/greyltc/archlinux-aur:paru either seems maybe cant use appimages in docker containers?

CupricReki commented 1 week ago

Running docker on an Arch VM and I don't have any issue with building using the obsidian-bin appimage. I did have this issue with ungoogled-chromium and proton-ge-custom-bin though. #71

vwidmer commented 1 week ago

maybe try Manjaro?

Lukas-Heiligenbrunner commented 1 week ago

I did have this issue with ungoogled-chromium and proton-ge-custom-bin though. #71

Ok so those two are because of missing multilib repo, different story #71

I find some people having a similar problem when googling with manjaro. Most of them solve it by installing fuse package... Did you try to build those packages with paru directly on the manjaro host? https://stackoverflow.com/questions/71371276/how-to-run-appimage-electron-app-file-on-docker-container https://forum.manjaro.org/t/appimages-not-starting/129866/2

docker run -it docker.io/greyltc/archlinux-aur:paru /bin/bash

https://stackoverflow.com/questions/48402218/fuse-inside-docker You could retry this with explicitly -device /dev/fuse to pass the fuse device to the builder container. But honestly I'm not sure why its not working.

I'd say its a manjaro problem...
Why are you running a server with manjaro? It's not a good idea imho, I'd use debian or ubuntu-server ;)