kastldratza / zoomrec

Record Zoom meetings automatically in headless docker container with Python and FFmpeg
MIT License
265 stars 68 forks source link

Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined #58

Closed thedavidweng closed 1 year ago

thedavidweng commented 1 year ago

Describe the bug Run it on macOS and see below in logs: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

To Reproduce Steps to reproduce the behavior:

  1. Run brew install --cask docker
  2. Run mkdir -p recordings/screenshots chown -R 1000:1000 recordings mkdir -p audio chown -R 1000:1000 audio
  3. Run docker run -d --restart unless-stopped \ -v $(pwd)/recordings:/home/zoomrec/recordings \ -v $(pwd)/example/audio:/home/zoomrec/audio \ -v $(pwd)/example/meetings.csv:/home/zoomrec/meetings.csv:ro \ -p 5901:5901 \ --security-opt seccomp:unconfined \ kastldratza/zoomrec:latest
  4. See error messages in Docker Desktop Logs

Expected behavior Running

Screenshots

Screenshot 2023-05-16 at 5 42 13 PM

Desktop (please complete the following information):

kennethpiu commented 1 year ago

Me too

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

thedavidweng commented 1 year ago

@kastldratza

dsakura commented 1 year ago

same here

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

thedavidweng commented 1 year ago

Remove stale label

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

rkilchmn commented 1 year ago

same here under Ubuntu 22.04

compwron commented 1 year ago

This is working for me now, thanks to @l1n

with modification: in entrypoint.sh

+export SESSION_MANAGER=$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/'),$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/; s/local/unix/')
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.

michasrichter commented 1 year ago

This is working for me now, thanks to @l1n

with modification: in entrypoint.sh

+export SESSION_MANAGER=$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/'),$(cat ~/.ICEauthority | perl -pe 's/.*(local.*?unix\/\d*).*/$1/; s/local/unix/')

I had the same issue (New install Ubuntu 22.04.3), after applying the fix in line 56, I now get the following:

2023-10-21 18:58:18 Start script.. 2023-10-21 18:58:18 /start/entrypoint.sh: line 56: warning: command substitution: ignored null byte in input 2023-10-21 18:58:18 /start/entrypoint.sh: line 56: warning: command substitution: ignored null byte in input 2023-10-21 18:58:19 _IceTransSocketUNIXConnect: Cannot connect to non-local host 0415fd0cea85:@/tmp/.ICE-unix/40 2023-10-21 18:58:19 �A�XSMP#unix/0415fd0cea85:/tmp/.ICE-unix/40MIT-MAGIC-COOKIE-1YnCZ 2023-10-21 18:58:19 _IceTransSocketUNIXConnect: Cannot connect to non-local host 0415fd0cea85:@/tmp/.ICE-unix/40 2023-10-21 18:58:19 �A�XSMP#unix/0415fd0cea85:/tmp/.ICE-unix/40MIT-MAGIC-COOKIE-1YnCZ 2023-10-21 18:58:19 Failed to connect to session manager: Failed to connect to the session manager: Could not open network socket

Any ideas?