Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] /config/.config/openbox/autostart: 1: /squashfs-root/obsidian: not found #9

Open
1 task done
slnw opened this issue Jun 26, 2024 · 5 comments
Open
1 task done

Comments

@slnw
Copy link

slnw commented Jun 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:v1.6.5-ls14
    container_name: obsidian
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
#    volumes:
#      - /path/to/config:/config
    ports:
      - 3008:3000
      - 3009:3001
#    devices:
#      - /dev/dri:/dev/dri #optional
    shm_size: "1gb"
    restart: unless-stopped
    ```
    
    docker compose up -d 
    
    returns `/config/.config/openbox/autostart: 1: /squashfs-root/obsidian: not found` in docker logs and black screen on localhost:3008




### Expected Behavior

_No response_

### Steps To Reproduce

as current behaviour

### Environment

```markdown
- OS: macbook pro
- How docker service was installed: docker compose

CPU architecture

arm64

Docker creation

.

Container logs

2024-06-26 09:36:54 obsidian  | [migrations] started
2024-06-26 09:36:54 obsidian  | [migrations] no migrations found
2024-06-26 09:36:54 obsidian  | ───────────────────────────────────────
2024-06-26 09:36:54 obsidian  | 
2024-06-26 09:36:54 obsidian  |       ██╗     ███████╗██╗ ██████╗
2024-06-26 09:36:54 obsidian  |       ██║     ██╔════╝██║██╔═══██╗
2024-06-26 09:36:54 obsidian  |       ██║     ███████╗██║██║   ██║
2024-06-26 09:36:54 obsidian  |       ██║     ╚════██║██║██║   ██║
2024-06-26 09:36:54 obsidian  |       ███████╗███████║██║╚██████╔╝
2024-06-26 09:36:54 obsidian  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
2024-06-26 09:36:54 obsidian  | 
2024-06-26 09:36:54 obsidian  |    Brought to you by linuxserver.io
2024-06-26 09:36:54 obsidian  | ───────────────────────────────────────
2024-06-26 09:36:54 obsidian  | 
2024-06-26 09:36:54 obsidian  | To support LSIO projects visit:
2024-06-26 09:36:54 obsidian  | https://www.linuxserver.io/donate/
2024-06-26 09:36:54 obsidian  | 
2024-06-26 09:36:54 obsidian  | ───────────────────────────────────────
2024-06-26 09:36:54 obsidian  | GID/UID
2024-06-26 09:36:54 obsidian  | ───────────────────────────────────────
2024-06-26 09:36:54 obsidian  | 
2024-06-26 09:36:54 obsidian  | User UID:    1000
2024-06-26 09:36:54 obsidian  | User GID:    1000
2024-06-26 09:36:54 obsidian  | ───────────────────────────────────────
2024-06-26 09:36:55 obsidian  | [custom-init] No custom files found, skipping...
2024-06-26 09:36:55 obsidian  | _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  | Xvnc KasmVNC 1.2.0 - built Jun 22 2024 18:59:16
2024-06-26 09:36:55 obsidian  | Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
2024-06-26 09:36:55 obsidian  | See http://kasmweb.com for information on KasmVNC.
2024-06-26 09:36:55 obsidian  | Underlying X server release 12014000, The X.Org Foundation
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  | [ls.io-init] done.
2024-06-26 09:36:55 obsidian  | Obt-Message: Xinerama extension is not present on the server
2024-06-26 09:36:55 obsidian  | ***** Imlib2 Developer Warning ***** :
2024-06-26 09:36:55 obsidian  |         This program is calling the Imlib call:
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  |         imlib_free_image();
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  |         With the parameter:
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  |         image
2024-06-26 09:36:55 obsidian  | 
2024-06-26 09:36:55 obsidian  |         being NULL. Please fix your program.
2024-06-26 09:36:55 obsidian  | ObRender-Message: Cannot load image "/squashfs-root/usr/share/icons/hicolor/48x48/apps/obsidian.png" from file "/squashfs-root/usr/share/icons/hicolor/48x48/apps/obsidian.png"
2024-06-26 09:36:55 obsidian  | /config/.config/openbox/autostart: 1: /squashfs-root/obsidian: not found
2024-06-26 09:37:43 obsidian  |  2024-06-26 08:37:43,623 [INFO] websocket 0: got client connection from 127.0.0.1
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@ghostersk
Copy link

ghostersk commented Jun 30, 2024

