Open Scully66 opened 6 years ago
Sorry this took so long, I just now noticed this still hasn't been responded to.
I don't have a QNAP to test with, but my guess would be that it's due to an old version of bash. plexupdate requires bash >4. If you run echo $BASH_VERSION
on your QNAP it should show you which version is currently being used.
No worries on the delay, I had honestly forgotten that I had posted the issue. Been too busy working on other things.
Yea, the bash version is 3.2.57(1), any suggestions, since I doubt I can update the bash on the QNAP.
Rod.
I would be willing to test run anything that you would like to try out.
From: Alex Malinovich [mailto:notifications@github.com] Sent: Saturday, April 14, 2018 8:57 PM To: mrworf/plexupdate Cc: Scully66; Author Subject: Re: [mrworf/plexupdate] OS support for QNAP NAS (#222)
Sorry this took so long, I just now noticed this still hasn't been responded to.
I don't have a QNAP to test with, but my guess would be that it's due to an old version of bash. plexupdate requires bash >4. If you run echo $BASH_VERSION on your QNAP it should show you which version is currently being used.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrworf/plexupdate/issues/222#issuecomment-381378304 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ai37_nsp4NaTR8T2omyLBGgTEfjYLMxLks5tosTzgaJpZM4SJWeY .Image removed by sender.
Unfortunately, there's not much we can do to make it run on older versions of bash apart from rewriting substantial portions of the code.
It looks like the QNAP does support Optware (ipkg), so you might be able to install an updated version of bash that way. That's what I do on my Synology NAS and it works well.
If you do manage to get it installed I'd be happy to help you get it working from there. (there might be a few path issues since I doubt ipkg will overwrite /bin/bash
, it'll probably put it in a different location)
I will give that a try and let you know if I can get it updated.
Thanks for the response,
Rod
From: Alex Malinovich [mailto:notifications@github.com] Sent: Sunday, April 15, 2018 7:11 PM To: mrworf/plexupdate Cc: Scully66; Author Subject: Re: [mrworf/plexupdate] OS support for QNAP NAS (#222)
Unfortunately, there's not much we can do to make it run on older versions of bash apart from rewriting substantial portions of the code.
It looks like the QNAP does support Optware (ipkg), so you might be able to install an updated version of bash that way. That's what I do on my Synology NAS and it works well.
If you do manage to get it installed I'd be happy to help you get it working from there. (there might be a few path issues since I doubt ipkg will overwrite /bin/bash, it'll probably put it in a different location)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrworf/plexupdate/issues/222#issuecomment-381460441 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ai37_oWx3j65C6psyxw-3tjsGJny9bRJks5to_2xgaJpZM4SJWeY .Image removed by sender.
The bash part is fine with Entware, but there are other problems...
/etc is not reboot-persistent on QNAPs, while it is hardcoded in some places in plexupdate.
Also mktemp throws errors (invalid parameter). The incompatibility seems to stem from the mismatch of plexupdate using the gnu version and QNAP using the busybox version.
I see this is an old thread but still an issue for me. Has anyone found a work-around for this on QNAP in 2021/2022?
I see this is an old thread but still an issue for me. Has anyone found a work-around for this on QNAP in 2021/2022?
Ok this worked for me (https://github.com/krunk4ever/qnap-plex-auto-updater). I had to make sure I set the correct user path, and the Plex Preferences file for me was located at /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex\ Media\ Server/Preferences.xml so I just updated the script.
I ended up getting errors, but those were due to encoding as I had edited the script in Windows.
I ran this command and it ran:
sed -i -e 's/\r$//' /share/homes/user/scripts/qnap-plex-auto-updater.sh
I have attempted to use the old version of the script on a QNAP NAS and it just does not quite work. I have tired to modify the script to look for the .qpkg distro file and even attempted adjusting some of the other script variables to look for the correct object locations from what I can see in the QNAP OS structure. But, I still can not correctly define the build and distro info.
I also attempted to install using the new script and that just flat out failed with the error "bash: line 102: read -l invalid option" some other output from the read command and then eventually ...install failed. :)
According to the docs the OS is Debian based, but I am not familiar with it. I have had the old script working great on my Ubuntu system for years now.
If you need me to send you command output or run tests, just let me know.
Thanks,
Rod