sytone/obsidian-remote

Local build doesn't seem to work anymore

MacqGit opened this issue · 2 comments

Bug description:
Using:
git checkout tags/v0.1.1
docker build --pull --rm
-f "Dockerfile"
-t obsidian:latest
"."
followed by
docker run --rm -it -v /var/www/:/vaults -v /home/bernard/config:/config -e PUID=$(id -u) -e PGID=$(id -g) -p 8080:8080 --name obsidian_latest obsidian:latest

fails to launch container with following error:
[migrations] started
[migrations] no migrations found
cont-init: info: running /etc/cont-init.d/12-prep_xrdp
cont-init: info: /etc/cont-init.d/12-prep_xrdp exited 0
cont-init: info: running /etc/cont-init.d/13-keygen

Generating 2048 bit rsa key...

───────────────────────────────────────
...
Based on images from linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID: 1000
User GID: 1000
───────────────────────────────────────

ssl_gen_key_xrdp1 ok

saving to rsakeys.ini

Generating a RSA private key
..................+++++
.................................+++++
writing new private key to '/etc/xrdp/key.pem'

cont-init: info: /etc/cont-init.d/13-keygen exited 0
cont-init: info: running /etc/cont-init.d/30-config
cont-init: info: /etc/cont-init.d/30-config exited 1
cont-init: info: running /etc/cont-init.d/50-config
**** No auth enabled. To enable auth, you can set the PASSWORD var in docker arguments. ****


**** Debug Information ****



**** Start Date Information ****


TZ:
Running dpkg-reconfigure -f noninteractive tzdata

Current default time zone: 'Etc/UTC'
Local time is now: Tue Mar 14 15:13:30 UTC 2023.
Universal Time is now: Tue Mar 14 15:13:30 UTC 2023.

Date UTC
Tue 14 Mar 2023 03:13:30 PM UTC
Date Local
Tue 14 Mar 2023 03:13:30 PM UTC
Zone Info
/usr/share/zoneinfo/ Tue Mar 14 15:13:30 2023
Time Zone Offsets
/etc/localtime -9223372036854775808 = NULL
/etc/localtime -9223372036854689408 = NULL
/etc/localtime 9223372036854689407 = NULL
/etc/localtime 9223372036854775807 = NULL


**** End Date Information ****


cont-init: info: /etc/cont-init.d/50-config exited 0
cont-init: info: running /etc/cont-init.d/50-gid-video
cont-init: info: /etc/cont-init.d/50-gid-video exited 0
cont-init: info: running /etc/cont-init.d/55-autostart-config
cont-init: info: /etc/cont-init.d/55-autostart-config exited 0
cont-init: info: running /etc/cont-init.d/56-openboxcopy
cont-init: info: /etc/cont-init.d/56-openboxcopy exited 1
[custom-init] No custom files found, skipping...
services-up: info: copying legacy longrun autostart (no readiness notification)
services-up: info: copying legacy longrun guacd (no readiness notification)
services-up: info: copying legacy longrun web (no readiness notification)
services-up: info: copying legacy longrun xrdp (no readiness notification)
services-up: info: copying legacy longrun xrdp-sesman (no readiness notification)
s6-svwait: fatal: unable to subscribe to events for /var/run/s6/services/xrdp-sesman/: No such file or directory
starting sesman in foreground...
[ls.io-init] done.
Global configuration:
ListenAddress: 127.0.0.1
ListenPort: 3350
EnableUserWindowManager: 1
UserWindowManager: startwm.sh
DefaultWindowManager: /etc/xrdp/startwm.sh
ReconnectScript: /etc/xrdp/reconnectwm.sh
AuthFilePath: disabled
Session configuration:
MaxSessions: 50
X11DisplayOffset: 10
KillDisconnected: 0
IdleTimeLimit: 0
DisconnectedTimeLimit: 0
Policy: 0
Security configuration:
AllowRootLogin: 1
MaxLoginRetry: 4
AlwaysGroupCheck: 0
RestrictOutboundClipboard: 0
TSUsersGroup: (not defined)
TSAdminsGroup: (not defined)
Xorg parameters:
Parameter 00 /usr/lib/xorg/Xorg
Parameter 01 -config
Parameter 02 xrdp/xorg.conf
Parameter 03 -noreset
Parameter 04 -nolisten
Parameter 05 tcp
Parameter 06 -logfile
Parameter 07 .xorgxrdp.%s.log
Xvnc parameters:
Parameter 00 Xvnc
Parameter 01 -bs
Parameter 02 -nolisten
Parameter 03 tcp
Parameter 04 -localhost
Parameter 05 -dpi
Parameter 06 96
SessionVariables parameters:
Parameter 00 PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
xrdp-sesman[215]: (215)(140195580081728)[DEBUG] libscp initialized

[20230314-15:13:32] [DEBUG] libscp initialized
xrdp-sesman[215]: (215)(140195580081728)[INFO ] starting xrdp-sesman with pid 215

[20230314-15:13:32] [INFO ] starting xrdp-sesman with pid 215
xrdp-sesman[215]: (215)(140195580081728)[INFO ] listening to port 3350 on 127.0.0.1

[20230314-15:13:32] [INFO ] listening to port 3350 on 127.0.0.1
guacd[228]: INFO: Guacamole proxy daemon (guacd) version 1.1.0 started
guacd[228]: INFO: Listening on host 0.0.0.0, port 4822
Starting guacamole-lite websocket server
listening on *:8080
xrdp-sesman[215]: (215)(140195580081728)[INFO ] A connection received from ::ffff:127.0.0.1 port 55370

[20230314-15:13:32] [INFO ] A connection received from ::ffff:127.0.0.1 port 55370
xrdp-sesman[215]: (215)(140195580081728)[WARN ] libscp network error.

[20230314-15:13:32] [WARN ] libscp network error.
guacd[228]: INFO: Guacamole connection closed during handshake
xrdp-sesman[215]: (215)(140195580081728)[DEBUG] Closed socket 7 (AF_INET6 ::ffff:127.0.0.1 port 3350)

[20230314-15:13:32] [DEBUG] Closed socket 7 (AF_INET6 ::ffff:127.0.0.1 port 3350)
s6-svwait: fatal: unable to subscribe to events for /var/run/s6/services/xrdp-sesman/: No such file or directory
xrdp-sesman[215]: (215)(140195580081728)[INFO ] A connection received from ::ffff:127.0.0.1 port 55380

[20230314-15:13:33] [INFO ] A connection received from ::ffff:127.0.0.1 port 55380
xrdp-sesman[215]: (215)(140195580081728)[WARN ] libscp network error.

[20230314-15:13:33] [WARN ] libscp network error.
guacd[228]: INFO: Guacamole connection closed during handshake
xrdp-sesman[215]: (215)(140195580081728)[DEBUG] Closed socket 7 (AF_INET6 ::ffff:127.0.0.1 port 3350)
...

Tested with a clean docker install.

Note also that:
-) Works correctly with "ghcr.io/sytone/obsidian-remote:latest" image
-) Images sizes are different:
image

Any hint on that ?

Not too sure. Will have a look this week to see if I can see the issue.

Any hint on that ?

Instead of using the latest Focal docker, fixing the base image to ghcr.io/linuxserver/baseimage-rdesktop-web:focal-1.1.2-ls82 can resolve this issue. (PS: Maybe you can move forward to a newer version of the base image. I simply use the last successful pulling time and determined the most likely version.)

It seems like some base packages need to be properly reconfigured.

What is more, I recommend set the base image to a fixed version here.