In portainer terminal it was giving error it cannot open the /squashfs-root/obsidian, ofcourse not as there is no folder like that in root of the container.
Further checking where the obsidian is on system from the remote terminal which obsidian it is in the /usr/bin/obsidian
checking further, there is script to start obsidian, for some reason using the squashfs-root folder, so i just change it to correct location and it works...

nano /config/.config/openbox/autostart
# Comment out the original line and put the good path bellow
#/squashfs-root/obsidian --no-sandbox --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer
/usr/bin/obsidian --no-sandbox --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer

the config folder should be somewhere on your system, as it is maped via docker-compose (in my case)

Edit 1.:
This seems to help with auto start of Obsidian, but when you close it and try to open it from the desktop shortcut it gets the error again.

  • it needs either fixing the location or making link to the squashffs folder
mkdir /squashfs-root
ln -s /usr/bin/obsidian /squashfs-root/obsidian

Edit 2.:
As the last edit does is not persistent over container restarts and you cannot just add it to the autostart script, I have used command: in docker-compose to do it there, and it works as should.

version: '3.7'
networks:
  backend:
    external: true

services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:latest
    container_name: obsidian
    hostname: obsidian
    networks:
      backend:
       # ipv4_address: 172.22.0.254
    restart: unless-stopped
    #ports:
      #- 3000:3000/tcp #http 3001 https
    devices:
      - /dev/dri:/dev/dri #optional Add this for GL support (Linux hosts only)
    security_opt:
      - seccomp:unconfined #optional
     # added command instead of entry point as it was causing issue by using /init after some time.
    command: /bin/bash -c 'mkdir -p /squashfs-root ; ln -sf /usr/bin/obsidian /squashfs-root/obsidian ;tail -f /dev/null'
    environment:
      - TZ=Europe/London
      - PUID=1000
      - PGID=1000
    shm_size: 1gb
    volumes:
      - /obsidian_remote/vaults:/vaults
      - /obsidian_remote/config:/config
      - /obsidian_remote/obsidian_export:/exports
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.obsidian.rule=Host(`obsidian.example.com`)"                                                                                                                                   
      - "traefik.http.routers.obsidian.entrypoints=https"                                                                                                                                                     
      - "traefik.http.routers.obsidian.tls.certresolver=cloudflare"                                                                                                                                       
      - "traefik.http.routers.obsidian.service=obsidian-serv"
      - "traefik.http.services.obsidian-serv.loadbalancer.server.port=3000"
      - "traefik.http.services.obsidian-serv.loadbalancer.server.scheme=http"
      # Middlewears (HTTPS only)
      - >
        traefik.http.routers.image_name.middlewares=
        my-GeoBlock@file,
        secure-headers@file,
        log4shell-foo@file,
        crowdsec-bouncer@docker,
        authelia@docker,
        gzip@file

Edit 3.:
Hopefully final edit, unless someone sorts this in the default code.
I have edited both files in /config/.config/openbox/ menu.xml and autostart ( as mentioned earlier Edit 1:).
I have change the squashroot path to use /usr/bin/obsidian/ and i no longer need to use the command:in docker-compose. Also I have added chromium to desktop shortcut inmenu.xml`:

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="root-menu" label="MENU">
        <item label="Obsidian" icon="/opt/obsidian/usr/share/icons/hicolor/48x48/apps/obsidian.png">
            <action name="Execute">
                <command>/usr/bin/obsidian --no-sandbox --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer</command>
            </action>
        </item>
        <item label="Chromium" icon="/usr/share/pixmaps/chromium.png">
            <action name="Execute">
                <command>/usr/bin/chromium</command>
            </action>
        </item>
        <item label="xterm" icon="/usr/share/pixmaps/xterm-color_48x48.xpm">
            <action name="Execute">
                <command>/usr/bin/xterm</command>
            </action>
        </item>
        <item label="Reload OB">
            <action name="Reconfigure" />
        </item>
    </menu>
</openbox_menu>

@slnw
Copy link
Author

slnw commented Jul 9, 2024

any updates?

@42Craft
Copy link

42Craft commented Jul 29, 2024

I encountered the same issue while running the image on a Synology NAS 920.

I can also conform that using the original docker-compose and adding: command: /bin/bash -c 'mkdir -p /squashfs-root ; ln -sf /usr/bin/obsidian /squashfs-root/obsidian ;tail -f /dev/null' fixes the issue.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

4 participants