nurdism / neko

A self hosted virtual browser (rabb.it clone) that runs in docker.
Apache License 2.0
2.03k stars 186 forks source link

[BUG] Not able to login after creation #117

Closed clemone210 closed 3 years ago

clemone210 commented 3 years ago

Describe the bug I deployed the docker-compose container as described. After login It gets me this log:

Desktop (please complete the following information): Container is running on a ubuntu server vm. Docker is installed via snap. Accessing the site trough a windows device on the same network.

Server Log:

neko_1  | 2021-01-19 16:30:40,979 CRIT Supervisor running as root (no user in config file)
neko_1  | 2021-01-19 16:30:40,979 WARN For [program:firefox-esr], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
neko_1  | 2021-01-19 16:30:40,979 WARN For [program:neko], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
neko_1  | 2021-01-19 16:30:40,979 INFO Included extra file "/etc/neko/supervisord/firefox.conf" during parsing
neko_1  | 2021-01-19 16:30:40,979 INFO Included extra file "/etc/neko/supervisord/neko.conf" during parsing
neko_1  | 2021-01-19 16:30:40,982 INFO supervisord started with pid 1
neko_1  | 2021-01-19 16:30:41,985 INFO spawned: 'dbus' with pid 8
neko_1  | 2021-01-19 16:30:41,987 INFO spawned: 'openbox' with pid 9
neko_1  | 2021-01-19 16:30:41,990 INFO spawned: 'pulseaudio' with pid 10
neko_1  | 2021-01-19 16:30:41,992 INFO spawned: 'x-server' with pid 11
neko_1  | 2021-01-19 16:30:41,994 INFO spawned: 'firefox-esr' with pid 14
neko_1  | 2021-01-19 16:30:41,997 INFO spawned: 'neko' with pid 15
neko_1  | 2021-01-19 16:30:42,002 DEBG 'dbus' stdout output:
neko_1  | 13
neko_1  |
neko_1  | 2021-01-19 16:30:42,008 DEBG 'x-server' stdout output:
neko_1  | _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
neko_1  |
neko_1  | 2021-01-19 16:30:42,009 DEBG 'x-server' stdout output:
neko_1  |
neko_1  | X.Org X Server 1.19.2
neko_1  | Release Date: 2017-03-02
neko_1  | X Protocol Version 11, Revision 0
neko_1  |
neko_1  | 2021-01-19 16:30:42,009 DEBG 'x-server' stdout output:
neko_1  | Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
neko_1  | Current Operating System: Linux c88826e4dd1b 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64
neko_1  | Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.0-62-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro maybe-ubiquity
neko_1  | Build Date: 03 November 2018  03:09:11AM
neko_1  | xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
neko_1  | Current version of pixman: 0.34.0
neko_1  |       Before reporting problems, check http://wiki.x.org
neko_1  |       to make sure that you have the latest version.
neko_1  | Markers: (--) probed, (**) from config file, (==) default setting,
neko_1  |       (++) from command line, (!!) notice, (II) informational,
neko_1  |       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
neko_1  |
neko_1  | 2021-01-19 16:30:42,009 DEBG 'x-server' stdout output:
neko_1  | (==) Log file: "/home/neko/.local/share/xorg/Xorg.99.0.log", Time: Tue Jan 19 16:30:42 2021
neko_1  | (++) Using config file: "/etc/neko/xorg.conf"
neko_1  | (==) Using system config directory "/usr/share/X11/xorg.conf.d"
neko_1  |
neko_1  | 2021-01-19 16:30:42,020 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
neko_1  | I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
neko_1  | D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
neko_1  |
neko_1  | 2021-01-19 16:30:42,032 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory
neko_1  | I: [pulseaudio] main.c: This is PulseAudio 10.0
neko_1  | D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
neko_1  | D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-ZMrhzG/pulseaudio-10.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
neko_1  | D: [pulseaudio] main.c: Running on host: Linux x86_64 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021
neko_1  |
neko_1  | 2021-01-19 16:30:42,032 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] main.c: Found 10 CPUs.
neko_1  | I: [pulseaudio] main.c: Page size is 4096 bytes
neko_1  | D: [pulseaudio] main.c: Compiled with Valgrind support: no
neko_1  | D: [pulseaudio] main.c: Running in valgrind mode: no
neko_1  | D: [pulseaudio] main.c: Running in VM: yes
neko_1  | D: [pulseaudio] main.c: Optimized build: yes
neko_1  | D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
neko_1  | I: [pulseaudio] main.c: Machine ID is a5a85d161208265bec1c6fb020b29456.
neko_1  | I: [pulseaudio] main.c: Using runtime directory /home/neko/.config/pulse/a5a85d161208265bec1c6fb020b29456-runtime.
neko_1  | I: [pulseaudio] main.c: Using state directory /home/neko/.config/pulse.
neko_1  | I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
neko_1  | I: [pulseaudio] main.c: Running in system mode: no
neko_1  |
neko_1  | 2021-01-19 16:30:42,033 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] main.c: System supports high resolution timers
neko_1  |
neko_1  | 2021-01-19 16:30:42,033 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
neko_1  |
neko_1  | 2021-01-19 16:30:42,033 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2
neko_1  | I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
neko_1  | I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
neko_1  | I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
neko_1  | I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
neko_1  | I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
neko_1  | I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
neko_1  |
neko_1  | 2021-01-19 16:30:42,036 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #0; argument: "socket=/tmp/pulseaudio.socket auth-anonymous=1").
neko_1  |
neko_1  | 2021-01-19 16:30:42,036 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.
neko_1  |
neko_1  | 2021-01-19 16:30:42,037 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
neko_1  | I: [pulseaudio] sink.c:     device.description = "Dummy Output"
neko_1  | I: [pulseaudio] sink.c:     device.class = "abstract"
neko_1  | I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
neko_1  |
neko_1  | 2021-01-19 16:30:42,037 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
neko_1  | I: [pulseaudio] source.c:     device.description = "Monitor of Dummy Output"
neko_1  | I: [pulseaudio] source.c:     device.class = "monitor"
neko_1  | I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
neko_1  | D: [null-sink] module-null-sink.c: Thread starting up
neko_1  |
neko_1  | 2021-01-19 16:30:42,038 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #2; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
neko_1  | I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #1; argument: "").
neko_1  |
neko_1  | 2021-01-19 16:30:42,126 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus session bus 94cf3fc2e2c49028deda625c60070932 as :1.0
neko_1  |
neko_1  | 2021-01-19 16:30:42,127 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] main.c: Got org.PulseAudio1!
neko_1  |
neko_1  | 2021-01-19 16:30:42,127 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] main.c: Got org.pulseaudio.Server!
neko_1  | I: [pulseaudio] main.c: Daemon startup complete.
neko_1  |
neko_1  | 2021-01-19 16:30:42,128 DEBG 'neko' stdout output:
neko_1  |
neko_1  |     _   __     __
neko_1  |    / | / /__  / /______   \    /\
neko_1  |   /  |/ / _ \/ //_/ __ \   )  ( ')
neko_1  |  / /|  /  __/ ,< / /_/ /  (  /  )
neko_1  | /_/ |_/\___/_/|_|\____/    \(__)|
neko_1  |    nurdism/neko server v2.0.0 853dd14
neko_1  |
neko_1  | 2021-01-19 16:30:42,129 DEBG 'neko' stdout output:
neko_1  | 4:30PM WRN preflight complete without config file config= debug=true logging=false
neko_1  |
neko_1  | 2021-01-19 16:30:42,367 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF starting neko server service=neko
neko_1  |
neko_1  | 2021-01-19 16:30:42,401 DEBG 'pulseaudio' stdout output:
neko_1  | I: [pulseaudio] client.c: Created 0 "Native client (UNIX socket client)"
neko_1  | I: [pulseaudio] protocol-native.c: Client authenticated anonymously.
neko_1  |
neko_1  | 2021-01-19 16:30:42,401 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] protocol-native.c: Protocol version: remote 32, local 32
neko_1  | D: [pulseaudio] protocol-native.c: SHM possible: yes
neko_1  | D: [pulseaudio] protocol-native.c: Negotiated SHM: yes
neko_1  | D: [pulseaudio] protocol-native.c: Memfd possible: yes
neko_1  | D: [pulseaudio] protocol-native.c: Negotiated SHM type: shared memfd
neko_1  |
neko_1  | 2021-01-19 16:30:42,402 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
neko_1  | D: [pulseaudio] srbchannel.c: SHM block is 65472 bytes, ringbuffer capacity is 2 * 32712 bytes
neko_1  | D: [pulseaudio] protocol-native.c: Enabling srbchannel...
neko_1  |
neko_1  | 2021-01-19 16:30:42,402 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] protocol-native.c: Client enabled srbchannel.
neko_1  |
neko_1  | 2021-01-19 16:30:42,404 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF webrtc streaming audio_codec=opus audio_device=auto_null.monitor audio_pipeline_src="pulsesrc device=auto_null.monitor ! audioconvert ! opusenc ! appsink name=appsink" ephemeral_port_range=59000-59100 module=webrtc nat_ips=91.67.162.153 video_codec=VP8 video_display=:99.0 video_pipeline_src="ximagesrc xid=:99.0 show-pointer=true use-damage=false ! video/x-raw ! videoconvert ! queue ! vp8enc cpu-used=8 threads=2 deadline=1 error-resilient=partitions keyframe-max-dist=10 auto-alt-ref=true ! appsink name=appsink"
neko_1  |
neko_1  | 2021-01-19 16:30:42,404 DEBG 'neko' stdout output:
neko_1  | 4:30PM WRN http listening on :8080 module=webrtc
neko_1  |
neko_1  | 2021-01-19 16:30:42,405 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF neko ready service=neko
neko_1  |
neko_1  | 2021-01-19 16:30:42,407 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] source-output.c: Negotiated format: pcm, format.sample_format = "\"s16le\""  format.rate = "48000"  format.channels = "1"  format.channel_map = "\"mono\""
neko_1  | I: [pulseaudio] source-output.c: Trying to change sample rate
neko_1  | D: [pulseaudio] source.c: Suspending source auto_null.monitor due to changing the sample rate.
neko_1  |
neko_1  | 2021-01-19 16:30:42,407 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] resampler.c: Resampler:
neko_1  | D: [pulseaudio] resampler.c:   rate 44100 -> 48000 (method speex-float-1)
neko_1  | D: [pulseaudio] resampler.c:   format s16le -> s16le (intermediate float32le)
neko_1  | D: [pulseaudio] resampler.c:   channels 2 -> 1 (resampling 1)
neko_1  | D: [pulseaudio] resampler.c: Channel matrix:
neko_1  | D: [pulseaudio] resampler.c:        I00   I01
neko_1  | D: [pulseaudio] resampler.c:     +------------
neko_1  | D: [pulseaudio] resampler.c: O00 | 0.500 0.500
neko_1  | I: [pulseaudio] remap.c: Using stereo to mono remapping
neko_1  | I: [pulseaudio] speex.c: Choosing speex quality setting 1.
neko_1  | D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
neko_1  | D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
neko_1  | I: [pulseaudio] source-output.c: Created output 0 "Record Stream" on auto_null.monitor with sample spec s16le 1ch 48000Hz and channel map mono
neko_1  | I: [pulseaudio] source-output.c:     media.name = "Record Stream"
neko_1  | I: [pulseaudio] source-output.c:     application.name = "neko"
neko_1  | I: [pulseaudio] source-output.c:     native-protocol.peer = "UNIX socket client"
neko_1  | I: [pulseaudio] source-output.c:     native-protocol.version = "32"
neko_1  | I: [pulseaudio] source-output.c:     application.process.id = "15"
neko_1  | I: [pulseaudio] source-output.c:     application.process.user = "neko"
neko_1  | I: [pulseaudio] source-output.c:     application.process.host = "c88826e4dd1b"
neko_1  | I: [pulseaudio] source-output.c:     application.process.binary = "neko"
neko_1  | I: [pulseaudio] source-output.c:     application.language = "C"
neko_1  | I: [pulseaudio] source-output.c:     window.x11.display = ":99.0"
neko_1  | I: [pulseaudio] source-output.c:     application.process.machine_id = "a5a85d161208265bec1c6fb020b29456"
neko_1  |
neko_1  | 2021-01-19 16:30:42,408 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] memblockq.c: memblockq requested: maxlength=19200, tlength=0, base=2, prebuf=1, minreq=0 maxrewind=0
neko_1  | D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=19200, tlength=19200, base=2, prebuf=2, minreq=2 maxrewind=0
neko_1  | I: [pulseaudio] protocol-native.c: Final latency 20.00 ms = 10.00 ms + 10.00 ms
neko_1  |
neko_1  | 2021-01-19 16:30:42,409 DEBG 'pulseaudio' stdout output:
neko_1  | D: [pulseaudio] source.c: Suspending source auto_null.monitor due to changing the sample rate.
neko_1  |
neko_1  | 2021-01-19 16:30:43,410 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:43,410 INFO success: openbox entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:43,410 INFO success: pulseaudio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:43,410 INFO success: x-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:43,411 INFO success: firefox-esr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:43,411 INFO success: neko entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
neko_1  | 2021-01-19 16:30:48,310 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG request complete (304) module=http req={"agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","method":"GET","proto":"HTTP/1.1","remote":"192.168.1.24:61245","scheme":"http","uri":"http://192.168.1.28:96/"} res={"bytes":0,"elapsed":0.428095,"status":304,"time":"Tue, 19 Jan 2021 16:30:48 UTC"}
neko_1  |
neko_1  | 2021-01-19 16:30:48,503 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG request complete (200) module=http req={"agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","method":"GET","proto":"HTTP/1.1","remote":"192.168.1.24:61245","scheme":"http","uri":"http://192.168.1.28:96/favicon-32x32.png"} res={"bytes":1003,"elapsed":4.769822,"status":200,"time":"Tue, 19 Jan 2021 16:30:48 UTC"}
neko_1  |
neko_1  | 2021-01-19 16:30:53,083 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG attempting to upgrade connection module=websocket
neko_1  |
neko_1  | 2021-01-19 16:30:53,083 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG session created id=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb module=webrtc
neko_1  |
neko_1  | 2021-01-19 16:30:53,103 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF signaling state changed to have-local-offer module=webrtc subsystem=pc
neko_1  |
neko_1  | 2021-01-19 16:30:53,104 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG sending message to client address=192.168.1.24:61247 module=websocket raw="{\"event\":\"signal/provide\",\"id\":\"cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb\",\"sdp\":\"v=0\\r\\no=- 501870501 1611073853 IN IP4 0.0.0.0\\r\\ns=-\\r\\nt=0 0\\r\\na=fingerprint:sha-256 B1:35:B6:3C:58:7D:CA:75:C4:59:FE:C6:6E:49:5F:C7:58:2F:BF:80:E9:96:48:E2:AC:8A:78:82:50:F3:E8:4F\\r\\na=ice-lite:ice-lite\\r\\na=group:BUNDLE 0 1 2\\r\\nm=application 9 DTLS/SCTP 5000\\r\\nc=IN IP4 0.0.0.0\\r\\na=setup:actpass\\r\\na=mid:0\\r\\na=sendrecv\\r\\na=sctpmap:5000 webrtc-datachannel 1024\\r\\na=ice-ufrag:nUopRpoGqqDyVZmH\\r\\na=ice-pwd:gZNgDwILHWgFecWegwgqhzIrudiJwnyK\\r\\na=candidate:foundation 1 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=candidate:foundation 2 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=end-of-candidates\\r\\nm=video 9 UDP/TLS/RTP/SAVPF 96 98 102\\r\\nc=IN IP4 0.0.0.0\\r\\na=setup:actpass\\r\\na=mid:1\\r\\na=ice-ufrag:nUopRpoGqqDyVZmH\\r\\na=ice-pwd:gZNgDwILHWgFecWegwgqhzIrudiJwnyK\\r\\na=rtcp-mux\\r\\na=rtcp-rsize\\r\\na=rtpmap:96 VP8/90000\\r\\na=rtpmap:98 VP9/90000\\r\\na=rtpmap:102 H264/90000\\r\\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\\r\\na=ssrc:2854263694 cname:stream\\r\\na=ssrc:2854263694 msid:stream stream\\r\\na=ssrc:2854263694 mslabel:stream\\r\\na=ssrc:2854263694 label:stream\\r\\na=msid:stream stream\\r\\na=sendonly\\r\\na=candidate:foundation 1 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=candidate:foundation 2 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=end-of-candidates\\r\\nm=audio 9 UDP/TLS/RTP/SAVPF 111 0 8 9\\r\\nc=IN IP4 0.0.0.0\\r\\na=setup:actpass\\r\\na=mid:2\\r\\na=ice-ufrag:nUopRpoGqqDyVZmH\\r\\na=ice-pwd:gZNgDwILHWgFecWegwgqhzIrudiJwnyK\\r\\na=rtcp-mux\\r\\na=rtcp-rsize\\r\\na=rtpmap:111 opus/48000/2\\r\\na=fmtp:111 minptime=10;useinbandfec=1\\r\\na=rtpmap:0 PCMU/8000\\r\\na=rtpmap:8 PCMA/8000\\r\\na=rtpmap:9 G722/8000\\r\\na=ssrc:1879968118 cname:stream\\r\\na=ssrc:1879968118 msid:stream stream\\r\\na=ssrc:1879968118 mslabel:stream\\r\\na=ssrc:1879968118 label:stream\\r\\na=msid:stream stream\\r\\na=sendonly\\r\\na=candidate:foundation 1 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=candidate:foundation 2 udp 2130706431 91.67.162.153 59048 typ host generation 0\\r\\na=end-of-candidates\\r\\n\"}" session=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb
neko_1  |
neko_1  | 2021-01-19 16:30:53,105 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG sending message to client address=192.168.1.24:61247 module=websocket raw="{\"event\":\"screen/resolution\",\"width\":1280,\"height\":720,\"rate\":30}" session=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb
neko_1  |
neko_1  | 2021-01-19 16:30:53,105 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG session created id=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb module=websocket
neko_1  | 4:30PM DBG new connection created address=192.168.1.24:61247 module=websocket session=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb
neko_1  |
neko_1  | 2021-01-19 16:30:53,119 DEBG 'neko' stdout output:
neko_1  | 4:30PM DBG received message from client address=192.168.1.24:61247 module=websocket raw="{\"event\":\"signal/answer\",\"sdp\":\"v=0\\r\\no=- 3741198491647696537 2 IN IP4 127.0.0.1\\r\\ns=-\\r\\nt=0 0\\r\\na=group:BUNDLE 0 1 2\\r\\na=msid-semantic: WMS\\r\\nm=application 9 DTLS/SCTP 5000\\r\\nc=IN IP4 0.0.0.0\\r\\nb=AS:30\\r\\na=ice-ufrag:thOz\\r\\na=ice-pwd:k8maQwMnA26VaR1fp275DsBv\\r\\na=ice-options:trickle\\r\\na=fingerprint:sha-256 F7:0C:0E:A4:32:CF:FB:23:FC:37:F9:68:D1:29:FD:29:8A:B6:C5:6B:CE:3F:49:53:AD:AC:C0:7D:A5:13:03:0B\\r\\na=setup:active\\r\\na=mid:0\\r\\na=sctpmap:5000 webrtc-datachannel 1024\\r\\nm=video 9 UDP/TLS/RTP/SAVPF 96 98 102\\r\\nc=IN IP4 0.0.0.0\\r\\na=rtcp:9 IN IP4 0.0.0.0\\r\\na=ice-ufrag:thOz\\r\\na=ice-pwd:k8maQwMnA26VaR1fp275DsBv\\r\\na=ice-options:trickle\\r\\na=fingerprint:sha-256 F7:0C:0E:A4:32:CF:FB:23:FC:37:F9:68:D1:29:FD:29:8A:B6:C5:6B:CE:3F:49:53:AD:AC:C0:7D:A5:13:03:0B\\r\\na=setup:active\\r\\na=mid:1\\r\\na=recvonly\\r\\na=rtcp-mux\\r\\na=rtcp-rsize\\r\\na=rtpmap:96 VP8/90000\\r\\na=rtpmap:98 VP9/90000\\r\\na=fmtp:98 profile-id=0\\r\\na=rtpmap:102 H264/90000\\r\\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\\r\\nm=audio 9 UDP/TLS/RTP/SAVPF 111 0 8 9\\r\\nc=IN IP4 0.0.0.0\\r\\na=rtcp:9 IN IP4 0.0.0.0\\r\\na=ice-ufrag:thOz\\r\\na=ice-pwd:k8maQwMnA26VaR1fp275DsBv\\r\\na=ice-options:trickle\\r\\na=fingerprint:sha-256 F7:0C:0E:A4:32:CF:FB:23:FC:37:F9:68:D1:29:FD:29:8A:B6:C5:6B:CE:3F:49:53:AD:AC:C0:7D:A5:13:03:0B\\r\\na=setup:active\\r\\na=mid:2\\r\\na=recvonly\\r\\na=rtcp-mux\\r\\na=rtpmap:111 opus/48000/2\\r\\na=fmtp:111 minptime=10;useinbandfec=1\\r\\na=rtpmap:0 PCMU/8000\\r\\na=rtpmap:8 PCMA/8000\\r\\na=rtpmap:9 G722/8000\\r\\n\",\"displayname\":\"neko\"}" session=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb
neko_1  |
neko_1  | 2021-01-19 16:30:53,119 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF signaling state changed to stable module=webrtc subsystem=pc
neko_1  | 4:30PM DBG Started agent: isControlling? false, remoteUfrag: "thOz", remotePwd: "k8maQwMnA26VaR1fp275DsBv" module=webrtc subsystem=ice
neko_1  | 4:30PM INF Setting new connection state: Checking module=webrtc subsystem=ice
neko_1  |
neko_1  | 2021-01-19 16:30:53,120 DEBG 'neko' stdout output:
neko_1  | 4:30PM INF ICE connection state changed: checking module=webrtc subsystem=pc
neko_1  |
neko_1  | 2021-01-19 16:31:08,148 DEBG 'neko' stdout output:
neko_1  | 4:31PM WRN read message error error="websocket: close 1005 (no status)" module=websocket
neko_1  |
neko_1  | 2021-01-19 16:31:08,148 DEBG 'neko' stdout output:
neko_1  | 4:31PM DBG handle socket ending address=192.168.1.24:61247 module=websocket
neko_1  | 4:31PM DBG session ended address=192.168.1.24:61247 module=websocket session=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb
neko_1  | 4:31PM DBG session destroyed id=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb module=webrtc
neko_1  | 4:31PM DBG session destroyed id=cfLwgEbPRgASqqRqBD8DGnZIi36hDMkb module=websocket
neko_1  | 4:31PM DBG request complete (0) module=http req={"agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","method":"GET","proto":"HTTP/1.1","remote":"192.168.1.24:61247","scheme":"http","uri":"http://192.168.1.28:96/ws?password=neko"} res={"bytes":0,"elapsed":15065.938681,"status":0,"time":"Tue, 19 Jan 2021 16:31:08 UTC"}
neko_1  |

