View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: R6 Users
PostPosted: Sun Sep 27, 2009 3:31 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I am having some problems with MythWeb, and one of the errors makes me think that the current running user is different than it was in the R5 versions. This is the error I am getting:

Code:
File(/root/.mythtv/channels/pbs_affiliate.gif) is not within the allowed path(s): (/data/srv/httpd/htdocs/:/home/:/tmp/:/usr/share/pear/:/data/srv/tmp:/usr/share/mythtv/mythweather/scripts/:/data/srv/httpd/htdocs/mythweb/data/video)


Now, I think that link is supposed to be pointing to /mythtv/.mythtv/channels/pbs_affiliate.gif

Is there a way for me to change this? This was an upgrade from R5F27 if that helps with any troubleshooting.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 28, 2009 8:17 am 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
Okay, so this error has gone away now (I'm not sure why, it may have been a permissions issue).

However, I am still having some issues with MythWeb. For instance, when I go to Recorded Programs, I am not seeing thumbnails for the majority of my recordings. Some are there, but not most of them.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 28, 2009 10:12 am 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I'm still troubleshooting this. Is there any way to re-generate the thumbnails that are stored in the web cache? I think I have found part of the problem, when I look at the following image:
Code:
http://192.168.1.120/mythweb/data/cache/3710_20090927185900.mpg.100x0x104.png


All that displays is the text. If I do the same for the thumbnails that exist, I see the image.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 28, 2009 10:20 am 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I tried deleting everything from the cache and that didn't work either... I did "regenerate" all the thumbnails, but the same ones as before are the only ones displaying.

All the thumbnails not displaying have a file size of 0.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 28, 2009 11:13 am 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
This is in my error logs:

Code:
Sep 28 09:28:49 mythtv mythbackend: 2009-09-28 09:28:49.522 ProgramInfo, Error: GetPlaybackURL: '3710_20090705185900.mpg' should be local, but it can not be found.
Sep 28 09:28:49 mythtv mythbackend: 2009-09-28 09:28:49.524 ProgramInfo, Error: GetPlaybackURL: '3710_20090705185900.mpg' should be local, but it can not be found.
Sep 28 09:28:49 mythtv mythbackend: 2009-09-28 09:28:49.525 ProgramInfo, Error: GetPlaybackURL: '3710_20090705185900.mpg' should be local, but it can not be found.
Sep 28 09:28:49 mythtv mythbackend: 2009-09-28 09:28:49.525 Preview Error: Run() file not local: '/GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/mythtv/3710_20090705185900.mpg'
Sep 28 09:28:49 mythtv mythbackend: 2009-09-28 09:28:49.525 MainServer: Failed to make preview image.


Am I missing a symlink or something?

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 28, 2009 12:08 pm 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
Your first error "File(/root/.mythtv/channels/pbs_affiliate.gif) is not within the allowed path(s):" looks like the PHP open_basedir restriction. PHP scripts are limited to performing file operations in specific directories as a security measure. I wanted to install torrentflux and have it be able to work in a bunch of directories, so I had to add them to the open_basedir line in /etc/php/php.ini.

As for the rest of it, can't really help... stuff shouldn't be running as root, not sure why your image was in /root. My mythweb files are owned by the http user.

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 
 Post subject: Re: R6 Users
PostPosted: Sun Apr 04, 2010 12:37 pm 
Offline
Joined: Thu Jan 01, 2004 9:21 pm
Posts: 84
Location: Fort Collins, CO USA
I upgraded from 5.5 to 6.01 last weekend and was getting this same error for every channel icon on MythWeb pages.

Code:
Error at /data/srv/httpd/htdocs/mythweb/modules/tv/includes/objects/Channel.php, line 49:
file_exists() [function.file-exists]: open_basedir restriction in effect. File(/root/.mythtv/channels/fox_affiliate.gif) is not within the allowed path(s): (/data/srv/httpd/htdocs/:/home/:/tmp/:/usr/share/pear/:/data/srv/tmp:/usr/share/mythtv/mythweather/scripts/:/data/srv/httpd/htdocs/mythweb/data/video:/myth/ipodfeed:/data/srv/httpd/htdocs/archive:/etc)

That error would repeat 60-70 times, once for each channel at the top of most MythWeb pages. Then following those errors I'd get one:

Code:
Error at /data/srv/httpd/htdocs/mythweb/modules/_shared/tmpl/default/header.php, line 16:
Cannot modify header information - headers already sent by (output started at /data/srv/httpd/htdocs/mythweb/includes/errors.php:117)

Then the normal web page would display below those errors.

Is this from the webserver running as root? If so, and it shouldn't be, how do I fix that?

My workaround for now was to create a link to the mythtv channels directory like this:

Code:
ln -s /home/mythtv/.mythtv/channels /root/.mythtv/channels


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 04, 2010 4:23 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You could also fix the DB. It should just be a matter of replacing the old path to the icons with the new one. Quick and dirty I'd do something like this:

Code:
mysql mythconverg -sBe "select chanid, icon from channel" |
 sed -e 's@/root/.mythtv@/home/mythtv/.mythtv@' |
 awk '/mythtv/ {print "update channel set icon=@" $2 "@ where chanid=" $1 ";"}' |
 tr @ "'"

and after checking it feed the results back into mysql. That's just off the cuff, so with a bit of thought you could probably make it more elegant, but it should work.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu