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

OSX Ventura Deamon not working? #613

Open
cferron opened this issue Dec 11, 2022 · 8 comments
Open

OSX Ventura Deamon not working? #613

cferron opened this issue Dec 11, 2022 · 8 comments

Comments

@cferron
Copy link

cferron commented Dec 11, 2022

Just upgraded to Ventura and it seems that the daemon autorun at startup feature does not work. Were you aware of that?
Plexconnect is working fine when I start it manually, but not once I hit Ctrl+C to quit it and install the daemon. What is weird is that I see the process when doing "sudo launchctl list | grep plexconnect". Any idea for me to troubleshoot the issue.

Thanks

@pbrena
Copy link

pbrena commented Aug 29, 2023

me too.

any changes since posted?

@moodyblue
Copy link
Collaborator

moodyblue commented Aug 30, 2023

Try the following: edit line 83 in PlexConnect_daemon.bash replacing darwin by ventura

@cferron
Copy link
Author

cferron commented Aug 30, 2023

@moodyblue I tried your suggestion. No luck. I tried "Ventura" and "ventura" in case it was case sensitive. Once modification was made, I stopped, uninstall and re-installed the deamon, no luck. I have to manually start Plex in the terminal (and keep the terminal opened) to have it to work.

Software:

System Software Overview:

  System Version: macOS 13.5.1 (22G90)
  Kernel Version: Darwin 22.6.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 40 minutes et 4 secondes

@pbrena
Copy link

pbrena commented Aug 30, 2023

I guess a quick and dirty work around might be to launch a script at login time or automate with iterm2.

@cferron, Did you try/succeed installing Pil/Pillow (in the case you are running on apple silicon) ?

@moodyblue
Copy link
Collaborator

@pbrena
Copy link

pbrena commented Aug 30, 2023

Found this, maybe it can help: https://support.apple.com/guide/terminal/script-management-with-launchd-apdc6c1077b-5d5d-4d35-9c19-60f2397b2369/mac

mmmhhh.... that link is about launching deamons like the one is failing for us, the work around I meant is to use a bash or zsh script to issue the command as if typed in the terminal, I remember having include one in the login items for another project a few years ago, I will try in a few days and post if it worked.

@cferron
Copy link
Author

cferron commented Aug 30, 2023 via email

@pbrena
Copy link

pbrena commented Sep 3, 2023

As a temporary workarround to the unresponsive LaunchDeamon for Macos Ventura, the following steps allowed me to automatically run Plexconnect.py at login time with iterm2, YMMV.

a) allow PlexConnect.py to be called by sudo wihout asking password

sudo visudo

Then, press I, and at the bottom insert:

username ALL= NOPASSWD: /path/to/PlexConnect.py

Here, you need to change the username for the user who is supposed to run the command without having to type a password. Also, change the path to your executable

Press Esc, then write :wq, then Enter.

b) I created a script named templexcon.zsh whose contents is the single line:

sudo /path/to/PlexConnect.py

then change it to be executable with command

chmod +x templexcon.zsh

c) (see *Update bellow) I changed the user preferences to open the above script at login time.

System Preferences->General-> Login Items

click add and follow the open finder window to select your script.

d) at longin time Macos will open the script, in my user it is opened by default by iterm2 in a new window, where all PlexConnect.py output will be displayed. The first time, iterm2 asked if templexcon.zsh should be allowed to run, but gave an option (flag) to never ask again.

  • Update: step c might be redundant depending on your user settings. It may be the case that at longing time all the previous opened windows and tabs will be reopened hence starting Plexconnect twice.

Hope it helps someone.

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

No branches or pull requests

3 participants