Client-Log:

app.08718670.js:1 [NEKO] DBG connecting to ws://192.168.1.28:96/ws?password=neko
app.08718670.js:1 [NEKO] DBG received websocket event signal/provide with payload:  Object
app.08718670.js:1 [NEKO] DBG creating peer
app.08718670.js:1 [NEKO] DBG peer signaling state changed have-remote-offer
app.08718670.js:1 [NEKO] DBG received video track from peer: stream RTCTrackEvent
app.08718670.js:1 [NEKO] DBG received audio track from peer: stream RTCTrackEvent
app.08718670.js:1 [NEKO] DBG received websocket event screen/resolution with payload:  Object
app.08718670.js:1 [NEKO] DBG peer signaling state changed stable
app.08718670.js:1 [NEKO] DBG peer ice connection state changed: checking
app.08718670.js:1 [NEKO] DBG peer connection state changed connecting
app.08718670.js:1 [NEKO] DBG peer ice connection state changed: disconnected
app.08718670.js:1 [NEKO] DBG disconnected: Error: peer disconnected
    at RTCPeerConnection.socketOpen.peerConnected._peer.oniceconnectionstatechange (app.08718670.js:1)
app.08718670.js:1 [NEKO] DBG peer connection state changed failed
app.08718670.js:1 [NEKO] DBG connecting to ws://192.168.1.28:96/ws?password=neko
app.08718670.js:1 [NEKO] DBG received websocket event signal/provide with payload:  Object
app.08718670.js:1 [NEKO] DBG creating peer
app.08718670.js:1 [NEKO] DBG peer signaling state changed have-remote-offer
app.08718670.js:1 [NEKO] DBG received video track from peer: stream RTCTrackEvent
app.08718670.js:1 [NEKO] DBG received audio track from peer: stream RTCTrackEvent
app.08718670.js:1 [NEKO] DBG received websocket event screen/resolution with payload:  Object
app.08718670.js:1 [NEKO] DBG received websocket event screen/configurations with payload:  Object
app.08718670.js:1 [NEKO] DBG peer signaling state changed stable
app.08718670.js:1 [NEKO] DBG peer ice connection state changed: checking
app.08718670.js:1 [NEKO] DBG peer connection state changed connecting
app.08718670.js:1 [NEKO] DBG peer ice connection state changed: disconnected
app.08718670.js:1 [NEKO] DBG disconnected: Error: peer disconnected
    at RTCPeerConnection.socketOpen.peerConnected._peer.oniceconnectionstatechange (app.08718670.js:1)
