Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thedavidweng opened this issue May 17, 2023 · 12 comments
Labels

Comments

@thedavidweng
Copy link

thedavidweng commented May 17, 2023

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):

  • OS: macOS
@kennethpiu
Copy link

Me too

@github-actions
Copy link

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 github-actions bot added the Stale label Jun 17, 2023
@thedavidweng
Copy link
Author

@kastldratza

@github-actions github-actions bot removed the Stale label Jun 18, 2023
@dsakura
Copy link

dsakura commented Jun 21, 2023

same here

@github-actions
Copy link

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 github-actions bot added the Stale label Jul 22, 2023
@thedavidweng
Copy link
Author

Remove stale label

@github-actions github-actions bot removed the Stale label Jul 23, 2023
@github-actions
Copy link

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 github-actions bot added the Stale label Aug 23, 2023
@rkilchmn
Copy link

same here under Ubuntu 22.04

@github-actions github-actions bot removed the Stale label Aug 24, 2023
@compwron
Copy link

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
Copy link

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 github-actions bot added the Stale label Oct 11, 2023
@github-actions
Copy link

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

@michasrichter
Copy link

michasrichter commented Oct 21, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants