linuxserver / docker-doublecommander

GNU General Public License v3.0
33 stars 2 forks source link

Guacamole/Xorg doesn't directs to the login screen by default #3

Closed Razva closed 2 years ago

Razva commented 3 years ago

linuxserver.io


Expected Behavior

When accessing https://192.168.1.10:3000 I should be directed to the Guacamole -> Xorg login screen.

Current Behavior

The login screen is posted only when adding /?login=true.

Steps to Reproduce

  1. Access https://192.168.1.10:3000 . No password will be asked.
  2. Access https://192.168.1.10:3000/?login=true . It will work as expected.

Environment

OS: Debian CPU architecture: x86_64 How docker service was installed: official docker repo

Command used to create docker container (run/create/compose/screenshot)

docker run --name doublecommander --restart unless-stopped -d -e PUID=1000 -e PGID=1000 -e TZ=Europe/Bucharest -p 3000:3000 -v /var/lib/docker/doublecommander:/config -v /hdd/date:/date ghcr.io/linuxserver/doublecommander

Docker logs

[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

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

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 12-prep_xrdp: executing... 
[cont-init.d] 12-prep_xrdp: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 1.
[cont-init.d] 55-autostart-config: executing... 
[cont-init.d] 55-autostart-config: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting guacamole-lite websocket server
listening on *:3000
[2021-01-18 22:40:41] [Connection 1]  Client connection open
[2021-01-18 22:40:41] [Connection 1]  Opening guacd connection
[2021-01-18 22:40:41] [Connection 1]  guacd connection open
[2021-01-18 22:40:41] [Connection 1]  Selecting connection type: rdp
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 6.select,3.rdp;
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 4.size,4.1680,13.918?undefined,2.96;
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 5.audio,9.audio/L16;
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 5.video;
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 5.image;
[2021-01-18 22:40:41] [Connection 1]  Server sent handshake: 4.args,13.VERSION_1_1_0,8.hostname,4.port,6.domain,8.username,8.password,5.width,6.height,3.dpi,15.initial-program,11.color-depth,13.disable-audio,15.enable-printing,12.printer-name,12.enable-drive,10.drive-name,10.drive-path,17.create-drive-path,7.console,13.console-audio,13.server-layout,8.security,11.ignore-cert,12.disable-auth,10.remote-app,14.remote-app-dir,15.remote-app-args,15.static-channels,11.client-name,16.enable-wallpaper,14.enable-theming,21.enable-font-smoothing,23.enable-full-window-drag,26.enable-desktop-composition,22.enable-menu-animations,22.disable-bitmap-caching,25.disable-offscreen-caching,21.disable-glyph-caching,16.preconnection-id,18.preconnection-blob,8.timezone,14.recording-path,14.recording-name,24.recording-exclude-output,23.recording-exclude-mouse,22.recording-include-keys,21.create-recording-path,13.resize-method,18.enable-audio-input,9.read-only,16.gateway-hostname,12.gateway-port,14.gateway-domain,16.gateway-username,16.gateway-password,17.load-balance-info
[2021-01-18 22:40:41] [Connection 1]  Sending opCode: 7.connect,0.,9.127.0.0.1,4.3389,0.,3.abc,3.abc,4.1680,13.918?undefined,2.96,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,3.any,4.true,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.;
sh: 1: xauth: not found

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.15.0-124-generic x86_64 Ubuntu
Current Operating System: Linux 21d7041f895d 5.9.0-0.bpo.2-amd64 #1 SMP Debian 5.9.6-1~bpo10+1 (2020-11-19) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.9.0-0.bpo.2-amd64 root=UUID=aaf24641-ff71-4aa3-a0d1-e64490887a1e ro quiet console=tty0 console=ttyS0,115200
Build Date: 30 November 2020  08:01:56PM
xorg-server 2:1.19.6-1ubuntu4.8 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.34.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: ".xorgxrdp.10.log", Time: Mon Jan 18 20:40:43 2021
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xorgxrdpSetup:
xrdpdevSetup:
rdpmousePlug:
rdpkeybPlug:
rdpIdentify:
rdpDriverFunc: op 10
rdpProbe:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x7f51ca922010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x00000f61 bx 0x03040800 cx 0x80202001 dx 0x178bfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpXvInit: depth 24
rdpClientConInit: kill disconnected [0] timeout [0] sec

rdpScreenInit: out
rdpmousePreInit: drv 0x56301669a5d0 info 0x5630167d6f10, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x7f51cacfbc60
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x5630166ad6a0 info 0x56301695fe90, flags 0x0
rdpkeybControl: what 0
rdpkeybDeviceInit:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x7f51caaf8530
rdpkeybControl: what 1
rdpkeybDeviceOn:
rdpSaveScreen:
rdpDeferredRandR:
rdpResizeSession: width 1024 height 768
  calling RRScreenSizeSet
rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
rdpRRGetInfo:
  screen resized to 1024x768
  RRScreenSizeSet ok 1
rdpResizeSession: width 1680 height 918
  calling RRScreenSizeSet
rdpRRScreenSetSize: width 1680 height 918 mmWidth 445 mmHeight 243
rdpRRGetInfo:
  screen resized to 1680x918
  RRScreenSizeSet ok 1
rdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpRRGetInfo:
rdpRRGetInfo:
rdpRRGetInfo:
rdpClientConGotConnection:
rdpClientConGotConnection: g_sck_accept ok new_sck 19
rdpClientConGotConnection: adding only clientCon
rdpClientConProcessMsgVersion: version 0 0 0 1
rdpClientConProcessScreenSizeMsg: set width 1680 height 918 bpp 16
rdpClientConProcessScreenSizeMsg: shmemid 8 shmemptr 0x7f51b9d0a000
rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1680 cy 918
rdpClientConProcessMsgClientInfo:
  got client info bytes 5744
  jpeg support 0
  offscreen support 0
  offscreen size 0
  offscreen entries 0
  client supports glyph cache but server disabled
  client can not do offscreen to offscreen blits
  client can do new(color) cursor
  client can not do multimon
rdpRRSetRdpOutputs: numCrtcs 0 monitorCount 0
rdpRRSetRdpOutputs: add output 0 left 0 top 0 width 1680 height 918
rdpLoadLayout: keylayout 0x00000409 variant  display 10
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
[20210118-20:36:18] [INFO ] starting xrdp with pid 326
[20210118-20:36:18] [INFO ] listening to port 3389 on 0.0.0.0
[20210118-20:40:41] [INFO ] Socket 11: AF_INET6 connection received from ::ffff:127.0.0.1 port 49800
[20210118-20:40:41] [DEBUG] Closed socket 10 (AF_INET6 :: port 3389)
[20210118-20:40:41] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20210118-20:40:41] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20210118-20:40:41] [DEBUG] TLSv1.2 enabled
[20210118-20:40:41] [DEBUG] TLSv1.1 enabled
[20210118-20:40:41] [DEBUG] TLSv1 enabled
[20210118-20:40:41] [DEBUG] Security layer: requested 3, selected 1
ssl_tls_accept: TLS connection accepted
colorDepth 0xca01 (0xca00 4bpp 0xca01 8bpp)
[20210118-20:40:41] [INFO ] connected client computer name: Guacamole RDP
postBeta2ColorDepth 0xca01 (0xca00 4bpp 0xca01 8bpp 0xca02 15bpp 0xca03 16bpp 0xca04 24bpp)
highColorDepth 0x0010 (0x0004 4bpp 0x0008 8bpp 0x000f 15bpp 0x0010 16 bpp 0x0018 24bpp)
supportedColorDepths 0x0007 (0x0001 24bpp 0x0002 16bpp 0x0004 15bpp 0x0008 32bpp)
earlyCapabilityFlags 0x0421 (0x0002 want32)
got client client connection type 0x00000006
xrdp_sec_process_mcs_data_CS_SECURITY:
  client and server support none crypt, using none crypt