app.08718670.js:1 [NEKO] DBG peer connection state changed failed
m1k1o commented 3 years ago

@timohzbs

Accessing the site trough a windows device on the same network.

Neko takes by default your public IP address and that advertises. If you are connecting from the same network / local network, you need to specify n.eko's local IP.

Please refer for more explanation in my fork's README. https://github.com/m1k1o/neko#getting-started--faq

In your case you are missing this environment variable NEKO_NAT1TO1=192.168.1.28.

clemone210 commented 3 years ago

@timohzbs

Accessing the site trough a windows device on the same network.

Neko takes by default your public IP address and that advertises. If you are connecting from the same network / local network, you need to specify n.eko's local IP.

Please refer for more explanation in my fork's README. https://github.com/m1k1o/neko#getting-started--faq

In your case you are missing this environment variable NEKO_NAT1TO1=192.168.1.28.

ok that worked well. I now want it to be reachable from outside with nginx reverse proxy. I use nginx reverse proxy manager from here

Can you tell me how my config in docker-compose needs to be changed to use it with nginx reverse proxy?

GigaFyde commented 3 years ago

If you're wanting it to be reachable from outside with nginx reverse proxy, You'll want to get rid of the NEKO_NAT1TO1.

Just note that you cannot access it from a local ip, and only from the outside ip in that case.

