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

Bug: Ocassionally plex_update.sh error when running No Docker setup. #103

Open
kent-chan-dev opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kent-chan-dev
Copy link

kent-chan-dev commented Apr 15, 2024

Expected Behavior
I expect the script to run properly, however it is giving this error when running No docker setup.
What could be causing the issue?

Appears to be happening when adding movies, however it works without issue when removing movies.

2024-04-15T00:59:53.245Z ERROR manager Failed to execute hook on_library_update: error executing script: exit status 2; stderr: plex_update.sh: 19: Bad substitution

Actual Behavior
My plex_update.sh file

plex_url="http://localhost:32400"
token="mytoken"
zurg_mount="$HOME/torrents"

section_ids=$(curl -sLX GET "$plex_url/library/sections" -H "X-Plex-Token: $token" | xmllint --xpath "//Directory/@key" - | grep -o 'key="[^"]*"' | awk -F'"' '{print $2}')

Operating System
Ubuntu Server

Environment Setup
Are you using Docker, or are you using Zurg's binary? Not docker.
If Docker, please include your docker-compose.yml.
If Zurg's binary, specify the version by running ./zurg version

@kent-chan-dev kent-chan-dev added the bug Something isn't working label Apr 15, 2024
@petern-sc
Copy link

What do you have set for on_library_update in your config.yml?

on_library_update: /root/zurgfiles/plex_update.sh "$@"

It was previously sh /root/zurgfiles/plex_update.sh "$@", after dropping sh it worked properly for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants