linuxserver / docker-remmina

GNU General Public License v3.0
65 stars 8 forks source link

Unable to save connections #2

Closed JohnLahr closed 2 years ago

JohnLahr commented 4 years ago

linuxserver.io


Expected Behavior

When creating a new connection, the "Save" button should be enabled and functional, and the "Save and Connect" button should create a saved connection for later re-use.

Current Behavior

The "Save" button is grayed out, and while the "Save and Connect" button is enabled and starts a connection, no saved connection is created. This behavior is reproduced both on my local Docker without a proxy, and in my Docker Swarm cluster behind Traefik.

Steps to Reproduce

  1. Start Docker service
  2. Browse to Remmina page
  3. Create a new connection
  4. Fail to save

image

Environment

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

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

docker stack up --compose-file docker-compose.yaml $STACK_NAME --prune

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[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 0.
[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.
guacd[341]: INFO:   Guacamole proxy daemon (guacd) version 1.1.0 started
guacd[341]: INFO:   Listening on host 0.0.0.0, port 4822
Starting guacamole-lite websocket server
listening on *:3000
(node:327) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2020-10-21 00:27:15] [Connection 1]  Client connection open
[2020-10-21 00:27:15] [Connection 1]  Opening guacd connection
[2020-10-21 00:27:15] [Connection 1]  guacd connection open
[2020-10-21 00:27:15] [Connection 1]  Selecting connection type: rdp
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 6.select,3.rdp;
guacd[341]: INFO:   Creating new client for protocol "rdp"
guacd[341]: INFO:   Connection ID is "$fc530e8f-7445-4996-bea5-912dd7348c45"
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 4.size,4.1848,13.949?undefined,2.96;
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 5.audio,9.audio/L16;
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 5.video;
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 5.image;
[2020-10-21 00:27:15] [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
[2020-10-21 00:27:15] [Connection 1]  Sending opCode: 7.connect,0.,9.127.0.0.1,4.3389,0.,3.abc,3.abc,4.1848,13.949?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.;
guacd[364]: INFO:   Security mode: Negotiate (ANY)
guacd[364]: INFO:   Resize method: none
guacd[364]: INFO:   User "@b7ba5bda-7a8c-48f1-89ee-ccbd378e55df" joined connection "$fc530e8f-7445-4996-bea5-912dd7348c45" (1 users now present)
guacd[364]: INFO:   Loading keymap "base"
guacd[364]: INFO:   Loading keymap "en-us-qwerty"
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-115-generic x86_64 Ubuntu
Current Operating System: Linux ddd79d83aabe 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-51-generic root=UUID=af3a607e-4b2a-4244-8dc4-7b990575be26 ro
Build Date: 04 September 2020  03:34:39PM
xorg-server 2:1.19.6-1ubuntu4.6 (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: Wed Oct 21 05:27:17 2020
(++) 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

:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x7f0d68329010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000306f2 bx 0x04100800 cx 0xfeda3203 dx 0x1f8bfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpXvInit: depth 24
rdpClientConInit: kill disconnected [0] timeout [0] sec

rdpScreenInit: out
rdpmousePreInit: drv 0x55b7556e0950 info 0x55b755822ec0, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x7f0d68702c60
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x55b7556df560 info 0x55b7559abe80, flags 0x0
rdpkeybControl: what 0
rdpkeybDeviceInit:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x7f0d684ff530
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 1848 height 949
  calling RRScreenSizeSet
rdpRRScreenSetSize: width 1848 height 949 mmWidth 489 mmHeight 251
rdpRRGetInfo:
  screen resized to 1848x949
  RRScreenSizeSet ok 1
pClientConGotConnection:
rdpClientConGotConnection: g_sck_accept ok new_sck 7
rdpClientConGotConnection: adding only clientCon
rdpClientConProcessMsgVersion: version 0 0 0 1
[20201021-05:25:55] [INFO ] starting xrdp with pid 329
[20201021-05:25:55] [INFO ] listening to port 3389 on 0.0.0.0
[20201021-05:27:16] [INFO ] Socket 11: AF_INET6 connection received from ::ffff:127.0.0.1 port 34704
[20201021-05:27:16] [DEBUG] Closed socket 10 (AF_INET6 :: port 3389)
[20201021-05:27:16] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20201021-05:27:16] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20201021-05:27:16] [DEBUG] TLSv1.2 enabled
[20201021-05:27:16] [DEBUG] TLSv1.1 enabled
[20201021-05:27:16] [DEBUG] TLSv1 enabled
[20201021-05:27:16] [DEBUG] Security layer: requested 3, selected 1
ssl_tls_accept: TLS connection accepted
colorDepth 0xca01 (0xca00 4bpp 0xca01 8bpp)
[20201021-05:27:16] [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 []
[20201021-05:27:16] [INFO ] TLS connection established from ::ffff:127.0.0.1 port 34704: 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 [1235235644]: xrdp_bitmap_create: noorders
[20201021-05:27:17] [DEBUG] xrdp_0000017e_wm_login_mode_event_00000001
xrdp:xrdp_mm [1235235666]: 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
[20201021-05:27:17] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20201021-05:27:17] [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
[20201021-05:27:17] [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
[20201021-05:27:17] [INFO ] xrdp_wm_log_msg: sesman connect ok
sesman connect ok
[20201021-05:27:17] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
sending login info to session manager, please wait...
[20201021-05:27:17] [DEBUG] return value from xrdp_mm_connect 0
xrdp_wm_login_mode_changed: login_mode is 3
[20201021-05:27:17] [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
[20201021-05:27:17] [DEBUG] xrdp_wm_log_msg: started connecting
started connecting
lib_mod_connect: connected to Xserver (Xorg or X11rdp) sck 20
[20201021-05:27:18] [INFO ] lib_mod_log_peer: xrdp_pid=382 connected to X11rdp_pid=386 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:127.0.0.1 client_port=34704
[20201021-05:27:18] [DEBUG] xrdp_wm_log_msg: connected ok

connected ok
[20201021-05:27:18] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20201021-05:27:18] [DEBUG] Closed socket 19 (AF_INET6 ::ffff:127.0.0.1 port 41926)
xrdp_wm_login_mode_changed: login_mode is 10
xrdp_wm_login_mode_changed: login_mode is 11
lib_mod_process_message: type 2 len 0
lib_send_clientrdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpClientConProcessScreenSizeMsg: set width 1848 height 949 bpp 16
rdpClientConProcessScreenSizeMsg: shmemid 0 shmemptr 0x7f0d184a0000
rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1848 cy 949
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 1848 height 949
rdpLoadLayout: keylayout 0x00000409 variant  display 10
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpkeybChangeKeyboardControl:
guacd[364]: INFO:   Accepted format: 16-bit PCM with 2 channels at 44100 Hz
guacd[364]: INFO:   Accepted format: 16-bit PCM with 2 channels at 22050 Hz
guacd[364]: INFO:   Connected to RDPDR 1.12 as client 0x19e026fe
rdpkeybChangeKeyboardControl: autoRepeat off
guacd[364]: INFO:   RDPDR user logged on
dSync: toggling num lock
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpInDeferredUpdateCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off

docker-compose file

version: '3.8'

networks:
  traefik_proxy:
    external: true

services:
  remmina:
    image: linuxserver/remmina
    env_file: /mnt/swarm/config/remmina/remmina.env
    volumes:
      - /mnt/swarm/services/remmina/config:/config
    networks:
      traefik_proxy:
        ipv4_address: 172.30.2.84
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints:
          - "node.role==worker"
      labels:
        - "traefik.enable=true"
        ## HTTP Routers
        - "traefik.http.routers.remmina-rtr.entrypoints=https"
        - "traefik.http.routers.remmina-rtr.rule=Host(`remmina.mydomain.tld`)"
        - "traefik.http.routers.remmina-rtr.tls=true"
        ## Middlewares
        - "traefik.http.routers.remmina-rtr.middlewares=secure-chain@file,ip-whitelist@file"
        ## HTTP Services
        - "traefik.http.routers.remmina-rtr.service=remmina-svc"
        - "traefik.http.services.remmina-svc.loadbalancer.server.port=3000"

The bind mount at /mnt/swarm/services/remmina/config is owned by 1000:1000, recursively.

github-actions[bot] commented 4 years ago

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

j0nnymoe commented 4 years ago

I suspect it will be due to using swarm/remote mount that's causing this issue. Could you try mounting /config to a local filesystem please?

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.