error unknown xrdp_sec_process_mcs_data tag 0xc006 size 8
error unknown xrdp_sec_process_mcs_data tag 0xc00a size 8
xrdp_sec_out_mcs_data: using no security
xrdp_load_keyboard_layout: keyboard_type [4] keyboard_subtype [0]
xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20210118-20:40:42] [INFO ] TLS connection established from ::ffff:127.0.0.1 port 49800: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
xrdp_caps_process_order: not enough orders supported by client, using painter.
xrdp_caps_process_pointer: client supports new(color) cursor
xrdp_process_offscreen_bmpcache: support level 1 cache size 7864320 MB cache entries 2000
xrdp_caps_process_surface_cmds:
  cmdFlags 0x00000052
xrdp_caps_process_frame_ack:
  max_unacknowledged_frame_count 2
xrdp_caps_process_confirm_active: not enough orders supported by client, client wants off screen bitmap but offscreen bitmaps disabled
yeah, up_and_running
xrdp:xrdp_bitmap [0389706789]: xrdp_bitmap_create: noorders
[20210118-20:40:42] [DEBUG] xrdp_00000176_wm_login_mode_event_00000001
xrdp:xrdp_mm [0389706794]: xrdp_mm_create: bpp 16 mcs_connection_type 6 jpeg_codec_id 0 v3_codec_id 0 rfx_codec_id 0 h264_codec_id 0
[20210118-20:40:42] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20210118-20:40:42] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
xrdp_wm_login_mode_changed: login_mode is 0
in xrdp_wm_init: 
out xrdp_wm_init: 
xrdp_wm_login_mode_changed: login_mode is 2
[20210118-20:40:42] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
connecting to sesman ip 127.0.0.1 port 3350
[20210118-20:40:43] [INFO ] xrdp_wm_log_msg: sesman connect ok
sesman connect ok
[20210118-20:40:43] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
sending login info to session manager, please wait...
[20210118-20:40:43] [DEBUG] return value from xrdp_mm_connect 0
xrdp_wm_login_mode_changed: login_mode is 3
[20210118-20:40:43] [INFO ] xrdp_wm_log_msg: login successful for display 10
login successful for display 10
loaded module 'libxup.so' ok, interface size 8456, version 3
[20210118-20:40:43] [DEBUG] xrdp_wm_log_msg: started connecting
started connecting
lib_mod_connect: connected to Xserver (Xorg or X11rdp) sck 20
[20210118-20:40:44] [INFO ] lib_mod_log_peer: xrdp_pid=374 connected to X11rdp_pid=378 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:127.0.0.1 client_port=49800
[20210118-20:40:44] [DEBUG] xrdp_wm_log_msg: connected ok
connected ok
[20210118-20:40:44] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
lib_mod_process_message: type 2 len 0
lib_send_client_info:
[20210118-20:40:44] [DEBUG] Closed socket 19 (AF_INET6 ::ffff:127.0.0.1 port 45168)
xrdp_wm_login_mode_changed: login_mode is 10
xrdp_wm_login_mode_changed: login_moderdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

github-actions[bot] commented 3 years ago

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

thelamer commented 2 years ago

Please use AUTO_LOGIN=false env var to force login on / .

RytisLT commented 2 years ago

Please use AUTO_LOGIN=false env var to force login on / .

doesn't seem to work and also is there any particular reason why this isn't documented?