clemone210 commented 3 years ago

If you're wanting it to be reachable from outside with nginx reverse proxy, You'll want to get rid of the NEKO_NAT1TO1.

Just note that you cannot access it from a local ip, and only from the outside ip in that case.

So I can only make it either locally, or via the IP address + opening the ports for it to point to this machine?

GigaFyde commented 3 years ago

That would be correct.

clemone210 commented 3 years ago

But shouldnt it be possible to run behind nginx reverse proxy, so I can access it with a domain? I mean I can open the site with my domain, but cannot login.

GigaFyde commented 3 years ago

That sounds like a port forwarding issue. Since I run my install of neko from nginx reverse proxy as well.

clemone210 commented 3 years ago

what is your setup and how does your config file looks like?

GigaFyde commented 3 years ago

My config can be found here https://github.com/nurdism/neko/issues/111#issuecomment-742656957 As for my setup, its a default docker-compose setup

m1k1o commented 3 years ago

So I can only make it either locally, or via the IP address + opening the ports for it to point to this machine?

Theoretically, you should be able to acheive both, since NEKO_NAT1TO1 is an array. But I never tried it that way.

NEKO_NAT1TO1=<remote-ip>,<local-ip>

clemone210 commented 3 years ago

So I can only make it either locally, or via the IP address + opening the ports for it to point to this machine?

