Open slnw opened 1 week ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
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.
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:
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 in `menu.xml`:
<?xml version="1.0" encoding="utf-8"?>
Is there an existing issue for this?
Current Behavior
Expected Behavior
No response
Steps To Reproduce
as current behaviour
Environment
CPU architecture
arm64
Docker creation
Container logs