[Arch Linux] Unable to launch Grayjay Desktop
Steps to reproduce
- Download Grayjay desktop for linux
- Unzip the folder and run the 'Grayjay' executable
Expected result
Application runs
Actual Result
Error
StateApp:Startup: Initializing DatabaseConnection Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number() at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number() at SQLitePCL.raw.SetProvider(ISQLite3Provider imp) at SQLitePCL.Batteries_V2.Init() at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) at Microsoft.Data.Sqlite.SqliteConnection..cctor() --- End of inner exception stack trace --- at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString) at Grayjay.ClientServer.Database.DatabaseConnection..ctor() at Grayjay.ClientServer.States.StateApp.Startup() at Grayjay.Desktop.Program.Main(String[] args) at Grayjay.Desktop.Pr
System information
Operating System: Arch Linux KDE Plasma Version: 6.2.4 Kernel Version: 6.12.4-arch1-1 (64-bit) Graphics Platform: Wayland
Note you can bypass this error by creating a symlink to Jellyfin's file
ln -s /usr/lib/jellyfin/libe_sqlite3.so libe_sqlite3.so
This results in a new error
Program:Main: Starting DotCefProcess CEF:CEF directory 'Grayjay/cef'. CEF:Working directory 'Grayjay/cef'. CEF:CEF exe path 'Grayjay/cef/dotcefnative'. CEF:File not found at native path Grayjay/cef/dotcefnative'. Unhandled exception. System.Exception: Native executable not found. at DotCef.DotCefProcess.Start(String args) at Grayjay.Desktop.Program.Main(String[] args) at Grayjay.Desktop.Program.
(String[] args) Aborted (core dumped)
Works on my Arch/Plasma/Wayland install.
Note you can bypass this error by creating a symlink to Jellyfin's file
ln -s /usr/lib/jellyfin/libe_sqlite3.so libe_sqlite3.soThis results in a new errorProgram:Main: Starting DotCefProcess CEF:CEF directory 'Grayjay/cef'. CEF:Working directory 'Grayjay/cef'. CEF:CEF exe path 'Grayjay/cef/dotcefnative'. CEF:File not found at native path Grayjay/cef/dotcefnative'. Unhandled exception. System.Exception: Native executable not found. at DotCef.DotCefProcess.Start(String args) at Grayjay.Desktop.Program.Main(String[] args) at Grayjay.Desktop.Program.(String[] args) Aborted (core dumped)
Works on my Arch/Plasma/Wayland install too.
I had this error when launching Grayjay without setting its working path. If you're creating a desktop shortcut or a menu entry in Plasma for Grayjay, try setting its working path to the Grayjay app directory. If you're trying to launch in terminal, try cd-ing to the Grayjay app directory and then running Grayjay.
Im haveing a Similar problem on a Raspberry Pi 4 running Raspberry Pi OS Debian version: 12 (bookworm) Grayjay: cannot execute binary file: Exec format error
@Starduck536 I believe the Linux release is built for x86_64, so I don't think it'll work for your Raspberry Pi's arm architecture. You can create a new issue for this.
Edit: you could also edit the runtime in the deploy_linux.sh script to target linux-arm64 and build it on the Pi.
Works on my Arch/Plasma/Wayland install too.
I had this error when launching Grayjay without setting its working path. If you're creating a desktop shortcut or a menu entry in Plasma for Grayjay, try setting its working path to the Grayjay app directory. If you're trying to launch in terminal, try
cd-ing to the Grayjay app directory and then running Grayjay.
This seemed to be my issue, thank you!
I'm having similar issues with Kubuntu. It'll add new files upon initial opening, but the actual window itself doesn't open. I'm fairly new to Linux, so I could use a bit of help troubleshooting if possible.
@lucina-da-lucario do you have any error logs? You can try running Grayjay through your terminal and pasting its output here.
@lucina-da-lucario do you have any error logs? You can try running Grayjay through your terminal and pasting its output here.
I'll have to check back after work, but I did try running it through the terminal. No Grayjay command found, or something like that.
@lucina-da-lucario If you're on a recent Ubuntu/**buntu distro you may also have to disable Restricted unprivileged user namespaces and then launch from the directory where the executable is located with
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
@lucina-da-lucario If you're on a recent Ubuntu/**buntu distro you may also have to disable Restricted unprivileged user namespaces and then launch from the directory where the executable is located with
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0 sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
I see. I don't think it's necessary to do this for one specific application, so I might wait for a flatpak, snap or whatever so I can sudo it in without possibly opening a risk up on my computer that'll bite me in the future. Either that, or wait for a Browser version of Grayjay to be built, presuming that's on the table.
@lucina-da-lucario do you have any error logs? You can try running Grayjay through your terminal and pasting its output here.
I'll have to check back after work, but I did try running it through the terminal. No Grayjay command found, or something like that.
Also, like I thought.
Grayjay: command not found showed up in the terminal when I attempted to run it.
Regarding logs,
e CEF:[1220/175314.041765:ERROR:chrome_main_delegate.cc(1200)] Web security may only be disabled if '--user-data-dir' is also specified with a non-default value.
e CEF:[14036:14036:1220/175314.046871:FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/user/Downloads/Grayjay/Grayjay.Desktop-linux-x64-v2/cef/chrome-sandbox is owned by root and has mode 4755.
@lucina-da-lucario if you open etc/apparmor.d then you'll find a chromium profile and since grayjay is kinda chromium you can just copy the profile with right permission and replace the value chromium with grayjay and the paths too and then you'll probably need those 4755 permission.
Until a solution comes you can use this without turning off apparmor systemwide.
ohoho a fix for the meantime [Desktop Entry] Type=Application Name=GrayJay Comment=Follow Creators, Not Platforms Exec=[add your path to grayjay] Icon=[add your path to grayjay png] Terminal=false StartupWMClass= Path=[add your path to grayjay] Categories=Entertainment MimeType=text/plain;
as an added bonus add it to /usr/share/applications use sudo nano, copy the text ctrl shift v it in and it'll add it to your programs so you can add it as a shortcut. although the only annoying thing is it launches another window for it and doesn't combine it with the icon, but it still launches the program nonetheless. be sure to save it as grayjay.desktop in the application folder ;3c also i am on ubuntu edit again this seems to have stopped working. however my computer detects issues all the time. if it works for anyone lmk.
If you install via AUR, there are three packages you can use (grayjay.grayjay-git and grayjay-bin). All include workarounds for current issues with the early Linux release.
@nathanchere thanks for setting up Grayjay on AUR!
If you install via AUR, there are three packages you can use (
grayjay.grayjay-gitandgrayjay-bin). All include workarounds for current issues with the early Linux release.
Thank you!!
Which version is best to install from the aur?
I installed the grayjay-git package (3.r55.g1dd9774-1) , but it doesn't launch. I get errors:
❯ grayjay
--: line 1: /home/user/.local/share/grayjay/Grayjay: No such file or directory
❯ cat /usr/sbin/grayjay
#!/bin/sh
#APP_DIR="$HOME/.local/share/grayjay/arch-x64"
APP_DIR="$HOME/.local/share/grayjay"
# Check if app is already installed in user directory
if [ ! -d "$APP_DIR" ]; then
echo "First run - installing Grayjay to $APP_DIR"
mkdir -p "$APP_DIR"
cp -r /usr/lib/grayjay-git/* "$APP_DIR/"
chmod u+w -R "$APP_DIR"
fi
exec sh -c "cd '$APP_DIR' && exec ./Grayjay \"\$@\"" -- "$@"
❯ ls /home/user/.local/share/grayjay/
arch-x64
❯ ls -1 /home/ballgum/.local/share/grayjay/arch-x64/
AppVersion.json
FUTO.MDNS.dll
Grayjay.ClientServer.deps.json
Grayjay.ClientServer.dll
Grayjay.ClientServer.staticwebassets.runtime.json
Grayjay.Engine.dll
logo.ico
logo.svg
UpdaterConfig.json
UpdaterOSConfig.json
wwwroot
x64
x86
Which version is best to install from the aur?
Definitely grayjay-bin since this is such an early release. As the build matures so too will the source-based packages grayjay and grayjay-git become more stable, but for the moment if you just want to get up and running I would stick with the binary package grayjay-bin.
Which version is best to install from the aur?
Definitely
grayjay-binsince this is such an early release. As the build matures so too will the source-based packagesgrayjayandgrayjay-gitbecome more stable, but for the moment if you just want to get up and running I would stick with the binary packagegrayjay-bin.
Ok thank you!
I installed from the grayjay-bin (AUR repo) and managed to get it working but it refuses to use the Grayjay icon and uses the generic cogwheel. Anybody else seeing this?