Theoretically, you should be able to acheive both, since NEKO_NAT1TO1 is an array. But I never tried it that way.

NEKO_NAT1TO1=<remote-ip>,<local-ip>

gets an error: WRN session created with and error error="invalid 1:1 NAT IP mapping" id=xLxQ6C7aQKSkJTZCFPWOYQ9VS6zdWogY module=websocket

Ive only opened TCP 80 & TCP 443 on my router to my nginx proxy manager. On there ive setup my domain to forward the requests to my docker virtual machine. I have about 15 containers wich are accessable from outside using the nginx proxy manager. What can cause that this does not work?

m1k1o commented 3 years ago

Ive only opened TCP 80 & TCP 443

You seem to be missing all the WebRTC UDP ports then.

m1k1o commented 3 years ago

NEKO_NAT1TO1=<remote-ip>,<local-ip>

gets an error

I loked it up, it should be white-space separated, sorry for confusion.

NEKO_NAT1TO1=<remote-ip> <local-ip>

clemone210 commented 3 years ago

Ive only opened TCP 80 & TCP 443

You seems to be missing all the WebRTC UDP portrs then.

yes it seems to be the upd ports. But I do not know how to fix it unfortunately.

clemone210 commented 3 years ago

I shows me always a weired IP Address: neko_1 | 11:55AM DBG session ended address=172.30.0.1:40206 module=websocket session=lCE7kGWLzCFNo2ab2cHWa1xOJdxNz70m

m1k1o commented 3 years ago

yes it seems to be the upd ports. But I do not know how to fix it unfortunately.

You need to open them to the outside as well. Those UDP ports cannot be proxied, because they are not using HTTP protocol, but RTP etc.

GigaFyde commented 3 years ago

UDP proxying is not exactly easy yea, and like @m1k1o said, unlike the http traffic, the udp ports aren't domain bound

clemone210 commented 3 years ago

Cant get it working with my reverse proxy setup. But project seems to be really great!

GigaFyde commented 3 years ago

Did you never port forward those udp ports or?

clemone210 commented 3 years ago

Did you never port forward those udp ports or?

I now commented out the network mode as well as the IP changed my nginx configuration and it now works. I as well noticed that I am doing everything from my work and my company restricts all udp traffic. So I tested it from a different machine which was located not at work and it then worked as well.

GigaFyde commented 3 years ago

Glad to hear you got it working