Closed Loader23 closed 1 year ago
Which component is giving this error ?
Is this what you are looking for?:
[app ] [778:1106/072547.484384:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[app ] LaunchProcess: failed to execvp:
[app ] xdg-settings
[supervisor ] service 'app' exited (got signal SIGILL).
[supervisor ] restarting service 'app'.
[supervisor ] starting service 'app'...
Ok so the issue is with Joplin itself ? Also, is the issue really when changing from ubuntu-18.04 to ubuntu-18.04-v4 ? Or it's just the update to the latest Joplin version that cause the problem ?
The dockerfile always downloads the latest Joplin version. I forgot to mention that I had to add libfuse2 dependency, but thats for both versions - 18.04 and 18.04-v2. But the issue really occurs when changing from 18.04 to 18.04-v4. Joplin does not start anymore with the new Image.
Here is the working dockerfile:
FROM jlesage/baseimage-gui:ubuntu-18.04
RUN apt-get update && apt-get install -y wget libnss3 libgtk-3-0 libxss1 libasound2 libgbm1 libfuse2
RUN useradd --shell /sbin/nologin --home /app --uid 1000 -G users appuser
RUN mkdir /app && chown appuser -Rfv /app
USER appuser
RUN echo $USER
WORKDIR /app
RUN wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh >/app/install-joplin.sh && chmod +x /app/install-joplin.sh
RUN TERM=xterm /app/install-joplin.sh --allow-root --force
RUN /app/.joplin/Joplin.AppImage --appimage-extract
ENV APPDIR=/app/squashfs-root
ADD startapp.sh /startapp.sh
USER root
ADD https://raw.githubusercontent.com/laurent22/joplin/dev/Assets/LinuxIcons/256x256.png /app/joplin-logo.png
RUN APP_ICON_URL=file:///app/joplin-logo.png && install_app_icon.sh "$APP_ICON_URL"
ENV APP_NAME="Joplin"
And the Startapp.sh, just for completion.
#!/bin/sh
cd /app
USER=appuser
HOME="/app"
exec /app/squashfs-root/AppRun --no-sandbox
Now changing 18.04 to 18.04-v4 will cause the error above.
Maybe you need to install additional packages with v4 ? I would check what packages are installed when using 18.04 and then compare with 18.04-v4.
I finally found something :-)
There are many who had the same Problem with Cypres and WSL for Windows. There I found the dependencies for Cypres
apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
I just added these and and now its also working with 18.04-v4. I will now further check what dependency really is needed. But at least I got something to work with so Iam closing this Issue.
Thanks alot for your Support and pushing me in the right direction :-)
You are welcome!
Hi,
I tried to upgrade this from ubuntu-18.04 to ubuntu-18.04-v4 but I always get this Error: Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket
I have also tried with 22.04 and Debian but the error stays the same. Any advise?