TVDb on Synology (Linux) - 2008/06/25 15:12I've modified the zip functionality in the TVDb parser so that if Linux is being used it will use the standard unzip function instead of the PHP zip extension.
Edit: There is another version later in this thread especially for Synology users.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: TVDb on Linux - 2008/06/25 15:43Nigel,
I would like to help but I am not using any TV series staff in my media database. Is there anything I could try?
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Linux - 2008/06/25 18:31Hi Nigel,
I tried the script and updated my TV series, but unfortunately I didn't get any info from the TVDb, although at least two TV series I've got (Fawlty Towers & Blake's 7) can be found at the TVDb-site.
I did the search through the config screen: "search new media", media type "TV series". Tomorrow I'll do a full (manual) media search through" http://<IP_DS>:8050/media_search.php". Not sure, but the results might be different.
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Linux - 2008/06/25 18:59A better test would be to try it on a single episode using Edit TV Details in the Config.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Linux - 2008/06/26 01:49Hi Nigel,
The full media search didn't return any details from the TVDb. I'll try your suggestion tonight.
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Linux - 2008/06/26 05:50This version tries to use the native linux unzip command, so if you also don't have this on Synology then it will still not work.
Does the download styles functionality work for you, this uses the same command.
If unzip cannot be made to work with Synology then I'll go one step further and make the parser download unzipped data.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: TVDb on Linux - 2008/06/26 18:14I tried to download a style after I copied your new www.TheTVDB.com.php into the TV parsers directory.
However, it does not work!
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Linux - 2008/06/26 18:27Hi Nigel,
Like with Joe, the TVDb parsar does not work. On the other hand "epguides" does. So far, this works only form the config screen "Edit TV Details"; I'll try to run a full media search also to see what will happen, but I'm not too optimistic.
regards, Klaas
BTW downloading styles is no problem ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Linux - 2008/06/26 19:55Klaas: If you can download styles then you must have the unzip command available so I'm surprised the last version of TVDB posted doesn't work. If it doesn't work in Edit TV Details then it won't work with a media search either. Any further error messages produced?Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Linux - 2008/06/27 07:10Hi Nigel,
Nigel wrote:If you can download styles then you must have the unzip command available so I'm surprised the last version of TVDB posted doesn't work. Well, don't be surprised, I checked again and despite what I mentioned before, downloading styles is NOT possible with a Synology CS/DS.
Maybe we can try unzipped data download.
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Linux - 2008/06/27 19:35Could you run the attached script? It will output the OS that PHP thinks it's using. I'm hoping I can use it to identify the Synology.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Linux - 2008/06/28 03:05Hi Nigel,
Thanks for the script; the result of php_os.php is:
Code:
linux
Attached youll find my info.php, php.ini and httpd.conf-user. Earlier Ive sent these docs to Rob as well in relation to ticket 138. Im not sure how the server can be identified as Synology, but the info.php output shows that the system runs on Linux Synology. Maybe this or underlying info can be used as identifier. Rob mentioned to me that there would be enough info for SwissCenter to recognise the Synology, so please check with Rob.
Hopefully this brings you further, if not please let me know.
-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Linux - 2008/06/28 10:26Lets see what this does... The attached also contains server.php which contains a function which will hopefully identify the Synology, copy this to the base folder. If TVDB still doesn't work then post log set to level 6.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/28 12:05CHAPEAU Nigel!!!
It works smoothly: synopsis, actors, directors, banners, everything is there.
However, the "refresh all extra information" in the "TV series"-menu of the Swiss config screen doesn't work. All info is wiped out, but there's nothing replaced. A full media search doesn't work either.
What can I do about that? any ideas?
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/28 12:25However, the "refresh all extra information" in the "TV series"-menu of the Swiss config screen doesn't work. All info is wiped out, but there's nothing replaced. A full media search doesn't work either. The "refresh all extra information" uses shell_exec which you've already noted does not work. Does refreshing movies work?
Glad to see we're making progress anyway, it's not easy coding blindly.
NigelPlayers : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/28 15:53Hi Nigel,
Nigel wrote:The "refresh all extra information" uses shell_exec which you've already noted does not work. In which file is function "shell_exec()" located. Maybe it can be exchange with "exec()", so "refresh all extra information" will work (like the update of the RSS feeds (see'here.
Nigel wrote:Does refreshing movies work? It used to work, but I'm not sure with which parsar: "www.dvdloc8.com" doesn't work, but "www.filmup.it" does, but unfortunately my Italian is somewhat underdeveloped. Same applies for "www.ofdb.de".
Maybe the same problem as with "www.theTVDB.com".
Also looking for function "shell_exec()" to refresh all movie info.
regards, Klaas
BTW your blind coding is going perfectly well, isn't it? ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/28 16:19There is only one occurence of shell_exec in the whole project in file.php as you know.
If you've modified this to exec and your media searches are working then I can't think of any reason why a refresh information wouldn't work (it's basically a media search but tv details are first deleted and marked to be updated).Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/28 16:27But for some reason I can update the info only one by one and not all together ...
And what's your idea about the movie parsar?
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/28 16:39I hope you have 'Download Extra Info' enabled for your TV and movie categories?
And what's your idea about the movie parser? Use IMDb like everyone else Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/28 16:51'Download Extra Info' are checked, anything else? ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/28 17:10Okay post logfile when doing a refresh all information.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/29 08:42Hi Nigel,
I switched over to "www.IMDb.com" and this one works works fine (both individually as through an entire media search).
For TV shows, the problem is persistent. I can retrieve info from "www.thetvdb.com" per individual show, but not through a media search. I erased table tv completely (and therefore didn't use "REFRESH_METADATA" and did a new media search for TV shows. Unfortunately the parsar did not return any info.
Attached you'll find the log file. For some reason the parsar doesn't start (see line 1553).
----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/29 09:22The details on line 1553 actually means that the update TV details is being called, but it's not finding anything to update!! The only reason as I've said before that nothing is being updated is if your TV category does not have 'Downlod Extra Info' enabled. Can you post an export of your settings to confirm this?Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/29 12:45Hi Nigel,
settings-file attached, hope this helps, regards, Klaas
----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/29 13:26Yep, as I suspected. You have a single media location for TV series and have assigned this your 'General' category which has 'Download Extra Info' disabled.
You already have a 'TV Series' category defined with 'Download Extra Info' enabled so you need to assign this to your TV series location.
NigelPlayers : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/06/29 14:53Hi Nigel,
Indeed I overlooked cat "general" and after I enabled "download extra info" for this cat, it worked as it should.
many thanks for your support and patience,
regards, Klaas
PS will you include the adjusted parsar and server-file be part of the new release? ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/06/29 15:09PS will you include the adjusted parsar and server-file be part of the new release? Yes, they're already submitted.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/07/31 18:46Hi Nigel,
I tried the new parser but no new art, banners, synopsis etc. I attached the log with the details after I tried to get the TVshow details via: Edit TV Details in the Config.
Location + name of the show I tried to update is: /volume1/video/Series/House/Season 03/House - 3x02.avi'
Looks like the show is correctly identified nut the data could not be copied. Hope you know why.
Next,
Can you guide me to best practice for file name and file directory. I tried several suggestions I found in the forum but its still not working.
Current method I use (and like to stick to) is: /volume1/video/Series/Series name/season #/series name - 3x04 [episode name]
For example: \Blake's 7\Season 1\Blake's 7 - 1x07 [Mission To Destiny].avi
I understood that everything between [ ] is disregarded during the parsing. Also understood that the character - is disregarded during the parsing. However when I look at the log file it seems this is not true.
QNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/08/01 08:36Again the file is not correctly attached or so it seems. It should have the name: support.zipQNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: TVDb on Synology (Linux) - 2008/08/01 08:55It's failing to copy the remote file to your local filesystem /volume1/web/svr/swiss/cache/tvdb/
I would suggest looking at write permissions on the above folder.
NigelPlayers : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/08/01 18:57I have changed the permissions for the dir tvdb. This is a new command for me so I hope i did it correct.
The permission for /volume1/web/svr/swiss/cache/tvdb/ is now:
drwxrwxrwt 3 admin user 4096 aug 1 23:35 tvdb
Sadly the result is the same. Attached the new log with the same error:
QNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/08/01 20:55Hi Wouter,
Did you check the path pointing at the cache in your config-screen? A corrupted path caused various problems a couple of times with me.
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/08/02 05:11In the config screen, under cache settings, the Cache directory is shown as: /volume1/web/svr/swiss/cache
So this seems to be OK, right?QNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/08/02 05:41To test, I created a new cache directory: /volume1/web/cache
But the same error again (but this time with the newly created cache dir). See attached error log (zipped)
FYI, I created the new cache directory via a telnet session using the root as log on.
The new dirs permissons are
drwxrwxrwt 2 root root 4096 aug 2 11:13 cache
After the new action to look-up the TV details for one episode (via "Lookup TV Episode") a new sub-directory in the new cache directory was created: tvdb This one also has a sub directory: banners
Permissions: drwxr-xr-t 3 admin users 4096 aug 2 11:20 tvdb drwxr-xr-t 2 admin users 4096 aug 2 11:20 banners
After I changed the permissions to drwxrwxrwt the error still persisted
QNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/08/02 05:44Hi Wouter,
The path is fine. I think you should go back to Nigels suggestion that the problem might be caused by the writing permissions of the directories involved. In my system the permissions are set as follows:
/volume1/web/svr/swiss/cache:
Code:
drwxrwxrwx 5 admin users
/volume1/web/svr/swiss/cache/tvdb:
Code:
drwxr-xr-x 3 nobody nobody
Your permissions look re /volume1/web/svr/swiss/cache/tvdb/ like this:
Code:
drwxrwxrwt 3 admin user
Im not sure about your permissions re /volume1/web/svr/swiss/cache/, but your permissions shows a "t" at the end contrary to mine. This additional t is known as the so-called sticky bit" of a directory. Here you find some additional info on the sticky bit. Changing your permissions by removing the t may solve the problem.
regards, Klaas -----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2008/08/02 18:52Hi Klaas,
I thought you found it but actually my current permissions don't have the sticky bit. The above example has a typo due to an incorrect copy paste action by me.
Anyway I set my permissions exactly like yours: (so I changed permissions as well as the groups)
/volume1/web/svr/swiss/cache: Code:
Code:
drwxrwxrwx 6 admin users
/volume1/web/svr/swiss/cache/tvdb:
Code:
Code:
drwxr-xr-x 3 nobody nobody
Only difference is that I have 6 links for the cache dir and you have 5.
Also changed the cache path back to /volume1/web/svr/swiss/cache
But no change after these alterations. The error " Failed to copy remote file to" still persists.
Still puzzled
Some questions:
- In this tread I read you planned to change the "shell_exec()" with the command "exec()". Could this maybe effect the parsing?
If not I am still interested to know if and how you did this.
- Nigel's file also includes the updated server.php script. Do I need to replace my server.php with this one as well?
- Do I need to restart the DS for the changes to have effect (I guess not...)QNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/08/03 07:56Hi Wouter,
Wouter wrote:In this tread I read you planned to change the "shell_exec()" with the command "exec()". Could this maybe effect the parsing?At that time various issues were blocking updates from TVDb, so Im not sure whether this is a must. However, you have to make the change if you want to do a media refresh from your TV-set.
Wouter wrote: I am still interested to know if and how you did this.Yep, Ive made the change. If you want to do so as well, go to file /base/file.php, row 690. It shows the following code:
Code:
return trim(shell_exec("which wget | grep '^/' | head -1"));
Replace this with
Code:
return trim(exec("which wget | grep '^/' | head -1"));
Wouter wrote:Do I need to restart the DS for the changes to have effect (I guess not...)Dont think so too, however, it won't harm much if you do so.
Hope this helps, regards, Klaas -----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: TVDb on Synology (Linux) - 2008/08/03 10:12klaasvaak wrote: Yep, Ive made the change. If you want to do so as well, go to file /base/file.php, row 690. It shows the following code:
Code:
return trim(shell_exec("which wget | grep '^/' | head -1"));
Replace this with
Code:
return trim(exec("which wget | grep '^/' | head -1"));
Hi Klaas,
I would like to mention that changing the shell_exec with the exec on my DS207+ leads to endless, multiple media searches, when I manually start to refresh the media library.
I therefore now use your other suggestion, what you proposed on the Synology.NL forum, simply to "hard code":
function wget_location()
{
if (is_windows())
return os_path(SC_LOCATION.'ext/wget/wget.exe');
else
return $location= '/usr/syno/bin/php';
}
AFAIK, the shell_exec function doesn΄t work on the Sysnolgy NAS, but is just used in the file.php to "automatically" locate the php - directory, which for the current firmware seems to be /usr/syno/bin/php.
With the hard coding of the location, I am avoiding the problem with the exec() function.
Regards
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2008/08/03 14:02Hi Joe,
I suggest we start a new thread on the function exec()-topic (see here).
regards, Klaas ----------------------------------------------------------------------------- SwissCenter 1.20.1 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0637 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2009/01/06 16:00Hi,
Another "retry" for me was to see if I could solve my issue with the art, banners & synopsis that I had for TV series. (issue was that these where not showing in SC).
After I created a directory tvdb in the cache directory and added the rights to this directory now all works like a charm. Pictures, Banners etc.
Actually to my surprise, as I am almost sure that I tried this before and at that time it did not work.
Only thing I changed is that I have a nwer version of SC and I have installed the zip & unzip command......
As a bonus the movies now also show art for 99% of the the titles where before it was only about 30% ??
Anyway all good news for me but it left me with 1 more question:
As described I needed to manually add the tvdb directory and add the rights as well. I assume that normally a functoin in SC does this automatically.
Any ideas why this did not work in my case and how this is normally done. I am asking as this may influence other functions as well.
ThanksQNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2009/01/06 16:47Dutchsea wrote:As described I needed to manually add the tvdb directory and add the rights as well. I assume that normally a functoin in SC does this automatically. This is quite strange as I didn't have to do anything manually and we've got the same system. Especially, specifically giving rights to directory "/swiss/cache/tvdb/" looks overdone as you should have given the entire "/swiss/"-directory exactly the same rights or otherwise SwissCenter wouldn't work.
Probably I miss something; what type of rights did you give to directory "/swiss/" and what type of rights to "/swiss/cache/tvdb/" (the same?).
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1140 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2009/01/06 16:59Hi Klaas,
I manually gave all dirs all rights via CHMOD 777 dirname. (as i did not know what minimum rights where needed I gave all rights)
Below the current rights: drwxrwxrwx 15 admin users 4096 Jan 5 23:00 swiss drwxrwxrwx 6 admin users 126976 Jan 6 21:32 cache drwxrwxrwx 3 nobody nobody 4096 Jan 6 01:19 tvdb
Not sure why "nobody nobody" is shown for the tvdb dir...
WouterQNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2009/01/07 12:13Hi Wouter,
I expect something went wrong at the time you set the permissions for the first set up; I can hardly imagine that the problem is caused by the zip-module, as I've got it installed as well.
But whatever the problem, it has been solved, hasn't it ...
regards, Klaas ---------------------------------------------------------------------------
SwissCenter SVN 1140
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2009/01/07 17:46Hi Klaas,
Sure enough!
Regardless I will soon do a full reinstall of SC as I will upgrade my CS to the latest firmware.
So I while have the opportunity to use the latest version of your manual I hope this solves some other issues I still experience.
Next I like to start a new topic how to increase speed of the menu's for SC installed at a synology DS/CS. Changing pages and paging through the menu's is pretty slow on my system.
I am interested to learn your experience in this area?
Also, does the series art etc work in your case?
Regards,
WouterQNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2009/01/08 16:28Hi Wouter,
Wouter wrote:I am interested to learn your experience in this area? Also, does the series art etc work in your case? Do you want me to reply in this thread, or do you open a new one first?
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1143 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: TVDb on Synology (Linux) - 2009/01/09 15:52Klaas,
I will open a new thread for the performance. But maybe you can let me know if your art works well here in ths post.
Thanks,
WouterQNAP TS-509 (1.6 MHz, 4 GB ) Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: TVDb on Synology (Linux) - 2009/01/09 17:25Yep, all art work is working fine, menu's are loaded reasonbly fast. However, if file sizes exceed 100kb the perfomance will decrease. This may occur when you uses large size backgrounds. But backgrounds of standard styles (like KDE, Old School, Seeing Red and Vista) work fine.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1143 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.